Class CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstancePropsMixin.MasterUserSecretProperty>
- Enclosing interface:
CfnDBInstancePropsMixin.MasterUserSecretProperty
@Stability(Stable)
public static final class CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBInstancePropsMixin.MasterUserSecretProperty>
A builder for
CfnDBInstancePropsMixin.MasterUserSecretProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getKmsKeyId()Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getKmsKeyId()Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
@Stability(Stable) public CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getKmsKeyId()- Parameters:
kmsKeyId- The AWS KMS key identifier that is used to encrypt the secret.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder kmsKeyId(IKeyRef kmsKeyId) Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getKmsKeyId()- Parameters:
kmsKeyId- The AWS KMS key identifier that is used to encrypt the secret.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDBInstancePropsMixin.MasterUserSecretProperty.Builder secretArn(String secretArn) Sets the value ofCfnDBInstancePropsMixin.MasterUserSecretProperty.getSecretArn()- Parameters:
secretArn- The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using theFn::GetAttintrinsic function. For more information, see Return values .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBInstancePropsMixin.MasterUserSecretProperty>- Returns:
- a new instance of
CfnDBInstancePropsMixin.MasterUserSecretProperty - Throws:
NullPointerException- if any required attribute was not provided
-