Record Class SessionProviderGetEndpointResult

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionProviderGetEndpointResult

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SessionProviderGetEndpointResult(ProviderEndpointType type, ProviderEndpointWireApi wireApi, ProviderEndpointTransport transport, String baseUrl, String apiKey, Map<String,String> headers, ProviderSessionToken sessionToken) extends Record
A snapshot of the provider endpoint the session is currently configured to talk to.
Since:
1.0.0
  • Constructor Details

    • SessionProviderGetEndpointResult

      public SessionProviderGetEndpointResult(ProviderEndpointType type, ProviderEndpointWireApi wireApi, ProviderEndpointTransport transport, String baseUrl, String apiKey, Map<String,String> headers, ProviderSessionToken sessionToken)
      Creates an instance of a SessionProviderGetEndpointResult record class.
      Parameters:
      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
      headers - the value for the headers record component
      sessionToken - the value for the sessionToken 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.
    • type

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

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

      public ProviderEndpointTransport 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
    • headers

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

      public ProviderSessionToken sessionToken()
      Returns the value of the sessionToken record component.
      Returns:
      the value of the sessionToken record component