Class CfnChannel.PartitionSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnChannel.PartitionSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.PartitionSpecProperty>
- Enclosing interface:
CfnChannel.PartitionSpecProperty
@Stability(Stable)
public static final class CfnChannel.PartitionSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.PartitionSpecProperty>
A builder for
CfnChannel.PartitionSpecProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.partitionStrategy(String partitionStrategy) Sets the value ofCfnChannel.PartitionSpecProperty.getPartitionStrategy()sourceList(List<? extends Object> sourceList) Sets the value ofCfnChannel.PartitionSpecProperty.getSourceList()sourceList(IResolvable sourceList) Sets the value ofCfnChannel.PartitionSpecProperty.getSourceList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionStrategy
@Stability(Stable) public CfnChannel.PartitionSpecProperty.Builder partitionStrategy(String partitionStrategy) Sets the value ofCfnChannel.PartitionSpecProperty.getPartitionStrategy()- Parameters:
partitionStrategy- Partition strategy for MSK channel. This parameter is required.- Returns:
this
-
sourceList
@Stability(Stable) public CfnChannel.PartitionSpecProperty.Builder sourceList(IResolvable sourceList) Sets the value ofCfnChannel.PartitionSpecProperty.getSourceList()- Parameters:
sourceList- Source list.- Returns:
this
-
sourceList
@Stability(Stable) public CfnChannel.PartitionSpecProperty.Builder sourceList(List<? extends Object> sourceList) Sets the value ofCfnChannel.PartitionSpecProperty.getSourceList()- Parameters:
sourceList- Source list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.PartitionSpecProperty>- Returns:
- a new instance of
CfnChannel.PartitionSpecProperty - Throws:
NullPointerException- if any required attribute was not provided
-