public class CreateAppCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements Serializable
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 Classic Load Balancers Guide.
Constructor and Description |
---|
CreateAppCookieStickinessPolicyRequest()
Default constructor for 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()
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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. 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()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.
public String getPolicyName()
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.
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 void setPolicyName(String 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.
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)
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.
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()
The name of the application cookie used for stickiness.
The name of the application cookie used for stickiness.
public void setCookieName(String cookieName)
The name of the application cookie used for stickiness.
cookieName
- The name of the application cookie used for stickiness.
public CreateAppCookieStickinessPolicyRequest withCookieName(String cookieName)
The name of the application cookie used for stickiness.
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()
Copyright © 2018. All rights reserved.