com.amazonaws.services.elasticloadbalancing.model
Class SetLoadBalancerPoliciesForBackendServerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.SetLoadBalancerPoliciesForBackendServerRequest

public class SetLoadBalancerPoliciesForBackendServerRequest
extends AmazonWebServiceRequest

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.

See Also:
AmazonElasticLoadBalancing.setLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest)

Constructor Summary
SetLoadBalancerPoliciesForBackendServerRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getInstancePort()
          The port number associated with the back-end server.
 String getLoadBalancerName()
          The mnemonic name associated with the LoadBalancer.
 List<String> getPolicyNames()
          List of policy names to be set.
 int hashCode()
           
 void setInstancePort(Integer instancePort)
          The port number associated with the back-end server.
 void setLoadBalancerName(String loadBalancerName)
          The mnemonic name associated with the LoadBalancer.
 void setPolicyNames(Collection<String> policyNames)
          List of policy names to be set.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(Integer instancePort)
          The port number associated with the back-end server.
 SetLoadBalancerPoliciesForBackendServerRequest withLoadBalancerName(String loadBalancerName)
          The mnemonic name associated with the LoadBalancer.
 SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(Collection<String> policyNames)
          List of policy names to be set.
 SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(String... policyNames)
          List of policy names to be set.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetLoadBalancerPoliciesForBackendServerRequest

public SetLoadBalancerPoliciesForBackendServerRequest()
Method Detail

getLoadBalancerName

public String getLoadBalancerName()
The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

Returns:
The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

setLoadBalancerName

public void setLoadBalancerName(String loadBalancerName)
The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

Parameters:
loadBalancerName - The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

withLoadBalancerName

public SetLoadBalancerPoliciesForBackendServerRequest withLoadBalancerName(String loadBalancerName)
The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

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

Parameters:
loadBalancerName - The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstancePort

public 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(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(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 List<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(Collection<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(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(Collection<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 String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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