public class AppCookieStickinessPolicy
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a policy for application-controlled session stickiness.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cookieName
The name of the application cookie used for stickiness.
|
private java.lang.String |
policyName
The mnemonic name for the policy being created.
|
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 |
---|---|
AppCookieStickinessPolicy |
clone() |
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.
|
private 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.
private java.lang.String cookieName
The name of the application cookie used for stickiness.
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 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 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.
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.
policyName
- The mnemonic name for the policy being created. The name must be
unique within a set of policies for this load balancer.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 java.lang.String getCookieName()
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.
cookieName
- The name of the application cookie used for stickiness.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AppCookieStickinessPolicy clone()
clone
in class java.lang.Object