Record Class PersonalAccessToken

java.lang.Object
java.lang.Record
org.apache.nifi.gitlab.PersonalAccessToken

public record PersonalAccessToken(long id, long userId, String name, String revoked, String createdAt, String expiresAt, String lastUsedAt, List<String> scopes, boolean active) extends Record
Response from retrieving a personal access token from the GitLab API.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the active record component.
    private final String
    The field for the createdAt record component.
    private final String
    The field for the expiresAt record component.
    private final long
    The field for the id record component.
    private final String
    The field for the lastUsedAt record component.
    private final String
    The field for the name record component.
    private final String
    The field for the revoked record component.
    private final List<String>
    The field for the scopes record component.
    private final long
    The field for the userId record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PersonalAccessToken(long id, long userId, String name, String revoked, String createdAt, String expiresAt, String lastUsedAt, List<String> scopes, boolean active)
    Creates an instance of a PersonalAccessToken record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the active record component.
    Returns the value of the createdAt record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the expiresAt record component.
    final int
    Returns a hash code value for this object.
    long
    id()
    Returns the value of the id record component.
    Returns the value of the lastUsedAt record component.
    Returns the value of the name record component.
    Returns the value of the revoked record component.
    Returns the value of the scopes record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the userId record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      private final long id
      The field for the id record component.
    • userId

      private final long userId
      The field for the userId record component.
    • name

      private final String name
      The field for the name record component.
    • revoked

      private final String revoked
      The field for the revoked record component.
    • createdAt

      private final String createdAt
      The field for the createdAt record component.
    • expiresAt

      private final String expiresAt
      The field for the expiresAt record component.
    • lastUsedAt

      private final String lastUsedAt
      The field for the lastUsedAt record component.
    • scopes

      private final List<String> scopes
      The field for the scopes record component.
    • active

      private final boolean active
      The field for the active record component.
  • Constructor Details

    • PersonalAccessToken

      public PersonalAccessToken(long id, long userId, String name, String revoked, String createdAt, String expiresAt, String lastUsedAt, List<String> scopes, boolean active)
      Creates an instance of a PersonalAccessToken record class.
      Parameters:
      id - the value for the id record component
      userId - the value for the userId record component
      name - the value for the name record component
      revoked - the value for the revoked record component
      createdAt - the value for the createdAt record component
      expiresAt - the value for the expiresAt record component
      lastUsedAt - the value for the lastUsedAt record component
      scopes - the value for the scopes record component
      active - the value for the active 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • userId

      public long userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • revoked

      public String revoked()
      Returns the value of the revoked record component.
      Returns:
      the value of the revoked record component
    • createdAt

      public String createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiresAt

      public String expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • lastUsedAt

      public String lastUsedAt()
      Returns the value of the lastUsedAt record component.
      Returns:
      the value of the lastUsedAt record component
    • scopes

      public List<String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component
    • active

      public boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component