public static final class SaslAuthProps.Builder
extends java.lang.Object
SaslAuthProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SaslAuthProps |
build()
Builds the configured instance.
|
SaslAuthProps.Builder |
iam(java.lang.Boolean iam)
Sets the value of
SaslAuthProps.getIam() |
SaslAuthProps.Builder |
key(IKey key)
Sets the value of
SaslAuthProps.getKey() |
SaslAuthProps.Builder |
scram(java.lang.Boolean scram)
Sets the value of
SaslAuthProps.getScram() |
public SaslAuthProps.Builder iam(java.lang.Boolean iam)
SaslAuthProps.getIam()
iam
- Enable IAM access control.this
public SaslAuthProps.Builder key(IKey key)
SaslAuthProps.getKey()
key
- KMS Key to encrypt SASL/SCRAM secrets.
You must use a customer master key (CMK) when creating users in secrets manager.
You cannot use a Secret with Amazon MSK that uses the default Secrets Manager encryption key.this
public SaslAuthProps.Builder scram(java.lang.Boolean scram)
SaslAuthProps.getScram()
scram
- Enable SASL/SCRAM authentication.this
public SaslAuthProps build()
SaslAuthProps
java.lang.NullPointerException
- if any required attribute was not provided