Class CfnBucket.CorsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.CorsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.CorsConfigurationProperty>
- Enclosing interface:
CfnBucket.CorsConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.CorsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.CorsConfigurationProperty>
A builder for
CfnBucket.CorsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.CorsConfigurationProperty.getCorsRules()
corsRules
(IResolvable corsRules) Sets the value ofCfnBucket.CorsConfigurationProperty.getCorsRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
corsRules
@Stability(Stable) public CfnBucket.CorsConfigurationProperty.Builder corsRules(IResolvable corsRules) Sets the value ofCfnBucket.CorsConfigurationProperty.getCorsRules()
- Parameters:
corsRules
- A set of origins and methods (cross-origin access that you want to allow). This parameter is required. You can add up to 100 rules to the configuration.- Returns:
this
-
corsRules
@Stability(Stable) public CfnBucket.CorsConfigurationProperty.Builder corsRules(List<? extends Object> corsRules) Sets the value ofCfnBucket.CorsConfigurationProperty.getCorsRules()
- Parameters:
corsRules
- A set of origins and methods (cross-origin access that you want to allow). This parameter is required. You can add up to 100 rules to the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.CorsConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.CorsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-