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 Summary
ConstructorsConstructorDescriptionSessionProviderGetEndpointResult(ProviderEndpointType type, ProviderEndpointWireApi wireApi, ProviderEndpointTransport transport, String baseUrl, String apiKey, Map<String, String> headers, ProviderSessionToken sessionToken) Creates an instance of aSessionProviderGetEndpointResultrecord 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.headers()Returns the value of theheadersrecord component.Returns the value of thesessionTokenrecord 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
-
SessionProviderGetEndpointResult
public SessionProviderGetEndpointResult(ProviderEndpointType type, ProviderEndpointWireApi wireApi, ProviderEndpointTransport transport, String baseUrl, String apiKey, Map<String, String> headers, ProviderSessionToken sessionToken) Creates an instance of aSessionProviderGetEndpointResultrecord class.- Parameters:
type- the value for thetyperecord componentwireApi- the value for thewireApirecord componenttransport- the value for thetransportrecord componentbaseUrl- the value for thebaseUrlrecord componentapiKey- the value for theapiKeyrecord componentheaders- the value for theheadersrecord componentsessionToken- the value for thesessionTokenrecord 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). -
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
-
headers
-
sessionToken
Returns the value of thesessionTokenrecord component.- Returns:
- the value of the
sessionTokenrecord component
-