@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:24.759Z") @Stability(value=Stable) public enum InventoryObjectVersion extends Enum<InventoryObjectVersion>
Example:
Bucket inventoryBucket = new Bucket(this, "InventoryBucket"); Bucket dataBucket = Bucket.Builder.create(this, "DataBucket") .inventories(List.of(Inventory.builder() .frequency(InventoryFrequency.DAILY) .includeObjectVersions(InventoryObjectVersion.CURRENT) .destination(InventoryDestination.builder() .bucket(inventoryBucket) .build()) .build(), Inventory.builder() .frequency(InventoryFrequency.WEEKLY) .includeObjectVersions(InventoryObjectVersion.ALL) .destination(InventoryDestination.builder() .bucket(inventoryBucket) .prefix("with-all-versions") .build()) .build())) .build();
Enum Constant and Description |
---|
ALL
Includes all versions of each object in the report.
|
CURRENT
Includes only the current version of each object in the report.
|
Modifier and Type | Method and Description |
---|---|
static InventoryObjectVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryObjectVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final InventoryObjectVersion ALL
@Stability(value=Stable) public static final InventoryObjectVersion CURRENT
public static InventoryObjectVersion[] values()
for (InventoryObjectVersion c : InventoryObjectVersion.values()) System.out.println(c);
public static InventoryObjectVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.