@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketWebsiteConfigurationRoutingRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule for redirecting requests to the website.
Constructor and Description |
---|
AwsS3BucketWebsiteConfigurationRoutingRule() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketWebsiteConfigurationRoutingRule |
clone() |
boolean |
equals(Object obj) |
AwsS3BucketWebsiteConfigurationRoutingRuleCondition |
getCondition()
Provides the condition that must be met in order to apply the routing rule.
|
AwsS3BucketWebsiteConfigurationRoutingRuleRedirect |
getRedirect()
Provides the rules to redirect the request if the condition in
Condition is met. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition condition)
Provides the condition that must be met in order to apply the routing rule.
|
void |
setRedirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect redirect)
Provides the rules to redirect the request if the condition in
Condition is met. |
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketWebsiteConfigurationRoutingRule |
withCondition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition condition)
Provides the condition that must be met in order to apply the routing rule.
|
AwsS3BucketWebsiteConfigurationRoutingRule |
withRedirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect redirect)
Provides the rules to redirect the request if the condition in
Condition is met. |
public AwsS3BucketWebsiteConfigurationRoutingRule()
public void setCondition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition condition)
Provides the condition that must be met in order to apply the routing rule.
condition
- Provides the condition that must be met in order to apply the routing rule.public AwsS3BucketWebsiteConfigurationRoutingRuleCondition getCondition()
Provides the condition that must be met in order to apply the routing rule.
public AwsS3BucketWebsiteConfigurationRoutingRule withCondition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition condition)
Provides the condition that must be met in order to apply the routing rule.
condition
- Provides the condition that must be met in order to apply the routing rule.public void setRedirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect redirect)
Provides the rules to redirect the request if the condition in Condition
is met.
redirect
- Provides the rules to redirect the request if the condition in Condition
is met.public AwsS3BucketWebsiteConfigurationRoutingRuleRedirect getRedirect()
Provides the rules to redirect the request if the condition in Condition
is met.
Condition
is met.public AwsS3BucketWebsiteConfigurationRoutingRule withRedirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect redirect)
Provides the rules to redirect the request if the condition in Condition
is met.
redirect
- Provides the rules to redirect the request if the condition in Condition
is met.public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketWebsiteConfigurationRoutingRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.