com.amazonaws.services.elasticloadbalancing.model
Class CreateLoadBalancerListenersRequest

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

public class CreateLoadBalancerListenersRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CreateLoadBalancerListeners operation.

Creates one or more listeners on a load balancer 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.

For more information, see Add a Listener to Your Load Balancer in the Elastic Load Balancing Developer Guide .

See Also:
AmazonElasticLoadBalancing.createLoadBalancerListeners(CreateLoadBalancerListenersRequest), Serialized Form

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

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(java.lang.String loadBalancerName,
                                          java.util.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 load balancer.
listeners - A list of LoadBalancerPort, InstancePort, Protocol, and SSLCertificateId items.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name of the load balancer.

Returns:
The name of the load balancer.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.

Parameters:
loadBalancerName - The name of the load balancer.

withLoadBalancerName

public CreateLoadBalancerListenersRequest 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.

Parameters:
loadBalancerName - The name of the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getListeners

public java.util.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(java.util.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(java.util.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 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.