public class CreateAppCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements java.io.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 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.
| コンストラクタと説明 |
|---|
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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic 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.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 クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object