com.amazonaws.services.elasticloadbalancing.model
Class CreateAppCookieStickinessPolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.CreateAppCookieStickinessPolicyRequest
All Implemented Interfaces:
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 load balancer 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.

For more information, see Enabling Application-Controlled Session Stickiness in the Elastic Load Balancing Developer Guide .

See Also:
AmazonElasticLoadBalancing.createAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest), Serialized Form

Constructor Summary
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.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCookieName()
          Name of the application cookie used for stickiness.
 java.lang.String getLoadBalancerName()
          The name of the load balancer.
 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 of the load balancer.
 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 of the load balancer.
 CreateAppCookieStickinessPolicyRequest withPolicyName(java.lang.String policyName)
          The name of the policy being created.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Parameters:
loadBalancerName - The name of the load balancer.
policyName - The name of the policy being created. The name must be unique within the set of policies for this load balancer.
cookieName - Name of the application cookie used for stickiness.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name of the load balancer.

Returns:
The name of the load balancer.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.

Parameters:
loadBalancerName - The name of the load balancer.

withLoadBalancerName

public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.

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

Parameters:
loadBalancerName - The name of the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

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 load balancer.

Returns:
The name of the policy being created. The name must be unique within the set of policies for this load balancer.

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 load balancer.

Parameters:
policyName - The name of the policy being created. The name must be unique within the set of policies for this load balancer.

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 load balancer.

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

Parameters:
policyName - The name of the policy being created. The name must be unique within the set of policies for this load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getCookieName

public java.lang.String getCookieName()
Name of the application cookie used for stickiness.

Returns:
Name of the application cookie used for stickiness.

setCookieName

public void setCookieName(java.lang.String cookieName)
Name of the application cookie used for stickiness.

Parameters:
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.

Parameters:
cookieName - Name of the application cookie used for stickiness.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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