Package com.amazonaws.services.s3.model
Class RoutingRuleCondition
- java.lang.Object
-
- com.amazonaws.services.s3.model.RoutingRuleCondition
-
- All Implemented Interfaces:
Serializable
public class RoutingRuleCondition extends Object implements Serializable
A container for describing a condition that must be met for the specified redirect to apply. For example if request is for pages in the /docs folder, redirect to the /documents folder or if request results in HTTP error 4xx, redirect request to another host where you might process the error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoutingRuleCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHttpErrorCodeReturnedEquals()
Return the HTTP error code when the redirect is applied.String
getKeyPrefixEquals()
Return the object key name prefix when the redirect is applied.void
setHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied.void
setKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied.RoutingRuleCondition
withHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.RoutingRuleCondition
withKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
-
-
-
Method Detail
-
setKeyPrefixEquals
public void setKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied.
-
getKeyPrefixEquals
public String getKeyPrefixEquals()
Return the object key name prefix when the redirect is applied.
-
withKeyPrefixEquals
public RoutingRuleCondition withKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
-
setHttpErrorCodeReturnedEquals
public void setHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied.
-
getHttpErrorCodeReturnedEquals
public String getHttpErrorCodeReturnedEquals()
Return the HTTP error code when the redirect is applied.
-
withHttpErrorCodeReturnedEquals
public RoutingRuleCondition withHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
-
-