Class CreateLBCookieStickinessPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticloadbalancing.model.CreateLBCookieStickinessPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateLBCookieStickinessPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateLBCookieStickinessPolicyRequest()Default constructor for CreateLBCookieStickinessPolicyRequest object.CreateLBCookieStickinessPolicyRequest(String loadBalancerName, String policyName)Constructs a new CreateLBCookieStickinessPolicyRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLBCookieStickinessPolicyRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)LonggetCookieExpirationPeriod()The time period, in seconds, after which the cookie should be considered stale.StringgetLoadBalancerName()The name of the load balancer.StringgetPolicyName()The name of the policy being created.inthashCode()voidsetCookieExpirationPeriod(Long cookieExpirationPeriod)The time period, in seconds, after which the cookie should be considered stale.voidsetLoadBalancerName(String loadBalancerName)The name of the load balancer.voidsetPolicyName(String policyName)The name of the policy being created.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateLBCookieStickinessPolicyRequestwithCookieExpirationPeriod(Long cookieExpirationPeriod)The time period, in seconds, after which the cookie should be considered stale.CreateLBCookieStickinessPolicyRequestwithLoadBalancerName(String loadBalancerName)The name of the load balancer.CreateLBCookieStickinessPolicyRequestwithPolicyName(String policyName)The name of the policy being created.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
CreateLBCookieStickinessPolicyRequest
public CreateLBCookieStickinessPolicyRequest()
Default constructor for CreateLBCookieStickinessPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateLBCookieStickinessPolicyRequest
public CreateLBCookieStickinessPolicyRequest(String loadBalancerName, String policyName)
Constructs a new CreateLBCookieStickinessPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setLoadBalancerName
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.
-
getLoadBalancerName
public String getLoadBalancerName()
The name of the load balancer.
- Returns:
- The name of the load balancer.
-
withLoadBalancerName
public CreateLBCookieStickinessPolicyRequest withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyName
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.
- Parameters:
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.
-
getPolicyName
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.
- Returns:
- 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.
-
withPolicyName
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCookieExpirationPeriod
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 sticky session lasts for the duration of the browser session.
- Parameters:
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.
-
getCookieExpirationPeriod
public 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.
- Returns:
- 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.
-
withCookieExpirationPeriod
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 sticky session lasts for the duration of the browser session.
- Parameters:
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.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateLBCookieStickinessPolicyRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-