1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RestoreVolumeFromSnapshot`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::set_client_request_token):<br>required: **false**<br><p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p><br>
    ///   - [`volume_id(impl Into<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::volume_id) / [`set_volume_id(Option<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::set_volume_id):<br>required: **true**<br><p>The ID of the volume that you are restoring.</p><br>
    ///   - [`snapshot_id(impl Into<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::snapshot_id) / [`set_snapshot_id(Option<String>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::set_snapshot_id):<br>required: **true**<br><p>The ID of the source snapshot. Specifies the snapshot that you are restoring from.</p><br>
    ///   - [`options(RestoreOpenZfsVolumeOption)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::options) / [`set_options(Option<Vec::<RestoreOpenZfsVolumeOption>>)`](crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::set_options):<br>required: **false**<br><p>The settings used when restoring the specified volume from snapshot.</p> <ul>  <li>   <p><code>DELETE_INTERMEDIATE_SNAPSHOTS</code> - Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used, <code>RestoreVolumeFromSnapshot</code> fails.</p></li>  <li>   <p><code>DELETE_CLONED_VOLUMES</code> - Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, <code>RestoreVolumeFromSnapshot</code> fails.</p></li> </ul><br>
    /// - On success, responds with [`RestoreVolumeFromSnapshotOutput`](crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotOutput) with field(s):
    ///   - [`volume_id(Option<String>)`](crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotOutput::volume_id): <p>The ID of the volume that you restored.</p>
    ///   - [`lifecycle(Option<VolumeLifecycle>)`](crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotOutput::lifecycle): <p>The lifecycle state of the volume being restored.</p>
    ///   - [`administrative_actions(Option<Vec::<AdministrativeAction>>)`](crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotOutput::administrative_actions): <p>A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.</p>
    /// - On failure, responds with [`SdkError<RestoreVolumeFromSnapshotError>`](crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError)
    pub fn restore_volume_from_snapshot(&self) -> crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder {
        crate::operation::restore_volume_from_snapshot::builders::RestoreVolumeFromSnapshotFluentBuilder::new(self.handle.clone())
    }
}