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 CreateLoadBalancerPolicyRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getLoadBalancerName()
The name of the load balancer.List<PolicyAttribute>
getPolicyAttributes()
The attributes for the policy.String
getPolicyName()
The name of the load balancer policy to be created.String
getPolicyTypeName()
The name of the base policy type.int
hashCode()
void
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.void
setPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.void
setPolicyName(String policyName)
The name of the load balancer policy to be created.void
setPolicyTypeName(String policyTypeName)
The name of the base policy type.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateLoadBalancerPolicyRequest
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.CreateLoadBalancerPolicyRequest
withPolicyAttributes(PolicyAttribute... policyAttributes)
The attributes for the policy.CreateLoadBalancerPolicyRequest
withPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.CreateLoadBalancerPolicyRequest
withPolicyName(String policyName)
The name of the load balancer policy to be created.CreateLoadBalancerPolicyRequest
withPolicyTypeName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateLoadBalancerPolicyRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-