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 Summary
ConstructorsConstructorDescriptionProviderStatus(String key, boolean configured, boolean session, String credential, List<CredentialView> credentials, Map<String, String> facts) Creates an instance of aProviderStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconfiguredrecord component.Returns the value of thecredentialrecord component.Returns the value of thecredentialsrecord component.final booleanIndicates whether some other object is "equal to" this one.facts()Returns the value of thefactsrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.booleansession()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderStatus
public ProviderStatus(String key, boolean configured, boolean session, String credential, List<CredentialView> credentials, Map<String, String> facts) Creates an instance of aProviderStatusrecord class.- Parameters:
key- the value for thekeyrecord componentconfigured- the value for theconfiguredrecord componentsession- the value for thesessionrecord componentcredential- the value for thecredentialrecord componentcredentials- the value for thecredentialsrecord componentfacts- the value for thefactsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
configured
public boolean configured()Returns the value of theconfiguredrecord component.- Returns:
- the value of the
configuredrecord component
-
session
public boolean session()Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
credential
Returns the value of thecredentialrecord component.- Returns:
- the value of the
credentialrecord component
-
credentials
Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-
facts
-