public class LBCookieStickinessPolicy
extends java.lang.Object
implements java.io.Serializable
The LBCookieStickinessPolicy data type.
| コンストラクタと説明 |
|---|
LBCookieStickinessPolicy()
Default constructor for a new LBCookieStickinessPolicy object.
|
LBCookieStickinessPolicy(java.lang.String policyName,
java.lang.Long cookieExpirationPeriod)
Constructs a new LBCookieStickinessPolicy object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCookieExpirationPeriod()
The time period in seconds after which the cookie should be considered
stale.
|
java.lang.String |
getPolicyName()
The name for the policy being created.
|
int |
hashCode() |
void |
setCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
The time period in seconds after which the cookie should be considered
stale.
|
void |
setPolicyName(java.lang.String policyName)
The name for the policy being created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LBCookieStickinessPolicy |
withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
The time period in seconds after which the cookie should be considered
stale.
|
LBCookieStickinessPolicy |
withPolicyName(java.lang.String policyName)
The name for the policy being created.
|
public LBCookieStickinessPolicy()
public LBCookieStickinessPolicy(java.lang.String policyName,
java.lang.Long cookieExpirationPeriod)
policyName - The name for the policy being created. The name must
be unique within the set of policies for this LoadBalancer.cookieExpirationPeriod - The time period in seconds after which
the cookie should be considered stale. Not specifying this parameter
indicates that the stickiness session will last for the duration of
the browser session.public java.lang.String getPolicyName()
public void setPolicyName(java.lang.String policyName)
policyName - The name for the policy being created. The name must be unique within
the set of policies for this LoadBalancer.public LBCookieStickinessPolicy withPolicyName(java.lang.String policyName)
Returns a reference to this object so that method calls can be chained together.
policyName - The name for the policy being created. The name must be unique within
the set of policies for this LoadBalancer.public java.lang.Long getCookieExpirationPeriod()
public void setCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
cookieExpirationPeriod - The time period in seconds after which the cookie should be considered
stale. Not specifying this parameter indicates that the stickiness
session will last for the duration of the browser session.public LBCookieStickinessPolicy withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
Returns a reference to this object so that method calls can be chained together.
cookieExpirationPeriod - The time period in seconds after which the cookie should be considered
stale. Not specifying this parameter indicates that the stickiness
session will last for the duration of the browser session.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