#[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 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.
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.
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<OpenZfsOriginSnapshotConfigurationBuilder> for OpenZfsOriginSnapshotConfigurationBuilder
impl PartialEq<OpenZfsOriginSnapshotConfigurationBuilder> 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 ==.