com.amazonaws.services.elasticloadbalancing.model

## クラス CreateAppCookieStickinessPolicyRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.elasticloadbalancing.model.CreateAppCookieStickinessPolicyRequest

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

      public class CreateAppCookieStickinessPolicyRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateAppCookieStickinessPolicy operation`.

  Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.

  This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie follows the lifetime of the application-generated cookie specified in the policy configuration. The LoadBalancer only inserts a new stickiness cookie when the application response includes a new application cookie.

  If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.

  NOTE: An application client must receive and send two cookies: the application-generated cookie and the special Elastic Load Balancing cookie named AWSELB. This is the default behavior for many common web browsers.

  関連項目:
    `AmazonElasticLoadBalancing.createAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCookieName()` Name of the application cookie used for stickiness.
    `java.lang.String` | `getLoadBalancerName()` The name associated with the LoadBalancer.
    `java.lang.String` | `getPolicyName()` The name of the policy being created.
    `int` | `hashCode()`
    `void` | `setCookieName(java.lang.String cookieName)` Name of the application cookie used for stickiness.
    `void` | `setLoadBalancerName(java.lang.String loadBalancerName)` The name associated with the LoadBalancer.
    `void` | `setPolicyName(java.lang.String policyName)` The name of the policy being created.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateAppCookieStickinessPolicyRequest` | `withCookieName(java.lang.String cookieName)` Name of the application cookie used for stickiness.
    `CreateAppCookieStickinessPolicyRequest` | `withLoadBalancerName(java.lang.String loadBalancerName)` The name associated with the LoadBalancer.
    `CreateAppCookieStickinessPolicyRequest` | `withPolicyName(java.lang.String policyName)` The name of the policy being created.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateAppCookieStickinessPolicyRequest

          public CreateAppCookieStickinessPolicyRequest()

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

    - #### CreateAppCookieStickinessPolicyRequest

          public CreateAppCookieStickinessPolicyRequest(java.lang.String loadBalancerName,
                                                java.lang.String policyName,
                                                java.lang.String cookieName)

      Constructs a new CreateAppCookieStickinessPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `loadBalancerName` - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
        `policyName` - The name of the policy being created. The name must be unique within the set of policies for this LoadBalancer.
        `cookieName` - Name of the application cookie used for stickiness.

  - ### メソッドの詳細

    - #### getLoadBalancerName

          public java.lang.String getLoadBalancerName()

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.
      戻り値:
        The name associated with the LoadBalancer. The name must be unique within the client AWS account.

    - #### setLoadBalancerName

          public void setLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.
      パラメータ:
        `loadBalancerName` - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

    - #### withLoadBalancerName

          public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.

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

      パラメータ:
        `loadBalancerName` - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

    - #### getPolicyName

          public java.lang.String getPolicyName()

      The name of the policy being created. The name must be unique within the set of policies for this LoadBalancer.
      戻り値:
        The name of 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 of the policy being created. The name must be unique within the set of policies for this LoadBalancer.
      パラメータ:
        `policyName` - The name of the policy being created. The name must be unique within the set of policies for this LoadBalancer.

    - #### withPolicyName

          public CreateAppCookieStickinessPolicyRequest withPolicyName(java.lang.String policyName)

      The name of 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 of the policy being created. The name must be unique within the set of policies for this LoadBalancer.

    - #### getCookieName

          public java.lang.String getCookieName()

      Name of the application cookie used for stickiness.
      戻り値:
        Name of the application cookie used for stickiness.

    - #### setCookieName

          public void setCookieName(java.lang.String cookieName)

      Name of the application cookie used for stickiness.
      パラメータ:
        `cookieName` - Name of the application cookie used for stickiness.

    - #### withCookieName

          public CreateAppCookieStickinessPolicyRequest withCookieName(java.lang.String cookieName)

      Name of the application cookie used for stickiness.

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

      パラメータ:
        `cookieName` - Name of the application cookie used for stickiness.

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