public class AppCookieStickinessPolicy
extends java.lang.Object
implements java.io.Serializable
Information about a policy for application-controlled session stickiness.
Constructor and Description |
---|
AppCookieStickinessPolicy()
Default constructor for AppCookieStickinessPolicy object.
|
AppCookieStickinessPolicy(java.lang.String policyName,
java.lang.String cookieName)
Constructs a new AppCookieStickinessPolicy object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AppCookieStickinessPolicy()
public AppCookieStickinessPolicy(java.lang.String policyName, java.lang.String cookieName)
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.
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.
The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
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.
policyName
- The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
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.
policyName
- The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
public java.lang.String getCookieName()
The name of the application cookie used for stickiness.
The name of the application cookie used for stickiness.
public void setCookieName(java.lang.String cookieName)
The name of the application cookie used for stickiness.
cookieName
- The name of the application cookie used for stickiness.
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.
cookieName
- The name of the application cookie used for stickiness.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.