@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLBCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for CreateLBCookieStickinessPolicy.
NOOP
Constructor and Description |
---|
CreateLBCookieStickinessPolicyRequest()
Default constructor for CreateLBCookieStickinessPolicyRequest object.
|
CreateLBCookieStickinessPolicyRequest(String loadBalancerName,
String policyName)
Constructs a new CreateLBCookieStickinessPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateLBCookieStickinessPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
String |
getPolicyName()
The name of the policy being created.
|
int |
hashCode() |
void |
setCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setPolicyName(String policyName)
The name of the policy being created.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateLBCookieStickinessPolicyRequest |
withCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale.
|
CreateLBCookieStickinessPolicyRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
CreateLBCookieStickinessPolicyRequest |
withPolicyName(String policyName)
The name of the policy being created.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateLBCookieStickinessPolicyRequest()
public CreateLBCookieStickinessPolicyRequest(String loadBalancerName, String policyName)
loadBalancerName
- The name of the load balancer.policyName
- The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-).
This name must be unique within the set of policies for this load balancer.public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public String getLoadBalancerName()
The name of the load balancer.
public CreateLBCookieStickinessPolicyRequest withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public void setPolicyName(String policyName)
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
policyName
- The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-).
This name must be unique within the set of policies for this load balancer.public String getPolicyName()
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
public CreateLBCookieStickinessPolicyRequest withPolicyName(String policyName)
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
policyName
- The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-).
This name must be unique within the set of policies for this load balancer.public void setCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If you do not specify this
parameter, the default value is 0, which indicates that the sticky session should last for the duration of
the browser session.public Long getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
public CreateLBCookieStickinessPolicyRequest withCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If you do not specify this
parameter, the default value is 0, which indicates that the sticky session should last for the duration of
the browser session.public String toString()
toString
in class Object
Object.toString()
public CreateLBCookieStickinessPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.