com.amazonaws.services.elasticloadbalancing.model
Class CreateLoadBalancerListenersRequest

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

public class CreateLoadBalancerListenersRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateLoadBalancerListeners operation.

Creates one or more listeners on a LoadBalancer for the specified port. If a listener with the given port does not already exist, it will be created; otherwise, the properties of the new listener must match the properties of the existing listener.

See Also:
AmazonElasticLoadBalancing.createLoadBalancerListeners(CreateLoadBalancerListenersRequest)

Constructor Summary
CreateLoadBalancerListenersRequest()
          Default constructor for a new CreateLoadBalancerListenersRequest object.
CreateLoadBalancerListenersRequest(String loadBalancerName, List<Listener> listeners)
          Constructs a new CreateLoadBalancerListenersRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<Listener> getListeners()
          A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
 String getLoadBalancerName()
          The name of the new LoadBalancer.
 int hashCode()
           
 void setListeners(Collection<Listener> listeners)
          A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
 void setLoadBalancerName(String loadBalancerName)
          The name of the new LoadBalancer.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateLoadBalancerListenersRequest withListeners(Collection<Listener> listeners)
          A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
 CreateLoadBalancerListenersRequest withListeners(Listener... listeners)
          A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
 CreateLoadBalancerListenersRequest withLoadBalancerName(String loadBalancerName)
          The name of the new LoadBalancer.
 
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

CreateLoadBalancerListenersRequest

public CreateLoadBalancerListenersRequest()
Default constructor for a new CreateLoadBalancerListenersRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateLoadBalancerListenersRequest

public CreateLoadBalancerListenersRequest(String loadBalancerName,
                                          List<Listener> listeners)
Constructs a new CreateLoadBalancerListenersRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
loadBalancerName - The name of the new LoadBalancer. The name must be unique within your AWS account.
listeners - A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
Method Detail

getLoadBalancerName

public String getLoadBalancerName()
The name of the new LoadBalancer. The name must be unique within your AWS account.

Returns:
The name of the new LoadBalancer. The name must be unique within your AWS account.

setLoadBalancerName

public void setLoadBalancerName(String loadBalancerName)
The name of the new LoadBalancer. The name must be unique within your AWS account.

Parameters:
loadBalancerName - The name of the new LoadBalancer. The name must be unique within your AWS account.

withLoadBalancerName

public CreateLoadBalancerListenersRequest withLoadBalancerName(String loadBalancerName)
The name of the new LoadBalancer. The name must be unique within your AWS account.

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

Parameters:
loadBalancerName - The name of the new LoadBalancer. The name must be unique within your AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getListeners

public List<Listener> getListeners()
A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

Returns:
A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

setListeners

public void setListeners(Collection<Listener> listeners)
A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

Parameters:
listeners - A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

withListeners

public CreateLoadBalancerListenersRequest withListeners(Listener... listeners)
A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

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

Parameters:
listeners - A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
Returns:
A reference to this updated object so that method calls can be chained together.

withListeners

public CreateLoadBalancerListenersRequest withListeners(Collection<Listener> listeners)
A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.

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

Parameters:
listeners - A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
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.