public class CreateLoadBalancerPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateLoadBalancerPolicy operation
.
Creates a policy with the specified attributes for the specified load balancer.
Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.
NOOP
Constructor and Description |
---|
CreateLoadBalancerPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLoadBalancerPolicyRequest |
clone() |
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(Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
|
CreateLoadBalancerPolicyRequest |
withPolicyAttributes(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.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name of the load balancer.public CreateLoadBalancerPolicyRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.public String getPolicyName()
public void setPolicyName(String policyName)
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.public CreateLoadBalancerPolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
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.public String getPolicyTypeName()
public void setPolicyTypeName(String policyTypeName)
policyTypeName
- The name of the base policy type. To get the list of policy types, use
DescribeLoadBalancerPolicyTypes.public CreateLoadBalancerPolicyRequest withPolicyTypeName(String policyTypeName)
Returns a reference to this object so that method calls can be chained together.
policyTypeName
- The name of the base policy type. To get the list of policy types, use
DescribeLoadBalancerPolicyTypes.public List<PolicyAttribute> getPolicyAttributes()
public void setPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
policyAttributes
- The attributes for the policy.public CreateLoadBalancerPolicyRequest withPolicyAttributes(PolicyAttribute... policyAttributes)
NOTE: This method appends the values to the existing list (if
any). Use setPolicyAttributes(java.util.Collection)
or withPolicyAttributes(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- The attributes for the policy.public CreateLoadBalancerPolicyRequest withPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- The attributes for the policy.public String toString()
toString
in class Object
Object.toString()
public CreateLoadBalancerPolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.