Record Class ProviderStatus

java.lang.Object
java.lang.Record
ai.redouble.demo.ProviderStatus

public record ProviderStatus(String key, boolean configured, boolean session, String credential, List<CredentialView> credentials, Map<String,String> facts) extends Record
One provider on the status panel: its key, whether it is configured, whether a session credential holds it, the human description of its credential, the credentials it declares, and its connection facts.
Since:
0.1 (2026-09-24)
Author:
Andrey Santrosyan
  • Constructor Details

    • ProviderStatus

      public ProviderStatus(String key, boolean configured, boolean session, String credential, List<CredentialView> credentials, Map<String,String> facts)
      Creates an instance of a ProviderStatus record class.
      Parameters:
      key - the value for the key record component
      configured - the value for the configured record component
      session - the value for the session record component
      credential - the value for the credential record component
      credentials - the value for the credentials record component
      facts - the value for the facts 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.
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • configured

      public boolean configured()
      Returns the value of the configured record component.
      Returns:
      the value of the configured record component
    • session

      public boolean session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • credential

      public String credential()
      Returns the value of the credential record component.
      Returns:
      the value of the credential record component
    • credentials

      public List<CredentialView> credentials()
      Returns the value of the credentials record component.
      Returns:
      the value of the credentials record component
    • facts

      public Map<String,String> facts()
      Returns the value of the facts record component.
      Returns:
      the value of the facts record component