Package ai.chalk.client
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 Summary
ConstructorsConstructorDescriptionResolvedConfig(@NonNull SourcedConfig apiServer, @NonNull SourcedConfig clientId, @NonNull SourcedConfig clientSecret, @NonNull SourcedConfig environmentId, @NonNull SourcedConfig rootCa) Creates an instance of aResolvedConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull SourcedConfigReturns the value of theapiServerrecord component.@NonNull SourcedConfigclientId()Returns the value of theclientIdrecord component.@NonNull SourcedConfigReturns the value of theclientSecretrecord component.@NonNull SourcedConfigReturns the value of theenvironmentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static ResolvedConfigfromBuilder(ChalkClient.Builder builder, ProjectToken chalkYamlConfig) grpcHost()final inthashCode()Returns a hash code value for this object.@NonNull SourcedConfigrootCa()Returns the value of therootCarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedConfig
public ResolvedConfig(@NonNull SourcedConfig apiServer, @NonNull SourcedConfig clientId, @NonNull SourcedConfig clientSecret, @NonNull SourcedConfig environmentId, @NonNull SourcedConfig rootCa) Creates an instance of aResolvedConfigrecord class.- Parameters:
apiServer- the value for theapiServerrecord componentclientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentenvironmentId- the value for theenvironmentIdrecord componentrootCa- the value for therootCarecord component
-
-
Method Details
-
fromBuilder
-
grpcHost
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
apiServer
Returns the value of theapiServerrecord component.- Returns:
- the value of the
apiServerrecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
environmentId
Returns the value of theenvironmentIdrecord component.- Returns:
- the value of the
environmentIdrecord component
-
rootCa
Returns the value of therootCarecord component.- Returns:
- the value of the
rootCarecord component
-