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;
  

Contains the result of a successful invocation of DescribeLoadBalancers.

  
  public class LoadBalancerDescription implements SerializableCloneable {

    
Specifies the name associated with the load balancer.
  
      private String loadBalancerName;

    
Specifies the external DNS name associated with the load balancer.
  
      private String dNSName;

    
Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
  
      private String canonicalHostedZoneName;

    
Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
  
      private String canonicalHostedZoneNameID;

    
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.
  
Provides a list of policies defined for the load balancer.
  
      private Policies policies;

    
Contains a list of back-end server descriptions.
  
Specifies a list of Availability Zones.
  
Provides a list of VPC subnet IDs for the load balancer.
  
Provides the ID of the VPC attached to the load balancer.
  
      private String vPCId;

    
Provides a list of EC2 instance IDs for the load balancer.
  
Specifies information regarding the various health probes conducted on the load balancer.
  
      private HealthCheck healthCheck;

    
The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.
 
     private SourceSecurityGroup sourceSecurityGroup;

    
The security groups the load balancer is a member of (VPC only).
 
Provides the date and time the load balancer was created.
 
     private java.util.Date createdTime;

    
Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

 
     private String scheme;

    
Default constructor for a new LoadBalancerDescription object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public LoadBalancerDescription() {}
    
    
Specifies the name associated with the load balancer.

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

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

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

Parameters:
loadBalancerName Specifies the name associated with the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withLoadBalancerName(String loadBalancerName) {
         this. = loadBalancerName;
         return this;
     }

    
Specifies the external DNS name associated with the load balancer.

Returns:
Specifies the external DNS name associated with the load balancer.
 
     public String getDNSName() {
         return ;
     }
    
    
Specifies the external DNS name associated with the load balancer.

Parameters:
dNSName Specifies the external DNS name associated with the load balancer.
 
     public void setDNSName(String dNSName) {
         this. = dNSName;
     }
    
    
Specifies the external DNS name associated with the load balancer.

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

Parameters:
dNSName Specifies the external DNS name associated with the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withDNSName(String dNSName) {
         this. = dNSName;
         return this;
     }

    
Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

Returns:
Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
 
     public String getCanonicalHostedZoneName() {
         return ;
     }
    
    
Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

Parameters:
canonicalHostedZoneName Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
 
     public void setCanonicalHostedZoneName(String canonicalHostedZoneName) {
         this. = canonicalHostedZoneName;
     }
    
    
Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

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

Parameters:
canonicalHostedZoneName Provides the name of the Amazon Route 53 hosted zone that is associated with the load balancer. For information on how to associate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withCanonicalHostedZoneName(String canonicalHostedZoneName) {
         this. = canonicalHostedZoneName;
         return this;
     }

    
Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

Returns:
Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
 
     public String getCanonicalHostedZoneNameID() {
         return ;
     }
    
    
Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

Parameters:
canonicalHostedZoneNameID Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
 
     public void setCanonicalHostedZoneNameID(String canonicalHostedZoneNameID) {
         this. = canonicalHostedZoneNameID;
     }
    
    
Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

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

Parameters:
canonicalHostedZoneNameID Provides the ID of the Amazon Route 53 hosted zone name that is associated with the load balancer. For information on how to associate or disassociate your load balancer with a hosted zone, go to Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withCanonicalHostedZoneNameID(String canonicalHostedZoneNameID) {
         this. = canonicalHostedZoneNameID;
         return this;
     }

    
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.

Returns:
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.

Parameters:
listenerDescriptions LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.
 
     public void setListenerDescriptions(java.util.Collection<ListenerDescriptionlistenerDescriptions) {
         if (listenerDescriptions == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<ListenerDescriptionlistenerDescriptionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ListenerDescription>(listenerDescriptions.size());
         listenerDescriptionsCopy.addAll(listenerDescriptions);
         this. = listenerDescriptionsCopy;
     }
    
    
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.

NOTE: This method appends the values to the existing list (if any). Use setListenerDescriptions(java.util.Collection) or withListenerDescriptions(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:
listenerDescriptions LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withListenerDescriptions(ListenerDescription... listenerDescriptions) {
         if (getListenerDescriptions() == nullsetListenerDescriptions(new java.util.ArrayList<ListenerDescription>(listenerDescriptions.length));
         for (ListenerDescription value : listenerDescriptions) {
             getListenerDescriptions().add(value);
         }
         return this;
     }
    
    
LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.

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

Parameters:
listenerDescriptions LoadBalancerPort, InstancePort, Protocol, InstanceProtocol, and PolicyNames are returned in a list of tuples in the ListenerDescriptions element.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (listenerDescriptions == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<ListenerDescriptionlistenerDescriptionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ListenerDescription>(listenerDescriptions.size());
             listenerDescriptionsCopy.addAll(listenerDescriptions);
             this. = listenerDescriptionsCopy;
         }
 
         return this;
     }

    
Provides a list of policies defined for the load balancer.

Returns:
Provides a list of policies defined for the load balancer.
 
     public Policies getPolicies() {
         return ;
     }
    
    
Provides a list of policies defined for the load balancer.

Parameters:
policies Provides a list of policies defined for the load balancer.
 
     public void setPolicies(Policies policies) {
         this. = policies;
     }
    
    
Provides a list of policies defined for the load balancer.

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

Parameters:
policies Provides a list of policies defined for the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withPolicies(Policies policies) {
         this. = policies;
         return this;
     }

    
Contains a list of back-end server descriptions.

Returns:
Contains a list of back-end server descriptions.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Contains a list of back-end server descriptions.

Parameters:
backendServerDescriptions Contains a list of back-end server descriptions.
 
     public void setBackendServerDescriptions(java.util.Collection<BackendServerDescriptionbackendServerDescriptions) {
         if (backendServerDescriptions == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<BackendServerDescriptionbackendServerDescriptionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<BackendServerDescription>(backendServerDescriptions.size());
         backendServerDescriptionsCopy.addAll(backendServerDescriptions);
         this. = backendServerDescriptionsCopy;
     }
    
    
Contains a list of back-end server descriptions.

NOTE: This method appends the values to the existing list (if any). Use setBackendServerDescriptions(java.util.Collection) or withBackendServerDescriptions(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:
backendServerDescriptions Contains a list of back-end server descriptions.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withBackendServerDescriptions(BackendServerDescription... backendServerDescriptions) {
         if (getBackendServerDescriptions() == nullsetBackendServerDescriptions(new java.util.ArrayList<BackendServerDescription>(backendServerDescriptions.length));
         for (BackendServerDescription value : backendServerDescriptions) {
             getBackendServerDescriptions().add(value);
         }
         return this;
     }
    
    
Contains a list of back-end server descriptions.

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

Parameters:
backendServerDescriptions Contains a list of back-end server descriptions.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (backendServerDescriptions == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<BackendServerDescriptionbackendServerDescriptionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<BackendServerDescription>(backendServerDescriptions.size());
             backendServerDescriptionsCopy.addAll(backendServerDescriptions);
             this. = backendServerDescriptionsCopy;
         }
 
         return this;
     }

    
Specifies a list of Availability Zones.

Returns:
Specifies a list of Availability Zones.
 
     public java.util.List<StringgetAvailabilityZones() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Specifies a list of Availability Zones.

Parameters:
availabilityZones Specifies a list of Availability Zones.
 
     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;
     }
    
    
Specifies a list of Availability Zones.

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 Specifies a list of Availability Zones.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withAvailabilityZones(String... availabilityZones) {
         if (getAvailabilityZones() == nullsetAvailabilityZones(new java.util.ArrayList<String>(availabilityZones.length));
         for (String value : availabilityZones) {
             getAvailabilityZones().add(value);
         }
         return this;
     }
    
    
Specifies a list of Availability Zones.

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

Parameters:
availabilityZones Specifies a list of Availability Zones.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withAvailabilityZones(java.util.Collection<StringavailabilityZones) {
         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;
     }

    
Provides a list of VPC subnet IDs for the load balancer.

Returns:
Provides a list of VPC subnet IDs for the load balancer.
 
     public java.util.List<StringgetSubnets() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Provides a list of VPC subnet IDs for the load balancer.

Parameters:
subnets Provides a list of VPC subnet IDs for the load balancer.
 
     public void setSubnets(java.util.Collection<Stringsubnets) {
         if (subnets == null) {
             this. = null;
             return;
         }
         subnetsCopy.addAll(subnets);
         this. = subnetsCopy;
     }
    
    
Provides a list of VPC subnet IDs for the load balancer.

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 Provides a list of VPC subnet IDs for the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withSubnets(String... subnets) {
         if (getSubnets() == nullsetSubnets(new java.util.ArrayList<String>(subnets.length));
         for (String value : subnets) {
             getSubnets().add(value);
         }
         return this;
     }
    
    
Provides a list of VPC subnet IDs for the load balancer.

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

Parameters:
subnets Provides a list of VPC subnet IDs for the load balancer.
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;
     }

    
Provides the ID of the VPC attached to the load balancer.

Returns:
Provides the ID of the VPC attached to the load balancer.
 
     public String getVPCId() {
         return ;
     }
    
    
Provides the ID of the VPC attached to the load balancer.

Parameters:
vPCId Provides the ID of the VPC attached to the load balancer.
 
     public void setVPCId(String vPCId) {
         this. = vPCId;
     }
    
    
Provides the ID of the VPC attached to the load balancer.

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

Parameters:
vPCId Provides the ID of the VPC attached to the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withVPCId(String vPCId) {
         this. = vPCId;
         return this;
     }

    
Provides a list of EC2 instance IDs for the load balancer.

Returns:
Provides a list of EC2 instance IDs for the load balancer.
 
     public java.util.List<InstancegetInstances() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Instance>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Provides a list of EC2 instance IDs for the load balancer.

Parameters:
instances Provides a list of EC2 instance IDs for the load balancer.
 
     public void setInstances(java.util.Collection<Instanceinstances) {
         if (instances == null) {
             this. = null;
             return;
         }
         instancesCopy.addAll(instances);
         this. = instancesCopy;
     }
    
    
Provides a list of EC2 instance IDs for the load balancer.

NOTE: This method appends the values to the existing list (if any). Use setInstances(java.util.Collection) or withInstances(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:
instances Provides a list of EC2 instance IDs for the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withInstances(Instance... instances) {
         if (getInstances() == nullsetInstances(new java.util.ArrayList<Instance>(instances.length));
         for (Instance value : instances) {
             getInstances().add(value);
         }
         return this;
     }
    
    
Provides a list of EC2 instance IDs for the load balancer.

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

Parameters:
instances Provides a list of EC2 instance IDs for the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (instances == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<InstanceinstancesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Instance>(instances.size());
             instancesCopy.addAll(instances);
             this. = instancesCopy;
         }
 
         return this;
     }

    
Specifies information regarding the various health probes conducted on the load balancer.

Returns:
Specifies information regarding the various health probes conducted on the load balancer.
 
     public HealthCheck getHealthCheck() {
         return ;
     }
    
    
Specifies information regarding the various health probes conducted on the load balancer.

Parameters:
healthCheck Specifies information regarding the various health probes conducted on the load balancer.
 
     public void setHealthCheck(HealthCheck healthCheck) {
         this. = healthCheck;
     }
    
    
Specifies information regarding the various health probes conducted on the load balancer.

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

Parameters:
healthCheck Specifies information regarding the various health probes conducted on the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withHealthCheck(HealthCheck healthCheck) {
         this. = healthCheck;
         return this;
     }

    
The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.

Returns:
The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.
 
         return ;
     }
    
    
The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.

Parameters:
sourceSecurityGroup The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.
 
     public void setSourceSecurityGroup(SourceSecurityGroup sourceSecurityGroup) {
         this. = sourceSecurityGroup;
     }
    
    
The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.

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

Parameters:
sourceSecurityGroup The security group that you can use as part of your inbound rules for your load balancer's back-end Amazon EC2 application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withSourceSecurityGroup(SourceSecurityGroup sourceSecurityGroup) {
         this. = sourceSecurityGroup;
         return this;
     }

    
The security groups the load balancer is a member of (VPC only).

Returns:
The security groups the load balancer is a member of (VPC only).
 
     public java.util.List<StringgetSecurityGroups() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The security groups the load balancer is a member of (VPC only).

Parameters:
securityGroups The security groups the load balancer is a member of (VPC only).
 
     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 the load balancer is a member of (VPC only).

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 the load balancer is a member of (VPC only).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription 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 the load balancer is a member of (VPC only).

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

Parameters:
securityGroups The security groups the load balancer is a member of (VPC only).
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;
     }

    
Provides the date and time the load balancer was created.

Returns:
Provides the date and time the load balancer was created.
 
     public java.util.Date getCreatedTime() {
         return ;
     }
    
    
Provides the date and time the load balancer was created.

Parameters:
createdTime Provides the date and time the load balancer was created.
 
     public void setCreatedTime(java.util.Date createdTime) {
         this. = createdTime;
     }
    
    
Provides the date and time the load balancer was created.

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

Parameters:
createdTime Provides the date and time the load balancer was created.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public LoadBalancerDescription withCreatedTime(java.util.Date createdTime) {
         this. = createdTime;
         return this;
     }

    
Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

Returns:
Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

 
     public String getScheme() {
         return ;
     }
    
    
Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

Parameters:
scheme Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

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

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

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

Parameters:
scheme Specifies the type of load balancer.

If the Scheme is internet-facing, the load balancer has a publicly resolvable DNS name that resolves to public IP addresses.

If the Scheme is internal, the load balancer has a publicly resolvable DNS name that resolves to private IP addresses.

This option is only available for load balancers attached to an Amazon VPC.

Returns:
A reference to this updated object so that method calls can be chained together.
    public LoadBalancerDescription withScheme(String scheme) {
        this. = scheme;
        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 (getDNSName() != nullsb.append("DNSName: " + getDNSName() + ",");
        if (getCanonicalHostedZoneName() != nullsb.append("CanonicalHostedZoneName: " + getCanonicalHostedZoneName() + ",");
        if (getCanonicalHostedZoneNameID() != nullsb.append("CanonicalHostedZoneNameID: " + getCanonicalHostedZoneNameID() + ",");
        if (getListenerDescriptions() != nullsb.append("ListenerDescriptions: " + getListenerDescriptions() + ",");
        if (getPolicies() != nullsb.append("Policies: " + getPolicies() + ",");
        if (getBackendServerDescriptions() != nullsb.append("BackendServerDescriptions: " + getBackendServerDescriptions() + ",");
        if (getAvailabilityZones() != nullsb.append("AvailabilityZones: " + getAvailabilityZones() + ",");
        if (getSubnets() != nullsb.append("Subnets: " + getSubnets() + ",");
        if (getVPCId() != nullsb.append("VPCId: " + getVPCId() + ",");
        if (getInstances() != nullsb.append("Instances: " + getInstances() + ",");
        if (getHealthCheck() != nullsb.append("HealthCheck: " + getHealthCheck() + ",");
        if (getSourceSecurityGroup() != nullsb.append("SourceSecurityGroup: " + getSourceSecurityGroup() + ",");
        if (getSecurityGroups() != nullsb.append("SecurityGroups: " + getSecurityGroups() + ",");
        if (getCreatedTime() != nullsb.append("CreatedTime: " + getCreatedTime() + ",");
        if (getScheme() != nullsb.append("Scheme: " + getScheme() );
        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 + ((getDNSName() == null) ? 0 : getDNSName().hashCode()); 
        hashCode = prime * hashCode + ((getCanonicalHostedZoneName() == null) ? 0 : getCanonicalHostedZoneName().hashCode()); 
        hashCode = prime * hashCode + ((getCanonicalHostedZoneNameID() == null) ? 0 : getCanonicalHostedZoneNameID().hashCode()); 
        hashCode = prime * hashCode + ((getListenerDescriptions() == null) ? 0 : getListenerDescriptions().hashCode()); 
        hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().hashCode()); 
        hashCode = prime * hashCode + ((getBackendServerDescriptions() == null) ? 0 : getBackendServerDescriptions().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode()); 
        hashCode = prime * hashCode + ((getSubnets() == null) ? 0 : getSubnets().hashCode()); 
        hashCode = prime * hashCode + ((getVPCId() == null) ? 0 : getVPCId().hashCode()); 
        hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode()); 
        hashCode = prime * hashCode + ((getHealthCheck() == null) ? 0 : getHealthCheck().hashCode()); 
        hashCode = prime * hashCode + ((getSourceSecurityGroup() == null) ? 0 : getSourceSecurityGroup().hashCode()); 
        hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode()); 
        hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); 
        hashCode = prime * hashCode + ((getScheme() == null) ? 0 : getScheme().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof LoadBalancerDescription == falsereturn false;
        LoadBalancerDescription other = (LoadBalancerDescription)obj;
        
        if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == nullreturn false;
        if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == falsereturn false
        if (other.getDNSName() == null ^ this.getDNSName() == nullreturn false;
        if (other.getDNSName() != null && other.getDNSName().equals(this.getDNSName()) == falsereturn false
        if (other.getCanonicalHostedZoneName() == null ^ this.getCanonicalHostedZoneName() == nullreturn false;
        if (other.getCanonicalHostedZoneName() != null && other.getCanonicalHostedZoneName().equals(this.getCanonicalHostedZoneName()) == falsereturn false
        if (other.getCanonicalHostedZoneNameID() == null ^ this.getCanonicalHostedZoneNameID() == nullreturn false;
        if (other.getCanonicalHostedZoneNameID() != null && other.getCanonicalHostedZoneNameID().equals(this.getCanonicalHostedZoneNameID()) == falsereturn false
        if (other.getListenerDescriptions() == null ^ this.getListenerDescriptions() == nullreturn false;
        if (other.getListenerDescriptions() != null && other.getListenerDescriptions().equals(this.getListenerDescriptions()) == falsereturn false
        if (other.getPolicies() == null ^ this.getPolicies() == nullreturn false;
        if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == falsereturn false
        if (other.getBackendServerDescriptions() == null ^ this.getBackendServerDescriptions() == nullreturn false;
        if (other.getBackendServerDescriptions() != null && other.getBackendServerDescriptions().equals(this.getBackendServerDescriptions()) == 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.getVPCId() == null ^ this.getVPCId() == nullreturn false;
        if (other.getVPCId() != null && other.getVPCId().equals(this.getVPCId()) == falsereturn false
        if (other.getInstances() == null ^ this.getInstances() == nullreturn false;
        if (other.getInstances() != null && other.getInstances().equals(this.getInstances()) == falsereturn false
        if (other.getHealthCheck() == null ^ this.getHealthCheck() == nullreturn false;
        if (other.getHealthCheck() != null && other.getHealthCheck().equals(this.getHealthCheck()) == falsereturn false
        if (other.getSourceSecurityGroup() == null ^ this.getSourceSecurityGroup() == nullreturn false;
        if (other.getSourceSecurityGroup() != null && other.getSourceSecurityGroup().equals(this.getSourceSecurityGroup()) == falsereturn false
        if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == nullreturn false;
        if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == falsereturn false
        if (other.getCreatedTime() == null ^ this.getCreatedTime() == nullreturn false;
        if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == falsereturn false
        if (other.getScheme() == null ^ this.getScheme() == nullreturn false;
        if (other.getScheme() != null && other.getScheme().equals(this.getScheme()) == falsereturn false
        return true;
    }
    
    @Override
    public LoadBalancerDescription clone() {
        try {
            return (LoadBalancerDescriptionsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X