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:
  • Constructor Details

    • ClusterSnapshotCopyStatus

      public ClusterSnapshotCopyStatus()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ClusterSnapshotCopyStatus clone()
      Overrides:
      clone in class Object