Class CfnClusterPropsMixin.ClientAuthenticationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.msk.mixins.CfnClusterPropsMixin.ClientAuthenticationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClientAuthenticationProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClientAuthenticationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClientAuthenticationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClientAuthenticationProperty>
A builder for
CfnClusterPropsMixin.ClientAuthenticationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sasl(IResolvable sasl) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getSasl()Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getSasl()tls(IResolvable tls) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getTls()Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getTls()unauthenticated(IResolvable unauthenticated) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getUnauthenticated()unauthenticated(CfnClusterPropsMixin.UnauthenticatedProperty unauthenticated) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getUnauthenticated()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sasl
@Stability(Stable) public CfnClusterPropsMixin.ClientAuthenticationProperty.Builder sasl(IResolvable sasl) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getSasl()- Parameters:
sasl- Details for client authentication using SASL. 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 CfnClusterPropsMixin.ClientAuthenticationProperty.Builder sasl(CfnClusterPropsMixin.SaslProperty sasl) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getSasl()- Parameters:
sasl- Details for client authentication using SASL. 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
-
tls
@Stability(Stable) public CfnClusterPropsMixin.ClientAuthenticationProperty.Builder tls(IResolvable tls) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getTls()- Parameters:
tls- Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn onEncryptionInTransitby settinginClusterto true andclientBrokertoTLS.- Returns:
this
-
tls
@Stability(Stable) public CfnClusterPropsMixin.ClientAuthenticationProperty.Builder tls(CfnClusterPropsMixin.TlsProperty tls) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getTls()- Parameters:
tls- Details for ClientAuthentication using TLS. To turn on TLS access control, you must also turn onEncryptionInTransitby settinginClusterto true andclientBrokertoTLS.- Returns:
this
-
unauthenticated
@Stability(Stable) public CfnClusterPropsMixin.ClientAuthenticationProperty.Builder unauthenticated(IResolvable unauthenticated) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getUnauthenticated()- Parameters:
unauthenticated- Details for ClientAuthentication using no authentication.- Returns:
this
-
unauthenticated
@Stability(Stable) public CfnClusterPropsMixin.ClientAuthenticationProperty.Builder unauthenticated(CfnClusterPropsMixin.UnauthenticatedProperty unauthenticated) Sets the value ofCfnClusterPropsMixin.ClientAuthenticationProperty.getUnauthenticated()- Parameters:
unauthenticated- Details for ClientAuthentication using no authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ClientAuthenticationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClientAuthenticationProperty - Throws:
NullPointerException- if any required attribute was not provided
-