Package de.chiflux.tesla.api
Record Class TokenRefreshRequest
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.TokenRefreshRequest
- Record Components:
refresh_token- refresh_token
Access Token Refresh request
-
Constructor Summary
ConstructorsConstructorDescriptionTokenRefreshRequest(String refresh_token) Creates an instance of aTokenRefreshRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Fixed client idFixed grant typegetScope()Fixed scopefinal inthashCode()Returns a hash code value for this object.Returns the value of therefresh_tokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenRefreshRequest
Creates an instance of aTokenRefreshRequestrecord class.- Parameters:
refresh_token- the value for therefresh_tokenrecord component
-
-
Method Details
-
getGrant_type
Fixed grant type- Returns:
- Fixed grant type
-
getClient_id
Fixed client id- Returns:
- Fixed client id
-
getScope
Fixed scope- Returns:
- Fixed scope
-
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. -
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. -
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). -
refresh_token
Returns the value of therefresh_tokenrecord component.- Returns:
- the value of the
refresh_tokenrecord component
-