#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Tape
Implementations
sourceimpl Builder
impl Builder
sourcepub fn tape_arn(self, input: impl Into<String>) -> Self
pub fn tape_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the virtual tape.
sourcepub fn set_tape_arn(self, input: Option<String>) -> Self
pub fn set_tape_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the virtual tape.
sourcepub fn tape_barcode(self, input: impl Into<String>) -> Self
pub fn tape_barcode(self, input: impl Into<String>) -> Self
The barcode that identifies a specific virtual tape.
sourcepub fn set_tape_barcode(self, input: Option<String>) -> Self
pub fn set_tape_barcode(self, input: Option<String>) -> Self
The barcode that identifies a specific virtual tape.
sourcepub fn tape_created_date(self, input: DateTime) -> Self
pub fn tape_created_date(self, input: DateTime) -> Self
The date the virtual tape was created.
sourcepub fn set_tape_created_date(self, input: Option<DateTime>) -> Self
pub fn set_tape_created_date(self, input: Option<DateTime>) -> Self
The date the virtual tape was created.
sourcepub fn tape_size_in_bytes(self, input: i64) -> Self
pub fn tape_size_in_bytes(self, input: i64) -> Self
The size, in bytes, of the virtual tape capacity.
sourcepub fn set_tape_size_in_bytes(self, input: Option<i64>) -> Self
pub fn set_tape_size_in_bytes(self, input: Option<i64>) -> Self
The size, in bytes, of the virtual tape capacity.
sourcepub fn tape_status(self, input: impl Into<String>) -> Self
pub fn tape_status(self, input: impl Into<String>) -> Self
The current state of the virtual tape.
sourcepub fn set_tape_status(self, input: Option<String>) -> Self
pub fn set_tape_status(self, input: Option<String>) -> Self
The current state of the virtual tape.
sourcepub fn vtl_device(self, input: impl Into<String>) -> Self
pub fn vtl_device(self, input: impl Into<String>) -> Self
The virtual tape library (VTL) device that the virtual tape is associated with.
sourcepub fn set_vtl_device(self, input: Option<String>) -> Self
pub fn set_vtl_device(self, input: Option<String>) -> Self
The virtual tape library (VTL) device that the virtual tape is associated with.
sourcepub fn progress(self, input: f64) -> Self
pub fn progress(self, input: f64) -> Self
For archiving virtual tapes, indicates how much data remains to be uploaded before archiving is complete.
Range: 0 (not started) to 100 (complete).
sourcepub fn set_progress(self, input: Option<f64>) -> Self
pub fn set_progress(self, input: Option<f64>) -> Self
For archiving virtual tapes, indicates how much data remains to be uploaded before archiving is complete.
Range: 0 (not started) to 100 (complete).
sourcepub fn tape_used_in_bytes(self, input: i64) -> Self
pub fn tape_used_in_bytes(self, input: i64) -> Self
The size, in bytes, of data stored on the virtual tape.
This value is not available for tapes created prior to May 13, 2015.
sourcepub fn set_tape_used_in_bytes(self, input: Option<i64>) -> Self
pub fn set_tape_used_in_bytes(self, input: Option<i64>) -> Self
The size, in bytes, of data stored on the virtual tape.
This value is not available for tapes created prior to May 13, 2015.
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 pool_id(self, input: impl Into<String>) -> Self
pub fn pool_id(self, input: impl Into<String>) -> Self
The ID of the pool that contains tapes that will be archived. The tapes in this pool are archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.
sourcepub fn set_pool_id(self, input: Option<String>) -> Self
pub fn set_pool_id(self, input: Option<String>) -> Self
The ID of the pool that contains tapes that will be archived. The tapes in this pool are archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.
sourcepub fn worm(self, input: bool) -> Self
pub fn worm(self, input: bool) -> Self
If the tape is archived as write-once-read-many (WORM), this value is true
.
sourcepub fn set_worm(self, input: Option<bool>) -> Self
pub fn set_worm(self, input: Option<bool>) -> Self
If the tape is archived as write-once-read-many (WORM), this value is true
.
sourcepub fn retention_start_date(self, input: DateTime) -> Self
pub fn retention_start_date(self, input: DateTime) -> Self
The date that the tape is first archived with tape retention lock enabled.
sourcepub fn set_retention_start_date(self, input: Option<DateTime>) -> Self
pub fn set_retention_start_date(self, input: Option<DateTime>) -> Self
The date that the tape is first archived with tape retention lock enabled.
sourcepub fn pool_entry_date(self, input: DateTime) -> Self
pub fn pool_entry_date(self, input: DateTime) -> Self
The date that the tape enters a custom tape pool.
sourcepub fn set_pool_entry_date(self, input: Option<DateTime>) -> Self
pub fn set_pool_entry_date(self, input: Option<DateTime>) -> Self
The date that the tape enters a custom tape pool.
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