com.amazonaws.services.elasticloadbalancing.model

## クラス CreateLoadBalancerRequest

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

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

      public class CreateLoadBalancerRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateLoadBalancer operation`.

  Creates a new LoadBalancer.

  After the call has completed successfully, a new LoadBalancer is created; however, it will not be usable until at least one instance has been registered. When the LoadBalancer creation is completed, the client can check whether or not it is usable by using the DescribeInstanceHealth API. The LoadBalancer is usable as soon as any registered instance is InService .

  NOTE: Currently, the client's quota of LoadBalancers is limited to ten per Region.

  NOTE: LoadBalancer DNS names vary depending on the Region they're created in. For LoadBalancers created in the United States, the DNS name ends with: us-east-1.elb.amazonaws.com (for the US Standard Region) us-west-1.elb.amazonaws.com (for the Northern California Region) For LoadBalancers created in the EU (Ireland) Region, the DNS name ends with: eu-west-1.elb.amazonaws.com

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

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

    コンストラクタ
    コンストラクタと説明
    `CreateLoadBalancerRequest()` Default constructor for a new CreateLoadBalancerRequest object.
    `CreateLoadBalancerRequest(java.lang.String loadBalancerName)` Constructs a new CreateLoadBalancerRequest object.
    `CreateLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<Listener> listeners, java.util.List<java.lang.String> availabilityZones)` Constructs a new CreateLoadBalancerRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<java.lang.String>` | `getAvailabilityZones()` A list of Availability Zones.
    `java.util.List<Listener>` | `getListeners()` A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
    `java.lang.String` | `getLoadBalancerName()` The name associated with the LoadBalancer.
    `java.lang.String` | `getScheme()` The type of a LoadBalancer.
    `java.util.List<java.lang.String>` | `getSecurityGroups()` The security groups assigned to your LoadBalancer within your VPC.
    `java.util.List<java.lang.String>` | `getSubnets()` A list of subnet IDs in your VPC to attach to your LoadBalancer.
    `int` | `hashCode()`
    `void` | `setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)` A list of Availability Zones.
    `void` | `setListeners(java.util.Collection<Listener> listeners)` A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
    `void` | `setLoadBalancerName(java.lang.String loadBalancerName)` The name associated with the LoadBalancer.
    `void` | `setScheme(java.lang.String scheme)` The type of a LoadBalancer.
    `void` | `setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)` The security groups assigned to your LoadBalancer within your VPC.
    `void` | `setSubnets(java.util.Collection<java.lang.String> subnets)` A list of subnet IDs in your VPC to attach to your LoadBalancer.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateLoadBalancerRequest` | `withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)` A list of Availability Zones.
    `CreateLoadBalancerRequest` | `withAvailabilityZones(java.lang.String... availabilityZones)` A list of Availability Zones.
    `CreateLoadBalancerRequest` | `withListeners(java.util.Collection<Listener> listeners)` A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
    `CreateLoadBalancerRequest` | `withListeners(Listener... listeners)` A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
    `CreateLoadBalancerRequest` | `withLoadBalancerName(java.lang.String loadBalancerName)` The name associated with the LoadBalancer.
    `CreateLoadBalancerRequest` | `withScheme(java.lang.String scheme)` The type of a LoadBalancer.
    `CreateLoadBalancerRequest` | `withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)` The security groups assigned to your LoadBalancer within your VPC.
    `CreateLoadBalancerRequest` | `withSecurityGroups(java.lang.String... securityGroups)` The security groups assigned to your LoadBalancer within your VPC.
    `CreateLoadBalancerRequest` | `withSubnets(java.util.Collection<java.lang.String> subnets)` A list of subnet IDs in your VPC to attach to your LoadBalancer.
    `CreateLoadBalancerRequest` | `withSubnets(java.lang.String... subnets)` A list of subnet IDs in your VPC to attach to your LoadBalancer.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateLoadBalancerRequest

          public CreateLoadBalancerRequest()

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

    - #### CreateLoadBalancerRequest

          public CreateLoadBalancerRequest(java.lang.String loadBalancerName)

      Constructs a new CreateLoadBalancerRequest 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 your set of LoadBalancers.

    - #### CreateLoadBalancerRequest

          public CreateLoadBalancerRequest(java.lang.String loadBalancerName,
                                   java.util.List<Listener> listeners,
                                   java.util.List<java.lang.String> availabilityZones)

      Constructs a new CreateLoadBalancerRequest 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 your set of LoadBalancers.
        `listeners` - A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
        `availabilityZones` - A list of Availability Zones.

        At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

        This list can be modified after the creation of the LoadBalancer.

  - ### メソッドの詳細

    - #### getLoadBalancerName

          public java.lang.String getLoadBalancerName()

      The name associated with the LoadBalancer. The name must be unique within your set of LoadBalancers.
      戻り値:
        The name associated with the LoadBalancer. The name must be unique within your set of LoadBalancers.

    - #### setLoadBalancerName

          public void setLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within your set of LoadBalancers.
      パラメータ:
        `loadBalancerName` - The name associated with the LoadBalancer. The name must be unique within your set of LoadBalancers.

    - #### withLoadBalancerName

          public CreateLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)

      The name associated with the LoadBalancer. The name must be unique within your set of LoadBalancers.

      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 your set of LoadBalancers.

    - #### getListeners

          public java.util.List<Listener> getListeners()

      A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
      戻り値:
        A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

    - #### setListeners

          public void setListeners(java.util.Collection<Listener> listeners)

      A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
      パラメータ:
        `listeners` - A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

    - #### withListeners

          public CreateLoadBalancerRequest withListeners(Listener... listeners)

      A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

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

      パラメータ:
        `listeners` - A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

    - #### withListeners

          public CreateLoadBalancerRequest withListeners(java.util.Collection<Listener> listeners)

      A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

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

      パラメータ:
        `listeners` - A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.

    - #### getAvailabilityZones

          public java.util.List<java.lang.String> getAvailabilityZones()

      A list of Availability Zones.

      At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

      This list can be modified after the creation of the LoadBalancer.

      戻り値:
        A list of Availability Zones.

        At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

        This list can be modified after the creation of the LoadBalancer.

    - #### setAvailabilityZones

          public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)

      A list of Availability Zones.

      At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

      This list can be modified after the creation of the LoadBalancer.

      パラメータ:
        `availabilityZones` - A list of Availability Zones.

        At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

        This list can be modified after the creation of the LoadBalancer.

    - #### withAvailabilityZones

          public CreateLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)

      A list of Availability Zones.

      At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

      This list can be modified after the creation of the LoadBalancer.

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

      パラメータ:
        `availabilityZones` - A list of Availability Zones.

        At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

        This list can be modified after the creation of the LoadBalancer.

    - #### withAvailabilityZones

          public CreateLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)

      A list of Availability Zones.

      At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

      This list can be modified after the creation of the LoadBalancer.

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

      パラメータ:
        `availabilityZones` - A list of Availability Zones.

        At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.

        This list can be modified after the creation of the LoadBalancer.

    - #### getSubnets

          public java.util.List<java.lang.String> getSubnets()

      A list of subnet IDs in your VPC to attach to your LoadBalancer.
      戻り値:
        A list of subnet IDs in your VPC to attach to your LoadBalancer.

    - #### setSubnets

          public void setSubnets(java.util.Collection<java.lang.String> subnets)

      A list of subnet IDs in your VPC to attach to your LoadBalancer.
      パラメータ:
        `subnets` - A list of subnet IDs in your VPC to attach to your LoadBalancer.

    - #### withSubnets

          public CreateLoadBalancerRequest withSubnets(java.lang.String... subnets)

      A list of subnet IDs in your VPC to attach to your LoadBalancer.

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

      パラメータ:
        `subnets` - A list of subnet IDs in your VPC to attach to your LoadBalancer.

    - #### withSubnets

          public CreateLoadBalancerRequest withSubnets(java.util.Collection<java.lang.String> subnets)

      A list of subnet IDs in your VPC to attach to your LoadBalancer.

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

      パラメータ:
        `subnets` - A list of subnet IDs in your VPC to attach to your LoadBalancer.

    - #### getSecurityGroups

          public java.util.List<java.lang.String> getSecurityGroups()

      The security groups assigned to your LoadBalancer within your VPC.
      戻り値:
        The security groups assigned to your LoadBalancer within your VPC.

    - #### setSecurityGroups

          public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)

      The security groups assigned to your LoadBalancer within your VPC.
      パラメータ:
        `securityGroups` - The security groups assigned to your LoadBalancer within your VPC.

    - #### withSecurityGroups

          public CreateLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)

      The security groups assigned to your LoadBalancer within your VPC.

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

      パラメータ:
        `securityGroups` - The security groups assigned to your LoadBalancer within your VPC.

    - #### withSecurityGroups

          public CreateLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)

      The security groups assigned to your LoadBalancer within your VPC.

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

      パラメータ:
        `securityGroups` - The security groups assigned to your LoadBalancer within your VPC.

    - #### getScheme

          public java.lang.String getScheme()

      The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.
      戻り値:
        The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.

    - #### setScheme

          public void setScheme(java.lang.String scheme)

      The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.
      パラメータ:
        `scheme` - The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.

    - #### withScheme

          public CreateLoadBalancerRequest withScheme(java.lang.String scheme)

      The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.

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

      パラメータ:
        `scheme` - The type of a LoadBalancer. This option is only available for LoadBalancers attached to a Amazon VPC. By default, Elastic Load Balancer creates an internet-facing load balancer with publicly resolvable DNS name that resolves to public IP addresses. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses.

    - #### 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`