Class CreateLoadBalancerPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticloadbalancing.model.CreateLoadBalancerPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateLoadBalancerPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateLoadBalancerPolicyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLoadBalancerPolicyRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetLoadBalancerName()The name of the load balancer.List<PolicyAttribute>getPolicyAttributes()The attributes for the policy.StringgetPolicyName()The name of the load balancer policy to be created.StringgetPolicyTypeName()The name of the base policy type.inthashCode()voidsetLoadBalancerName(String loadBalancerName)The name of the load balancer.voidsetPolicyAttributes(Collection<PolicyAttribute> policyAttributes)The attributes for the policy.voidsetPolicyName(String policyName)The name of the load balancer policy to be created.voidsetPolicyTypeName(String policyTypeName)The name of the base policy type.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateLoadBalancerPolicyRequestwithLoadBalancerName(String loadBalancerName)The name of the load balancer.CreateLoadBalancerPolicyRequestwithPolicyAttributes(PolicyAttribute... policyAttributes)The attributes for the policy.CreateLoadBalancerPolicyRequestwithPolicyAttributes(Collection<PolicyAttribute> policyAttributes)The attributes for the policy.CreateLoadBalancerPolicyRequestwithPolicyName(String policyName)The name of the load balancer policy to be created.CreateLoadBalancerPolicyRequestwithPolicyTypeName(String policyTypeName)The name of the base policy type.-
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
-
-
-
-
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 CreateLoadBalancerPolicyRequest 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 load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
- Parameters:
policyName- The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
-
getPolicyName
public String getPolicyName()
The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
- Returns:
- The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
-
withPolicyName
public CreateLoadBalancerPolicyRequest withPolicyName(String policyName)
The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
- Parameters:
policyName- The name of the load balancer policy to be created. 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.
-
setPolicyTypeName
public void setPolicyTypeName(String policyTypeName)
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- Parameters:
policyTypeName- The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
-
getPolicyTypeName
public String getPolicyTypeName()
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- Returns:
- The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
-
withPolicyTypeName
public CreateLoadBalancerPolicyRequest withPolicyTypeName(String policyTypeName)
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- Parameters:
policyTypeName- The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPolicyAttributes
public List<PolicyAttribute> getPolicyAttributes()
The attributes for the policy.
- Returns:
- The attributes for the policy.
-
setPolicyAttributes
public void setPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
- Parameters:
policyAttributes- The attributes for the policy.
-
withPolicyAttributes
public CreateLoadBalancerPolicyRequest withPolicyAttributes(PolicyAttribute... policyAttributes)
The attributes for the policy.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyAttributes(java.util.Collection)orwithPolicyAttributes(java.util.Collection)if you want to override the existing values.- Parameters:
policyAttributes- The attributes for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyAttributes
public CreateLoadBalancerPolicyRequest withPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
- Parameters:
policyAttributes- The attributes for the policy.- 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 CreateLoadBalancerPolicyRequest 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()
-
-