Struct aws_sdk_storagegateway::model::cachedi_scsi_volume::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CachediScsiVolume
Implementations
sourceimpl Builder
impl Builder
sourcepub fn volume_arn(self, input: impl Into<String>) -> Self
pub fn volume_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn set_volume_arn(self, input: Option<String>) -> Self
pub fn set_volume_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn volume_id(self, input: impl Into<String>) -> Self
pub fn volume_id(self, input: impl Into<String>) -> Self
The unique identifier of the volume, e.g., vol-AE4B946D.
sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The unique identifier of the volume, e.g., vol-AE4B946D.
sourcepub fn volume_type(self, input: impl Into<String>) -> Self
pub fn volume_type(self, input: impl Into<String>) -> Self
One of the VolumeType enumeration values that describes the type of the volume.
sourcepub fn set_volume_type(self, input: Option<String>) -> Self
pub fn set_volume_type(self, input: Option<String>) -> Self
One of the VolumeType enumeration values that describes the type of the volume.
sourcepub fn volume_status(self, input: impl Into<String>) -> Self
pub fn volume_status(self, input: impl Into<String>) -> Self
One of the VolumeStatus values that indicates the state of the storage volume.
sourcepub fn set_volume_status(self, input: Option<String>) -> Self
pub fn set_volume_status(self, input: Option<String>) -> Self
One of the VolumeStatus values that indicates the state of the storage volume.
sourcepub fn volume_attachment_status(self, input: impl Into<String>) -> Self
pub fn volume_attachment_status(self, input: impl Into<String>) -> Self
A value that indicates whether a storage volume is attached to or detached from a gateway. For more information, see Moving your volumes to a different gateway.
sourcepub fn set_volume_attachment_status(self, input: Option<String>) -> Self
pub fn set_volume_attachment_status(self, input: Option<String>) -> Self
A value that indicates whether a storage volume is attached to or detached from a gateway. For more information, see Moving your volumes to a different gateway.
sourcepub fn volume_size_in_bytes(self, input: i64) -> Self
pub fn volume_size_in_bytes(self, input: i64) -> Self
The size, in bytes, of the volume capacity.
sourcepub fn set_volume_size_in_bytes(self, input: Option<i64>) -> Self
pub fn set_volume_size_in_bytes(self, input: Option<i64>) -> Self
The size, in bytes, of the volume capacity.
sourcepub fn volume_progress(self, input: f64) -> Self
pub fn volume_progress(self, input: f64) -> Self
Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the cached volume is not restoring or bootstrapping.
sourcepub fn set_volume_progress(self, input: Option<f64>) -> Self
pub fn set_volume_progress(self, input: Option<f64>) -> Self
Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the cached volume is not restoring or bootstrapping.
sourcepub fn source_snapshot_id(self, input: impl Into<String>) -> Self
pub fn source_snapshot_id(self, input: impl Into<String>) -> Self
If the cached volume was created from a snapshot, this field contains the snapshot ID used, e.g., snap-78e22663. Otherwise, this field is not included.
sourcepub fn set_source_snapshot_id(self, input: Option<String>) -> Self
pub fn set_source_snapshot_id(self, input: Option<String>) -> Self
If the cached volume was created from a snapshot, this field contains the snapshot ID used, e.g., snap-78e22663. Otherwise, this field is not included.
sourcepub fn volumei_scsi_attributes(self, input: VolumeiScsiAttributes) -> Self
pub fn volumei_scsi_attributes(self, input: VolumeiScsiAttributes) -> Self
An VolumeiSCSIAttributes
object that represents a collection of iSCSI attributes for one stored volume.
sourcepub fn set_volumei_scsi_attributes(
self,
input: Option<VolumeiScsiAttributes>
) -> Self
pub fn set_volumei_scsi_attributes(
self,
input: Option<VolumeiScsiAttributes>
) -> Self
An VolumeiSCSIAttributes
object that represents a collection of iSCSI attributes for one stored volume.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
sourcepub fn volume_used_in_bytes(self, input: i64) -> Self
pub fn volume_used_in_bytes(self, input: i64) -> Self
The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes
is different from the compressed size of the volume, which is the value that is used to calculate your bill.
This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
If you use a delete tool that overwrites the data on your volume with random data, your usage will not be reduced. This is because the random data is not compressible. If you want to reduce the amount of billed storage on your volume, we recommend overwriting your files with zeros to compress the data to a negligible amount of actual storage.
sourcepub fn set_volume_used_in_bytes(self, input: Option<i64>) -> Self
pub fn set_volume_used_in_bytes(self, input: Option<i64>) -> Self
The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes
is different from the compressed size of the volume, which is the value that is used to calculate your bill.
This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
If you use a delete tool that overwrites the data on your volume with random data, your usage will not be reduced. This is because the random data is not compressible. If you want to reduce the amount of billed storage on your volume, we recommend overwriting your files with zeros to compress the data to a negligible amount of actual storage.
sourcepub fn kms_key(self, input: impl Into<String>) -> Self
pub fn kms_key(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
sourcepub fn set_kms_key(self, input: Option<String>) -> Self
pub fn set_kms_key(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
sourcepub fn target_name(self, input: impl Into<String>) -> Self
pub fn target_name(self, input: impl Into<String>) -> Self
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying TargetName
as myvolume results in the target ARN of arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
sourcepub fn set_target_name(self, input: Option<String>) -> Self
pub fn set_target_name(self, input: Option<String>) -> Self
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying TargetName
as myvolume results in the target ARN of arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
sourcepub fn build(self) -> CachediScsiVolume
pub fn build(self) -> CachediScsiVolume
Consumes the builder and constructs a CachediScsiVolume
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more