Class CfnBucketPropsMixin.InventoryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.InventoryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.InventoryConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.InventoryConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.InventoryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.InventoryConfigurationProperty>
A builder for
CfnBucketPropsMixin.InventoryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destination(IResolvable destination) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getDestination()destination(CfnBucketPropsMixin.DestinationProperty destination) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getDestination()Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getEnabled()Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getId()includedObjectVersions(String includedObjectVersions) optionalFields(List<String> optionalFields) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getOptionalFields()Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getPrefix()scheduleFrequency(String scheduleFrequency)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder destination(IResolvable destination) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getDestination()- Parameters:
destination- Contains information about where to publish the inventory results.- Returns:
this
-
destination
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder destination(CfnBucketPropsMixin.DestinationProperty destination) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getDestination()- Parameters:
destination- Contains information about where to publish the inventory results.- Returns:
this
-
enabled
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getEnabled()- Parameters:
enabled- 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:
this
-
enabled
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getEnabled()- Parameters:
enabled- 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:
this
-
id
Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getId()- Parameters:
id- The ID used to identify the inventory configuration.- Returns:
this
-
includedObjectVersions
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder includedObjectVersions(String includedObjectVersions) - 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:
this
-
optionalFields
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder optionalFields(List<String> optionalFields) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getOptionalFields()- Parameters:
optionalFields- Contains the optional fields that are included in the inventory results.- Returns:
this
-
prefix
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder prefix(String prefix) Sets the value ofCfnBucketPropsMixin.InventoryConfigurationProperty.getPrefix()- Parameters:
prefix- Specifies the inventory filter prefix.- Returns:
this
-
scheduleFrequency
@Stability(Stable) public CfnBucketPropsMixin.InventoryConfigurationProperty.Builder scheduleFrequency(String scheduleFrequency) - Parameters:
scheduleFrequency- Specifies the schedule for generating inventory results.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.InventoryConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.InventoryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-