#[non_exhaustive]pub struct OpenZfsOriginSnapshotConfigurationBuilder { /* private fields */ }
Expand description
A builder for OpenZfsOriginSnapshotConfiguration
.
Implementations§
source§impl OpenZfsOriginSnapshotConfigurationBuilder
impl OpenZfsOriginSnapshotConfigurationBuilder
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.
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
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 the data from a 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.
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
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 the data from a 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.
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>
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 the data from a 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.
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) -> OpenZfsOriginSnapshotConfiguration
pub fn build(self) -> OpenZfsOriginSnapshotConfiguration
Consumes the builder and constructs a OpenZfsOriginSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for OpenZfsOriginSnapshotConfigurationBuilder
impl Clone for OpenZfsOriginSnapshotConfigurationBuilder
source§fn clone(&self) -> OpenZfsOriginSnapshotConfigurationBuilder
fn clone(&self) -> OpenZfsOriginSnapshotConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for OpenZfsOriginSnapshotConfigurationBuilder
impl Default for OpenZfsOriginSnapshotConfigurationBuilder
source§fn default() -> OpenZfsOriginSnapshotConfigurationBuilder
fn default() -> OpenZfsOriginSnapshotConfigurationBuilder
source§impl PartialEq for OpenZfsOriginSnapshotConfigurationBuilder
impl PartialEq for OpenZfsOriginSnapshotConfigurationBuilder
source§fn eq(&self, other: &OpenZfsOriginSnapshotConfigurationBuilder) -> bool
fn eq(&self, other: &OpenZfsOriginSnapshotConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OpenZfsOriginSnapshotConfigurationBuilder
Auto Trait Implementations§
impl Freeze for OpenZfsOriginSnapshotConfigurationBuilder
impl RefUnwindSafe for OpenZfsOriginSnapshotConfigurationBuilder
impl Send for OpenZfsOriginSnapshotConfigurationBuilder
impl Sync for OpenZfsOriginSnapshotConfigurationBuilder
impl Unpin for OpenZfsOriginSnapshotConfigurationBuilder
impl UnwindSafe for OpenZfsOriginSnapshotConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more