Class BaseArchiveProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.BaseArchiveProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseArchiveProps>
- Enclosing interface:
BaseArchiveProps
@Stability(Stable)
public static final class BaseArchiveProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseArchiveProps>
A builder for
BaseArchiveProps
-
Constructor Summary
-
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.getRetention()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<BaseArchiveProps>
- Returns:
- a new instance of
BaseArchiveProps
- Throws:
NullPointerException
- if any required attribute was not provided
-