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:
  • Constructor Details

    • RoutingRuleCondition

      public RoutingRuleCondition()
  • Method Details

    • 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.