JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.elasticloadbalancing.model

Class CreateLoadBalancerRequest

    • Constructor Detail

      • CreateLoadBalancerRequest

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

        public CreateLoadBalancerRequest(String loadBalancerName)
        Constructs a new CreateLoadBalancerRequest 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.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

      • CreateLoadBalancerRequest

        public CreateLoadBalancerRequest(String loadBalancerName,
         List<Listener> listeners,
         List<String> availabilityZones)
        Constructs a new CreateLoadBalancerRequest 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.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

        listeners - The listeners.

        For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.

        availabilityZones - One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

    • Method Detail

      • setLoadBalancerName

        public void setLoadBalancerName(String loadBalancerName)

        The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

        Parameters:
        loadBalancerName - The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

      • getLoadBalancerName

        public String getLoadBalancerName()

        The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

        Returns:
        The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

      • withLoadBalancerName

        public CreateLoadBalancerRequest withLoadBalancerName(String loadBalancerName)

        The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

        Parameters:
        loadBalancerName - The name of the load balancer.

        This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

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

        public List<String> getAvailabilityZones()

        One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

        Returns:
        One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

      • setAvailabilityZones

        public void setAvailabilityZones(Collection<String> availabilityZones)

        One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

        Parameters:
        availabilityZones - One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

      • withAvailabilityZones

        public CreateLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)

        One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

        Parameters:
        availabilityZones - One or more Availability Zones from the same region as the load balancer.

        You must specify at least one Availability Zone.

        You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

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

        public List<String> getSubnets()

        The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.

        Returns:
        The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.
      • setSubnets

        public void setSubnets(Collection<String> subnets)

        The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.

        Parameters:
        subnets - The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.
      • withSubnets

        public CreateLoadBalancerRequest withSubnets(String... subnets)

        The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.

        NOTE: This method appends the values to the existing list (if any). Use setSubnets(java.util.Collection) or withSubnets(java.util.Collection) if you want to override the existing values.

        Parameters:
        subnets - The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSubnets

        public CreateLoadBalancerRequest withSubnets(Collection<String> subnets)

        The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.

        Parameters:
        subnets - The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSecurityGroups

        public List<String> getSecurityGroups()

        The IDs of the security groups to assign to the load balancer.

        Returns:
        The IDs of the security groups to assign to the load balancer.
      • setSecurityGroups

        public void setSecurityGroups(Collection<String> securityGroups)

        The IDs of the security groups to assign to the load balancer.

        Parameters:
        securityGroups - The IDs of the security groups to assign to the load balancer.
      • withSecurityGroups

        public CreateLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)

        The IDs of the security groups to assign to the load balancer.

        Parameters:
        securityGroups - The IDs of the security groups to assign to the load balancer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setScheme

        public void setScheme(String scheme)

        The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

        Parameters:
        scheme - The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

      • getScheme

        public String getScheme()

        The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

        Returns:
        The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

      • withScheme

        public CreateLoadBalancerRequest withScheme(String scheme)

        The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

        Parameters:
        scheme - The type of a load balancer. Valid only for load balancers in a VPC.

        By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.

        Specify internal to create a load balancer with a DNS name that resolves to private IP addresses.

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

        public List<Tag> getTags()

        A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

        Returns:
        A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

      • setTags

        public void setTags(Collection<Tag> tags)

        A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

        Parameters:
        tags - A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

      • withTags

        public CreateLoadBalancerRequest withTags(Collection<Tag> tags)

        A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

        Parameters:
        tags - A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

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

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /