Class CfnEventBus.StorageConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnEventBus.StorageConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBus.StorageConfigurationProperty>
- Enclosing interface:
CfnEventBus.StorageConfigurationProperty
@Stability(Stable)
public static final class CfnEventBus.StorageConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBus.StorageConfigurationProperty>
A builder for
CfnEventBus.StorageConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.retentionPeriodInDays(Number retentionPeriodInDays) Sets the value ofCfnEventBus.StorageConfigurationProperty.getRetentionPeriodInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retentionPeriodInDays
@Stability(Stable) public CfnEventBus.StorageConfigurationProperty.Builder retentionPeriodInDays(Number retentionPeriodInDays) Sets the value ofCfnEventBus.StorageConfigurationProperty.getRetentionPeriodInDays()- Parameters:
retentionPeriodInDays- The number of days events are retained on the event bus for replay, 1-365.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBus.StorageConfigurationProperty>- Returns:
- a new instance of
CfnEventBus.StorageConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-