Record Class ProviderConfiguration
java.lang.Object
java.lang.Record
com.shaft.pilot.config.ProviderConfiguration
- Record Components:
id- provider identifierendpoint- provider endpointmodel- model identifierapiKeyEnvironmentVariable- environment variable containing credentials, or blank for local providersprocessingLocation- explicit processing location classificationoptions- non-secret provider protocol options
-
Constructor Summary
ConstructorsConstructorDescriptionProviderConfiguration(String id, URI endpoint, String model, String apiKeyEnvironmentVariable, ProcessingLocation processingLocation, Map<String, String> options) Creates validated provider configuration.ProviderConfiguration(String id, URI endpoint, String model, String apiKeyEnvironmentVariable, Map<String, String> options) Creates a backward-compatible provider configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiKeyEnvironmentVariablerecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.model()Returns the value of themodelrecord component.Returns a non-secret provider option.options()Returns the value of theoptionsrecord component.Returns the value of theprocessingLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderConfiguration
-
ProviderConfiguration
-
-
Method Details
-
option
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
endpoint
-
model
-
apiKeyEnvironmentVariable
Returns the value of theapiKeyEnvironmentVariablerecord component.- Returns:
- the value of the
apiKeyEnvironmentVariablerecord component
-
processingLocation
Returns the value of theprocessingLocationrecord component.- Returns:
- the value of the
processingLocationrecord component
-
options
-