Class ClusterSnapshotCopyStatus
- java.lang.Object
-
- com.amazonaws.services.redshift.model.ClusterSnapshotCopyStatus
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ClusterSnapshotCopyStatus extends Object implements Serializable, Cloneable
Returns the destination region and retention period that are configured for cross-region snapshot copy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterSnapshotCopyStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSnapshotCopyStatusclone()booleanequals(Object obj)StringgetDestinationRegion()The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.LonggetRetentionPeriod()The number of days that automated snapshots are retained in the destination region after they are copied from a source region.StringgetSnapshotCopyGrantName()The name of the snapshot copy grant.inthashCode()voidsetDestinationRegion(String destinationRegion)The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.voidsetRetentionPeriod(Long retentionPeriod)The number of days that automated snapshots are retained in the destination region after they are copied from a source region.voidsetSnapshotCopyGrantName(String snapshotCopyGrantName)The name of the snapshot copy grant.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClusterSnapshotCopyStatuswithDestinationRegion(String destinationRegion)The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.ClusterSnapshotCopyStatuswithRetentionPeriod(Long retentionPeriod)The number of days that automated snapshots are retained in the destination region after they are copied from a source region.ClusterSnapshotCopyStatuswithSnapshotCopyGrantName(String snapshotCopyGrantName)The name of the snapshot copy grant.
-
-
-
Method Detail
-
setDestinationRegion
public void setDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
- Parameters:
destinationRegion- The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
-
getDestinationRegion
public String getDestinationRegion()
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
- Returns:
- The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
-
withDestinationRegion
public ClusterSnapshotCopyStatus withDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
- Parameters:
destinationRegion- The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRetentionPeriod
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.
- Parameters:
retentionPeriod- The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
-
getRetentionPeriod
public Long getRetentionPeriod()
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
- Returns:
- The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
-
withRetentionPeriod
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.
- Parameters:
retentionPeriod- The number of days that automated snapshots are retained in the destination region after they are copied from a source region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotCopyGrantName
public void setSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant.
-
getSnapshotCopyGrantName
public String getSnapshotCopyGrantName()
The name of the snapshot copy grant.
- Returns:
- The name of the snapshot copy grant.
-
withSnapshotCopyGrantName
public ClusterSnapshotCopyStatus withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClusterSnapshotCopyStatus clone()
-
-