Class CommonRotationUserOptions.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CommonRotationUserOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonRotationUserOptions>
- Enclosing interface:
CommonRotationUserOptions
@Stability(Stable)
public static final class CommonRotationUserOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CommonRotationUserOptions>
A builder for
CommonRotationUserOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautomaticallyAfter
(Duration automaticallyAfter) Sets the value ofCommonRotationUserOptions.getAutomaticallyAfter()
build()
Builds the configured instance.endpoint
(IInterfaceVpcEndpoint endpoint) Sets the value ofCommonRotationUserOptions.getEndpoint()
excludeCharacters
(String excludeCharacters) Sets the value ofCommonRotationUserOptions.getExcludeCharacters()
vpcSubnets
(SubnetSelection vpcSubnets) Sets the value ofCommonRotationUserOptions.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automaticallyAfter
@Stability(Stable) public CommonRotationUserOptions.Builder automaticallyAfter(Duration automaticallyAfter) Sets the value ofCommonRotationUserOptions.getAutomaticallyAfter()
- Parameters:
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.- Returns:
this
-
endpoint
@Stability(Stable) public CommonRotationUserOptions.Builder endpoint(IInterfaceVpcEndpoint endpoint) Sets the value ofCommonRotationUserOptions.getEndpoint()
- Parameters:
endpoint
- The VPC interface endpoint to use for the Secrets Manager API. If you enable private DNS hostnames for your VPC private endpoint (the default), you don't need to specify an endpoint. The standard Secrets Manager DNS hostname the Secrets Manager CLI and SDKs use by default (https://secretsmanager..amazonaws.com) automatically resolves to your VPC endpoint. - Returns:
this
-
excludeCharacters
@Stability(Stable) public CommonRotationUserOptions.Builder excludeCharacters(String excludeCharacters) Sets the value ofCommonRotationUserOptions.getExcludeCharacters()
- Parameters:
excludeCharacters
- Specifies characters to not include in generated passwords.- Returns:
this
-
vpcSubnets
Sets the value ofCommonRotationUserOptions.getVpcSubnets()
- Parameters:
vpcSubnets
- Where to place the rotation Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CommonRotationUserOptions>
- Returns:
- a new instance of
CommonRotationUserOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-