Record Class CloudAccountInfo
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.tenant.CloudAccountInfo
public record CloudAccountInfo(com.yahoo.config.provision.CloudAccount cloudAccount, com.yahoo.component.Version templateVersion)
extends Record
- Author:
- freva
-
Constructor Summary
ConstructorsConstructorDescriptionCloudAccountInfo(com.yahoo.config.provision.CloudAccount cloudAccount, com.yahoo.component.Version templateVersion) Creates an instance of aCloudAccountInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.CloudAccountReturns the value of thecloudAccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.yahoo.component.VersionReturns the value of thetemplateVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CloudAccountInfo
public CloudAccountInfo(com.yahoo.config.provision.CloudAccount cloudAccount, com.yahoo.component.Version templateVersion) Creates an instance of aCloudAccountInforecord class.- Parameters:
cloudAccount- the value for thecloudAccountrecord componenttemplateVersion- the value for thetemplateVersionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
cloudAccount
public com.yahoo.config.provision.CloudAccount cloudAccount()Returns the value of thecloudAccountrecord component.- Returns:
- the value of the
cloudAccountrecord component
-
templateVersion
public com.yahoo.component.Version templateVersion()Returns the value of thetemplateVersionrecord component.- Returns:
- the value of the
templateVersionrecord component
-