java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.configserver.LoadBalancer

public record LoadBalancer(String id, com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.ClusterSpec.Id cluster, Optional<ai.vespa.http.DomainName> hostname, Optional<String> ipAddress, LoadBalancer.State state, Optional<String> dnsZone, Optional<com.yahoo.config.provision.CloudAccount> cloudAccount, Optional<LoadBalancer.PrivateServiceInfo> service, boolean isPublic) extends Record
Represents an exclusive load balancer, assigned to an application's cluster.
Author:
mortent
  • Constructor Details

    • LoadBalancer

      public LoadBalancer(String id, com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.ClusterSpec.Id cluster, Optional<ai.vespa.http.DomainName> hostname, Optional<String> ipAddress, LoadBalancer.State state, Optional<String> dnsZone, Optional<com.yahoo.config.provision.CloudAccount> cloudAccount, Optional<LoadBalancer.PrivateServiceInfo> service, boolean isPublic)
      Creates an instance of a LoadBalancer record class.
      Parameters:
      id - the value for the id record component
      application - the value for the application record component
      cluster - the value for the cluster record component
      hostname - the value for the hostname record component
      ipAddress - the value for the ipAddress record component
      state - the value for the state record component
      dnsZone - the value for the dnsZone record component
      cloudAccount - the value for the cloudAccount record component
      service - the value for the service record component
      isPublic - the value for the isPublic record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • application

      public com.yahoo.config.provision.ApplicationId application()
      Returns the value of the application record component.
      Returns:
      the value of the application record component
    • cluster

      public com.yahoo.config.provision.ClusterSpec.Id cluster()
      Returns the value of the cluster record component.
      Returns:
      the value of the cluster record component
    • hostname

      public Optional<ai.vespa.http.DomainName> hostname()
      Returns the value of the hostname record component.
      Returns:
      the value of the hostname record component
    • ipAddress

      public Optional<String> ipAddress()
      Returns the value of the ipAddress record component.
      Returns:
      the value of the ipAddress record component
    • state

      public LoadBalancer.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • dnsZone

      public Optional<String> dnsZone()
      Returns the value of the dnsZone record component.
      Returns:
      the value of the dnsZone record component
    • cloudAccount

      public Optional<com.yahoo.config.provision.CloudAccount> cloudAccount()
      Returns the value of the cloudAccount record component.
      Returns:
      the value of the cloudAccount record component
    • service

      Returns the value of the service record component.
      Returns:
      the value of the service record component
    • isPublic

      public boolean isPublic()
      Returns the value of the isPublic record component.
      Returns:
      the value of the isPublic record component