com.amazonaws.services.elasticloadbalancing.model
Class LBCookieStickinessPolicy

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.LBCookieStickinessPolicy

public class LBCookieStickinessPolicy
extends Object

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

LBCookieStickinessPolicy

public LBCookieStickinessPolicy()
Default constructor for a new LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


LBCookieStickinessPolicy

public LBCookieStickinessPolicy(String policyName,
                                Long cookieExpirationPeriod)
Constructs a new LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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

getPolicyName

public String getPolicyName()
The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

Returns:
The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

setPolicyName

public void setPolicyName(String policyName)
The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

Parameters:
policyName - The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

withPolicyName

public LBCookieStickinessPolicy withPolicyName(String policyName)
The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.

Returns a reference to this object so that method calls can be chained together.

Parameters:
policyName - The name for the policy being created. The name must be unique within the set of policies for this LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getCookieExpirationPeriod

public Long getCookieExpirationPeriod()
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.

Returns:
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.

setCookieExpirationPeriod

public void setCookieExpirationPeriod(Long 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.

Parameters:
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.

withCookieExpirationPeriod

public LBCookieStickinessPolicy withCookieExpirationPeriod(Long 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.