public class BucketWebsiteConfiguration extends Object implements Serializable
Constructor and Description |
---|
BucketWebsiteConfiguration()
Creates a new BucketWebsiteConfiguration.
|
BucketWebsiteConfiguration(String indexDocumentSuffix)
Creates a new BucketWebsiteConfiguration with the specified index document suffix.
|
BucketWebsiteConfiguration(String indexDocumentSuffix,
String errorDocument)
Creates a new BucketWebsiteConfiguration with the specified index document suffix and error document.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorDocument()
Returns the complete path to the document to serve for 4xx errors, or null if no error document has been configured.
|
String |
getIndexDocumentSuffix()
Returns the document to serve when a directory is specified (ex: index.html).
|
RedirectRule |
getRedirectAllRequestsTo()
Return the redirect information where all requests will be redirect to.
|
List<RoutingRule> |
getRoutingRules()
Return the list of routing rules that can be used for configuring redirects if certain conditions are meet.
|
void |
setErrorDocument(String errorDocument)
Sets the complete path to the document to serve for 4xx errors.
|
void |
setIndexDocumentSuffix(String indexDocumentSuffix)
Sets the document to serve when a directory is specified (ex: index.html).
|
void |
setRedirectAllRequestsTo(RedirectRule redirectAllRequestsTo)
Sets the redirect information where all requests will be redirect to.
|
void |
setRoutingRules(List<RoutingRule> routingRules)
Set the list of routing rules that can be used for configuring redirects if certain conditions are meet.
|
BucketWebsiteConfiguration |
withRedirectAllRequestsTo(RedirectRule redirectAllRequestsTo)
Sets the redirect information where all requests will be redirect to and returns a reference to this object(BucketWebsiteConfiguration) for method chaining.
|
BucketWebsiteConfiguration |
withRoutingRules(List<RoutingRule> routingRules)
Set the list of routing rules that can be used for configuring redirects if certain conditions are meet and returns a reference to this object(BucketWebsiteConfiguration)
for method chaining.
|
public BucketWebsiteConfiguration()
public BucketWebsiteConfiguration(String indexDocumentSuffix)
indexDocumentSuffix
- The document to serve when a directory is specified (ex: index.html). This path is relative to the requested resource.public BucketWebsiteConfiguration(String indexDocumentSuffix, String errorDocument)
indexDocumentSuffix
- The document to serve when a directory is specified (ex: index.html). This path is relative to the requested resource.errorDocument
- The complete path to the document to serve for 4xx errors.public String getIndexDocumentSuffix()
public void setIndexDocumentSuffix(String indexDocumentSuffix)
indexDocumentSuffix
- The document to serve when a directory is specified (ex: index.html). This path is relative to the requested resource.public String getErrorDocument()
public void setErrorDocument(String errorDocument)
errorDocument
- The complete path to the document to serve for 4xx errors.public RedirectRule getRedirectAllRequestsTo()
public void setRedirectAllRequestsTo(RedirectRule redirectAllRequestsTo)
redirectAllRequestsTo
- The Redirect information where all requests will be redirect to.public BucketWebsiteConfiguration withRedirectAllRequestsTo(RedirectRule redirectAllRequestsTo)
redirectAllRequestsTo
- The Redirect information where all requests will be redirect to.public List<RoutingRule> getRoutingRules()
public void setRoutingRules(List<RoutingRule> routingRules)
routingRules
- The list of routing rules that can be used for configuring redirects.public BucketWebsiteConfiguration withRoutingRules(List<RoutingRule> routingRules)
routingRules
- The list of routing rules that can be used for configuring redirects.Copyright © 2010–2017. All rights reserved.