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