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.
|
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 |
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; useful for testing and
debugging.
|
ClusterSnapshotCopyStatus |
withDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.
|
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 String getDestinationRegion()
public void setDestinationRegion(String destinationRegion)
destinationRegion
- The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.public ClusterSnapshotCopyStatus withDestinationRegion(String destinationRegion)
Returns a reference to this object so that method calls can be chained together.
destinationRegion
- The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.public Long getRetentionPeriod()
public void setRetentionPeriod(Long retentionPeriod)
retentionPeriod
- 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)
Returns a reference to this object so that method calls can be chained together.
retentionPeriod
- The number of days that automated snapshots are retained in the
destination region after they are copied from a source region.public String getSnapshotCopyGrantName()
public void setSnapshotCopyGrantName(String snapshotCopyGrantName)
snapshotCopyGrantName
- The name of the snapshot copy grant.public ClusterSnapshotCopyStatus withSnapshotCopyGrantName(String snapshotCopyGrantName)
Returns a reference to this object so that method calls can be chained together.
snapshotCopyGrantName
- The name of the snapshot copy grant.public String toString()
toString
in class Object
Object.toString()
public ClusterSnapshotCopyStatus clone()
Copyright © 2015. All rights reserved.