Class CfnBucket.WebsiteConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.WebsiteConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.WebsiteConfigurationProperty>
- Enclosing interface:
- CfnBucket.WebsiteConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.WebsiteConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.WebsiteConfigurationProperty>
A builder for
CfnBucket.WebsiteConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.errorDocument
(String errorDocument) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getErrorDocument()
indexDocument
(String indexDocument) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getIndexDocument()
redirectAllRequestsTo
(IResolvable redirectAllRequestsTo) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
redirectAllRequestsTo
(CfnBucket.RedirectAllRequestsToProperty redirectAllRequestsTo) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
routingRules
(List<? extends Object> routingRules) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRoutingRules()
routingRules
(IResolvable routingRules) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRoutingRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorDocument
@Stability(Stable) public CfnBucket.WebsiteConfigurationProperty.Builder errorDocument(String errorDocument) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getErrorDocument()
- Parameters:
errorDocument
- The name of the error document for the website.- Returns:
this
-
indexDocument
@Stability(Stable) public CfnBucket.WebsiteConfigurationProperty.Builder indexDocument(String indexDocument) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getIndexDocument()
- Parameters:
indexDocument
- The name of the index document for the website.- Returns:
this
-
redirectAllRequestsTo
@Stability(Stable) public CfnBucket.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(IResolvable redirectAllRequestsTo) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
- 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 CfnBucket.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(CfnBucket.RedirectAllRequestsToProperty redirectAllRequestsTo) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
- 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 CfnBucket.WebsiteConfigurationProperty.Builder routingRules(IResolvable routingRules) Sets the value ofCfnBucket.WebsiteConfigurationProperty.getRoutingRules()
- Parameters:
routingRules
- Rules that define when a redirect is applied and the redirect behavior.- Returns:
this
-
routingRules
@Stability(Stable) public CfnBucket.WebsiteConfigurationProperty.Builder routingRules(List<? extends Object> routingRules) Sets the value ofCfnBucket.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.WebsiteConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.WebsiteConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-