Class AppCookieStickinessPolicy
- java.lang.Object
-
- com.amazonaws.services.elasticloadbalancing.model.AppCookieStickinessPolicy
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AppCookieStickinessPolicy extends Object implements Serializable, Cloneable
Information about a policy for application-controlled session stickiness.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppCookieStickinessPolicy()
Default constructor for AppCookieStickinessPolicy object.AppCookieStickinessPolicy(String policyName, String cookieName)
Constructs a new AppCookieStickinessPolicy object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AppCookieStickinessPolicy
public AppCookieStickinessPolicy()
Default constructor for AppCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
AppCookieStickinessPolicy
public AppCookieStickinessPolicy(String policyName, 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
-
setPolicyName
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.
- Parameters:
policyName
- The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
-
getPolicyName
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.
- Returns:
- 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(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCookieName
public void setCookieName(String cookieName)
The name of the application cookie used for stickiness.
- Parameters:
cookieName
- The name of the application cookie used for stickiness.
-
getCookieName
public String getCookieName()
The name of the application cookie used for stickiness.
- Returns:
- The name of the application cookie used for stickiness.
-
withCookieName
public AppCookieStickinessPolicy withCookieName(String cookieName)
The name of the application cookie used for stickiness.
- Parameters:
cookieName
- The name of the application cookie used for stickiness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AppCookieStickinessPolicy clone()
-
-