@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect extends Object implements Serializable, Cloneable, StructuredPojo
The rules to redirect the request if the condition in Condition
is met.
Constructor and Description |
---|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
clone() |
boolean |
equals(Object obj) |
String |
getHostname()
The host name to use in the redirect request.
|
String |
getHttpRedirectCode()
The HTTP redirect code to use in the response.
|
String |
getProtocol()
The protocol to use to redirect the request.
|
String |
getReplaceKeyPrefixWith()
The object key prefix to use in the redirect request.
|
String |
getReplaceKeyWith()
The specific object key to use in the redirect request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHostname(String hostname)
The host name to use in the redirect request.
|
void |
setHttpRedirectCode(String httpRedirectCode)
The HTTP redirect code to use in the response.
|
void |
setProtocol(String protocol)
The protocol to use to redirect the request.
|
void |
setReplaceKeyPrefixWith(String replaceKeyPrefixWith)
The object key prefix to use in the redirect request.
|
void |
setReplaceKeyWith(String replaceKeyWith)
The specific object key to use in the redirect request.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
withHostname(String hostname)
The host name to use in the redirect request.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
withHttpRedirectCode(String httpRedirectCode)
The HTTP redirect code to use in the response.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
withProtocol(String protocol)
The protocol to use to redirect the request.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
withReplaceKeyPrefixWith(String replaceKeyPrefixWith)
The object key prefix to use in the redirect request.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
withReplaceKeyWith(String replaceKeyWith)
The specific object key to use in the redirect request.
|
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect()
public void setHostname(String hostname)
The host name to use in the redirect request.
hostname
- The host name to use in the redirect request.public String getHostname()
The host name to use in the redirect request.
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect withHostname(String hostname)
The host name to use in the redirect request.
hostname
- The host name to use in the redirect request.public void setHttpRedirectCode(String httpRedirectCode)
The HTTP redirect code to use in the response.
httpRedirectCode
- The HTTP redirect code to use in the response.public String getHttpRedirectCode()
The HTTP redirect code to use in the response.
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect withHttpRedirectCode(String httpRedirectCode)
The HTTP redirect code to use in the response.
httpRedirectCode
- The HTTP redirect code to use in the response.public void setProtocol(String protocol)
The protocol to use to redirect the request. By default, uses the protocol from the original request.
protocol
- The protocol to use to redirect the request. By default, uses the protocol from the original request.public String getProtocol()
The protocol to use to redirect the request. By default, uses the protocol from the original request.
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect withProtocol(String protocol)
The protocol to use to redirect the request. By default, uses the protocol from the original request.
protocol
- The protocol to use to redirect the request. By default, uses the protocol from the original request.public void setReplaceKeyPrefixWith(String replaceKeyPrefixWith)
The object key prefix to use in the redirect request.
Cannot be provided if ReplaceKeyWith
is present.
replaceKeyPrefixWith
- The object key prefix to use in the redirect request.
Cannot be provided if ReplaceKeyWith
is present.
public String getReplaceKeyPrefixWith()
The object key prefix to use in the redirect request.
Cannot be provided if ReplaceKeyWith
is present.
Cannot be provided if ReplaceKeyWith
is present.
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect withReplaceKeyPrefixWith(String replaceKeyPrefixWith)
The object key prefix to use in the redirect request.
Cannot be provided if ReplaceKeyWith
is present.
replaceKeyPrefixWith
- The object key prefix to use in the redirect request.
Cannot be provided if ReplaceKeyWith
is present.
public void setReplaceKeyWith(String replaceKeyWith)
The specific object key to use in the redirect request.
Cannot be provided if ReplaceKeyPrefixWith
is present.
replaceKeyWith
- The specific object key to use in the redirect request.
Cannot be provided if ReplaceKeyPrefixWith
is present.
public String getReplaceKeyWith()
The specific object key to use in the redirect request.
Cannot be provided if ReplaceKeyPrefixWith
is present.
Cannot be provided if ReplaceKeyPrefixWith
is present.
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect withReplaceKeyWith(String replaceKeyWith)
The specific object key to use in the redirect request.
Cannot be provided if ReplaceKeyPrefixWith
is present.
replaceKeyWith
- The specific object key to use in the redirect request.
Cannot be provided if ReplaceKeyPrefixWith
is present.
public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.