@Generated(value="software.amazon.awssdk:codegen") public final class CopySnapshotRequest extends LightsailRequest implements ToCopyableBuilder<CopySnapshotRequest.Builder,CopySnapshotRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CopySnapshotRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CopySnapshotRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
restoreDate()
The date of the source automatic snapshot to copy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CopySnapshotRequest.Builder> |
serializableBuilderClass() |
RegionName |
sourceRegion()
The Amazon Web Services Region where the source manual or automatic snapshot is located.
|
String |
sourceRegionAsString()
The Amazon Web Services Region where the source manual or automatic snapshot is located.
|
String |
sourceResourceName()
The name of the source instance or disk from which the source automatic snapshot was created.
|
String |
sourceSnapshotName()
The name of the source manual snapshot to copy.
|
String |
targetSnapshotName()
The name of the new manual snapshot to be created as a copy.
|
CopySnapshotRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
useLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot of the specified source
instance or disk.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String sourceSnapshotName()
The name of the source manual snapshot to copy.
Constraint:
Define this parameter only when copying a manual snapshot as another manual snapshot.
Constraint:
Define this parameter only when copying a manual snapshot as another manual snapshot.
public final String sourceResourceName()
The name of the source instance or disk from which the source automatic snapshot was created.
Constraint:
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Amazon Lightsail Developer Guide.
Constraint:
Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Amazon Lightsail Developer Guide.
public final String restoreDate()
The date of the source automatic snapshot to copy. 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 Amazon Lightsail Developer Guide.
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 Amazon Lightsail Developer Guide.
public final Boolean useLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot of the specified source instance or disk.
Constraints:
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 Amazon Lightsail Developer Guide.
Constraints:
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 Amazon Lightsail Developer Guide.
public final String targetSnapshotName()
The name of the new manual snapshot to be created as a copy.
public final RegionName sourceRegion()
The Amazon Web Services Region where the source manual or automatic snapshot is located.
If the service returns an enum value that is not available in the current SDK version, sourceRegion will
return RegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sourceRegionAsString().
RegionNamepublic final String sourceRegionAsString()
The Amazon Web Services Region where the source manual or automatic snapshot is located.
If the service returns an enum value that is not available in the current SDK version, sourceRegion will
return RegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sourceRegionAsString().
RegionNamepublic CopySnapshotRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CopySnapshotRequest.Builder,CopySnapshotRequest>toBuilder in class LightsailRequestpublic static CopySnapshotRequest.Builder builder()
public static Class<? extends CopySnapshotRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.