Record Class LoadBalancer
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionLoadBalancer(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 aLoadBalancerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.ApplicationIdReturns the value of theapplicationrecord component.Optional<com.yahoo.config.provision.CloudAccount>Returns the value of thecloudAccountrecord component.com.yahoo.config.provision.ClusterSpec.Idcluster()Returns the value of theclusterrecord component.dnsZone()Returns the value of thednsZonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<ai.vespa.http.DomainName>hostname()Returns the value of thehostnamerecord component.id()Returns the value of theidrecord component.Returns the value of theipAddressrecord component.booleanisPublic()Returns the value of theisPublicrecord component.service()Returns the value of theservicerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
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 aLoadBalancerrecord class.- Parameters:
id- the value for theidrecord componentapplication- the value for theapplicationrecord componentcluster- the value for theclusterrecord componenthostname- the value for thehostnamerecord componentipAddress- the value for theipAddressrecord componentstate- the value for thestaterecord componentdnsZone- the value for thednsZonerecord componentcloudAccount- the value for thecloudAccountrecord componentservice- the value for theservicerecord componentisPublic- the value for theisPublicrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
application
public com.yahoo.config.provision.ApplicationId application()Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-
cluster
public com.yahoo.config.provision.ClusterSpec.Id cluster()Returns the value of theclusterrecord component.- Returns:
- the value of the
clusterrecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
dnsZone
Returns the value of thednsZonerecord component.- Returns:
- the value of the
dnsZonerecord component
-
cloudAccount
Returns the value of thecloudAccountrecord component.- Returns:
- the value of the
cloudAccountrecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
isPublic
public boolean isPublic()Returns the value of theisPublicrecord component.- Returns:
- the value of the
isPublicrecord component
-