@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsElbLbCookieStickinessPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a stickiness policy that was created using CreateLBCookieStickinessPolicy
.
Constructor and Description |
---|
AwsElbLbCookieStickinessPolicy() |
Modifier and Type | Method and Description |
---|---|
AwsElbLbCookieStickinessPolicy |
clone() |
boolean |
equals(Object obj) |
Long |
getCookieExpirationPeriod()
The amount of time, in seconds, after which the cookie is considered stale.
|
String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCookieExpirationPeriod(Long cookieExpirationPeriod)
The amount of time, in seconds, after which the cookie is considered stale.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
String |
toString()
Returns a string representation of this object.
|
AwsElbLbCookieStickinessPolicy |
withCookieExpirationPeriod(Long cookieExpirationPeriod)
The amount of time, in seconds, after which the cookie is considered stale.
|
AwsElbLbCookieStickinessPolicy |
withPolicyName(String policyName)
The name of the policy.
|
public void setCookieExpirationPeriod(Long cookieExpirationPeriod)
The amount of time, in seconds, after which the cookie is considered stale. If an expiration period is not specified, the stickiness session lasts for the duration of the browser session.
cookieExpirationPeriod
- The amount of time, in seconds, after which the cookie is considered stale. If an expiration period is not
specified, the stickiness session lasts for the duration of the browser session.public Long getCookieExpirationPeriod()
The amount of time, in seconds, after which the cookie is considered stale. If an expiration period is not specified, the stickiness session lasts for the duration of the browser session.
public AwsElbLbCookieStickinessPolicy withCookieExpirationPeriod(Long cookieExpirationPeriod)
The amount of time, in seconds, after which the cookie is considered stale. If an expiration period is not specified, the stickiness session lasts for the duration of the browser session.
cookieExpirationPeriod
- The amount of time, in seconds, after which the cookie is considered stale. If an expiration period is not
specified, the stickiness session lasts for the duration of the browser session.public void setPolicyName(String policyName)
The name of the policy. The name must be unique within the set of policies for the load balancer.
policyName
- The name of the policy. The name must be unique within the set of policies for the load balancer.public String getPolicyName()
The name of the policy. The name must be unique within the set of policies for the load balancer.
public AwsElbLbCookieStickinessPolicy withPolicyName(String policyName)
The name of the policy. The name must be unique within the set of policies for the load balancer.
policyName
- The name of the policy. The name must be unique within the set of policies for the load balancer.public String toString()
toString
in class Object
Object.toString()
public AwsElbLbCookieStickinessPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.