Class CopySnapshotRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lightsail.model.LightsailRequest
-
- software.amazon.awssdk.services.lightsail.model.CopySnapshotRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CopySnapshotRequest.Builder,CopySnapshotRequest>
@Generated("software.amazon.awssdk:codegen") public final class CopySnapshotRequest extends LightsailRequest implements ToCopyableBuilder<CopySnapshotRequest.Builder,CopySnapshotRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCopySnapshotRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopySnapshotRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringrestoreDate()The date of the source automatic snapshot to copy.List<SdkField<?>>sdkFields()static Class<? extends CopySnapshotRequest.Builder>serializableBuilderClass()RegionNamesourceRegion()The Amazon Web Services Region where the source manual or automatic snapshot is located.StringsourceRegionAsString()The Amazon Web Services Region where the source manual or automatic snapshot is located.StringsourceResourceName()The name of the source instance or disk from which the source automatic snapshot was created.StringsourceSnapshotName()The name of the source manual snapshot to copy.StringtargetSnapshotName()The name of the new manual snapshot to be created as a copy.CopySnapshotRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.BooleanuseLatestRestorableAutoSnapshot()A Boolean value to indicate whether to use the latest available automatic snapshot of the specified source instance or disk.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sourceSnapshotName
public 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.
- Returns:
- The name of the source manual snapshot to copy.
Constraint:
-
Define this parameter only when copying a manual snapshot as another manual snapshot.
-
-
-
sourceResourceName
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.
- Returns:
- 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.
-
-
-
restoreDate
public final String restoreDate()
The date of the source automatic snapshot to copy. Use the
get auto snapshotsoperation to identify the dates of the available automatic snapshots.Constraints:
-
Must be specified in
YYYY-MM-DDformat. -
This parameter cannot be defined together with the
use latest restorable auto snapshotparameter. Therestore dateanduse latest restorable auto snapshotparameters 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.
- Returns:
- The date of the source automatic snapshot to copy. Use the
get auto snapshotsoperation to identify the dates of the available automatic snapshots.Constraints:
-
Must be specified in
YYYY-MM-DDformat. -
This parameter cannot be defined together with the
use latest restorable auto snapshotparameter. Therestore dateanduse latest restorable auto snapshotparameters 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.
-
-
-
useLatestRestorableAutoSnapshot
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 dateparameter. Theuse latest restorable auto snapshotandrestore dateparameters 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.
- Returns:
- 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 dateparameter. Theuse latest restorable auto snapshotandrestore dateparameters 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.
-
-
-
targetSnapshotName
public final String targetSnapshotName()
The name of the new manual snapshot to be created as a copy.
- Returns:
- The name of the new manual snapshot to be created as a copy.
-
sourceRegion
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,
sourceRegionwill returnRegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceRegionAsString().- Returns:
- The Amazon Web Services Region where the source manual or automatic snapshot is located.
- See Also:
RegionName
-
sourceRegionAsString
public 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,
sourceRegionwill returnRegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceRegionAsString().- Returns:
- The Amazon Web Services Region where the source manual or automatic snapshot is located.
- See Also:
RegionName
-
toBuilder
public CopySnapshotRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CopySnapshotRequest.Builder,CopySnapshotRequest>- Specified by:
toBuilderin classLightsailRequest
-
builder
public static CopySnapshotRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CopySnapshotRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-