@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketWebsiteConfigurationRedirectTo extends Object implements Serializable, Cloneable, StructuredPojo
The redirect behavior for requests to the website.
| Constructor and Description |
|---|
AwsS3BucketWebsiteConfigurationRedirectTo() |
| Modifier and Type | Method and Description |
|---|---|
AwsS3BucketWebsiteConfigurationRedirectTo |
clone() |
boolean |
equals(Object obj) |
String |
getHostname()
The name of the host to redirect requests to.
|
String |
getProtocol()
The protocol to use when redirecting requests.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setHostname(String hostname)
The name of the host to redirect requests to.
|
void |
setProtocol(String protocol)
The protocol to use when redirecting requests.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketWebsiteConfigurationRedirectTo |
withHostname(String hostname)
The name of the host to redirect requests to.
|
AwsS3BucketWebsiteConfigurationRedirectTo |
withProtocol(String protocol)
The protocol to use when redirecting requests.
|
public AwsS3BucketWebsiteConfigurationRedirectTo()
public void setHostname(String hostname)
The name of the host to redirect requests to.
hostname - The name of the host to redirect requests to.public String getHostname()
The name of the host to redirect requests to.
public AwsS3BucketWebsiteConfigurationRedirectTo withHostname(String hostname)
The name of the host to redirect requests to.
hostname - The name of the host to redirect requests to.public void setProtocol(String protocol)
The protocol to use when redirecting requests. By default, this field uses the same protocol as the original
request. Valid values are http or https.
protocol - The protocol to use when redirecting requests. By default, this field uses the same protocol as the
original request. Valid values are http or https.public String getProtocol()
The protocol to use when redirecting requests. By default, this field uses the same protocol as the original
request. Valid values are http or https.
http or https.public AwsS3BucketWebsiteConfigurationRedirectTo withProtocol(String protocol)
The protocol to use when redirecting requests. By default, this field uses the same protocol as the original
request. Valid values are http or https.
protocol - The protocol to use when redirecting requests. By default, this field uses the same protocol as the
original request. Valid values are http or https.public String toString()
toString in class ObjectObject.toString()public AwsS3BucketWebsiteConfigurationRedirectTo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.