com.amazonaws.services.redshift.model
Class ClusterSnapshotCopyStatus

java.lang.Object
  extended by com.amazonaws.services.redshift.model.ClusterSnapshotCopyStatus
All Implemented Interfaces:
Serializable

public class ClusterSnapshotCopyStatus
extends Object
implements Serializable

Returns the destination region and retention period that are configured for cross-region snapshot copy.

See Also:
Serialized Form

Constructor Summary
ClusterSnapshotCopyStatus()
           
 
Method Summary
 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.
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterSnapshotCopyStatus

public ClusterSnapshotCopyStatus()
Method Detail

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.

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.

withDestinationRegion

public ClusterSnapshotCopyStatus withDestinationRegion(String destinationRegion)
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.

Returns a reference to this object so that method calls can be chained together.

Parameters:
destinationRegion - The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
retentionPeriod - The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.