public class CreateAppCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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, AWSELB
,
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.
For more information, see 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 |
---|---|
CreateAppCookieStickinessPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCookieName()
The 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)
The 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)
The 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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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. Policy names
must consist of alphanumeric characters and dashes (-). This name must
be unique within the set of policies for this load balancer.cookieName
- The 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. Policy names must consist of
alphanumeric characters and dashes (-). This 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. Policy names must consist of
alphanumeric characters and dashes (-). This name must be unique
within the set of policies for this load balancer.public String getCookieName()
public void setCookieName(String cookieName)
cookieName
- The 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
- The name of the application cookie used for stickiness.public String toString()
toString
in class Object
Object.toString()
public CreateAppCookieStickinessPolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.