#[non_exhaustive]pub struct InventoryS3BucketDestinationBuilder { /* private fields */ }
Expand description
A builder for InventoryS3BucketDestination
.
Implementations§
source§impl InventoryS3BucketDestinationBuilder
impl InventoryS3BucketDestinationBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.
Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.
Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.
Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where inventory results will be published.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where inventory results will be published.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the bucket where inventory results will be published.
sourcepub fn format(self, input: InventoryFormat) -> Self
pub fn format(self, input: InventoryFormat) -> Self
Specifies the output format of the inventory results.
This field is required.sourcepub fn set_format(self, input: Option<InventoryFormat>) -> Self
pub fn set_format(self, input: Option<InventoryFormat>) -> Self
Specifies the output format of the inventory results.
sourcepub fn get_format(&self) -> &Option<InventoryFormat>
pub fn get_format(&self) -> &Option<InventoryFormat>
Specifies the output format of the inventory results.
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The prefix that is prepended to all inventory results.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The prefix that is prepended to all inventory results.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
The prefix that is prepended to all inventory results.
sourcepub fn encryption(self, input: InventoryEncryption) -> Self
pub fn encryption(self, input: InventoryEncryption) -> Self
Contains the type of server-side encryption used to encrypt the inventory results.
sourcepub fn set_encryption(self, input: Option<InventoryEncryption>) -> Self
pub fn set_encryption(self, input: Option<InventoryEncryption>) -> Self
Contains the type of server-side encryption used to encrypt the inventory results.
sourcepub fn get_encryption(&self) -> &Option<InventoryEncryption>
pub fn get_encryption(&self) -> &Option<InventoryEncryption>
Contains the type of server-side encryption used to encrypt the inventory results.
sourcepub fn build(self) -> Result<InventoryS3BucketDestination, BuildError>
pub fn build(self) -> Result<InventoryS3BucketDestination, BuildError>
Consumes the builder and constructs a InventoryS3BucketDestination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InventoryS3BucketDestinationBuilder
impl Clone for InventoryS3BucketDestinationBuilder
source§fn clone(&self) -> InventoryS3BucketDestinationBuilder
fn clone(&self) -> InventoryS3BucketDestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InventoryS3BucketDestinationBuilder
impl Default for InventoryS3BucketDestinationBuilder
source§fn default() -> InventoryS3BucketDestinationBuilder
fn default() -> InventoryS3BucketDestinationBuilder
source§impl PartialEq for InventoryS3BucketDestinationBuilder
impl PartialEq for InventoryS3BucketDestinationBuilder
source§fn eq(&self, other: &InventoryS3BucketDestinationBuilder) -> bool
fn eq(&self, other: &InventoryS3BucketDestinationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InventoryS3BucketDestinationBuilder
Auto Trait Implementations§
impl Freeze for InventoryS3BucketDestinationBuilder
impl RefUnwindSafe for InventoryS3BucketDestinationBuilder
impl Send for InventoryS3BucketDestinationBuilder
impl Sync for InventoryS3BucketDestinationBuilder
impl Unpin for InventoryS3BucketDestinationBuilder
impl UnwindSafe for InventoryS3BucketDestinationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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