public class EnableSnapshotCopyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clusterIdentifier
The unique identifier of the source cluster to copy snapshots from.
|
private java.lang.String |
destinationRegion
The destination region that you want to copy snapshots to.
|
private java.lang.Integer |
retentionPeriod
The number of days to retain automated snapshots in the destination
region after they are copied from the source region.
|
private java.lang.String |
snapshotCopyGrantName
The name of the snapshot copy grant to use when snapshots of an AWS
KMS-encrypted cluster are copied to the destination region.
|
NOOP
Constructor and Description |
---|
EnableSnapshotCopyRequest() |
Modifier and Type | Method and Description |
---|---|
EnableSnapshotCopyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterIdentifier()
The unique identifier of the source cluster to copy snapshots from.
|
java.lang.String |
getDestinationRegion()
The destination region that you want to copy snapshots to.
|
java.lang.Integer |
getRetentionPeriod()
The number of days to retain automated snapshots in the destination
region after they are copied from the source region.
|
java.lang.String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant to use when snapshots of an AWS
KMS-encrypted cluster are copied to the destination region.
|
int |
hashCode() |
void |
setClusterIdentifier(java.lang.String clusterIdentifier)
The unique identifier of the source cluster to copy snapshots from.
|
void |
setDestinationRegion(java.lang.String destinationRegion)
The destination region that you want to copy snapshots to.
|
void |
setRetentionPeriod(java.lang.Integer retentionPeriod)
The number of days to retain automated snapshots in the destination
region after they are copied from the source region.
|
void |
setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant to use when snapshots of an AWS
KMS-encrypted cluster are copied to the destination region.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableSnapshotCopyRequest |
withClusterIdentifier(java.lang.String clusterIdentifier)
The unique identifier of the source cluster to copy snapshots from.
|
EnableSnapshotCopyRequest |
withDestinationRegion(java.lang.String destinationRegion)
The destination region that you want to copy snapshots to.
|
EnableSnapshotCopyRequest |
withRetentionPeriod(java.lang.Integer retentionPeriod)
The number of days to retain automated snapshots in the destination
region after they are copied from the source region.
|
EnableSnapshotCopyRequest |
withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant to use when snapshots of an AWS
KMS-encrypted cluster are copied to the destination region.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String clusterIdentifier
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
private java.lang.String destinationRegion
The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
private java.lang.Integer retentionPeriod
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
private java.lang.String snapshotCopyGrantName
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
public void setClusterIdentifier(java.lang.String clusterIdentifier)
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
clusterIdentifier
- The unique identifier of the source cluster to copy snapshots
from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
public java.lang.String getClusterIdentifier()
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
public EnableSnapshotCopyRequest withClusterIdentifier(java.lang.String clusterIdentifier)
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
clusterIdentifier
- The unique identifier of the source cluster to copy snapshots
from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
public void setDestinationRegion(java.lang.String destinationRegion)
The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
destinationRegion
- The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
public java.lang.String getDestinationRegion()
The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
public EnableSnapshotCopyRequest withDestinationRegion(java.lang.String destinationRegion)
The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
destinationRegion
- The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
public void setRetentionPeriod(java.lang.Integer retentionPeriod)
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
retentionPeriod
- The number of days to retain automated snapshots in the
destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
public java.lang.Integer getRetentionPeriod()
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
public EnableSnapshotCopyRequest withRetentionPeriod(java.lang.Integer retentionPeriod)
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
retentionPeriod
- The number of days to retain automated snapshots in the
destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
public void setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
snapshotCopyGrantName
- The name of the snapshot copy grant to use when snapshots of an
AWS KMS-encrypted cluster are copied to the destination region.public java.lang.String getSnapshotCopyGrantName()
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
public EnableSnapshotCopyRequest withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
snapshotCopyGrantName
- The name of the snapshot copy grant to use when snapshots of an
AWS KMS-encrypted cluster are copied to the destination region.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 EnableSnapshotCopyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()