@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AppCookieStickinessPolicy extends Object implements Serializable, Cloneable
Information about a policy for application-controlled session stickiness.
Constructor and Description |
---|
AppCookieStickinessPolicy()
Default constructor for AppCookieStickinessPolicy object.
|
AppCookieStickinessPolicy(String policyName,
String cookieName)
Constructs a new AppCookieStickinessPolicy object.
|
Modifier and Type | Method and Description |
---|---|
AppCookieStickinessPolicy |
clone() |
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
load balancer.cookieName
- The name of the application cookie used for stickiness.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 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 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(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(String cookieName)
The name of the application cookie used for stickiness.
cookieName
- The name of the application cookie used for stickiness.public String getCookieName()
The name of the application cookie used for stickiness.
public AppCookieStickinessPolicy withCookieName(String cookieName)
The name of the application cookie used for stickiness.
cookieName
- The name of the application cookie used for stickiness.public String toString()
toString
in class Object
Object.toString()
public AppCookieStickinessPolicy clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.