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 Details

    • VespaUniqueInstanceId

      public VespaUniqueInstanceId(int clusterIndex, String clusterId, String instance, String application, String tenant, String region, String environment, IdentityType type)
      Creates an instance of a VespaUniqueInstanceId record class.
      Parameters:
      clusterIndex - the value for the clusterIndex record component
      clusterId - the value for the clusterId record component
      instance - the value for the instance record component
      application - the value for the application record component
      tenant - the value for the tenant record component
      region - the value for the region record component
      environment - the value for the environment record component
      type - the value for the type record component
  • Method Details

    • fromDottedString

      public static VespaUniqueInstanceId fromDottedString(String instanceId)
    • asDottedString

      public String asDottedString()
    • 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.
    • clusterIndex

      public int clusterIndex()
      Returns the value of the clusterIndex record component.
      Returns:
      the value of the clusterIndex record component
    • clusterId

      public String clusterId()
      Returns the value of the clusterId record component.
      Returns:
      the value of the clusterId record component
    • instance

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

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

      public String tenant()
      Returns the value of the tenant record component.
      Returns:
      the value of the tenant record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • environment

      public String environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • type

      public IdentityType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component