Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.s3.model
Class RedirectRule

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

public class RedirectRule
extends java.lang.Object

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.


Constructor Summary
RedirectRule()
           
 
Method Summary
 java.lang.String getHostName()
          Return the host name to use in the redirect request.
 java.lang.String getHttpRedirectCode()
          Return the HTTP code to use in the redirect response.
 java.lang.String getprotocol()
          Return the protocol to use in the redirect request.
 java.lang.String getReplaceKeyPrefixWith()
          Return the object prefix key to use in the redirect request.
 java.lang.String getReplaceKeyWith()
          Return the specific key to use in the redirect request.
 void setHostName(java.lang.String hostName)
          Set the host name to use in the redirect request.
 void setHttpRedirectCode(java.lang.String httpRedirectCode)
          Set the HTTP code to use in the redirect response.
 void setProtocol(java.lang.String protocol)
          Set the protocol to use in the redirect request.
 void setReplaceKeyPrefixWith(java.lang.String replaceKeyPrefixWith)
          Set the object prefix key to use in the redirect request.
 void setReplaceKeyWith(java.lang.String replaceKeyWith)
          Set the specific key to use in the redirect request.
 RedirectRule withHostName(java.lang.String hostName)
          Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
 RedirectRule withHttpRedirectCode(java.lang.String httpRedirectCode)
          Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.
 RedirectRule withProtocol(java.lang.String protocol)
          Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.
 RedirectRule withReplaceKeyPrefixWith(java.lang.String replaceKeyPrefixWith)
          Set the object prefix key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
 RedirectRule withReplaceKeyWith(java.lang.String replaceKeyWith)
          Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectRule

public RedirectRule()
Method Detail

setProtocol

public void setProtocol(java.lang.String protocol)
Set the protocol to use in the redirect request.


getprotocol

public java.lang.String getprotocol()
Return the protocol to use in the redirect request.


withProtocol

public RedirectRule withProtocol(java.lang.String protocol)
Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.


setHostName

public void setHostName(java.lang.String hostName)
Set the host name to use in the redirect request.


getHostName

public java.lang.String getHostName()
Return the host name to use in the redirect request.


withHostName

public RedirectRule withHostName(java.lang.String hostName)
Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.


setReplaceKeyPrefixWith

public void setReplaceKeyPrefixWith(java.lang.String replaceKeyPrefixWith)
Set the object prefix key to use in the redirect request.


getReplaceKeyPrefixWith

public java.lang.String getReplaceKeyPrefixWith()
Return the object prefix key to use in the redirect request.


withReplaceKeyPrefixWith

public RedirectRule withReplaceKeyPrefixWith(java.lang.String replaceKeyPrefixWith)
Set the object prefix key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.


setReplaceKeyWith

public void setReplaceKeyWith(java.lang.String replaceKeyWith)
Set the specific key to use in the redirect request.


getReplaceKeyWith

public java.lang.String getReplaceKeyWith()
Return the specific key to use in the redirect request.


withReplaceKeyWith

public RedirectRule withReplaceKeyWith(java.lang.String replaceKeyWith)
Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.


setHttpRedirectCode

public void setHttpRedirectCode(java.lang.String httpRedirectCode)
Set the HTTP code to use in the redirect response.


getHttpRedirectCode

public java.lang.String getHttpRedirectCode()
Return the HTTP code to use in the redirect response.


withHttpRedirectCode

public RedirectRule withHttpRedirectCode(java.lang.String httpRedirectCode)
Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.



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