@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreSnapshotTierRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RestoreSnapshotTierRequest>
NOOP
Constructor and Description |
---|
RestoreSnapshotTierRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreSnapshotTierRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<RestoreSnapshotTierRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getPermanentRestore()
Indicates whether to permanently restore an archived snapshot.
|
String |
getSnapshotId()
The ID of the snapshot to restore.
|
Integer |
getTemporaryRestoreDays()
Specifies the number of days for which to temporarily restore an archived snapshot.
|
int |
hashCode() |
Boolean |
isPermanentRestore()
Indicates whether to permanently restore an archived snapshot.
|
void |
setPermanentRestore(Boolean permanentRestore)
Indicates whether to permanently restore an archived snapshot.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot to restore.
|
void |
setTemporaryRestoreDays(Integer temporaryRestoreDays)
Specifies the number of days for which to temporarily restore an archived snapshot.
|
String |
toString()
Returns a string representation of this object.
|
RestoreSnapshotTierRequest |
withPermanentRestore(Boolean permanentRestore)
Indicates whether to permanently restore an archived snapshot.
|
RestoreSnapshotTierRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot to restore.
|
RestoreSnapshotTierRequest |
withTemporaryRestoreDays(Integer temporaryRestoreDays)
Specifies the number of days for which to temporarily restore an archived 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 setSnapshotId(String snapshotId)
The ID of the snapshot to restore.
snapshotId
- The ID of the snapshot to restore.public String getSnapshotId()
The ID of the snapshot to restore.
public RestoreSnapshotTierRequest withSnapshotId(String snapshotId)
The ID of the snapshot to restore.
snapshotId
- The ID of the snapshot to restore.public void setTemporaryRestoreDays(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
.
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
.
public Integer getTemporaryRestoreDays()
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 RestoreSnapshotTierRequest withTemporaryRestoreDays(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
.
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
.
public void setPermanentRestore(Boolean permanentRestore)
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
permanentRestore
- Indicates whether to permanently restore an archived snapshot. To permanently restore an archived
snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
parameter.public Boolean getPermanentRestore()
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 withPermanentRestore(Boolean permanentRestore)
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
permanentRestore
- Indicates whether to permanently restore an archived snapshot. To permanently restore an archived
snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
parameter.public Boolean isPermanentRestore()
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 Request<RestoreSnapshotTierRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RestoreSnapshotTierRequest>
public String toString()
toString
in class Object
Object.toString()
public RestoreSnapshotTierRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()