com.amazonaws.services.elasticloadbalancing.model

## クラス LBCookieStickinessPolicy

- java.lang.Object
- - com.amazonaws.services.elasticloadbalancing.model.LBCookieStickinessPolicy

- すべての実装されたインタフェース:
    java.io.Serializable

      public class LBCookieStickinessPolicy
      extends java.lang.Object
      implements java.io.Serializable

  The LBCookieStickinessPolicy data type.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `LBCookieStickinessPolicy()` Default constructor for a new LBCookieStickinessPolicy object.
    `LBCookieStickinessPolicy(java.lang.String policyName, java.lang.Long cookieExpirationPeriod)` Constructs a new LBCookieStickinessPolicy object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Long` | `getCookieExpirationPeriod()` The time period in seconds after which the cookie should be considered stale.
    `java.lang.String` | `getPolicyName()` The name for the policy being created.
    `int` | `hashCode()`
    `void` | `setCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)` The time period in seconds after which the cookie should be considered stale.
    `void` | `setPolicyName(java.lang.String policyName)` The name for the policy being created.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `LBCookieStickinessPolicy` | `withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)` The time period in seconds after which the cookie should be considered stale.
    `LBCookieStickinessPolicy` | `withPolicyName(java.lang.String policyName)` The name for the policy being created.

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

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

    - #### LBCookieStickinessPolicy

          public LBCookieStickinessPolicy()

      Default constructor for a new LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### LBCookieStickinessPolicy

          public LBCookieStickinessPolicy(java.lang.String policyName,
                                  java.lang.Long cookieExpirationPeriod)

      Constructs a new LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `policyName` - The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.
        `cookieExpirationPeriod` - The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.

  - ### メソッドの詳細

    - #### getPolicyName

          public java.lang.String getPolicyName()

      The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.
      戻り値:
        The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

    - #### setPolicyName

          public void setPolicyName(java.lang.String policyName)

      The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.
      パラメータ:
        `policyName` - The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

    - #### withPolicyName

          public LBCookieStickinessPolicy withPolicyName(java.lang.String policyName)

      The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `policyName` - The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

    - #### getCookieExpirationPeriod

          public java.lang.Long getCookieExpirationPeriod()

      The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.
      戻り値:
        The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.

    - #### setCookieExpirationPeriod

          public void setCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)

      The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.
      パラメータ:
        `cookieExpirationPeriod` - The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.

    - #### withCookieExpirationPeriod

          public LBCookieStickinessPolicy withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)

      The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `cookieExpirationPeriod` - The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the stickiness session will last for the duration of the browser session.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`