public class CreateAppCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements Serializable
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 .
NOOP
Constructor and Description |
---|
CreateAppCookieStickinessPolicyRequest()
Default constructor for a new CreateAppCookieStickinessPolicyRequest object.
|
CreateAppCookieStickinessPolicyRequest(String loadBalancerName,
String policyName,
String cookieName)
Constructs a new CreateAppCookieStickinessPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCookieName()
Name of the application cookie used for stickiness.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
String |
getPolicyName()
The name of the policy being created.
|
int |
hashCode() |
void |
setCookieName(String cookieName)
Name of the application cookie used for stickiness.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setPolicyName(String policyName)
The name of the policy being created.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAppCookieStickinessPolicyRequest |
withCookieName(String cookieName)
Name of the application cookie used for stickiness.
|
CreateAppCookieStickinessPolicyRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
CreateAppCookieStickinessPolicyRequest |
withPolicyName(String policyName)
The name of the policy being created.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateAppCookieStickinessPolicyRequest()
public CreateAppCookieStickinessPolicyRequest(String loadBalancerName, String policyName, String cookieName)
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.public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name of the load balancer.public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.public String getPolicyName()
public void setPolicyName(String policyName)
policyName
- The name of the policy being created. The name must be unique within
the set of policies for this load balancer.public CreateAppCookieStickinessPolicyRequest withPolicyName(String policyName)
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 load balancer.public String getCookieName()
public void setCookieName(String cookieName)
cookieName
- Name of the application cookie used for stickiness.public CreateAppCookieStickinessPolicyRequest withCookieName(String cookieName)
Returns a reference to this object so that method calls can be chained together.
cookieName
- Name of the application cookie used for stickiness.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.