|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticloadbalancing.model.CreateAppCookieStickinessPolicyRequest
public class CreateAppCookieStickinessPolicyRequest
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.
AmazonElasticLoadBalancing.createAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest)
Constructor Summary | |
---|---|
CreateAppCookieStickinessPolicyRequest()
Default constructor for a new CreateAppCookieStickinessPolicyRequest object. |
|
CreateAppCookieStickinessPolicyRequest(String loadBalancerName,
String policyName,
String cookieName)
Constructs a new CreateAppCookieStickinessPolicyRequest object. |
Method Summary | |
---|---|
String |
getCookieName()
Name of the application cookie used for stickiness. |
String |
getLoadBalancerName()
The name associated with the LoadBalancer. |
String |
getPolicyName()
The name of the policy being created. |
void |
setCookieName(String cookieName)
Name of the application cookie used for stickiness. |
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. |
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 associated with the LoadBalancer. |
CreateAppCookieStickinessPolicyRequest |
withPolicyName(String policyName)
The name of the policy being created. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateAppCookieStickinessPolicyRequest()
public CreateAppCookieStickinessPolicyRequest(String loadBalancerName, String policyName, String cookieName)
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 Load Balancer.cookieName
- Name of the application cookie used for stickiness.Method Detail |
---|
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(String loadBalancerName)
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.
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()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |