public static final class CfnBucket.WebsiteConfigurationProperty.Builder
extends java.lang.Object
CfnBucket.WebsiteConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnBucket.WebsiteConfigurationProperty.Builder errorDocument(java.lang.String errorDocument)
CfnBucket.WebsiteConfigurationProperty.getErrorDocument()
errorDocument
- The name of the error document for the website.this
public CfnBucket.WebsiteConfigurationProperty.Builder indexDocument(java.lang.String indexDocument)
CfnBucket.WebsiteConfigurationProperty.getIndexDocument()
indexDocument
- The name of the index document for the website.this
public CfnBucket.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(IResolvable redirectAllRequestsTo)
CfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
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.
this
public CfnBucket.WebsiteConfigurationProperty.Builder redirectAllRequestsTo(CfnBucket.RedirectAllRequestsToProperty redirectAllRequestsTo)
CfnBucket.WebsiteConfigurationProperty.getRedirectAllRequestsTo()
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.
this
public CfnBucket.WebsiteConfigurationProperty.Builder routingRules(IResolvable routingRules)
CfnBucket.WebsiteConfigurationProperty.getRoutingRules()
routingRules
- Rules that define when a redirect is applied and the redirect behavior.this
public CfnBucket.WebsiteConfigurationProperty.Builder routingRules(java.util.List<? extends java.lang.Object> routingRules)
CfnBucket.WebsiteConfigurationProperty.getRoutingRules()
routingRules
- Rules that define when a redirect is applied and the redirect behavior.this
public CfnBucket.WebsiteConfigurationProperty build()
CfnBucket.WebsiteConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided