Class CfnBucketPropsMixin.AccessRulesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnBucketPropsMixin.AccessRulesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.AccessRulesProperty>
- Enclosing interface:
CfnBucketPropsMixin.AccessRulesProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.AccessRulesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.AccessRulesProperty>
A builder for
CfnBucketPropsMixin.AccessRulesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowPublicOverrides(Boolean allowPublicOverrides) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getAllowPublicOverrides()allowPublicOverrides(IResolvable allowPublicOverrides) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getAllowPublicOverrides()build()Builds the configured instance.objectAccess(String objectAccess) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getObjectAccess()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowPublicOverrides
@Stability(Stable) public CfnBucketPropsMixin.AccessRulesProperty.Builder allowPublicOverrides(Boolean allowPublicOverrides) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getAllowPublicOverrides()- Parameters:
allowPublicOverrides- A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override theGetObjectoption that is currently specified. When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either thepublic-readACL or theprivateACL.- Returns:
this
-
allowPublicOverrides
@Stability(Stable) public CfnBucketPropsMixin.AccessRulesProperty.Builder allowPublicOverrides(IResolvable allowPublicOverrides) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getAllowPublicOverrides()- Parameters:
allowPublicOverrides- A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override theGetObjectoption that is currently specified. When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either thepublic-readACL or theprivateACL.- Returns:
this
-
objectAccess
@Stability(Stable) public CfnBucketPropsMixin.AccessRulesProperty.Builder objectAccess(String objectAccess) Sets the value ofCfnBucketPropsMixin.AccessRulesProperty.getObjectAccess()- Parameters:
objectAccess- Specifies the anonymous access to all objects in a bucket. The following options can be specified:public- Sets all objects in the bucket to public (read-only), making them readable by everyone on the internet.
If the
GetObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue.private- Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to.
If the
GetObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by everyone on the internet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.AccessRulesProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.AccessRulesProperty - Throws:
NullPointerException- if any required attribute was not provided
-