|
Did this page help you?Yes No Tell us about it... |
||||||
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 LoadBalancer 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)
,
Serialized FormConstructor 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 associated with the LoadBalancer. |
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 associated with the LoadBalancer. |
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 associated with the LoadBalancer. |
CreateAppCookieStickinessPolicyRequest |
withPolicyName(java.lang.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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateAppCookieStickinessPolicyRequest()
public CreateAppCookieStickinessPolicyRequest(java.lang.String loadBalancerName, java.lang.String policyName, java.lang.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 LoadBalancer.cookieName
- Name of the application cookie used for stickiness.Method Detail |
---|
public java.lang.String getLoadBalancerName()
public void setLoadBalancerName(java.lang.String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public CreateAppCookieStickinessPolicyRequest withLoadBalancerName(java.lang.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 java.lang.String getPolicyName()
public void setPolicyName(java.lang.String policyName)
policyName
- The name of the policy being created. The name must be unique within
the set of policies for this LoadBalancer.public CreateAppCookieStickinessPolicyRequest withPolicyName(java.lang.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 LoadBalancer.public java.lang.String getCookieName()
public void setCookieName(java.lang.String cookieName)
cookieName
- Name of the application cookie used for stickiness.public CreateAppCookieStickinessPolicyRequest withCookieName(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |