public class AppCookieStickinessPolicy extends Object implements Serializable
The AppCookieStickinessPolicy data type.
Constructor and Description |
---|
AppCookieStickinessPolicy()
Default constructor for a new AppCookieStickinessPolicy object.
|
AppCookieStickinessPolicy(String policyName,
String cookieName)
Constructs a new AppCookieStickinessPolicy object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AppCookieStickinessPolicy()
public AppCookieStickinessPolicy(String policyName, String cookieName)
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.public String getPolicyName()
public void setPolicyName(String policyName)
policyName
- The mnemonic name for the policy being created. The name must be
unique within a set of policies for this LoadBalancer.public AppCookieStickinessPolicy withPolicyName(String policyName)
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 LoadBalancer.public String getCookieName()
public void setCookieName(String cookieName)
cookieName
- The name of the application cookie used for stickiness.public AppCookieStickinessPolicy withCookieName(String cookieName)
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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.