Struct aws_sdk_ec2::input::restore_snapshot_tier_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RestoreSnapshotTierInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The ID of the snapshot to restore.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The ID of the snapshot to restore.
sourcepub fn temporary_restore_days(self, input: i32) -> Self
pub fn temporary_restore_days(self, input: i32) -> Self
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
.
sourcepub fn set_temporary_restore_days(self, input: Option<i32>) -> Self
pub fn set_temporary_restore_days(self, input: Option<i32>) -> Self
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
.
sourcepub fn permanent_restore(self, input: bool) -> Self
pub fn permanent_restore(self, input: bool) -> Self
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
sourcepub fn set_permanent_restore(self, input: Option<bool>) -> Self
pub fn set_permanent_restore(self, input: Option<bool>) -> Self
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
sourcepub fn build(self) -> Result<RestoreSnapshotTierInput, BuildError>
pub fn build(self) -> Result<RestoreSnapshotTierInput, BuildError>
Consumes the builder and constructs a RestoreSnapshotTierInput
.