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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClusterSnapshotCopyStatus clone()
-
-