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 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 a NamedProviderConfig record class.
      Parameters:
      name - the value for the name record component
      type - the value for the type record component
      wireApi - the value for the wireApi record component
      transport - the value for the transport record component
      baseUrl - the value for the baseUrl record component
      apiKey - the value for the apiKey record component
      bearerToken - the value for the bearerToken record component
      azure - the value for the azure record component
      headers - the value for the headers record component
      hasBearerTokenProvider - the value for the hasBearerTokenProvider record component
  • Method Details

    • 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public ProviderConfigType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • wireApi

      public ProviderConfigWireApi wireApi()
      Returns the value of the wireApi record component.
      Returns:
      the value of the wireApi record component
    • transport

      public ProviderConfigTransport transport()
      Returns the value of the transport record component.
      Returns:
      the value of the transport record component
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • apiKey

      public String apiKey()
      Returns the value of the apiKey record component.
      Returns:
      the value of the apiKey record component
    • bearerToken

      public String bearerToken()
      Returns the value of the bearerToken record component.
      Returns:
      the value of the bearerToken record component
    • azure

      public ProviderConfigAzure azure()
      Returns the value of the azure record component.
      Returns:
      the value of the azure record component
    • headers

      public Map<String,String> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • hasBearerTokenProvider

      public Boolean hasBearerTokenProvider()
      Returns the value of the hasBearerTokenProvider record component.
      Returns:
      the value of the hasBearerTokenProvider record component