Class CfnDatabaseSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDatabaseSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatabaseSnapshotProps>
- Enclosing interface:
CfnDatabaseSnapshotProps
@Stability(Stable)
public static final class CfnDatabaseSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatabaseSnapshotProps>
A builder for
CfnDatabaseSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.relationalDatabaseName(String relationalDatabaseName) Sets the value ofCfnDatabaseSnapshotProps.getRelationalDatabaseName()relationalDatabaseSnapshotName(String relationalDatabaseSnapshotName) Sets the value ofCfnDatabaseSnapshotProps.getRelationalDatabaseSnapshotName()Sets the value ofCfnDatabaseSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
relationalDatabaseName
@Stability(Stable) public CfnDatabaseSnapshotProps.Builder relationalDatabaseName(String relationalDatabaseName) Sets the value ofCfnDatabaseSnapshotProps.getRelationalDatabaseName()- Parameters:
relationalDatabaseName- The name of the database on which to base your new snapshot. This parameter is required.- Returns:
this
-
relationalDatabaseSnapshotName
@Stability(Stable) public CfnDatabaseSnapshotProps.Builder relationalDatabaseSnapshotName(String relationalDatabaseSnapshotName) Sets the value ofCfnDatabaseSnapshotProps.getRelationalDatabaseSnapshotName()- Parameters:
relationalDatabaseSnapshotName- The name for your new database snapshot. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnDatabaseSnapshotProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatabaseSnapshotProps>- Returns:
- a new instance of
CfnDatabaseSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-