public class CreateLBCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
cookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered
stale.
|
private java.lang.String |
loadBalancerName
The name of the load balancer.
|
private java.lang.String |
policyName
The name of the policy being created.
|
NOOP
Constructor and Description |
---|
CreateLBCookieStickinessPolicyRequest()
Default constructor for CreateLBCookieStickinessPolicyRequest object.
|
CreateLBCookieStickinessPolicyRequest(java.lang.String loadBalancerName,
java.lang.String policyName)
Constructs a new CreateLBCookieStickinessPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateLBCookieStickinessPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered
stale.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.lang.String |
getPolicyName()
The name of the policy being created.
|
int |
hashCode() |
void |
setCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered
stale.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setPolicyName(java.lang.String policyName)
The name of the policy being created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLBCookieStickinessPolicyRequest |
withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered
stale.
|
CreateLBCookieStickinessPolicyRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
CreateLBCookieStickinessPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the policy being created.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String loadBalancerName
The name of the load balancer.
private java.lang.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.
private java.lang.Long cookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the sticky session lasts for the duration of the browser session.
public CreateLBCookieStickinessPolicyRequest()
public CreateLBCookieStickinessPolicyRequest(java.lang.String loadBalancerName, java.lang.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(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public java.lang.String getLoadBalancerName()
The name of the load balancer.
public CreateLBCookieStickinessPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public void setPolicyName(java.lang.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 java.lang.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(java.lang.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(java.lang.Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the sticky session lasts 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 sticky
session lasts for the duration of the browser session.public java.lang.Long getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the sticky session lasts for the duration of the browser session.
public CreateLBCookieStickinessPolicyRequest withCookieExpirationPeriod(java.lang.Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the sticky session lasts 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 sticky
session lasts for the duration of the browser session.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateLBCookieStickinessPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()