public class RegisterInstancesWithLoadBalancerRequest extends AmazonWebServiceRequest implements java.io.Serializable
RegisterInstancesWithLoadBalancer operation.
Adds new instances to the LoadBalancer.
Once the instance is registered, it starts receiving traffic and requests from the LoadBalancer. Any instance that is not in any of the Availability Zones registered for the LoadBalancer will be moved to the OutOfService state. It will move to the InService state when the Availability Zone is added to the LoadBalancer.
NOTE: In order for this call to be successful, the client must have created the LoadBalancer. The client must provide the same account credentials as those that were used to create the LoadBalancer.
NOTE: Completion of this API does not guarantee that operation has completed. Rather, it means that the request has been registered and the changes will happen shortly.
| コンストラクタと説明 |
|---|
RegisterInstancesWithLoadBalancerRequest()
Default constructor for a new RegisterInstancesWithLoadBalancerRequest object.
|
RegisterInstancesWithLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<Instance> instances)
Constructs a new RegisterInstancesWithLoadBalancerRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Instance> |
getInstances()
A list of instance IDs that should be registered with the
LoadBalancer.
|
java.lang.String |
getLoadBalancerName()
The name associated with the LoadBalancer.
|
int |
hashCode() |
void |
setInstances(java.util.Collection<Instance> instances)
A list of instance IDs that should be registered with the
LoadBalancer.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterInstancesWithLoadBalancerRequest |
withInstances(java.util.Collection<Instance> instances)
A list of instance IDs that should be registered with the
LoadBalancer.
|
RegisterInstancesWithLoadBalancerRequest |
withInstances(Instance... instances)
A list of instance IDs that should be registered with the
LoadBalancer.
|
RegisterInstancesWithLoadBalancerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic RegisterInstancesWithLoadBalancerRequest()
public RegisterInstancesWithLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<Instance> instances)
loadBalancerName - The name associated with the LoadBalancer. The
name must be unique within the client AWS account.instances - A list of instance IDs that should be registered with
the LoadBalancer. public java.lang.String getLoadBalancerName()
public void setLoadBalancerName(java.lang.String loadBalancerName)
loadBalancerName - The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public RegisterInstancesWithLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName - The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public java.util.List<Instance> getInstances()
public void setInstances(java.util.Collection<Instance> instances)
instances - A list of instance IDs that should be registered with the
LoadBalancer. public RegisterInstancesWithLoadBalancerRequest withInstances(Instance... instances)
Returns a reference to this object so that method calls can be chained together.
instances - A list of instance IDs that should be registered with the
LoadBalancer. public RegisterInstancesWithLoadBalancerRequest withInstances(java.util.Collection<Instance> instances)
Returns a reference to this object so that method calls can be chained together.
instances - A list of instance IDs that should be registered with the
LoadBalancer. public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object