com.amazonaws.services.elasticloadbalancing.model
Class AppCookieStickinessPolicy

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.AppCookieStickinessPolicy
All Implemented Interfaces:
java.io.Serializable

public class AppCookieStickinessPolicy
extends java.lang.Object
implements java.io.Serializable

The AppCookieStickinessPolicy data type.

See Also:
Serialized Form

Constructor Summary
AppCookieStickinessPolicy()
          Default constructor for a new AppCookieStickinessPolicy object.
AppCookieStickinessPolicy(java.lang.String policyName, java.lang.String cookieName)
          Constructs a new AppCookieStickinessPolicy object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCookieName()
          The name of the application cookie used for stickiness.
 java.lang.String getPolicyName()
          The mnemonic name for the policy being created.
 int hashCode()
           
 void setCookieName(java.lang.String cookieName)
          The name of the application cookie used for stickiness.
 void setPolicyName(java.lang.String policyName)
          The mnemonic name for the policy being created.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AppCookieStickinessPolicy withCookieName(java.lang.String cookieName)
          The name of the application cookie used for stickiness.
 AppCookieStickinessPolicy withPolicyName(java.lang.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(java.lang.String policyName,
                                 java.lang.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 load balancer.
cookieName - The name of the application cookie used for stickiness.
Method Detail

getPolicyName

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

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

setPolicyName

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

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

withPolicyName

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

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

getCookieName

public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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