#[non_exhaustive]pub struct CreateOpenZfsOriginSnapshotConfigurationBuilder { /* private fields */ }
Expand description
A builder for CreateOpenZfsOriginSnapshotConfiguration
.
Implementations§
source§impl CreateOpenZfsOriginSnapshotConfigurationBuilder
impl CreateOpenZfsOriginSnapshotConfigurationBuilder
sourcepub fn snapshot_arn(self, input: impl Into<String>) -> Self
pub fn snapshot_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
This field is required.sourcepub fn set_snapshot_arn(self, input: Option<String>) -> Self
pub fn set_snapshot_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn get_snapshot_arn(&self) -> &Option<String>
pub fn get_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn copy_strategy(self, input: OpenZfsCopyStrategy) -> Self
pub fn copy_strategy(self, input: OpenZfsCopyStrategy) -> Self
Specifies the strategy used when copying data from the snapshot to the new volume.
-
CLONE
- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data. -
FULL_COPY
- Copies all data from the snapshot to the new volume.Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The INCREMENTAL_COPY
option is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume.
sourcepub fn set_copy_strategy(self, input: Option<OpenZfsCopyStrategy>) -> Self
pub fn set_copy_strategy(self, input: Option<OpenZfsCopyStrategy>) -> Self
Specifies the strategy used when copying data from the snapshot to the new volume.
-
CLONE
- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data. -
FULL_COPY
- Copies all data from the snapshot to the new volume.Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The INCREMENTAL_COPY
option is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume.
sourcepub fn get_copy_strategy(&self) -> &Option<OpenZfsCopyStrategy>
pub fn get_copy_strategy(&self) -> &Option<OpenZfsCopyStrategy>
Specifies the strategy used when copying data from the snapshot to the new volume.
-
CLONE
- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data. -
FULL_COPY
- Copies all data from the snapshot to the new volume.Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The INCREMENTAL_COPY
option is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume.
sourcepub fn build(self) -> CreateOpenZfsOriginSnapshotConfiguration
pub fn build(self) -> CreateOpenZfsOriginSnapshotConfiguration
Consumes the builder and constructs a CreateOpenZfsOriginSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for CreateOpenZfsOriginSnapshotConfigurationBuilder
impl Clone for CreateOpenZfsOriginSnapshotConfigurationBuilder
source§fn clone(&self) -> CreateOpenZfsOriginSnapshotConfigurationBuilder
fn clone(&self) -> CreateOpenZfsOriginSnapshotConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateOpenZfsOriginSnapshotConfigurationBuilder
impl Default for CreateOpenZfsOriginSnapshotConfigurationBuilder
source§fn default() -> CreateOpenZfsOriginSnapshotConfigurationBuilder
fn default() -> CreateOpenZfsOriginSnapshotConfigurationBuilder
source§impl PartialEq for CreateOpenZfsOriginSnapshotConfigurationBuilder
impl PartialEq for CreateOpenZfsOriginSnapshotConfigurationBuilder
source§fn eq(&self, other: &CreateOpenZfsOriginSnapshotConfigurationBuilder) -> bool
fn eq(&self, other: &CreateOpenZfsOriginSnapshotConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.