Class CfnBucket.LifecycleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3outposts.CfnBucket.LifecycleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.LifecycleConfigurationProperty>
- Enclosing interface:
CfnBucket.LifecycleConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.LifecycleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.LifecycleConfigurationProperty>
A builder for
CfnBucket.LifecycleConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.LifecycleConfigurationProperty.getRules()
rules
(IResolvable rules) Sets the value ofCfnBucket.LifecycleConfigurationProperty.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rules
Sets the value ofCfnBucket.LifecycleConfigurationProperty.getRules()
- Parameters:
rules
- The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket. This parameter is required.- Returns:
this
-
rules
@Stability(Stable) public CfnBucket.LifecycleConfigurationProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnBucket.LifecycleConfigurationProperty.getRules()
- Parameters:
rules
- The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.LifecycleConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.LifecycleConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-