Class CfnSnapshot.SnapshotProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnSnapshot.SnapshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshot.SnapshotProperty>
- Enclosing interface:
CfnSnapshot.SnapshotProperty
@Stability(Stable)
public static final class CfnSnapshot.SnapshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshot.SnapshotProperty>
A builder for
CfnSnapshot.SnapshotProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadminUsername
(String adminUsername) Sets the value ofCfnSnapshot.SnapshotProperty.getAdminUsername()
build()
Builds the configured instance.Sets the value ofCfnSnapshot.SnapshotProperty.getKmsKeyId()
namespaceArn
(String namespaceArn) Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceArn()
namespaceName
(String namespaceName) Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceName()
ownerAccount
(String ownerAccount) Sets the value ofCfnSnapshot.SnapshotProperty.getOwnerAccount()
retentionPeriod
(Number retentionPeriod) Sets the value ofCfnSnapshot.SnapshotProperty.getRetentionPeriod()
snapshotArn
(String snapshotArn) Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotArn()
snapshotCreateTime
(String snapshotCreateTime) Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotCreateTime()
snapshotName
(String snapshotName) Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotName()
Sets the value ofCfnSnapshot.SnapshotProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adminUsername
Sets the value ofCfnSnapshot.SnapshotProperty.getAdminUsername()
- Parameters:
adminUsername
- The username of the database within a snapshot.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSnapshot.SnapshotProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The unique identifier of the KMS key used to encrypt the snapshot.- Returns:
this
-
namespaceArn
Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceArn()
- Parameters:
namespaceArn
- The Amazon Resource Name (ARN) of the namespace the snapshot was created from.- Returns:
this
-
namespaceName
Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceName()
- Parameters:
namespaceName
- The name of the namepsace.- Returns:
this
-
ownerAccount
Sets the value ofCfnSnapshot.SnapshotProperty.getOwnerAccount()
- Parameters:
ownerAccount
- The owner AWS ;. account of the snapshot.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnSnapshot.SnapshotProperty.Builder retentionPeriod(Number retentionPeriod) Sets the value ofCfnSnapshot.SnapshotProperty.getRetentionPeriod()
- Parameters:
retentionPeriod
- The retention period of the snapshot created by the scheduled action.- Returns:
this
-
snapshotArn
Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotArn()
- Parameters:
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot.- Returns:
this
-
snapshotCreateTime
@Stability(Stable) public CfnSnapshot.SnapshotProperty.Builder snapshotCreateTime(String snapshotCreateTime) Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotCreateTime()
- Parameters:
snapshotCreateTime
- The timestamp of when the snapshot was created.- Returns:
this
-
snapshotName
Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotName()
- Parameters:
snapshotName
- The name of the snapshot.- Returns:
this
-
status
Sets the value ofCfnSnapshot.SnapshotProperty.getStatus()
- Parameters:
status
- The status of the snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSnapshot.SnapshotProperty>
- Returns:
- a new instance of
CfnSnapshot.SnapshotProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-