Record Class ResolvedConfig

java.lang.Object
java.lang.Record
ai.chalk.client.ResolvedConfig

public record ResolvedConfig(@NonNull SourcedConfig apiServer, @NonNull SourcedConfig clientId, @NonNull SourcedConfig clientSecret, @NonNull SourcedConfig environmentId, @NonNull SourcedConfig rootCa) extends Record
  • Constructor Details

    • ResolvedConfig

      public ResolvedConfig(@NonNull SourcedConfig apiServer, @NonNull SourcedConfig clientId, @NonNull SourcedConfig clientSecret, @NonNull SourcedConfig environmentId, @NonNull SourcedConfig rootCa)
      Creates an instance of a ResolvedConfig record class.
      Parameters:
      apiServer - the value for the apiServer record component
      clientId - the value for the clientId record component
      clientSecret - the value for the clientSecret record component
      environmentId - the value for the environmentId record component
      rootCa - the value for the rootCa record component
  • Method Details

    • fromBuilder

      public static ResolvedConfig fromBuilder(ChalkClient.Builder builder, ProjectToken chalkYamlConfig)
    • grpcHost

      public String grpcHost()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • apiServer

      public @NonNull SourcedConfig apiServer()
      Returns the value of the apiServer record component.
      Returns:
      the value of the apiServer record component
    • clientId

      public @NonNull SourcedConfig clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • clientSecret

      public @NonNull SourcedConfig clientSecret()
      Returns the value of the clientSecret record component.
      Returns:
      the value of the clientSecret record component
    • environmentId

      public @NonNull SourcedConfig environmentId()
      Returns the value of the environmentId record component.
      Returns:
      the value of the environmentId record component
    • rootCa

      public @NonNull SourcedConfig rootCa()
      Returns the value of the rootCa record component.
      Returns:
      the value of the rootCa record component