Class CfnBucket.OwnershipControlsRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.OwnershipControlsRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.OwnershipControlsRuleProperty>
- Enclosing interface:
CfnBucket.OwnershipControlsRuleProperty
@Stability(Stable)
public static final class CfnBucket.OwnershipControlsRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.OwnershipControlsRuleProperty>
A builder for
CfnBucket.OwnershipControlsRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.objectOwnership
(String objectOwnership) Sets the value ofCfnBucket.OwnershipControlsRuleProperty.getObjectOwnership()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectOwnership
@Stability(Stable) public CfnBucket.OwnershipControlsRuleProperty.Builder objectOwnership(String objectOwnership) Sets the value ofCfnBucket.OwnershipControlsRuleProperty.getObjectOwnership()
- Parameters:
objectOwnership
- Specifies an object ownership rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.OwnershipControlsRuleProperty>
- Returns:
- a new instance of
CfnBucket.OwnershipControlsRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-