Class CfnBucketPropsMixin.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3outposts.CfnBucketPropsMixin.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.RuleProperty>
- Enclosing interface:
CfnBucketPropsMixin.RuleProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.RuleProperty>
A builder for
CfnBucketPropsMixin.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortIncompleteMultipartUpload(CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty abortIncompleteMultipartUpload) Sets the value ofCfnBucketPropsMixin.RuleProperty.getAbortIncompleteMultipartUpload()abortIncompleteMultipartUpload(IResolvable abortIncompleteMultipartUpload) Sets the value ofCfnBucketPropsMixin.RuleProperty.getAbortIncompleteMultipartUpload()build()Builds the configured instance.expirationDate(String expirationDate) Sets the value ofCfnBucketPropsMixin.RuleProperty.getExpirationDate()expirationInDays(Number expirationInDays) Sets the value ofCfnBucketPropsMixin.RuleProperty.getExpirationInDays()Sets the value ofCfnBucketPropsMixin.RuleProperty.getFilter()Sets the value ofCfnBucketPropsMixin.RuleProperty.getId()Sets the value ofCfnBucketPropsMixin.RuleProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
abortIncompleteMultipartUpload
@Stability(Stable) public CfnBucketPropsMixin.RuleProperty.Builder abortIncompleteMultipartUpload(IResolvable abortIncompleteMultipartUpload) Sets the value ofCfnBucketPropsMixin.RuleProperty.getAbortIncompleteMultipartUpload()- Parameters:
abortIncompleteMultipartUpload- The container for the abort incomplete multipart upload rule.- Returns:
this
-
abortIncompleteMultipartUpload
@Stability(Stable) public CfnBucketPropsMixin.RuleProperty.Builder abortIncompleteMultipartUpload(CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty abortIncompleteMultipartUpload) Sets the value ofCfnBucketPropsMixin.RuleProperty.getAbortIncompleteMultipartUpload()- Parameters:
abortIncompleteMultipartUpload- The container for the abort incomplete multipart upload rule.- Returns:
this
-
expirationDate
@Stability(Stable) public CfnBucketPropsMixin.RuleProperty.Builder expirationDate(String expirationDate) Sets the value ofCfnBucketPropsMixin.RuleProperty.getExpirationDate()- Parameters:
expirationDate- Specifies the expiration for the lifecycle of the object by specifying an expiry date.- Returns:
this
-
expirationInDays
@Stability(Stable) public CfnBucketPropsMixin.RuleProperty.Builder expirationInDays(Number expirationInDays) Sets the value ofCfnBucketPropsMixin.RuleProperty.getExpirationInDays()- Parameters:
expirationInDays- Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.- Returns:
this
-
filter
Sets the value ofCfnBucketPropsMixin.RuleProperty.getFilter()- Parameters:
filter- The container for the filter of the lifecycle rule.- Returns:
this
-
id
Sets the value ofCfnBucketPropsMixin.RuleProperty.getId()- Parameters:
id- Unique identifier for the lifecycle rule. The value can't be longer than 255 characters.- Returns:
this
-
status
Sets the value ofCfnBucketPropsMixin.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<CfnBucketPropsMixin.RuleProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-