@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 |
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.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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 RestoreSnapshotTierRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<RestoreSnapshotTierRequest.Builder,RestoreSnapshotTierRequest>
toBuilder
in class Ec2Request
public static RestoreSnapshotTierRequest.Builder builder()
public static Class<? extends RestoreSnapshotTierRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.