com.amazonaws.services.elasticloadbalancing.model

## クラス RegisterInstancesWithLoadBalancerRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.elasticloadbalancing.model.RegisterInstancesWithLoadBalancerRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class RegisterInstancesWithLoadBalancerRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `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.

  関連項目:
    `AmazonElasticLoadBalancing.registerInstancesWithLoadBalancer(RegisterInstancesWithLoadBalancerRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### RegisterInstancesWithLoadBalancerRequest

          public RegisterInstancesWithLoadBalancerRequest()

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

    - #### RegisterInstancesWithLoadBalancerRequest

          public RegisterInstancesWithLoadBalancerRequest(java.lang.String loadBalancerName,
                                                  java.util.List<Instance> instances)

      Constructs a new RegisterInstancesWithLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `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. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

  - ### メソッドの詳細

    - #### getLoadBalancerName

          public java.lang.String getLoadBalancerName()

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.
      戻り値:
        The name associated with the LoadBalancer. The name must be unique within the client AWS account.

    - #### setLoadBalancerName

          public void setLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.
      パラメータ:
        `loadBalancerName` - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

    - #### withLoadBalancerName

          public RegisterInstancesWithLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within the client AWS account.

      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.

    - #### getInstances

          public java.util.List<Instance> getInstances()

      A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.
      戻り値:
        A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

    - #### setInstances

          public void setInstances(java.util.Collection<Instance> instances)

      A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.
      パラメータ:
        `instances` - A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

    - #### withInstances

          public RegisterInstancesWithLoadBalancerRequest withInstances(Instance... instances)

      A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

      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. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

    - #### withInstances

          public RegisterInstancesWithLoadBalancerRequest withInstances(java.util.Collection<Instance> instances)

      A list of instance IDs that should be registered with the LoadBalancer. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

      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. When the instance is stopped and then restarted, the IP addresses associated with your instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to your instances. We recommend that you de-register your Amazon EC2 instances from your load balancer after you stop your instance, and then register the load balancer with your instance after you've restarted. To de-register your instances from load balancer, use DeregisterInstancesFromLoadBalancer action.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`