Class RedirectRule

java.lang.Object
com.amazonaws.services.s3.model.RedirectRule
All Implemented Interfaces:
Serializable

public class RedirectRule extends Object implements Serializable
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.
See Also:
  • Constructor Details

    • RedirectRule

      public RedirectRule()
  • Method Details

    • setProtocol

      public void setProtocol(String protocol)
      Set the protocol to use in the redirect request.
    • getprotocol

      public String getprotocol()
      Return the protocol to use in the redirect request.
    • withProtocol

      public RedirectRule withProtocol(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(String hostName)
      Set the host name to use in the redirect request.
    • getHostName

      public String getHostName()
      Return the host name to use in the redirect request.
    • withHostName

      public RedirectRule withHostName(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(String replaceKeyPrefixWith)
      Set the object prefix key to use in the redirect request.
    • getReplaceKeyPrefixWith

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

      public RedirectRule withReplaceKeyPrefixWith(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(String replaceKeyWith)
      Set the specific key to use in the redirect request.
    • getReplaceKeyWith

      public String getReplaceKeyWith()
      Return the specific key to use in the redirect request.
    • withReplaceKeyWith

      public RedirectRule withReplaceKeyWith(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(String httpRedirectCode)
      Set the HTTP code to use in the redirect response.
    • getHttpRedirectCode

      public String getHttpRedirectCode()
      Return the HTTP code to use in the redirect response.
    • withHttpRedirectCode

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