Class CfnBucket.InventoryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.InventoryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.InventoryConfigurationProperty>
- Enclosing interface:
- CfnBucket.InventoryConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.InventoryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.InventoryConfigurationProperty>
A builder for
CfnBucket.InventoryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destination(IResolvable destination) Sets the value ofCfnBucket.InventoryConfigurationProperty.getDestination()destination(CfnBucket.DestinationProperty destination) Sets the value ofCfnBucket.InventoryConfigurationProperty.getDestination()Sets the value ofCfnBucket.InventoryConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBucket.InventoryConfigurationProperty.getEnabled()Sets the value ofCfnBucket.InventoryConfigurationProperty.getId()includedObjectVersions(String includedObjectVersions) Sets the value ofCfnBucket.InventoryConfigurationProperty.getIncludedObjectVersions()optionalFields(List<String> optionalFields) Sets the value ofCfnBucket.InventoryConfigurationProperty.getOptionalFields()Sets the value ofCfnBucket.InventoryConfigurationProperty.getPrefix()scheduleFrequency(String scheduleFrequency) Sets the value ofCfnBucket.InventoryConfigurationProperty.getScheduleFrequency()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder destination(IResolvable destination) Sets the value ofCfnBucket.InventoryConfigurationProperty.getDestination()- Parameters:
destination- Contains information about where to publish the inventory results. This parameter is required.- Returns:
this
-
destination
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder destination(CfnBucket.DestinationProperty destination) Sets the value ofCfnBucket.InventoryConfigurationProperty.getDestination()- Parameters:
destination- Contains information about where to publish the inventory results. This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnBucket.InventoryConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies whether the inventory is enabled or disabled. This parameter is required. If set toTrue, an inventory list is generated. If set toFalse, no inventory list is generated.- Returns:
this
-
enabled
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBucket.InventoryConfigurationProperty.getEnabled()- Parameters:
enabled- Specifies whether the inventory is enabled or disabled. This parameter is required. If set toTrue, an inventory list is generated. If set toFalse, no inventory list is generated.- Returns:
this
-
id
Sets the value ofCfnBucket.InventoryConfigurationProperty.getId()- Parameters:
id- The ID used to identify the inventory configuration. This parameter is required.- Returns:
this
-
includedObjectVersions
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder includedObjectVersions(String includedObjectVersions) Sets the value ofCfnBucket.InventoryConfigurationProperty.getIncludedObjectVersions()- Parameters:
includedObjectVersions- Object versions to include in the inventory list. This parameter is required. 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:
this
-
scheduleFrequency
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder scheduleFrequency(String scheduleFrequency) Sets the value ofCfnBucket.InventoryConfigurationProperty.getScheduleFrequency()- Parameters:
scheduleFrequency- Specifies the schedule for generating inventory results. This parameter is required. Allowed values :Daily|Weekly- Returns:
this
-
optionalFields
@Stability(Stable) public CfnBucket.InventoryConfigurationProperty.Builder optionalFields(List<String> optionalFields) Sets the value ofCfnBucket.InventoryConfigurationProperty.getOptionalFields()- Parameters:
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- Returns:
this
-
prefix
Sets the value ofCfnBucket.InventoryConfigurationProperty.getPrefix()- Parameters:
prefix- Specifies the inventory filter prefix.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucket.InventoryConfigurationProperty>- Returns:
- a new instance of
CfnBucket.InventoryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-