Record Class OpenAIAutoConfigurationUtil.ResolvedConnectionProperties
java.lang.Object
java.lang.Record
org.springframework.ai.model.openai.autoconfigure.OpenAIAutoConfigurationUtil.ResolvedConnectionProperties
- Enclosing class:
OpenAIAutoConfigurationUtil
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedConnectionProperties(String baseUrl, String apiKey, org.springframework.http.HttpHeaders headers) Creates an instance of aResolvedConnectionPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.baseUrl()Returns the value of thebaseUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.springframework.http.HttpHeadersheaders()Returns the value of theheadersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedConnectionProperties
public ResolvedConnectionProperties(String baseUrl, String apiKey, org.springframework.http.HttpHeaders headers) Creates an instance of aResolvedConnectionPropertiesrecord class.- Parameters:
baseUrl- the value for thebaseUrlrecord componentapiKey- the value for theapiKeyrecord componentheaders- the value for theheadersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
headers
public org.springframework.http.HttpHeaders headers()Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-