Class CfnConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationProps>
- Enclosing interface:
- CfnConfigurationProps
@Stability(Stable)
public static final class CfnConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationProps>
A builder for
CfnConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnConfigurationProps.getDescription()
kafkaVersionsList
(List<String> kafkaVersionsList) Sets the value ofCfnConfigurationProps.getKafkaVersionsList()
Sets the value ofCfnConfigurationProps.getName()
serverProperties
(String serverProperties) Sets the value ofCfnConfigurationProps.getServerProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnConfigurationProps.getName()
- Parameters:
name
- The name of the configuration. This parameter is required. Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$".- Returns:
this
-
serverProperties
Sets the value ofCfnConfigurationProps.getServerProperties()
- Parameters:
serverProperties
- Contents of the server.properties file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of server.properties can be in plaintext. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnConfigurationProps.getDescription()
- Parameters:
description
- The description of the configuration.- Returns:
this
-
kafkaVersionsList
@Stability(Stable) public CfnConfigurationProps.Builder kafkaVersionsList(List<String> kafkaVersionsList) Sets the value ofCfnConfigurationProps.getKafkaVersionsList()
- Parameters:
kafkaVersionsList
-AWS::MSK::Configuration.KafkaVersionsList
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationProps>
- Returns:
- a new instance of
CfnConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-