@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketWebsiteConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Website parameters for the S3 bucket.
Constructor and Description |
---|
AwsS3BucketWebsiteConfiguration() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketWebsiteConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getErrorDocument()
The name of the error document for the website.
|
String |
getIndexDocumentSuffix()
The name of the index document for the website.
|
AwsS3BucketWebsiteConfigurationRedirectTo |
getRedirectAllRequestsTo()
The redirect behavior for requests to the website.
|
List<AwsS3BucketWebsiteConfigurationRoutingRule> |
getRoutingRules()
The rules for applying redirects for requests to the website.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorDocument(String errorDocument)
The name of the error document for the website.
|
void |
setIndexDocumentSuffix(String indexDocumentSuffix)
The name of the index document for the website.
|
void |
setRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo)
The redirect behavior for requests to the website.
|
void |
setRoutingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules)
The rules for applying redirects for requests to the website.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketWebsiteConfiguration |
withErrorDocument(String errorDocument)
The name of the error document for the website.
|
AwsS3BucketWebsiteConfiguration |
withIndexDocumentSuffix(String indexDocumentSuffix)
The name of the index document for the website.
|
AwsS3BucketWebsiteConfiguration |
withRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo)
The redirect behavior for requests to the website.
|
AwsS3BucketWebsiteConfiguration |
withRoutingRules(AwsS3BucketWebsiteConfigurationRoutingRule... routingRules)
The rules for applying redirects for requests to the website.
|
AwsS3BucketWebsiteConfiguration |
withRoutingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules)
The rules for applying redirects for requests to the website.
|
public void setErrorDocument(String errorDocument)
The name of the error document for the website.
errorDocument
- The name of the error document for the website.public String getErrorDocument()
The name of the error document for the website.
public AwsS3BucketWebsiteConfiguration withErrorDocument(String errorDocument)
The name of the error document for the website.
errorDocument
- The name of the error document for the website.public void setIndexDocumentSuffix(String indexDocumentSuffix)
The name of the index document for the website.
indexDocumentSuffix
- The name of the index document for the website.public String getIndexDocumentSuffix()
The name of the index document for the website.
public AwsS3BucketWebsiteConfiguration withIndexDocumentSuffix(String indexDocumentSuffix)
The name of the index document for the website.
indexDocumentSuffix
- The name of the index document for the website.public void setRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo)
The redirect behavior for requests to the website.
redirectAllRequestsTo
- The redirect behavior for requests to the website.public AwsS3BucketWebsiteConfigurationRedirectTo getRedirectAllRequestsTo()
The redirect behavior for requests to the website.
public AwsS3BucketWebsiteConfiguration withRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo)
The redirect behavior for requests to the website.
redirectAllRequestsTo
- The redirect behavior for requests to the website.public List<AwsS3BucketWebsiteConfigurationRoutingRule> getRoutingRules()
The rules for applying redirects for requests to the website.
public void setRoutingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules)
The rules for applying redirects for requests to the website.
routingRules
- The rules for applying redirects for requests to the website.public AwsS3BucketWebsiteConfiguration withRoutingRules(AwsS3BucketWebsiteConfigurationRoutingRule... routingRules)
The rules for applying redirects for requests to the website.
NOTE: This method appends the values to the existing list (if any). Use
setRoutingRules(java.util.Collection)
or withRoutingRules(java.util.Collection)
if you want to
override the existing values.
routingRules
- The rules for applying redirects for requests to the website.public AwsS3BucketWebsiteConfiguration withRoutingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules)
The rules for applying redirects for requests to the website.
routingRules
- The rules for applying redirects for requests to the website.public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketWebsiteConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.