com.amazonaws.services.elasticloadbalancing.model
Class AppCookieStickinessPolicy

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

public class AppCookieStickinessPolicy
extends Object

The AppCookieStickinessPolicy data type.


Constructor Summary
AppCookieStickinessPolicy()
          Default constructor for a new AppCookieStickinessPolicy object.
AppCookieStickinessPolicy(String policyName, String cookieName)
          Constructs a new AppCookieStickinessPolicy object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCookieName()
          The name of the application cookie used for stickiness.
 String getPolicyName()
          The mnemonic name for the policy being created.
 int hashCode()
           
 void setCookieName(String cookieName)
          The name of the application cookie used for stickiness.
 void setPolicyName(String policyName)
          The mnemonic name for the policy being created.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AppCookieStickinessPolicy withCookieName(String cookieName)
          The name of the application cookie used for stickiness.
 AppCookieStickinessPolicy withPolicyName(String policyName)
          The mnemonic name for the policy being created.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppCookieStickinessPolicy

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


AppCookieStickinessPolicy

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

Parameters:
policyName - The mnemonic name for the policy being created. The name must be unique within a set of policies for this LoadBalancer.
cookieName - The name of the application cookie used for stickiness.
Method Detail

getPolicyName

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

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

setPolicyName

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

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

withPolicyName

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

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

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

getCookieName

public String getCookieName()
The name of the application cookie used for stickiness.

Returns:
The name of the application cookie used for stickiness.

setCookieName

public void setCookieName(String cookieName)
The name of the application cookie used for stickiness.

Parameters:
cookieName - The name of the application cookie used for stickiness.

withCookieName

public AppCookieStickinessPolicy withCookieName(String cookieName)
The name of the application cookie used for stickiness.

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

Parameters:
cookieName - The name of the application cookie used for stickiness.
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.