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