Struct aws_sdk_s3::model::inventory_configuration::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for InventoryConfiguration
Implementations
sourceimpl Builder
impl Builder
sourcepub fn destination(self, input: InventoryDestination) -> Self
pub fn destination(self, input: InventoryDestination) -> Self
Contains information about where to publish the inventory results.
sourcepub fn set_destination(self, input: Option<InventoryDestination>) -> Self
pub fn set_destination(self, input: Option<InventoryDestination>) -> Self
Contains information about where to publish the inventory results.
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn filter(self, input: InventoryFilter) -> Self
pub fn filter(self, input: InventoryFilter) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn set_filter(self, input: Option<InventoryFilter>) -> Self
pub fn set_filter(self, input: Option<InventoryFilter>) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the inventory configuration.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the inventory configuration.
sourcepub fn included_object_versions(
self,
input: InventoryIncludedObjectVersions
) -> Self
pub fn included_object_versions(
self,
input: InventoryIncludedObjectVersions
) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn set_included_object_versions(
self,
input: Option<InventoryIncludedObjectVersions>
) -> Self
pub fn set_included_object_versions(
self,
input: Option<InventoryIncludedObjectVersions>
) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn optional_fields(self, input: InventoryOptionalField) -> Self
pub fn optional_fields(self, input: InventoryOptionalField) -> Self
Appends an item to optional_fields
.
To override the contents of this collection use set_optional_fields
.
Contains the optional fields that are included in the inventory results.
sourcepub fn set_optional_fields(
self,
input: Option<Vec<InventoryOptionalField>>
) -> Self
pub fn set_optional_fields(
self,
input: Option<Vec<InventoryOptionalField>>
) -> Self
Contains the optional fields that are included in the inventory results.
sourcepub fn schedule(self, input: InventorySchedule) -> Self
pub fn schedule(self, input: InventorySchedule) -> Self
Specifies the schedule for generating inventory results.
sourcepub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
pub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
Specifies the schedule for generating inventory results.
sourcepub fn build(self) -> InventoryConfiguration
pub fn build(self) -> InventoryConfiguration
Consumes the builder and constructs a InventoryConfiguration
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> 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