Struct aws_sdk_s3control::operation::put_bucket_versioning::builders::PutBucketVersioningInputBuilder
source · #[non_exhaustive]pub struct PutBucketVersioningInputBuilder { /* private fields */ }Expand description
A builder for PutBucketVersioningInput.
Implementations§
source§impl PutBucketVersioningInputBuilder
impl PutBucketVersioningInputBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the S3 on Outposts bucket.
This field is required.sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The S3 on Outposts bucket to set the versioning state for.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The S3 on Outposts bucket to set the versioning state for.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The S3 on Outposts bucket to set the versioning state for.
sourcepub fn mfa(self, input: impl Into<String>) -> Self
pub fn mfa(self, input: impl Into<String>) -> Self
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
sourcepub fn set_mfa(self, input: Option<String>) -> Self
pub fn set_mfa(self, input: Option<String>) -> Self
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
sourcepub fn get_mfa(&self) -> &Option<String>
pub fn get_mfa(&self) -> &Option<String>
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
sourcepub fn versioning_configuration(self, input: VersioningConfiguration) -> Self
pub fn versioning_configuration(self, input: VersioningConfiguration) -> Self
The root-level tag for the VersioningConfiguration parameters.
sourcepub fn set_versioning_configuration(
self,
input: Option<VersioningConfiguration>
) -> Self
pub fn set_versioning_configuration( self, input: Option<VersioningConfiguration> ) -> Self
The root-level tag for the VersioningConfiguration parameters.
sourcepub fn get_versioning_configuration(&self) -> &Option<VersioningConfiguration>
pub fn get_versioning_configuration(&self) -> &Option<VersioningConfiguration>
The root-level tag for the VersioningConfiguration parameters.
sourcepub fn build(self) -> Result<PutBucketVersioningInput, BuildError>
pub fn build(self) -> Result<PutBucketVersioningInput, BuildError>
Consumes the builder and constructs a PutBucketVersioningInput.
source§impl PutBucketVersioningInputBuilder
impl PutBucketVersioningInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutBucketVersioningOutput, SdkError<PutBucketVersioningError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutBucketVersioningOutput, SdkError<PutBucketVersioningError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutBucketVersioningInputBuilder
impl Clone for PutBucketVersioningInputBuilder
source§fn clone(&self) -> PutBucketVersioningInputBuilder
fn clone(&self) -> PutBucketVersioningInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutBucketVersioningInputBuilder
impl Default for PutBucketVersioningInputBuilder
source§fn default() -> PutBucketVersioningInputBuilder
fn default() -> PutBucketVersioningInputBuilder
source§impl PartialEq for PutBucketVersioningInputBuilder
impl PartialEq for PutBucketVersioningInputBuilder
source§fn eq(&self, other: &PutBucketVersioningInputBuilder) -> bool
fn eq(&self, other: &PutBucketVersioningInputBuilder) -> bool
self and other values to be equal, and is used
by ==.