Interface InventoryConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InventoryConfiguration.Builder,InventoryConfiguration>,SdkBuilder<InventoryConfiguration.Builder,InventoryConfiguration>,SdkPojo
- Enclosing class:
- InventoryConfiguration
@Mutable @NotThreadSafe public static interface InventoryConfiguration.Builder extends SdkPojo, CopyableBuilder<InventoryConfiguration.Builder,InventoryConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InventoryConfiguration.Builderdestination(Consumer<InventoryDestination.Builder> destination)Contains information about where to publish the inventory results.InventoryConfiguration.Builderdestination(InventoryDestination destination)Contains information about where to publish the inventory results.default InventoryConfiguration.Builderfilter(Consumer<InventoryFilter.Builder> filter)Specifies an inventory filter.InventoryConfiguration.Builderfilter(InventoryFilter filter)Specifies an inventory filter.InventoryConfiguration.Builderid(String id)The ID used to identify the inventory configuration.InventoryConfiguration.BuilderincludedObjectVersions(String includedObjectVersions)Object versions to include in the inventory list.InventoryConfiguration.BuilderincludedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions)Object versions to include in the inventory list.InventoryConfiguration.BuilderisEnabled(Boolean isEnabled)Specifies whether the inventory is enabled or disabled.InventoryConfiguration.BuilderoptionalFields(Collection<InventoryOptionalField> optionalFields)Contains the optional fields that are included in the inventory results.InventoryConfiguration.BuilderoptionalFields(InventoryOptionalField... optionalFields)Contains the optional fields that are included in the inventory results.InventoryConfiguration.BuilderoptionalFieldsWithStrings(String... optionalFields)Contains the optional fields that are included in the inventory results.InventoryConfiguration.BuilderoptionalFieldsWithStrings(Collection<String> optionalFields)Contains the optional fields that are included in the inventory results.default InventoryConfiguration.Builderschedule(Consumer<InventorySchedule.Builder> schedule)Specifies the schedule for generating inventory results.InventoryConfiguration.Builderschedule(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
destination
InventoryConfiguration.Builder destination(InventoryDestination 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.Builderavoiding the need to create one manually viaInventoryDestination.builder().When the
Consumercompletes,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:
destination(InventoryDestination)
-
isEnabled
InventoryConfiguration.Builder isEnabled(Boolean 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
InventoryConfiguration.Builder filter(InventoryFilter 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
default InventoryConfiguration.Builder filter(Consumer<InventoryFilter.Builder> 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.Builderavoiding the need to create one manually viaInventoryFilter.builder().When the
Consumercompletes,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:
filter(InventoryFilter)
-
id
InventoryConfiguration.Builder id(String 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
InventoryConfiguration.Builder includedObjectVersions(String 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, andDeleteMarkerto 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, andDeleteMarkerto 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:
InventoryIncludedObjectVersions,InventoryIncludedObjectVersions
-
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, andDeleteMarkerto 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, andDeleteMarkerto 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:
InventoryIncludedObjectVersions,InventoryIncludedObjectVersions
-
optionalFieldsWithStrings
InventoryConfiguration.Builder optionalFieldsWithStrings(Collection<String> 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.
-
optionalFieldsWithStrings
InventoryConfiguration.Builder optionalFieldsWithStrings(String... 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
InventoryConfiguration.Builder optionalFields(Collection<InventoryOptionalField> 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
InventoryConfiguration.Builder optionalFields(InventoryOptionalField... 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
InventoryConfiguration.Builder schedule(InventorySchedule 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
default InventoryConfiguration.Builder schedule(Consumer<InventorySchedule.Builder> schedule)
Specifies the schedule for generating inventory results.
This is a convenience method that creates an instance of theInventorySchedule.Builderavoiding the need to create one manually viaInventorySchedule.builder().When the
Consumercompletes,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:
schedule(InventorySchedule)
-
-