Struct aws_sdk_storagegateway::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder
source · pub struct AssignTapePoolFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssignTapePool
.
Assigns a tape to a tape pool for archiving. The tape assigned to a pool is 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 S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.
Implementations§
source§impl AssignTapePoolFluentBuilder
impl AssignTapePoolFluentBuilder
sourcepub fn as_input(&self) -> &AssignTapePoolInputBuilder
pub fn as_input(&self) -> &AssignTapePoolInputBuilder
Access the AssignTapePool as a reference.
sourcepub async fn send(
self
) -> Result<AssignTapePoolOutput, SdkError<AssignTapePoolError, HttpResponse>>
pub async fn send( self ) -> Result<AssignTapePoolOutput, SdkError<AssignTapePoolError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<AssignTapePoolOutput, AssignTapePoolError, Self>
pub fn customize( self ) -> CustomizableOperation<AssignTapePoolOutput, AssignTapePoolError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn tape_arn(self, input: impl Into<String>) -> Self
pub fn tape_arn(self, input: impl Into<String>) -> Self
The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.
sourcepub fn set_tape_arn(self, input: Option<String>) -> Self
pub fn set_tape_arn(self, input: Option<String>) -> Self
The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.
sourcepub fn get_tape_arn(&self) -> &Option<String>
pub fn get_tape_arn(&self) -> &Option<String>
The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.
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 you want to add your tape to for archiving. The tape in this pool is 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 you want to add your tape to for archiving. The tape in this pool is 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 get_pool_id(&self) -> &Option<String>
pub fn get_pool_id(&self) -> &Option<String>
The ID of the pool that you want to add your tape to for archiving. The tape in this pool is 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 bypass_governance_retention(self, input: bool) -> Self
pub fn bypass_governance_retention(self, input: bool) -> Self
Set permissions to bypass governance retention. If the lock type of the archived tape is Governance
, the tape's archived age is not older than RetentionLockInDays
, and the user does not already have BypassGovernanceRetention
, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.
Valid values: TRUE
| FALSE
sourcepub fn set_bypass_governance_retention(self, input: Option<bool>) -> Self
pub fn set_bypass_governance_retention(self, input: Option<bool>) -> Self
Set permissions to bypass governance retention. If the lock type of the archived tape is Governance
, the tape's archived age is not older than RetentionLockInDays
, and the user does not already have BypassGovernanceRetention
, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.
Valid values: TRUE
| FALSE
sourcepub fn get_bypass_governance_retention(&self) -> &Option<bool>
pub fn get_bypass_governance_retention(&self) -> &Option<bool>
Set permissions to bypass governance retention. If the lock type of the archived tape is Governance
, the tape's archived age is not older than RetentionLockInDays
, and the user does not already have BypassGovernanceRetention
, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.
Valid values: TRUE
| FALSE
Trait Implementations§
source§impl Clone for AssignTapePoolFluentBuilder
impl Clone for AssignTapePoolFluentBuilder
source§fn clone(&self) -> AssignTapePoolFluentBuilder
fn clone(&self) -> AssignTapePoolFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AssignTapePoolFluentBuilder
impl !RefUnwindSafe for AssignTapePoolFluentBuilder
impl Send for AssignTapePoolFluentBuilder
impl Sync for AssignTapePoolFluentBuilder
impl Unpin for AssignTapePoolFluentBuilder
impl !UnwindSafe for AssignTapePoolFluentBuilder
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