com.amazonaws.services.s3.model
Class RoutingRuleCondition

java.lang.Object
  extended by com.amazonaws.services.s3.model.RoutingRuleCondition

public class RoutingRuleCondition
extends java.lang.Object

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.


Constructor Summary
RoutingRuleCondition()
           
 
Method Summary
 java.lang.String getHttpErrorCodeReturnedEquals()
          Return the HTTP error code when the redirect is applied.
 java.lang.String getKeyPrefixEquals()
          Return the object key name prefix when the redirect is applied.
 void setHttpErrorCodeReturnedEquals(java.lang.String httpErrorCodeReturnedEquals)
          Set the HTTP error code when the redirect is applied.
 void setKeyPrefixEquals(java.lang.String keyPrefixEquals)
          Set the object key name prefix when the redirect is applied.
 RoutingRuleCondition withHttpErrorCodeReturnedEquals(java.lang.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(java.lang.String keyPrefixEquals)
          Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingRuleCondition

public RoutingRuleCondition()
Method Detail

setKeyPrefixEquals

public void setKeyPrefixEquals(java.lang.String keyPrefixEquals)
Set the object key name prefix when the redirect is applied.


getKeyPrefixEquals

public java.lang.String getKeyPrefixEquals()
Return the object key name prefix when the redirect is applied.


withKeyPrefixEquals

public RoutingRuleCondition withKeyPrefixEquals(java.lang.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(java.lang.String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied.


getHttpErrorCodeReturnedEquals

public java.lang.String getHttpErrorCodeReturnedEquals()
Return the HTTP error code when the redirect is applied.


withHttpErrorCodeReturnedEquals

public RoutingRuleCondition withHttpErrorCodeReturnedEquals(java.lang.String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.