Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.elasticloadbalancing.model;
 
 
Container for the parameters to the CreateLoadBalancer operation.

Creates a new load balancer.

After the call has completed successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The DNS name includes the name of the AWS region in which the load balance was created. For example, if your load balancer was created in the United States, the DNS name might end with either of the following:

  • us-east-1.elb.amazonaws.com (for the Northern Virginia region)
  • us-west-1.elb.amazonaws.com (for the Northern California region)

For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints .

You can create up to 20 load balancers per region per account.

Elastic Load Balancing supports load balancing your Amazon EC2 instances launched within any one of the following platforms:

  • EC2-Classic

    For information on creating and managing your load balancers in EC2-Classic, see Deploy Elastic Load Balancing in Amazon EC2-Classic .

  • EC2-VPC

    For information on creating and managing your load balancers in EC2-VPC, see Deploy Elastic Load Balancing in Amazon VPC .

 
 public class CreateLoadBalancerRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

 
     private String loadBalancerName;

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

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

 
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
The security groups to assign to your load balancer within your VPC.
The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

    private String scheme;

    
A list of tags to assign to the load balancer.

For more information about setting tags for your load balancer, see Tagging.

Constraints:
Length: 1 -

Default constructor for a new CreateLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
    public CreateLoadBalancerRequest() {}
    
    
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 associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

    public CreateLoadBalancerRequest(String loadBalancerName) {
        setLoadBalancerName(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 associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

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

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

    public CreateLoadBalancerRequest(String loadBalancerNamejava.util.List<Listenerlistenersjava.util.List<StringavailabilityZones) {
        setLoadBalancerName(loadBalancerName);
        setListeners(listeners);
        setAvailabilityZones(availabilityZones);
    }

    
The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

Returns:
The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

    public String getLoadBalancerName() {
        return ;
    }
    
    
The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

Parameters:
loadBalancerName The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

    public void setLoadBalancerName(String loadBalancerName) {
        this. = loadBalancerName;
    }
    
    
The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

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

Parameters:
loadBalancerName The name associated with the load balancer.

The name must be unique within your set of load balancers, must have a maximum of 32 characters, and must only contain alphanumeric characters or hyphens.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withLoadBalancerName(String loadBalancerName) {
        this. = loadBalancerName;
        return this;
    }

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

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

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

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

    public java.util.List<ListenergetListeners() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<Listener>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

Parameters:
listeners A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

    public void setListeners(java.util.Collection<Listenerlisteners) {
        if (listeners == null) {
            this. = null;
            return;
        }
        listenersCopy.addAll(listeners);
        this. = listenersCopy;
    }
    
    
A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

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

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

Parameters:
listeners A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withListeners(Listener... listeners) {
        if (getListeners() == nullsetListeners(new java.util.ArrayList<Listener>(listeners.length));
        for (Listener value : listeners) {
            getListeners().add(value);
        }
        return this;
    }
    
    
A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

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

Parameters:
listeners A list of the following tuples: Protocol, LoadBalancerPort, InstanceProtocol, InstancePort, and SSLCertificateId.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (listeners == null) {
            this. = null;
        } else {
            listenersCopy.addAll(listeners);
            this. = listenersCopy;
        }
        return this;
    }

    
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

Returns:
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

Parameters:
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

    public void setAvailabilityZones(java.util.Collection<StringavailabilityZones) {
        if (availabilityZones == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringavailabilityZonesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(availabilityZones.size());
        availabilityZonesCopy.addAll(availabilityZones);
        this. = availabilityZonesCopy;
    }
    
    
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

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.

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

Parameters:
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withAvailabilityZones(String... availabilityZones) {
        if (getAvailabilityZones() == nullsetAvailabilityZones(new java.util.ArrayList<String>(availabilityZones.length));
        for (String value : availabilityZones) {
            getAvailabilityZones().add(value);
        }
        return this;
    }
    
    
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

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

Parameters:
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 load balancer. Traffic will be equally distributed across all zones.

You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (availabilityZones == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringavailabilityZonesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(availabilityZones.size());
            availabilityZonesCopy.addAll(availabilityZones);
            this. = availabilityZonesCopy;
        }
        return this;
    }

    
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.

Returns:
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
    public java.util.List<StringgetSubnets() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.

Parameters:
subnets A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
    public void setSubnets(java.util.Collection<Stringsubnets) {
        if (subnets == null) {
            this. = null;
            return;
        }
        subnetsCopy.addAll(subnets);
        this. = subnetsCopy;
    }
    
    
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.

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.

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

Parameters:
subnets A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withSubnets(String... subnets) {
        if (getSubnets() == nullsetSubnets(new java.util.ArrayList<String>(subnets.length));
        for (String value : subnets) {
            getSubnets().add(value);
        }
        return this;
    }
    
    
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.

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

Parameters:
subnets A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (subnets == null) {
            this. = null;
        } else {
            subnetsCopy.addAll(subnets);
            this. = subnetsCopy;
        }
        return this;
    }

    
The security groups to assign to your load balancer within your VPC.

Returns:
The security groups to assign to your load balancer within your VPC.
    public java.util.List<StringgetSecurityGroups() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The security groups to assign to your load balancer within your VPC.

Parameters:
securityGroups The security groups to assign to your load balancer within your VPC.
    public void setSecurityGroups(java.util.Collection<StringsecurityGroups) {
        if (securityGroups == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroups.size());
        securityGroupsCopy.addAll(securityGroups);
        this. = securityGroupsCopy;
    }
    
    
The security groups to assign to your load balancer within your VPC.

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.

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

Parameters:
securityGroups The security groups to assign to your load balancer within your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withSecurityGroups(String... securityGroups) {
        if (getSecurityGroups() == nullsetSecurityGroups(new java.util.ArrayList<String>(securityGroups.length));
        for (String value : securityGroups) {
            getSecurityGroups().add(value);
        }
        return this;
    }
    
    
The security groups to assign to your load balancer within your VPC.

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

Parameters:
securityGroups The security groups to assign to your load balancer within your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (securityGroups == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroups.size());
            securityGroupsCopy.addAll(securityGroups);
            this. = securityGroupsCopy;
        }
        return this;
    }

    
The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

Returns:
The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

    public String getScheme() {
        return ;
    }
    
    
The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

Parameters:
scheme The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

    public void setScheme(String scheme) {
        this. = scheme;
    }
    
    
The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

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

Parameters:
scheme The type of a load balancer.

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.

Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to private IP addresses. <note>

This option is only available for load balancers created within EC2-VPC. </note>

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withScheme(String scheme) {
        this. = scheme;
        return this;
    }

    
A list of tags to assign to the load balancer.

For more information about setting tags for your load balancer, see Tagging.

Constraints:
Length: 1 -

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

For more information about setting tags for your load balancer, see Tagging.

    public java.util.List<TaggetTags() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<Tag>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of tags to assign to the load balancer.

For more information about setting tags for your load balancer, see Tagging.

Constraints:
Length: 1 -

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

For more information about setting tags for your load balancer, see Tagging.

    public void setTags(java.util.Collection<Tagtags) {
        if (tags == null) {
            this. = null;
            return;
        }
        tagsCopy.addAll(tags);
        this. = tagsCopy;
    }
    
    
A list of tags to assign to the load balancer.

For more information about setting tags for your load balancer, see Tagging.

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.

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

Constraints:
Length: 1 -

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

For more information about setting tags for your load balancer, see Tagging.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateLoadBalancerRequest withTags(Tag... tags) {
        if (getTags() == nullsetTags(new java.util.ArrayList<Tag>(tags.length));
        for (Tag value : tags) {
            getTags().add(value);
        }
        return this;
    }
    
    
A list of tags to assign to the load balancer.

For more information about setting tags for your load balancer, see Tagging.

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

Constraints:
Length: 1 -

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

For more information about setting tags for your load balancer, see Tagging.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (tags == null) {
            this. = null;
        } else {
            tagsCopy.addAll(tags);
            this. = tagsCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getLoadBalancerName() != nullsb.append("LoadBalancerName: " + getLoadBalancerName() + ",");
        if (getListeners() != nullsb.append("Listeners: " + getListeners() + ",");
        if (getAvailabilityZones() != nullsb.append("AvailabilityZones: " + getAvailabilityZones() + ",");
        if (getSubnets() != nullsb.append("Subnets: " + getSubnets() + ",");
        if (getSecurityGroups() != nullsb.append("SecurityGroups: " + getSecurityGroups() + ",");
        if (getScheme() != nullsb.append("Scheme: " + getScheme() + ",");
        if (getTags() != nullsb.append("Tags: " + getTags() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); 
        hashCode = prime * hashCode + ((getListeners() == null) ? 0 : getListeners().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode()); 
        hashCode = prime * hashCode + ((getSubnets() == null) ? 0 : getSubnets().hashCode()); 
        hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode()); 
        hashCode = prime * hashCode + ((getScheme() == null) ? 0 : getScheme().hashCode()); 
        hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CreateLoadBalancerRequest == falsereturn false;
        
        if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == nullreturn false;
        if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == falsereturn false
        if (other.getListeners() == null ^ this.getListeners() == nullreturn false;
        if (other.getListeners() != null && other.getListeners().equals(this.getListeners()) == falsereturn false
        if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == nullreturn false;
        if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == falsereturn false
        if (other.getSubnets() == null ^ this.getSubnets() == nullreturn false;
        if (other.getSubnets() != null && other.getSubnets().equals(this.getSubnets()) == falsereturn false
        if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == nullreturn false;
        if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == falsereturn false
        if (other.getScheme() == null ^ this.getScheme() == nullreturn false;
        if (other.getScheme() != null && other.getScheme().equals(this.getScheme()) == falsereturn false
        if (other.getTags() == null ^ this.getTags() == nullreturn false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == falsereturn false
        return true;
    }
    
    @Override
    public CreateLoadBalancerRequest clone() {
        
            return (CreateLoadBalancerRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X