@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CopySnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CopySnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CopySnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getRestoreDate()
The date of the automatic snapshot to copy for the new manual snapshot.
|
String |
getSourceRegion()
The AWS Region where the source manual or automatic snapshot is located.
|
String |
getSourceResourceName()
The name of the source resource from which the automatic snapshot was created.
|
String |
getSourceSnapshotName()
The name of the source instance or disk snapshot to be copied.
|
String |
getTargetSnapshotName()
The name of the new instance or disk snapshot to be created as a copy.
|
Boolean |
getUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
int |
hashCode() |
Boolean |
isUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
void |
setRestoreDate(String restoreDate)
The date of the automatic snapshot to copy for the new manual snapshot.
|
void |
setSourceRegion(String sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
|
void |
setSourceResourceName(String sourceResourceName)
The name of the source resource from which the automatic snapshot was created.
|
void |
setSourceSnapshotName(String sourceSnapshotName)
The name of the source instance or disk snapshot to be copied.
|
void |
setTargetSnapshotName(String targetSnapshotName)
The name of the new instance or disk snapshot to be created as a copy.
|
void |
setUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
String |
toString()
Returns a string representation of this object.
|
CopySnapshotRequest |
withRestoreDate(String restoreDate)
The date of the automatic snapshot to copy for the new manual snapshot.
|
CopySnapshotRequest |
withSourceRegion(RegionName sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
|
CopySnapshotRequest |
withSourceRegion(String sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
|
CopySnapshotRequest |
withSourceResourceName(String sourceResourceName)
The name of the source resource from which the automatic snapshot was created.
|
CopySnapshotRequest |
withSourceSnapshotName(String sourceSnapshotName)
The name of the source instance or disk snapshot to be copied.
|
CopySnapshotRequest |
withTargetSnapshotName(String targetSnapshotName)
The name of the new instance or disk snapshot to be created as a copy.
|
CopySnapshotRequest |
withUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSourceSnapshotName(String sourceSnapshotName)
The name of the source instance or disk snapshot to be copied.
Define this parameter only when copying a manual snapshot as another manual snapshot.
sourceSnapshotName
- The name of the source instance or disk snapshot to be copied. Define this parameter only when copying a manual snapshot as another manual snapshot.
public String getSourceSnapshotName()
The name of the source instance or disk snapshot to be copied.
Define this parameter only when copying a manual snapshot as another manual snapshot.
Define this parameter only when copying a manual snapshot as another manual snapshot.
public CopySnapshotRequest withSourceSnapshotName(String sourceSnapshotName)
The name of the source instance or disk snapshot to be copied.
Define this parameter only when copying a manual snapshot as another manual snapshot.
sourceSnapshotName
- The name of the source instance or disk snapshot to be copied. Define this parameter only when copying a manual snapshot as another manual snapshot.
public void setSourceResourceName(String sourceResourceName)
The name of the source resource from which the automatic snapshot was created.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
sourceResourceName
- The name of the source resource from which the automatic snapshot was created. Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public String getSourceResourceName()
The name of the source resource from which the automatic snapshot was created.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public CopySnapshotRequest withSourceResourceName(String sourceResourceName)
The name of the source resource from which the automatic snapshot was created.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
sourceResourceName
- The name of the source resource from which the automatic snapshot was created. Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public void setRestoreDate(String restoreDate)
The date of the automatic snapshot to copy for the new manual snapshot.
Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
restoreDate
- The date of the automatic snapshot to copy for the new manual snapshot.
Use the get auto snapshots
operation to identify the dates of the available automatic
snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public String getRestoreDate()
The date of the automatic snapshot to copy for the new manual snapshot.
Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
Use the get auto snapshots
operation to identify the dates of the available automatic
snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public CopySnapshotRequest withRestoreDate(String restoreDate)
The date of the automatic snapshot to copy for the new manual snapshot.
Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
restoreDate
- The date of the automatic snapshot to copy for the new manual snapshot.
Use the get auto snapshots
operation to identify the dates of the available automatic
snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public void setUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
useLatestRestorableAutoSnapshot
- A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public Boolean getUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public CopySnapshotRequest withUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
useLatestRestorableAutoSnapshot
- A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public Boolean isUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Lightsail Dev Guide.
public void setTargetSnapshotName(String targetSnapshotName)
The name of the new instance or disk snapshot to be created as a copy.
targetSnapshotName
- The name of the new instance or disk snapshot to be created as a copy.public String getTargetSnapshotName()
The name of the new instance or disk snapshot to be created as a copy.
public CopySnapshotRequest withTargetSnapshotName(String targetSnapshotName)
The name of the new instance or disk snapshot to be created as a copy.
targetSnapshotName
- The name of the new instance or disk snapshot to be created as a copy.public void setSourceRegion(String sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
sourceRegion
- The AWS Region where the source manual or automatic snapshot is located.RegionName
public String getSourceRegion()
The AWS Region where the source manual or automatic snapshot is located.
RegionName
public CopySnapshotRequest withSourceRegion(String sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
sourceRegion
- The AWS Region where the source manual or automatic snapshot is located.RegionName
public CopySnapshotRequest withSourceRegion(RegionName sourceRegion)
The AWS Region where the source manual or automatic snapshot is located.
sourceRegion
- The AWS Region where the source manual or automatic snapshot is located.RegionName
public String toString()
toString
in class Object
Object.toString()
public CopySnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.