Record Class ProviderSessionToken
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderSessionToken
@Generated("copilot-sdk-codegen")
public record ProviderSessionToken(String token, String header, String model, OffsetDateTime expiresAt)
extends Record
Short-lived, rotating credential the caller must send on every request, in addition to `apiKey` if one is present. Omitted when the endpoint does not require one.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderSessionToken(String token, String header, String model, OffsetDateTime expiresAt) Creates an instance of aProviderSessionTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.model()Returns the value of themodelrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderSessionToken
Creates an instance of aProviderSessionTokenrecord class.- Parameters:
token- the value for thetokenrecord componentheader- the value for theheaderrecord componentmodel- the value for themodelrecord componentexpiresAt- the value for theexpiresAtrecord 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). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-