Class LoadBalancerDescription

java.lang.Object
com.amazonaws.services.elasticloadbalancing.model.LoadBalancerDescription
All Implemented Interfaces:
Serializable, Cloneable

public class LoadBalancerDescription extends Object implements Serializable, Cloneable

Information about a load balancer.

See Also:
  • Constructor Details

    • LoadBalancerDescription

      public LoadBalancerDescription()
  • Method Details

    • setLoadBalancerName

      public void setLoadBalancerName(String loadBalancerName)

      The name of the load balancer.

      Parameters:
      loadBalancerName - The name of the load balancer.
    • getLoadBalancerName

      public String getLoadBalancerName()

      The name of the load balancer.

      Returns:
      The name of the load balancer.
    • withLoadBalancerName

      public LoadBalancerDescription withLoadBalancerName(String loadBalancerName)

      The name of the load balancer.

      Parameters:
      loadBalancerName - The name of the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDNSName

      public void setDNSName(String dNSName)

      The external DNS name of the load balancer.

      Parameters:
      dNSName - The external DNS name of the load balancer.
    • getDNSName

      public String getDNSName()

      The external DNS name of the load balancer.

      Returns:
      The external DNS name of the load balancer.
    • withDNSName

      public LoadBalancerDescription withDNSName(String dNSName)

      The external DNS name of the load balancer.

      Parameters:
      dNSName - The external DNS name of the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCanonicalHostedZoneName

      public void setCanonicalHostedZoneName(String canonicalHostedZoneName)

      The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

      Parameters:
      canonicalHostedZoneName - The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

    • getCanonicalHostedZoneName

      public String getCanonicalHostedZoneName()

      The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

      Returns:
      The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

    • withCanonicalHostedZoneName

      public LoadBalancerDescription withCanonicalHostedZoneName(String canonicalHostedZoneName)

      The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

      Parameters:
      canonicalHostedZoneName - The Amazon Route 53 hosted zone associated with the load balancer.

      For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

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

      public void setCanonicalHostedZoneNameID(String canonicalHostedZoneNameID)

      The ID of the Amazon Route 53 hosted zone name associated with the load balancer.

      Parameters:
      canonicalHostedZoneNameID - The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
    • getCanonicalHostedZoneNameID

      public String getCanonicalHostedZoneNameID()

      The ID of the Amazon Route 53 hosted zone name associated with the load balancer.

      Returns:
      The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
    • withCanonicalHostedZoneNameID

      public LoadBalancerDescription withCanonicalHostedZoneNameID(String canonicalHostedZoneNameID)

      The ID of the Amazon Route 53 hosted zone name associated with the load balancer.

      Parameters:
      canonicalHostedZoneNameID - The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getListenerDescriptions

      public List<ListenerDescription> getListenerDescriptions()

      The listeners for the load balancer.

      Returns:
      The listeners for the load balancer.
    • setListenerDescriptions

      public void setListenerDescriptions(Collection<ListenerDescription> listenerDescriptions)

      The listeners for the load balancer.

      Parameters:
      listenerDescriptions - The listeners for the load balancer.
    • withListenerDescriptions

      public LoadBalancerDescription withListenerDescriptions(ListenerDescription... listenerDescriptions)

      The listeners for the load balancer.

      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.

      Parameters:
      listenerDescriptions - The listeners for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withListenerDescriptions

      public LoadBalancerDescription withListenerDescriptions(Collection<ListenerDescription> listenerDescriptions)

      The listeners for the load balancer.

      Parameters:
      listenerDescriptions - The listeners for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicies

      public void setPolicies(Policies policies)

      The policies defined for the load balancer.

      Parameters:
      policies - The policies defined for the load balancer.
    • getPolicies

      public Policies getPolicies()

      The policies defined for the load balancer.

      Returns:
      The policies defined for the load balancer.
    • withPolicies

      public LoadBalancerDescription withPolicies(Policies policies)

      The policies defined for the load balancer.

      Parameters:
      policies - The policies defined for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getBackendServerDescriptions

      public List<BackendServerDescription> getBackendServerDescriptions()

      Information about the back-end servers.

      Returns:
      Information about the back-end servers.
    • setBackendServerDescriptions

      public void setBackendServerDescriptions(Collection<BackendServerDescription> backendServerDescriptions)

      Information about the back-end servers.

      Parameters:
      backendServerDescriptions - Information about the back-end servers.
    • withBackendServerDescriptions

      public LoadBalancerDescription withBackendServerDescriptions(BackendServerDescription... backendServerDescriptions)

      Information about the back-end servers.

      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.

      Parameters:
      backendServerDescriptions - Information about the back-end servers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withBackendServerDescriptions

      public LoadBalancerDescription withBackendServerDescriptions(Collection<BackendServerDescription> backendServerDescriptions)

      Information about the back-end servers.

      Parameters:
      backendServerDescriptions - Information about the back-end servers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAvailabilityZones

      public List<String> getAvailabilityZones()

      The Availability Zones for the load balancer.

      Returns:
      The Availability Zones for the load balancer.
    • setAvailabilityZones

      public void setAvailabilityZones(Collection<String> availabilityZones)

      The Availability Zones for the load balancer.

      Parameters:
      availabilityZones - The Availability Zones for the load balancer.
    • withAvailabilityZones

      public LoadBalancerDescription withAvailabilityZones(String... availabilityZones)

      The Availability Zones for the load balancer.

      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 - The Availability Zones for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAvailabilityZones

      public LoadBalancerDescription withAvailabilityZones(Collection<String> availabilityZones)

      The Availability Zones for the load balancer.

      Parameters:
      availabilityZones - The Availability Zones for the load balancer.
      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 for the load balancer.

      Returns:
      The IDs of the subnets for the load balancer.
    • setSubnets

      public void setSubnets(Collection<String> subnets)

      The IDs of the subnets for the load balancer.

      Parameters:
      subnets - The IDs of the subnets for the load balancer.
    • withSubnets

      public LoadBalancerDescription withSubnets(String... subnets)

      The IDs of the subnets 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.

      Parameters:
      subnets - The IDs of the subnets for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSubnets

      public LoadBalancerDescription withSubnets(Collection<String> subnets)

      The IDs of the subnets for the load balancer.

      Parameters:
      subnets - The IDs of the subnets for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVPCId

      public void setVPCId(String vPCId)

      The ID of the VPC for the load balancer.

      Parameters:
      vPCId - The ID of the VPC for the load balancer.
    • getVPCId

      public String getVPCId()

      The ID of the VPC for the load balancer.

      Returns:
      The ID of the VPC for the load balancer.
    • withVPCId

      public LoadBalancerDescription withVPCId(String vPCId)

      The ID of the VPC for the load balancer.

      Parameters:
      vPCId - The ID of the VPC for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getInstances

      public List<Instance> getInstances()

      The IDs of the instances for the load balancer.

      Returns:
      The IDs of the instances for the load balancer.
    • setInstances

      public void setInstances(Collection<Instance> instances)

      The IDs of the instances for the load balancer.

      Parameters:
      instances - The IDs of the instances for the load balancer.
    • withInstances

      public LoadBalancerDescription withInstances(Instance... instances)

      The IDs of the instances 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.

      Parameters:
      instances - The IDs of the instances for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withInstances

      public LoadBalancerDescription withInstances(Collection<Instance> instances)

      The IDs of the instances for the load balancer.

      Parameters:
      instances - The IDs of the instances for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHealthCheck

      public void setHealthCheck(HealthCheck healthCheck)

      Information about the health checks conducted on the load balancer.

      Parameters:
      healthCheck - Information about the health checks conducted on the load balancer.
    • getHealthCheck

      public HealthCheck getHealthCheck()

      Information about the health checks conducted on the load balancer.

      Returns:
      Information about the health checks conducted on the load balancer.
    • withHealthCheck

      public LoadBalancerDescription withHealthCheck(HealthCheck healthCheck)

      Information about the health checks conducted on the load balancer.

      Parameters:
      healthCheck - Information about the health checks conducted on the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSourceSecurityGroup

      public void setSourceSecurityGroup(SourceSecurityGroup sourceSecurityGroup)

      The security group that you can use as part of your inbound rules for your load balancer's back-end 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 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.
    • getSourceSecurityGroup

      public SourceSecurityGroup getSourceSecurityGroup()

      The security group that you can use as part of your inbound rules for your load balancer's back-end 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 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.
    • withSourceSecurityGroup

      public LoadBalancerDescription withSourceSecurityGroup(SourceSecurityGroup sourceSecurityGroup)

      The security group that you can use as part of your inbound rules for your load balancer's back-end 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 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:
      Returns a reference to this object so that method calls can be chained together.
    • getSecurityGroups

      public List<String> getSecurityGroups()

      The security groups for the load balancer. Valid only for load balancers in a VPC.

      Returns:
      The security groups for the load balancer. Valid only for load balancers in a VPC.
    • setSecurityGroups

      public void setSecurityGroups(Collection<String> securityGroups)

      The security groups for the load balancer. Valid only for load balancers in a VPC.

      Parameters:
      securityGroups - The security groups for the load balancer. Valid only for load balancers in a VPC.
    • withSecurityGroups

      public LoadBalancerDescription withSecurityGroups(String... securityGroups)

      The security groups for the load balancer. Valid only for load balancers in a 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.

      Parameters:
      securityGroups - The security groups for the load balancer. Valid only for load balancers in a VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSecurityGroups

      public LoadBalancerDescription withSecurityGroups(Collection<String> securityGroups)

      The security groups for the load balancer. Valid only for load balancers in a VPC.

      Parameters:
      securityGroups - The security groups for the load balancer. Valid only for load balancers in a VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreatedTime

      public void setCreatedTime(Date createdTime)

      The date and time the load balancer was created.

      Parameters:
      createdTime - The date and time the load balancer was created.
    • getCreatedTime

      public Date getCreatedTime()

      The date and time the load balancer was created.

      Returns:
      The date and time the load balancer was created.
    • withCreatedTime

      public LoadBalancerDescription withCreatedTime(Date createdTime)

      The date and time the load balancer was created.

      Parameters:
      createdTime - The date and time the load balancer was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setScheme

      public void setScheme(String scheme)

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

    • getScheme

      public String getScheme()

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

    • withScheme

      public LoadBalancerDescription withScheme(String scheme)

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

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

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

      If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LoadBalancerDescription clone()
      Overrides:
      clone in class Object