Class CfnConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.msk.mixins.CfnConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationMixinProps>
- Enclosing interface:
CfnConfigurationMixinProps
@Stability(Stable)
public static final class CfnConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationMixinProps>
A builder for
CfnConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnConfigurationMixinProps.getDescription()kafkaVersionsList(List<String> kafkaVersionsList) Sets the value ofCfnConfigurationMixinProps.getKafkaVersionsList()latestRevision(IResolvable latestRevision) Sets the value ofCfnConfigurationMixinProps.getLatestRevision()latestRevision(CfnConfigurationPropsMixin.LatestRevisionProperty latestRevision) Sets the value ofCfnConfigurationMixinProps.getLatestRevision()Sets the value ofCfnConfigurationMixinProps.getName()serverProperties(String serverProperties) Sets the value ofCfnConfigurationMixinProps.getServerProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnConfigurationMixinProps.getDescription()- Parameters:
description- The description of the configuration.- Returns:
this
-
kafkaVersionsList
@Stability(Stable) public CfnConfigurationMixinProps.Builder kafkaVersionsList(List<String> kafkaVersionsList) Sets the value ofCfnConfigurationMixinProps.getKafkaVersionsList()- Parameters:
kafkaVersionsList- The versions of Apache Kafka with which you can use this MSK configuration. When you update theKafkaVersionsListproperty, CloudFormation recreates a new configuration with the updated property before deleting the old configuration. Such an update requires a resource replacement . To successfully updateKafkaVersionsList, you must also update theNameproperty in the same operation.If your configuration is attached with any clusters created using the AWS Management Console or AWS CLI , you'll need to manually delete the old configuration from the console after the update completes.
For more information, see Can’t update KafkaVersionsList in MSK configuration in the Amazon MSK Developer Guide .
- Returns:
this
-
latestRevision
@Stability(Stable) public CfnConfigurationMixinProps.Builder latestRevision(IResolvable latestRevision) Sets the value ofCfnConfigurationMixinProps.getLatestRevision()- Parameters:
latestRevision- Latest revision of the MSK configuration.- Returns:
this
-
latestRevision
@Stability(Stable) public CfnConfigurationMixinProps.Builder latestRevision(CfnConfigurationPropsMixin.LatestRevisionProperty latestRevision) Sets the value ofCfnConfigurationMixinProps.getLatestRevision()- Parameters:
latestRevision- Latest revision of the MSK configuration.- Returns:
this
-
name
Sets the value ofCfnConfigurationMixinProps.getName()- Parameters:
name- The name of the configuration. Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$".- Returns:
this
-
serverProperties
@Stability(Stable) public CfnConfigurationMixinProps.Builder serverProperties(String serverProperties) Sets the value ofCfnConfigurationMixinProps.getServerProperties()- Parameters:
serverProperties- Contents of theserver.propertiesfile. When using the console, the SDK, or the AWS CLI , the contents ofserver.propertiescan be in plaintext.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigurationMixinProps>- Returns:
- a new instance of
CfnConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-