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 value to be set.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSnapshot.SnapshotProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- the value to be set.- Returns:
this
-
namespaceArn
Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceArn()
- Parameters:
namespaceArn
- the value to be set.- Returns:
this
-
namespaceName
Sets the value ofCfnSnapshot.SnapshotProperty.getNamespaceName()
- Parameters:
namespaceName
- the value to be set.- Returns:
this
-
ownerAccount
Sets the value ofCfnSnapshot.SnapshotProperty.getOwnerAccount()
- Parameters:
ownerAccount
- the value to be set.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnSnapshot.SnapshotProperty.Builder retentionPeriod(Number retentionPeriod) Sets the value ofCfnSnapshot.SnapshotProperty.getRetentionPeriod()
- Parameters:
retentionPeriod
- the value to be set.- Returns:
this
-
snapshotArn
Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotArn()
- Parameters:
snapshotArn
- the value to be set.- Returns:
this
-
snapshotCreateTime
@Stability(Stable) public CfnSnapshot.SnapshotProperty.Builder snapshotCreateTime(String snapshotCreateTime) Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotCreateTime()
- Parameters:
snapshotCreateTime
- the value to be set.- Returns:
this
-
snapshotName
Sets the value ofCfnSnapshot.SnapshotProperty.getSnapshotName()
- Parameters:
snapshotName
- the value to be set.- Returns:
this
-
status
Sets the value ofCfnSnapshot.SnapshotProperty.getStatus()
- Parameters:
status
- the value to be set.- 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
-