Record Class NamedProviderConfig
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.NamedProviderConfig
@Generated("copilot-sdk-codegen")
public record NamedProviderConfig(String name, ProviderConfigType type, ProviderConfigWireApi wireApi, ProviderConfigTransport transport, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, Map<String,String> headers, Boolean hasBearerTokenProvider)
extends Record
A named BYOK provider connection (transport + credentials).
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionNamedProviderConfig(String name, ProviderConfigType type, ProviderConfigWireApi wireApi, ProviderConfigTransport transport, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, Map<String, String> headers, Boolean hasBearerTokenProvider) Creates an instance of aNamedProviderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.azure()Returns the value of theazurerecord component.baseUrl()Returns the value of thebaseUrlrecord component.Returns the value of thebearerTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehasBearerTokenProviderrecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.type()Returns the value of thetyperecord component.wireApi()Returns the value of thewireApirecord component.
-
Constructor Details
-
NamedProviderConfig
public NamedProviderConfig(String name, ProviderConfigType type, ProviderConfigWireApi wireApi, ProviderConfigTransport transport, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, Map<String, String> headers, Boolean hasBearerTokenProvider) Creates an instance of aNamedProviderConfigrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentwireApi- the value for thewireApirecord componenttransport- the value for thetransportrecord componentbaseUrl- the value for thebaseUrlrecord componentapiKey- the value for theapiKeyrecord componentbearerToken- the value for thebearerTokenrecord componentazure- the value for theazurerecord componentheaders- the value for theheadersrecord componenthasBearerTokenProvider- the value for thehasBearerTokenProviderrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
wireApi
Returns the value of thewireApirecord component.- Returns:
- the value of the
wireApirecord component
-
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
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
-
bearerToken
Returns the value of thebearerTokenrecord component.- Returns:
- the value of the
bearerTokenrecord component
-
azure
Returns the value of theazurerecord component.- Returns:
- the value of the
azurerecord component
-
headers
-
hasBearerTokenProvider
Returns the value of thehasBearerTokenProviderrecord component.- Returns:
- the value of the
hasBearerTokenProviderrecord component
-