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 Load Balancer in the Elastic Load Balancing Developer Guide.

        availabilityZones - One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.

        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. Traffic is equally distributed across all specified Availability Zones.

        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. Traffic is equally distributed across all specified Availability Zones.

        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. Traffic is equally distributed across all specified Availability Zones.

        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. Traffic is equally distributed across all specified Availability Zones.

        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​(String... availabilityZones)

        One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.

        You must specify at least one Availability Zone.

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

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

        Parameters:
        availabilityZones - One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.

        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.
      • withAvailabilityZones

        public CreateLoadBalancerRequest withAvailabilityZones​(Collection<String> availabilityZones)

        One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.

        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. Traffic is equally distributed across all specified Availability Zones.

        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​(String... securityGroups)

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

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

        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.
      • 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.

        Specify internal to create an internal 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 Tagging in the Elastic Load Balancing Developer Guide.

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

        For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer 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 Tagging in the Elastic Load Balancing Developer Guide.

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

        For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.

      • withTags

        public CreateLoadBalancerRequest withTags​(Tag... tags)

        A list of tags to assign to the load balancer.

        For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.

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

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

        For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 Tagging in the Elastic Load Balancing Developer Guide.

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

        For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer 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; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object