public class ClusterSnapshotCopyStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Returns the destination region and retention period that are configured for cross-region snapshot copy.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationRegion
The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.
|
private java.lang.Long |
retentionPeriod
The number of days that automated snapshots are retained in the
destination region after they are copied from a source region.
|
private java.lang.String |
snapshotCopyGrantName
The name of the snapshot copy grant.
|
Constructor and Description |
---|
ClusterSnapshotCopyStatus() |
Modifier and Type | Method and Description |
---|---|
ClusterSnapshotCopyStatus |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationRegion()
The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.
|
java.lang.Long |
getRetentionPeriod()
The number of days that automated snapshots are retained in the
destination region after they are copied from a source region.
|
java.lang.String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant.
|
int |
hashCode() |
void |
setDestinationRegion(java.lang.String destinationRegion)
The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.
|
void |
setRetentionPeriod(java.lang.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(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterSnapshotCopyStatus |
withDestinationRegion(java.lang.String destinationRegion)
The destination region that snapshots are automatically copied to when
cross-region snapshot copy is enabled.
|
ClusterSnapshotCopyStatus |
withRetentionPeriod(java.lang.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(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
private java.lang.String destinationRegion
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
private java.lang.Long retentionPeriod
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
private java.lang.String snapshotCopyGrantName
The name of the snapshot copy grant.
public void setDestinationRegion(java.lang.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 java.lang.String getDestinationRegion()
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
public ClusterSnapshotCopyStatus withDestinationRegion(java.lang.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(java.lang.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 java.lang.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(java.lang.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 setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public java.lang.String getSnapshotCopyGrantName()
The name of the snapshot copy grant.
public ClusterSnapshotCopyStatus withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ClusterSnapshotCopyStatus clone()
clone
in class java.lang.Object