com.amazonaws.services.elasticloadbalancing.model
Class SetLoadBalancerPoliciesForBackendServerRequest

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

public class SetLoadBalancerPoliciesForBackendServerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the SetLoadBalancerPoliciesForBackendServer operation.

Replaces the current set of policies associated with a port on which the back-end server is listening with a new set of policies. After the policies have been created using CreateLoadBalancerPolicy, they can be applied here as a list. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

NOTE: The SetLoadBalancerPoliciesForBackendServer replaces the current set of policies associated with the specified instance port. Every time you use this action to enable the policies, use the PolicyNames parameter to list all the policies you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies action to verify that the policy has been associated with the back-end server.

See Also:
AmazonElasticLoadBalancing.setLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest), Serialized Form

Constructor Summary
SetLoadBalancerPoliciesForBackendServerRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getInstancePort()
          The port number associated with the back-end server.
 java.lang.String getLoadBalancerName()
          The mnemonic name associated with the load balancer.
 java.util.List<java.lang.String> getPolicyNames()
          List of policy names to be set.
 int hashCode()
           
 void setInstancePort(java.lang.Integer instancePort)
          The port number associated with the back-end server.
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The mnemonic name associated with the load balancer.
 void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
          List of policy names to be set.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(java.lang.Integer instancePort)
          The port number associated with the back-end server.
 SetLoadBalancerPoliciesForBackendServerRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The mnemonic name associated with the load balancer.
 SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.util.Collection<java.lang.String> policyNames)
          List of policy names to be set.
 SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.lang.String... policyNames)
          List of policy names to be set.
 
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

SetLoadBalancerPoliciesForBackendServerRequest

public SetLoadBalancerPoliciesForBackendServerRequest()
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.

Returns:
The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.

Parameters:
loadBalancerName - The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.

withLoadBalancerName

public SetLoadBalancerPoliciesForBackendServerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.

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

Parameters:
loadBalancerName - The mnemonic name associated with the load balancer. This name must be unique within the set of your load balancers.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstancePort

public java.lang.Integer getInstancePort()
The port number associated with the back-end server.

Returns:
The port number associated with the back-end server.

setInstancePort

public void setInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.

Parameters:
instancePort - The port number associated with the back-end server.

withInstancePort

public SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.

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

Parameters:
instancePort - The port number associated with the back-end server.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyNames

public java.util.List<java.lang.String> getPolicyNames()
List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

Returns:
List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

setPolicyNames

public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

Parameters:
policyNames - List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

withPolicyNames

public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.lang.String... policyNames)
List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

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

Parameters:
policyNames - List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.
Returns:
A reference to this updated object so that method calls can be chained together.

withPolicyNames

public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.util.Collection<java.lang.String> policyNames)
List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.

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

Parameters:
policyNames - List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server.
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.