@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClusterSnapshotCopyStatus extends Object implements Serializable, Cloneable
Returns the destination region and retention period that are configured for cross-region snapshot copy.
Constructor and Description |
---|
ClusterSnapshotCopyStatus() |
Modifier and Type | Method and Description |
---|---|
ClusterSnapshotCopyStatus |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationRegion()
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
|
Integer |
getManualSnapshotRetentionPeriod()
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
Long |
getRetentionPeriod()
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant.
|
int |
hashCode() |
void |
setDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
|
void |
setManualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
void |
setRetentionPeriod(Long retentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
void |
setSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
String |
toString()
Returns a string representation of this object.
|
ClusterSnapshotCopyStatus |
withDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
|
ClusterSnapshotCopyStatus |
withManualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
ClusterSnapshotCopyStatus |
withRetentionPeriod(Long retentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a
source region.
|
ClusterSnapshotCopyStatus |
withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
public void setDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
destinationRegion
- The destination region that snapshots are automatically copied to when cross-region snapshot copy is
enabled.public String getDestinationRegion()
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
public ClusterSnapshotCopyStatus withDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
destinationRegion
- The destination region that snapshots are automatically copied to when cross-region snapshot copy is
enabled.public void setRetentionPeriod(Long retentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
retentionPeriod
- The number of days that automated snapshots are retained in the destination region after they are copied
from a source region.public Long getRetentionPeriod()
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
public ClusterSnapshotCopyStatus withRetentionPeriod(Long retentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
retentionPeriod
- The number of days that automated snapshots are retained in the destination region after they are copied
from a source region.public void setManualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
manualSnapshotRetentionPeriod
- The number of days that automated snapshots are retained in the destination region after they are copied
from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
public Integer getManualSnapshotRetentionPeriod()
The number of days that automated snapshots are retained in the destination region after they are copied from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The value must be either -1 or an integer between 1 and 3,653.
public ClusterSnapshotCopyStatus withManualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod)
The number of days that automated snapshots are retained in the destination region after they are copied from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
manualSnapshotRetentionPeriod
- The number of days that automated snapshots are retained in the destination region after they are copied
from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
public void setSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public String getSnapshotCopyGrantName()
The name of the snapshot copy grant.
public ClusterSnapshotCopyStatus withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public String toString()
toString
in class Object
Object.toString()
public ClusterSnapshotCopyStatus clone()