com.amazonaws.services.elasticloadbalancing.model
Class CreateLoadBalancerPolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.CreateLoadBalancerPolicyRequest
All Implemented Interfaces:
java.io.Serializable

public class CreateLoadBalancerPolicyRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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.

See Also:
AmazonElasticLoadBalancing.createLoadBalancerPolicy(CreateLoadBalancerPolicyRequest), Serialized Form

Constructor Summary
CreateLoadBalancerPolicyRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLoadBalancerName()
          The name associated with the LoadBalancer for which the policy is being created.
 java.util.List<PolicyAttribute> getPolicyAttributes()
          A list of attributes associated with the policy being created.
 java.lang.String getPolicyName()
          The name of the load balancer policy being created.
 java.lang.String getPolicyTypeName()
          The name of the base policy type being used to create this policy.
 int hashCode()
           
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the LoadBalancer for which the policy is being created.
 void setPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
          A list of attributes associated with the policy being created.
 void setPolicyName(java.lang.String policyName)
          The name of the load balancer policy being created.
 void setPolicyTypeName(java.lang.String policyTypeName)
          The name of the base policy type being used to create this policy.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateLoadBalancerPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the LoadBalancer for which the policy is being created.
 CreateLoadBalancerPolicyRequest withPolicyAttributes(java.util.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(java.lang.String policyName)
          The name of the load balancer policy being created.
 CreateLoadBalancerPolicyRequest withPolicyTypeName(java.lang.String policyTypeName)
          The name of the base policy type being used to create this policy.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateLoadBalancerPolicyRequest

public CreateLoadBalancerPolicyRequest()
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the LoadBalancer for which the policy is being created.

Returns:
The name associated with the LoadBalancer for which the policy is being created.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer for which the policy is being created.

Parameters:
loadBalancerName - The name associated with the LoadBalancer for which the policy is being created.

withLoadBalancerName

public CreateLoadBalancerPolicyRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer for which the policy is being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadBalancerName - The name associated with the LoadBalancer for which the policy is being created.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyName

public java.lang.String getPolicyName()
The name of the load balancer policy being created. The name must be unique within the set of policies for this load balancer.

Returns:
The name of the load balancer policy being created. The name must be unique within the set of policies for this load balancer.

setPolicyName

public void setPolicyName(java.lang.String policyName)
The name of the load balancer policy being created. The name must be unique within the set of policies for this load balancer.

Parameters:
policyName - The name of the load balancer policy being created. The name must be unique within the set of policies for this load balancer.

withPolicyName

public CreateLoadBalancerPolicyRequest withPolicyName(java.lang.String policyName)
The name of the load balancer policy being created. The 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.

Parameters:
policyName - The name of the load balancer policy being created. The name must be unique within the set of policies for this load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyTypeName

public java.lang.String getPolicyTypeName()
The name of the base policy type being used to create this policy. To get the list of policy types, use the DescribeLoadBalancerPolicyTypes action.

Returns:
The name of the base policy type being used to create this policy. To get the list of policy types, use the DescribeLoadBalancerPolicyTypes action.

setPolicyTypeName

public void setPolicyTypeName(java.lang.String 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.

Parameters:
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.

withPolicyTypeName

public CreateLoadBalancerPolicyRequest withPolicyTypeName(java.lang.String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyAttributes

public java.util.List<PolicyAttribute> getPolicyAttributes()
A list of attributes associated with the policy being created.

Returns:
A list of attributes associated with the policy being created.

setPolicyAttributes

public void setPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
A list of attributes associated with the policy being created.

Parameters:
policyAttributes - A list of attributes associated with the policy being created.

withPolicyAttributes

public CreateLoadBalancerPolicyRequest withPolicyAttributes(PolicyAttribute... policyAttributes)
A list of attributes associated with the policy being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
policyAttributes - A list of attributes associated with the policy being created.
Returns:
A reference to this updated object so that method calls can be chained together.

withPolicyAttributes

public CreateLoadBalancerPolicyRequest withPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes)
A list of attributes associated with the policy being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
policyAttributes - A list of attributes associated with the policy being created.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.