Interface InventoryConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InventoryConfiguration.Builder,
,InventoryConfiguration> SdkBuilder<InventoryConfiguration.Builder,
,InventoryConfiguration> SdkPojo
- Enclosing class:
InventoryConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault InventoryConfiguration.Builder
destination
(Consumer<InventoryDestination.Builder> destination) Contains information about where to publish the inventory results.destination
(InventoryDestination destination) Contains information about where to publish the inventory results.default InventoryConfiguration.Builder
filter
(Consumer<InventoryFilter.Builder> filter) Specifies an inventory filter.filter
(InventoryFilter filter) Specifies an inventory filter.The ID used to identify the inventory configuration.includedObjectVersions
(String includedObjectVersions) Object versions to include in the inventory list.includedObjectVersions
(InventoryIncludedObjectVersions includedObjectVersions) Object versions to include in the inventory list.Specifies whether the inventory is enabled or disabled.optionalFields
(Collection<InventoryOptionalField> optionalFields) Contains the optional fields that are included in the inventory results.optionalFields
(InventoryOptionalField... optionalFields) Contains the optional fields that are included in the inventory results.optionalFieldsWithStrings
(String... optionalFields) Contains the optional fields that are included in the inventory results.optionalFieldsWithStrings
(Collection<String> optionalFields) Contains the optional fields that are included in the inventory results.default InventoryConfiguration.Builder
schedule
(Consumer<InventorySchedule.Builder> schedule) Specifies the schedule for generating inventory results.schedule
(InventorySchedule schedule) Specifies the schedule for generating inventory results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
destination
Contains information about where to publish the inventory results.
- Parameters:
destination
- Contains information about where to publish the inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
default InventoryConfiguration.Builder destination(Consumer<InventoryDestination.Builder> destination) Contains information about where to publish the inventory results.
This is a convenience method that creates an instance of theInventoryDestination.Builder
avoiding the need to create one manually viaInventoryDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestination(InventoryDestination)
.- Parameters:
destination
- a consumer that will call methods onInventoryDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isEnabled
Specifies whether the inventory is enabled or disabled. If set to
True
, an inventory list is generated. If set toFalse
, no inventory list is generated.- Parameters:
isEnabled
- Specifies whether the inventory is enabled or disabled. If set toTrue
, an inventory list is generated. If set toFalse
, no inventory list is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
- Parameters:
filter
- Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
This is a convenience method that creates an instance of theInventoryFilter.Builder
avoiding the need to create one manually viaInventoryFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(InventoryFilter)
.- Parameters:
filter
- a consumer that will call methods onInventoryFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The ID used to identify the inventory configuration.
- Parameters:
id
- The ID used to identify the inventory configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includedObjectVersions
Object versions to include in the inventory list. If set to
All
, the list includes all the object versions, which adds the version-related fieldsVersionId
,IsLatest
, andDeleteMarker
to the list. If set toCurrent
, the list does not contain these version-related fields.- Parameters:
includedObjectVersions
- Object versions to include in the inventory list. If set toAll
, the list includes all the object versions, which adds the version-related fieldsVersionId
,IsLatest
, andDeleteMarker
to the list. If set toCurrent
, the list does not contain these version-related fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includedObjectVersions
InventoryConfiguration.Builder includedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions) Object versions to include in the inventory list. If set to
All
, the list includes all the object versions, which adds the version-related fieldsVersionId
,IsLatest
, andDeleteMarker
to the list. If set toCurrent
, the list does not contain these version-related fields.- Parameters:
includedObjectVersions
- Object versions to include in the inventory list. If set toAll
, the list includes all the object versions, which adds the version-related fieldsVersionId
,IsLatest
, andDeleteMarker
to the list. If set toCurrent
, the list does not contain these version-related fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optionalFieldsWithStrings
Contains the optional fields that are included in the inventory results.
- Parameters:
optionalFields
- Contains the optional fields that are included in the inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalFieldsWithStrings
Contains the optional fields that are included in the inventory results.
- Parameters:
optionalFields
- Contains the optional fields that are included in the inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalFields
Contains the optional fields that are included in the inventory results.
- Parameters:
optionalFields
- Contains the optional fields that are included in the inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalFields
Contains the optional fields that are included in the inventory results.
- Parameters:
optionalFields
- Contains the optional fields that are included in the inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Specifies the schedule for generating inventory results.
- Parameters:
schedule
- Specifies the schedule for generating inventory results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Specifies the schedule for generating inventory results.
This is a convenience method that creates an instance of theInventorySchedule.Builder
avoiding the need to create one manually viaInventorySchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedule(InventorySchedule)
.- Parameters:
schedule
- a consumer that will call methods onInventorySchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-