Class ArchiveProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.ArchiveProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArchiveProps>
- Enclosing interface:
ArchiveProps
@Stability(Stable)
public static final class ArchiveProps.Builder
extends Object
implements software.amazon.jsii.Builder<ArchiveProps>
A builder for
ArchiveProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveName(String archiveName) Sets the value ofBaseArchiveProps.getArchiveName()build()Builds the configured instance.description(String description) Sets the value ofBaseArchiveProps.getDescription()eventPattern(EventPattern eventPattern) Sets the value ofBaseArchiveProps.getEventPattern()Sets the value ofBaseArchiveProps.getKmsKey()Sets the value ofBaseArchiveProps.getRetention()sourceEventBus(IEventBus sourceEventBus) Sets the value ofArchiveProps.getSourceEventBus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceEventBus
Sets the value ofArchiveProps.getSourceEventBus()- Parameters:
sourceEventBus- The event source associated with the archive. This parameter is required.- Returns:
this
-
eventPattern
Sets the value ofBaseArchiveProps.getEventPattern()- Parameters:
eventPattern- An event pattern to use to filter events sent to the archive. This parameter is required.- Returns:
this
-
archiveName
Sets the value ofBaseArchiveProps.getArchiveName()- Parameters:
archiveName- The name of the archive.- Returns:
this
-
description
Sets the value ofBaseArchiveProps.getDescription()- Parameters:
description- A description for the archive.- Returns:
this
-
kmsKey
Sets the value ofBaseArchiveProps.getKmsKey()- Parameters:
kmsKey- The customer managed key that encrypts this archive.- Returns:
this
-
retention
Sets the value ofBaseArchiveProps.getRetention()- Parameters:
retention- 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:
buildin interfacesoftware.amazon.jsii.Builder<ArchiveProps>- Returns:
- a new instance of
ArchiveProps - Throws:
NullPointerException- if any required attribute was not provided
-