|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elasticloadbalancing.model.LBCookieStickinessPolicy
public class LBCookieStickinessPolicy
The LBCookieStickinessPolicy data type.
Constructor Summary | |
---|---|
LBCookieStickinessPolicy()
Default constructor for a new LBCookieStickinessPolicy object. |
|
LBCookieStickinessPolicy(String policyName,
Long cookieExpirationPeriod)
Constructs a new LBCookieStickinessPolicy object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Long |
getCookieExpirationPeriod()
The time period in seconds after which the cookie should be considered stale. |
String |
getPolicyName()
The name for the policy being created. |
int |
hashCode()
|
void |
setCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period in seconds after which the cookie should be considered stale. |
void |
setPolicyName(String policyName)
The name for the policy being created. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LBCookieStickinessPolicy |
withCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period in seconds after which the cookie should be considered stale. |
LBCookieStickinessPolicy |
withPolicyName(String policyName)
The name for the policy being created. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LBCookieStickinessPolicy()
public LBCookieStickinessPolicy(String policyName, 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.Method Detail |
---|
public String getPolicyName()
public void setPolicyName(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(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 Long getCookieExpirationPeriod()
public void setCookieExpirationPeriod(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(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |