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