@Generated(value="software.amazon.awssdk:codegen") public final class WebsiteConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WebsiteConfiguration.Builder,WebsiteConfiguration>
Specifies website configuration parameters for an Amazon S3 bucket.
Modifier and Type | Class and Description |
---|---|
static interface |
WebsiteConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static WebsiteConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorDocument |
errorDocument()
The name of the error document for the website.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRoutingRules()
Returns true if the RoutingRules property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
IndexDocument |
indexDocument()
The name of the index document for the website.
|
RedirectAllRequestsTo |
redirectAllRequestsTo()
The redirect behavior for every request to this bucket's website endpoint.
|
List<RoutingRule> |
routingRules()
Rules that define when a redirect is applied and the redirect behavior.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WebsiteConfiguration.Builder> |
serializableBuilderClass() |
WebsiteConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final ErrorDocument errorDocument()
The name of the error document for the website.
public final IndexDocument indexDocument()
The name of the index document for the website.
public final RedirectAllRequestsTo 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.
If you specify this property, you can't specify any other property.
public final boolean hasRoutingRules()
public final List<RoutingRule> routingRules()
Rules that define when a redirect is applied and the redirect behavior.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRoutingRules()
to see if a value was sent in this field.
public WebsiteConfiguration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<WebsiteConfiguration.Builder,WebsiteConfiguration>
public static WebsiteConfiguration.Builder builder()
public static Class<? extends WebsiteConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.