Struct aws_sdk_s3::model::inventory_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InventoryConfiguration
.
Implementations§
source§impl 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
.