@Generated(value="software.amazon.awssdk:codegen") public final class RestoreSnapshotTierRequest extends Ec2Request implements ToCopyableBuilder<RestoreSnapshotTierRequest.Builder,RestoreSnapshotTierRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RestoreSnapshotTierRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RestoreSnapshotTierRequest.Builder |
builder() |
Boolean |
dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
permanentRestore()
Indicates whether to permanently restore an archived snapshot.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RestoreSnapshotTierRequest.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The ID of the snapshot to restore.
|
Integer |
temporaryRestoreDays()
Specifies the number of days for which to temporarily restore an archived snapshot.
|
RestoreSnapshotTierRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String snapshotId()
The ID of the snapshot to restore.
public final Integer temporaryRestoreDays()
Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.
To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore
parameter or set it to false.
To temporarily restore an archived snapshot, specify the number of days and omit the
PermanentRestore parameter or set it to false.
public final Boolean permanentRestore()
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
parameter.public final Boolean dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it is UnauthorizedOperation.
DryRunOperation. Otherwise, it is UnauthorizedOperation.public RestoreSnapshotTierRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RestoreSnapshotTierRequest.Builder,RestoreSnapshotTierRequest>toBuilder in class Ec2Requestpublic static RestoreSnapshotTierRequest.Builder builder()
public static Class<? extends RestoreSnapshotTierRequest.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 © 2023. All rights reserved.