Class CfnCluster.EncryptionInTransitProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnCluster.EncryptionInTransitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.EncryptionInTransitProperty>
- Enclosing interface:
CfnCluster.EncryptionInTransitProperty
@Stability(Stable)
public static final class CfnCluster.EncryptionInTransitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.EncryptionInTransitProperty>
A builder for
CfnCluster.EncryptionInTransitProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientBroker
(String clientBroker) Sets the value ofCfnCluster.EncryptionInTransitProperty.getClientBroker()
Sets the value ofCfnCluster.EncryptionInTransitProperty.getInCluster()
inCluster
(IResolvable inCluster) Sets the value ofCfnCluster.EncryptionInTransitProperty.getInCluster()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientBroker
@Stability(Stable) public CfnCluster.EncryptionInTransitProperty.Builder clientBroker(String clientBroker) Sets the value ofCfnCluster.EncryptionInTransitProperty.getClientBroker()
- Parameters:
clientBroker
- Indicates the encryption setting for data in transit between clients and brokers. You must set it to one of the following values.TLS
means that client-broker communication is enabled with TLS only.TLS_PLAINTEXT
means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.PLAINTEXT
means that client-broker communication is enabled in plaintext only.The default value is
TLS
.- Returns:
this
-
inCluster
@Stability(Stable) public CfnCluster.EncryptionInTransitProperty.Builder inCluster(Boolean inCluster) Sets the value ofCfnCluster.EncryptionInTransitProperty.getInCluster()
- Parameters:
inCluster
- When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When set to false, the communication happens in plaintext.The default value is true.
- Returns:
this
-
inCluster
@Stability(Stable) public CfnCluster.EncryptionInTransitProperty.Builder inCluster(IResolvable inCluster) Sets the value ofCfnCluster.EncryptionInTransitProperty.getInCluster()
- Parameters:
inCluster
- When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When set to false, the communication happens in plaintext.The default value is true.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.EncryptionInTransitProperty>
- Returns:
- a new instance of
CfnCluster.EncryptionInTransitProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-