Class CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.WebsiteConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.WebsiteConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.WebsiteConfigurationProperty>
A builder for
CfnBucketPropsMixin.WebsiteConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.errorDocument(String errorDocument) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getErrorDocument()indexDocument(String indexDocument) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getIndexDocument()redirectAllRequestsTo(CfnBucketPropsMixin.RedirectAllRequestsToProperty redirectAllRequestsTo) redirectAllRequestsTo(IResolvable redirectAllRequestsTo) routingRules(List<? extends Object> routingRules) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getRoutingRules()routingRules(IResolvable routingRules) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getRoutingRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorDocument
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder errorDocument(String errorDocument) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getErrorDocument()- Parameters:
errorDocument- The name of the error document for the website.- Returns:
this
-
indexDocument
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder indexDocument(String indexDocument) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getIndexDocument()- Parameters:
indexDocument- The name of the index document for the website.- Returns:
this
-
redirectAllRequestsTo
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(IResolvable redirectAllRequestsTo) - Parameters:
redirectAllRequestsTo- The redirect behavior for every request to this bucket's website endpoint.If you specify this property, you can't specify any other property.
- Returns:
this
-
redirectAllRequestsTo
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(CfnBucketPropsMixin.RedirectAllRequestsToProperty redirectAllRequestsTo) - Parameters:
redirectAllRequestsTo- The redirect behavior for every request to this bucket's website endpoint.If you specify this property, you can't specify any other property.
- Returns:
this
-
routingRules
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder routingRules(IResolvable routingRules) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getRoutingRules()- Parameters:
routingRules- Rules that define when a redirect is applied and the redirect behavior.- Returns:
this
-
routingRules
@Stability(Stable) public CfnBucketPropsMixin.WebsiteConfigurationProperty.Builder routingRules(List<? extends Object> routingRules) Sets the value ofCfnBucketPropsMixin.WebsiteConfigurationProperty.getRoutingRules()- Parameters:
routingRules- Rules that define when a redirect is applied and the redirect behavior.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.WebsiteConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.WebsiteConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-