@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LBCookieStickinessPolicy extends Object implements Serializable, Cloneable
Information about a policy for duration-based session stickiness.
Constructor and Description |
---|
LBCookieStickinessPolicy()
Default constructor for LBCookieStickinessPolicy object.
|
LBCookieStickinessPolicy(String policyName,
Long cookieExpirationPeriod)
Constructs a new LBCookieStickinessPolicy object.
|
Modifier and Type | Method and Description |
---|---|
LBCookieStickinessPolicy |
clone() |
boolean |
equals(Object obj) |
Long |
getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale.
|
String |
getPolicyName()
The name of the policy.
|
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 of the policy.
|
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 of the policy.
|
public LBCookieStickinessPolicy()
public LBCookieStickinessPolicy(String policyName, Long cookieExpirationPeriod)
policyName
- The name of the policy. This name must be unique within the set of policies for this load balancer.cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not
specified, the stickiness session lasts for the duration of the browser session.public void setPolicyName(String policyName)
The name of the policy. This name must be unique within the set of policies for this load balancer.
policyName
- The name of the policy. This name must be unique within the set of policies for this load balancer.public String getPolicyName()
The name of the policy. This name must be unique within the set of policies for this load balancer.
public LBCookieStickinessPolicy withPolicyName(String policyName)
The name of the policy. This name must be unique within the set of policies for this load balancer.
policyName
- The name of the policy. This name must be unique within the set of policies for this load balancer.public void setCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not
specified, the stickiness session lasts for the duration of the browser session.public Long getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
public LBCookieStickinessPolicy withCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not
specified, the stickiness session lasts for the duration of the browser session.public String toString()
toString
in class Object
Object.toString()
public LBCookieStickinessPolicy clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.