public static final class CfnBucket.InventoryConfigurationProperty.Builder
extends java.lang.Object
CfnBucket.InventoryConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnBucket.InventoryConfigurationProperty.Builder destination(IResolvable destination)
CfnBucket.InventoryConfigurationProperty.getDestination()
destination
- Contains information about where to publish the inventory results. This parameter is required.this
public CfnBucket.InventoryConfigurationProperty.Builder destination(CfnBucket.DestinationProperty destination)
CfnBucket.InventoryConfigurationProperty.getDestination()
destination
- Contains information about where to publish the inventory results. This parameter is required.this
public CfnBucket.InventoryConfigurationProperty.Builder enabled(java.lang.Boolean enabled)
CfnBucket.InventoryConfigurationProperty.getEnabled()
enabled
- Specifies whether the inventory is enabled or disabled. This parameter is required.
If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.this
public CfnBucket.InventoryConfigurationProperty.Builder enabled(IResolvable enabled)
CfnBucket.InventoryConfigurationProperty.getEnabled()
enabled
- Specifies whether the inventory is enabled or disabled. This parameter is required.
If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.this
public CfnBucket.InventoryConfigurationProperty.Builder id(java.lang.String id)
CfnBucket.InventoryConfigurationProperty.getId()
id
- The ID used to identify the inventory configuration. This parameter is required.this
public CfnBucket.InventoryConfigurationProperty.Builder includedObjectVersions(java.lang.String includedObjectVersions)
CfnBucket.InventoryConfigurationProperty.getIncludedObjectVersions()
includedObjectVersions
- Object versions to include in the inventory list. This parameter is required.
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.this
public CfnBucket.InventoryConfigurationProperty.Builder scheduleFrequency(java.lang.String scheduleFrequency)
CfnBucket.InventoryConfigurationProperty.getScheduleFrequency()
scheduleFrequency
- Specifies the schedule for generating inventory results. This parameter is required.
Allowed values : Daily
| Weekly
this
public CfnBucket.InventoryConfigurationProperty.Builder optionalFields(java.util.List<java.lang.String> optionalFields)
CfnBucket.InventoryConfigurationProperty.getOptionalFields()
optionalFields
- Contains the optional fields that are included in the inventory results.
Valid values : Size | LastModifiedDate | StorageClass | ETag | IsMultipartUploaded | ReplicationStatus | EncryptionStatus | ObjectLockRetainUntilDate | ObjectLockMode | ObjectLockLegalHoldStatus | IntelligentTieringAccessTier | BucketKeyStatus
this
public CfnBucket.InventoryConfigurationProperty.Builder prefix(java.lang.String prefix)
CfnBucket.InventoryConfigurationProperty.getPrefix()
prefix
- Specifies the inventory filter prefix.this
public CfnBucket.InventoryConfigurationProperty build()
CfnBucket.InventoryConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided