Class CfnDBSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBSnapshotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSnapshotMixinProps>
- Enclosing interface:
CfnDBSnapshotMixinProps
@Stability(Stable)
public static final class CfnDBSnapshotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSnapshotMixinProps>
A builder for
CfnDBSnapshotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnDBSnapshotMixinProps.getDbInstanceIdentifier()dbSnapshotIdentifier(String dbSnapshotIdentifier) Sets the value ofCfnDBSnapshotMixinProps.getDbSnapshotIdentifier()Sets the value ofCfnDBSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbInstanceIdentifier
@Stability(Stable) public CfnDBSnapshotMixinProps.Builder dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnDBSnapshotMixinProps.getDbInstanceIdentifier()- Parameters:
dbInstanceIdentifier- The identifier of the DB instance that you want to create the snapshot of.- Returns:
this
-
dbSnapshotIdentifier
@Stability(Stable) public CfnDBSnapshotMixinProps.Builder dbSnapshotIdentifier(String dbSnapshotIdentifier) Sets the value ofCfnDBSnapshotMixinProps.getDbSnapshotIdentifier()- Parameters:
dbSnapshotIdentifier- The identifier for the DB snapshot. Must contain from 1 to 255 letters, numbers, or hyphens. First character must be a letter. Can't end with a hyphen or contain two consecutive hyphens.- Returns:
this
-
tags
Sets the value ofCfnDBSnapshotMixinProps.getTags()- Parameters:
tags- The tags to be assigned to the DB snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBSnapshotMixinProps>- Returns:
- a new instance of
CfnDBSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-