Class CfnEventBusMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnEventBusMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBusMixinProps>
- Enclosing interface:
CfnEventBusMixinProps
@Stability(Stable)
public static final class CfnEventBusMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBusMixinProps>
A builder for
CfnEventBusMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnEventBusMixinProps.getDescription()encryptionConfiguration(CfnEventBusPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnEventBusMixinProps.getEncryptionConfiguration()encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnEventBusMixinProps.getEncryptionConfiguration()Sets the value ofCfnEventBusMixinProps.getName()storageConfiguration(CfnEventBusPropsMixin.StorageConfigurationProperty storageConfiguration) Sets the value ofCfnEventBusMixinProps.getStorageConfiguration()storageConfiguration(IResolvable storageConfiguration) Sets the value ofCfnEventBusMixinProps.getStorageConfiguration()Sets the value ofCfnEventBusMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnEventBusMixinProps.getDescription()- Parameters:
description- A description of the event bus. Control characters and Unicode line separators are not allowed.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnEventBusMixinProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnEventBusMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- Encryption configuration for an event bus.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnEventBusMixinProps.Builder encryptionConfiguration(CfnEventBusPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnEventBusMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- Encryption configuration for an event bus.- Returns:
this
-
name
Sets the value ofCfnEventBusMixinProps.getName()- Parameters:
name- The name of the event bus. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnEventBusMixinProps.Builder storageConfiguration(IResolvable storageConfiguration) Sets the value ofCfnEventBusMixinProps.getStorageConfiguration()- Parameters:
storageConfiguration- Storage (retention) configuration for the event bus.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnEventBusMixinProps.Builder storageConfiguration(CfnEventBusPropsMixin.StorageConfigurationProperty storageConfiguration) Sets the value ofCfnEventBusMixinProps.getStorageConfiguration()- Parameters:
storageConfiguration- Storage (retention) configuration for the event bus.- Returns:
this
-
tags
Sets the value ofCfnEventBusMixinProps.getTags()- Parameters:
tags- The tags assigned to the event bus.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBusMixinProps>- Returns:
- a new instance of
CfnEventBusMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-