Struct aws_sdk_storagegateway::model::tape_archive::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for TapeArchive
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 an archived 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 an archived 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 the archived 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 the archived 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 archived virtual tape.
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 archived virtual tape.
sourcepub fn completion_time(self, input: DateTime) -> Self
pub fn completion_time(self, input: DateTime) -> Self
The time that the archiving of the virtual tape was completed.
The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
sourcepub fn set_completion_time(self, input: Option<DateTime>) -> Self
pub fn set_completion_time(self, input: Option<DateTime>) -> Self
The time that the archiving of the virtual tape was completed.
The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
sourcepub fn retrieved_to(self, input: impl Into<String>) -> Self
pub fn retrieved_to(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the tape gateway that the virtual tape is being retrieved to.
The virtual tape is retrieved from the virtual tape shelf (VTS).
sourcepub fn set_retrieved_to(self, input: Option<String>) -> Self
pub fn set_retrieved_to(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the tape gateway that the virtual tape is being retrieved to.
The virtual tape is retrieved from the virtual tape shelf (VTS).
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 archived 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 archived virtual tape.
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 was used to archive the tape. The tapes in this pool are archived in the S3 storage class that is associated with 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 was used to archive the tape. The tapes in this pool are archived in the S3 storage class that is associated with the pool.
sourcepub fn worm(self, input: bool) -> Self
pub fn worm(self, input: bool) -> Self
Set to true
if the archived tape is stored as write-once-read-many (WORM).
sourcepub fn set_worm(self, input: Option<bool>) -> Self
pub fn set_worm(self, input: Option<bool>) -> Self
Set to true
if the archived tape is stored as write-once-read-many (WORM).
sourcepub fn retention_start_date(self, input: DateTime) -> Self
pub fn retention_start_date(self, input: DateTime) -> Self
If the archived tape is subject to tape retention lock, the date that the archived tape started being retained.
sourcepub fn set_retention_start_date(self, input: Option<DateTime>) -> Self
pub fn set_retention_start_date(self, input: Option<DateTime>) -> Self
If the archived tape is subject to tape retention lock, the date that the archived tape started being retained.
sourcepub fn pool_entry_date(self, input: DateTime) -> Self
pub fn pool_entry_date(self, input: DateTime) -> Self
The time that the tape entered the custom tape pool.
The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
sourcepub fn set_pool_entry_date(self, input: Option<DateTime>) -> Self
pub fn set_pool_entry_date(self, input: Option<DateTime>) -> Self
The time that the tape entered the custom tape pool.
The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
sourcepub fn build(self) -> TapeArchive
pub fn build(self) -> TapeArchive
Consumes the builder and constructs a TapeArchive
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