com.amazonaws.services.s3.model

## クラス RedirectRule

- java.lang.Object
- - 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.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `RedirectRule()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### RedirectRule

          public RedirectRule()

  - ### メソッドの詳細

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