public class CreateLoadBalancerPolicyRequest extends AmazonWebServiceRequest implements Serializable
CreateLoadBalancerPolicy operation
.
Creates a new policy that contains the necessary attributes depending on the policy type. 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 your policy type.
Constructor and Description |
---|
CreateLoadBalancerPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name associated with the LoadBalancer for which the policy is
being created.
|
List<PolicyAttribute> |
getPolicyAttributes()
A list of attributes associated with the policy being created.
|
String |
getPolicyName()
The name of the load balancer policy being created.
|
String |
getPolicyTypeName()
The name of the base policy type being used to create this policy.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer for which the policy is
being created.
|
void |
setPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
A list of attributes associated with the policy being created.
|
void |
setPolicyName(String policyName)
The name of the load balancer policy being created.
|
void |
setPolicyTypeName(String policyTypeName)
The name of the base policy type being used to create this policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLoadBalancerPolicyRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer for which the policy is
being created.
|
CreateLoadBalancerPolicyRequest |
withPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
A list of attributes associated with the policy being created.
|
CreateLoadBalancerPolicyRequest |
withPolicyAttributes(PolicyAttribute... policyAttributes)
A list of attributes associated with the policy being created.
|
CreateLoadBalancerPolicyRequest |
withPolicyName(String policyName)
The name of the load balancer policy being created.
|
CreateLoadBalancerPolicyRequest |
withPolicyTypeName(String policyTypeName)
The name of the base policy type being used to create this policy.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer for which the policy is
being created.public CreateLoadBalancerPolicyRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the LoadBalancer for which the policy is
being created.public String getPolicyName()
public void setPolicyName(String policyName)
policyName
- The name of the load balancer policy being created. The 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 being created. The 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 being used to create this policy. To
get the list of policy types, use the
DescribeLoadBalancerPolicyTypes action.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 being used to create this policy. To
get the list of policy types, use the
DescribeLoadBalancerPolicyTypes action.public List<PolicyAttribute> getPolicyAttributes()
public void setPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
policyAttributes
- A list of attributes associated with the policy being created.public CreateLoadBalancerPolicyRequest withPolicyAttributes(PolicyAttribute... policyAttributes)
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- A list of attributes associated with the policy being created.public CreateLoadBalancerPolicyRequest withPolicyAttributes(Collection<PolicyAttribute> policyAttributes)
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- A list of attributes associated with the policy being created.public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.