Record Class VespaUniqueInstanceId
java.lang.Object
java.lang.Record
com.yahoo.vespa.athenz.identityprovider.api.VespaUniqueInstanceId
public record VespaUniqueInstanceId(int clusterIndex, String clusterId, String instance, String application, String tenant, String region, String environment, IdentityType type)
extends Record
Represents the unique instance id as used in Vespa's integration with Athenz Copper Argos
- Author:
- bjorncs
-
Constructor Summary
ConstructorDescriptionVespaUniqueInstanceId
(int clusterIndex, String clusterId, String instance, String application, String tenant, String region, String environment, IdentityType type) Creates an instance of aVespaUniqueInstanceId
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplication
record component.Returns the value of theclusterId
record component.int
Returns the value of theclusterIndex
record component.Returns the value of theenvironment
record component.final boolean
Indicates whether some other object is "equal to" this one.static VespaUniqueInstanceId
fromDottedString
(String instanceId) final int
hashCode()
Returns a hash code value for this object.instance()
Returns the value of theinstance
record component.region()
Returns the value of theregion
record component.tenant()
Returns the value of thetenant
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
VespaUniqueInstanceId
public VespaUniqueInstanceId(int clusterIndex, String clusterId, String instance, String application, String tenant, String region, String environment, IdentityType type) Creates an instance of aVespaUniqueInstanceId
record class.- Parameters:
clusterIndex
- the value for theclusterIndex
record componentclusterId
- the value for theclusterId
record componentinstance
- the value for theinstance
record componentapplication
- the value for theapplication
record componenttenant
- the value for thetenant
record componentregion
- the value for theregion
record componentenvironment
- the value for theenvironment
record componenttype
- the value for thetype
record component
-
-
Method Details
-
fromDottedString
-
asDottedString
-
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 '=='. -
clusterIndex
public int clusterIndex()Returns the value of theclusterIndex
record component.- Returns:
- the value of the
clusterIndex
record component
-
clusterId
Returns the value of theclusterId
record component.- Returns:
- the value of the
clusterId
record component
-
instance
Returns the value of theinstance
record component.- Returns:
- the value of the
instance
record component
-
application
Returns the value of theapplication
record component.- Returns:
- the value of the
application
record component
-
tenant
Returns the value of thetenant
record component.- Returns:
- the value of the
tenant
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
environment
Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-