Class CfnDirectoryBucketPropsMixin.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3express.CfnDirectoryBucketPropsMixin.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucketPropsMixin.RuleProperty>
- Enclosing interface:
CfnDirectoryBucketPropsMixin.RuleProperty
@Stability(Stable)
public static final class CfnDirectoryBucketPropsMixin.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectoryBucketPropsMixin.RuleProperty>
A builder for
CfnDirectoryBucketPropsMixin.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortIncompleteMultipartUpload(CfnDirectoryBucketPropsMixin.AbortIncompleteMultipartUploadProperty abortIncompleteMultipartUpload) abortIncompleteMultipartUpload(IResolvable abortIncompleteMultipartUpload) build()Builds the configured instance.expirationInDays(Number expirationInDays) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getExpirationInDays()Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getId()objectSizeGreaterThan(String objectSizeGreaterThan) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getObjectSizeGreaterThan()objectSizeLessThan(String objectSizeLessThan) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getObjectSizeLessThan()Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getPrefix()Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
abortIncompleteMultipartUpload
@Stability(Stable) public CfnDirectoryBucketPropsMixin.RuleProperty.Builder abortIncompleteMultipartUpload(IResolvable abortIncompleteMultipartUpload) - Parameters:
abortIncompleteMultipartUpload- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload.- Returns:
this
-
abortIncompleteMultipartUpload
@Stability(Stable) public CfnDirectoryBucketPropsMixin.RuleProperty.Builder abortIncompleteMultipartUpload(CfnDirectoryBucketPropsMixin.AbortIncompleteMultipartUploadProperty abortIncompleteMultipartUpload) - Parameters:
abortIncompleteMultipartUpload- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload.- Returns:
this
-
expirationInDays
@Stability(Stable) public CfnDirectoryBucketPropsMixin.RuleProperty.Builder expirationInDays(Number expirationInDays) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getExpirationInDays()- Parameters:
expirationInDays- Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.- Returns:
this
-
id
Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getId()- Parameters:
id- Unique identifier for the rule. The value can't be longer than 255 characters.- Returns:
this
-
objectSizeGreaterThan
@Stability(Stable) public CfnDirectoryBucketPropsMixin.RuleProperty.Builder objectSizeGreaterThan(String objectSizeGreaterThan) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getObjectSizeGreaterThan()- Parameters:
objectSizeGreaterThan- Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes. For more information about size based rules, see Lifecycle configuration using size-based rules in the Amazon S3 User Guide .- Returns:
this
-
objectSizeLessThan
@Stability(Stable) public CfnDirectoryBucketPropsMixin.RuleProperty.Builder objectSizeLessThan(String objectSizeLessThan) Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getObjectSizeLessThan()- Parameters:
objectSizeLessThan- Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes. For more information about sized based rules, see Lifecycle configuration using size-based rules in the Amazon S3 User Guide .- Returns:
this
-
prefix
Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getPrefix()- Parameters:
prefix- Object key prefix that identifies one or more objects to which this rule applies.Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints .
- Returns:
this
-
status
Sets the value ofCfnDirectoryBucketPropsMixin.RuleProperty.getStatus()- Parameters:
status- IfEnabled, the rule is currently being applied. IfDisabled, the rule is not currently being applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectoryBucketPropsMixin.RuleProperty>- Returns:
- a new instance of
CfnDirectoryBucketPropsMixin.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-