Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelProps>
- Enclosing interface:
- CfnChannelProps
@Stability(Stable)
public static final class CfnChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelProps>
A builder for
CfnChannelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.channelName(String channelName) Sets the value ofCfnChannelProps.getChannelName()channelStorage(IResolvable channelStorage) Sets the value ofCfnChannelProps.getChannelStorage()channelStorage(CfnChannel.ChannelStorageProperty channelStorage) Sets the value ofCfnChannelProps.getChannelStorage()retentionPeriod(IResolvable retentionPeriod) Sets the value ofCfnChannelProps.getRetentionPeriod()retentionPeriod(CfnChannel.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnChannelProps.getRetentionPeriod()Sets the value ofCfnChannelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelName
Sets the value ofCfnChannelProps.getChannelName()- Parameters:
channelName- The name of the channel.- Returns:
this
-
channelStorage
@Stability(Stable) public CfnChannelProps.Builder channelStorage(CfnChannel.ChannelStorageProperty channelStorage) Sets the value ofCfnChannelProps.getChannelStorage()- Parameters:
channelStorage- Where channel data is stored.- Returns:
this
-
channelStorage
Sets the value ofCfnChannelProps.getChannelStorage()- Parameters:
channelStorage- Where channel data is stored.- Returns:
this
-
retentionPeriod
Sets the value ofCfnChannelProps.getRetentionPeriod()- Parameters:
retentionPeriod- How long, in days, message data is kept for the channel.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnChannelProps.Builder retentionPeriod(CfnChannel.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnChannelProps.getRetentionPeriod()- Parameters:
retentionPeriod- How long, in days, message data is kept for the channel.- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()- Parameters:
tags- Metadata which can be used to manage the channel. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelProps>- Returns:
- a new instance of
CfnChannelProps - Throws:
NullPointerException- if any required attribute was not provided
-