Record Class TokenRefreshRequest

java.lang.Object
java.lang.Record
de.chiflux.tesla.api.TokenRefreshRequest
Record Components:
refresh_token - refresh_token

public record TokenRefreshRequest(String refresh_token) extends Record
Access Token Refresh request
  • Constructor Details

    • TokenRefreshRequest

      public TokenRefreshRequest(String refresh_token)
      Creates an instance of a TokenRefreshRequest record class.
      Parameters:
      refresh_token - the value for the refresh_token record component
  • Method Details

    • getGrant_type

      public String getGrant_type()
      Fixed grant type
      Returns:
      Fixed grant type
    • getClient_id

      public String getClient_id()
      Fixed client id
      Returns:
      Fixed client id
    • getScope

      public String getScope()
      Fixed scope
      Returns:
      Fixed scope
    • 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.
    • refresh_token

      public String refresh_token()
      Returns the value of the refresh_token record component.
      Returns:
      the value of the refresh_token record component