Record Class HostPasswordRotationStore.Pending

java.lang.Object
java.lang.Record
ecmwf.common.database.HostPasswordRotationStore.Pending
Enclosing class:
HostPasswordRotationStore

public static record HostPasswordRotationStore.Pending(UUID reference, HostPasswordRotationStore.State state, Instant createdAt, String testedEndpoint, Instant testedAt, String testedHostConfiguration, long retirementGraceSeconds) extends Record
  • Constructor Details

    • Pending

      public Pending(UUID reference, HostPasswordRotationStore.State state, Instant createdAt, String testedEndpoint, Instant testedAt, String testedHostConfiguration, long retirementGraceSeconds)
      Creates an instance of a Pending record class.
      Parameters:
      reference - the value for the reference record component
      state - the value for the state record component
      createdAt - the value for the createdAt record component
      testedEndpoint - the value for the testedEndpoint record component
      testedAt - the value for the testedAt record component
      testedHostConfiguration - the value for the testedHostConfiguration record component
      retirementGraceSeconds - the value for the retirementGraceSeconds 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 the compare method from their corresponding wrapper classes.
      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.
    • reference

      public UUID reference()
      Returns the value of the reference record component.
      Returns:
      the value of the reference record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • testedEndpoint

      public String testedEndpoint()
      Returns the value of the testedEndpoint record component.
      Returns:
      the value of the testedEndpoint record component
    • testedAt

      public Instant testedAt()
      Returns the value of the testedAt record component.
      Returns:
      the value of the testedAt record component
    • testedHostConfiguration

      public String testedHostConfiguration()
      Returns the value of the testedHostConfiguration record component.
      Returns:
      the value of the testedHostConfiguration record component
    • retirementGraceSeconds

      public long retirementGraceSeconds()
      Returns the value of the retirementGraceSeconds record component.
      Returns:
      the value of the retirementGraceSeconds record component