public class CreateLoadBalancerPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
CreateLoadBalancerPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.util.List<PolicyAttribute> |
getPolicyAttributes()
The attributes for the policy.
|
java.lang.String |
getPolicyName()
The name of the load balancer policy to be created.
|
java.lang.String |
getPolicyTypeName()
The name of the base policy type.
|
int |
hashCode() |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
|
void |
setPolicyName(java.lang.String policyName)
The name of the load balancer policy to be created.
|
void |
setPolicyTypeName(java.lang.String policyTypeName)
The name of the base policy type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLoadBalancerPolicyRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
CreateLoadBalancerPolicyRequest |
withPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
|
CreateLoadBalancerPolicyRequest |
withPolicyAttributes(PolicyAttribute... policyAttributes)
The attributes for the policy.
|
CreateLoadBalancerPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the load balancer policy to be created.
|
CreateLoadBalancerPolicyRequest |
withPolicyTypeName(java.lang.String policyTypeName)
The name of the base policy type.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public CreateLoadBalancerPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.
public java.lang.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.
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 void setPolicyName(java.lang.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.
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(java.lang.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.
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 java.lang.String getPolicyTypeName()
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
public void setPolicyTypeName(java.lang.String policyTypeName)
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
policyTypeName
- The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
public CreateLoadBalancerPolicyRequest withPolicyTypeName(java.lang.String policyTypeName)
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
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 java.util.List<PolicyAttribute> getPolicyAttributes()
The attributes for the policy.
The attributes for the policy.
public void setPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
policyAttributes
- The attributes for the policy.
public CreateLoadBalancerPolicyRequest withPolicyAttributes(PolicyAttribute... policyAttributes)
The attributes for the policy.
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- The attributes for the policy.
public CreateLoadBalancerPolicyRequest withPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
The attributes for the policy.
Returns a reference to this object so that method calls can be chained together.
policyAttributes
- The attributes for the policy.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.