Package com.amazonaws.services.s3.model
Class RoutingRuleCondition
java.lang.Object
com.amazonaws.services.s3.model.RoutingRuleCondition
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the HTTP error code when the redirect is applied.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.withHttpErrorCodeReturnedEquals
(String httpErrorCodeReturnedEquals) Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.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.
-
Constructor Details
-
RoutingRuleCondition
public RoutingRuleCondition()
-
-
Method Details
-
setKeyPrefixEquals
Set the object key name prefix when the redirect is applied. -
getKeyPrefixEquals
Return the object key name prefix when the redirect is applied. -
withKeyPrefixEquals
Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining. -
setHttpErrorCodeReturnedEquals
Set the HTTP error code when the redirect is applied. -
getHttpErrorCodeReturnedEquals
Return the HTTP error code when the redirect is applied. -
withHttpErrorCodeReturnedEquals
Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
-