public class InventoryConfiguration extends Object implements Serializable
Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon S3 API Reference.
Constructor and Description |
---|
InventoryConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addOptionalField(InventoryOptionalField optionalField)
Add a field to the list of optional fields that are included in the inventory results.
|
void |
addOptionalField(String optionalField)
Add a field to the list of optional fields that are included in the inventory results.
|
InventoryDestination |
getDestination()
Returns the
InventoryDestination that contains information
about where to publish the inventory results. |
String |
getId()
Returns the ID used to identify the inventory configuration.
|
String |
getIncludedObjectVersions()
Returns which object version(s) to included in the inventory results.
|
InventoryFilter |
getInventoryFilter()
Returns the inventoryFilter used to describe a set of objects
to include in inventory results.
|
List<String> |
getOptionalFields()
Returns the optional fields that are included in the inventory results.
|
InventorySchedule |
getSchedule()
Returns the schedule for generating inventory results.
|
Boolean |
isEnabled()
Returns true if the inventory is enabled or
false if inventory is disabled.
|
void |
setDestination(InventoryDestination destination)
Sets the
InventoryDestination that contains information
about where to publish the inventory results. |
void |
setEnabled(Boolean enabled)
Sets the value whether the inventory is enabled or disabled.
|
void |
setId(String id)
Sets the ID used to identify the inventory configuration.
|
void |
setIncludedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions)
Sets which object version(s) to included in the inventory results.
|
void |
setIncludedObjectVersions(String includedObjectVersions)
Sets which object version(s) to included in the inventory results.
|
void |
setInventoryFilter(InventoryFilter inventoryFilter)
Sets the inventoryFilter used to describe a set of objects
to include in inventory results.
|
void |
setOptionalFields(List<String> optionalFields)
Sets the optional fields that are included in the inventory results.
|
void |
setSchedule(InventorySchedule schedule)
Sets the schedule for generating inventory results.
|
InventoryConfiguration |
withDestination(InventoryDestination destination)
Sets the
InventoryDestination that contains information
about where to publish the inventory results and returns
this object for method chaining. |
InventoryConfiguration |
withEnabled(Boolean enabled)
Sets the value whether the inventory is enabled or disabled
and returns this object for method chaining.
|
InventoryConfiguration |
withFilter(InventoryFilter inventoryFilter)
Sets the inventoryFilter used to describe a set of objects
to include in inventory results.
|
InventoryConfiguration |
withId(String id)
Sets the ID used to identify the inventory configuration
and returns this object for method chaining.
|
InventoryConfiguration |
withIncludedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions)
Sets which object version(s) to included in the inventory results
and returns this object for method chaining.
|
InventoryConfiguration |
withIncludedObjectVersions(String includedObjectVersions)
Sets which object version(s) to included in the inventory results
and returns this object for method chaining.
|
InventoryConfiguration |
withOptionalFields(List<String> optionalFields)
Sets the optional fields that are included in the inventory results.
|
InventoryConfiguration |
withSchedule(InventorySchedule schedule)
Returns the schedule for generating inventory results
and returns
InventoryConfiguration object
for method chaining. |
public String getId()
public void setId(String id)
public InventoryConfiguration withId(String id)
public InventoryDestination getDestination()
InventoryDestination
that contains information
about where to publish the inventory results.public void setDestination(InventoryDestination destination)
InventoryDestination
that contains information
about where to publish the inventory results.public InventoryConfiguration withDestination(InventoryDestination destination)
InventoryDestination
that contains information
about where to publish the inventory results and returns
this object for method chaining.public Boolean isEnabled()
public void setEnabled(Boolean enabled)
public InventoryConfiguration withEnabled(Boolean enabled)
public InventoryFilter getInventoryFilter()
public void setInventoryFilter(InventoryFilter inventoryFilter)
public InventoryConfiguration withFilter(InventoryFilter inventoryFilter)
InventoryConfiguration
object is returned
for method chaining.public String getIncludedObjectVersions()
public void setIncludedObjectVersions(String includedObjectVersions)
public InventoryConfiguration withIncludedObjectVersions(String includedObjectVersions)
public void setIncludedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions)
public InventoryConfiguration withIncludedObjectVersions(InventoryIncludedObjectVersions includedObjectVersions)
public List<String> getOptionalFields()
public void setOptionalFields(List<String> optionalFields)
public InventoryConfiguration withOptionalFields(List<String> optionalFields)
InventoryConfiguration
object is returned for method chaining.public void addOptionalField(String optionalField)
public void addOptionalField(InventoryOptionalField optionalField)
public InventorySchedule getSchedule()
public void setSchedule(InventorySchedule schedule)
public InventoryConfiguration withSchedule(InventorySchedule schedule)
InventoryConfiguration
object
for method chaining.Copyright © 2024. All rights reserved.