Class CfnArchiveProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnArchiveProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnArchiveProps>
- Enclosing interface:
CfnArchiveProps
@Stability(Stable)
public static final class CfnArchiveProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnArchiveProps>
A builder for
CfnArchiveProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionarchiveName
(String archiveName) Sets the value ofCfnArchiveProps.getArchiveName()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnArchiveProps.getDescription()
eventPattern
(Object eventPattern) Sets the value ofCfnArchiveProps.getEventPattern()
retentionDays
(Number retentionDays) Sets the value ofCfnArchiveProps.getRetentionDays()
Sets the value ofCfnArchiveProps.getSourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceArn
Sets the value ofCfnArchiveProps.getSourceArn()
- Parameters:
sourceArn
- The ARN of the event bus that sends events to the archive. This parameter is required.- Returns:
this
-
archiveName
Sets the value ofCfnArchiveProps.getArchiveName()
- Parameters:
archiveName
- The name for the archive to create.- Returns:
this
-
description
Sets the value ofCfnArchiveProps.getDescription()
- Parameters:
description
- A description for the archive.- Returns:
this
-
eventPattern
Sets the value ofCfnArchiveProps.getEventPattern()
- Parameters:
eventPattern
- An event pattern to use to filter events sent to the archive.- Returns:
this
-
retentionDays
Sets the value ofCfnArchiveProps.getRetentionDays()
- Parameters:
retentionDays
- The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnArchiveProps>
- Returns:
- a new instance of
CfnArchiveProps
- Throws:
NullPointerException
- if any required attribute was not provided
-