Class CfnServerlessCluster.ClientAuthenticationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnServerlessCluster.ClientAuthenticationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCluster.ClientAuthenticationProperty>
- Enclosing interface:
- CfnServerlessCluster.ClientAuthenticationProperty
@Stability(Stable)
public static final class CfnServerlessCluster.ClientAuthenticationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCluster.ClientAuthenticationProperty>
A builder for
CfnServerlessCluster.ClientAuthenticationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sasl(IResolvable sasl) Sets the value ofCfnServerlessCluster.ClientAuthenticationProperty.getSasl()Sets the value ofCfnServerlessCluster.ClientAuthenticationProperty.getSasl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sasl
@Stability(Stable) public CfnServerlessCluster.ClientAuthenticationProperty.Builder sasl(IResolvable sasl) Sets the value ofCfnServerlessCluster.ClientAuthenticationProperty.getSasl()- Parameters:
sasl- Details for client authentication using SASL. This parameter is required. To turn on SASL, you must also turn onEncryptionInTransitby settinginClusterto true. You must setclientBrokerto eitherTLSorTLS_PLAINTEXT. If you chooseTLS_PLAINTEXT, then you must also setunauthenticatedto true.- Returns:
this
-
sasl
@Stability(Stable) public CfnServerlessCluster.ClientAuthenticationProperty.Builder sasl(CfnServerlessCluster.SaslProperty sasl) Sets the value ofCfnServerlessCluster.ClientAuthenticationProperty.getSasl()- Parameters:
sasl- Details for client authentication using SASL. This parameter is required. To turn on SASL, you must also turn onEncryptionInTransitby settinginClusterto true. You must setclientBrokerto eitherTLSorTLS_PLAINTEXT. If you chooseTLS_PLAINTEXT, then you must also setunauthenticatedto true.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCluster.ClientAuthenticationProperty>- Returns:
- a new instance of
CfnServerlessCluster.ClientAuthenticationProperty - Throws:
NullPointerException- if any required attribute was not provided
-