Package org.apache.nifi.gitlab
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
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theactiverecord component.private final StringThe field for thecreatedAtrecord component.private final StringThe field for theexpiresAtrecord component.private final longThe field for theidrecord component.private final StringThe field for thelastUsedAtrecord component.private final StringThe field for thenamerecord component.private final StringThe field for therevokedrecord component.The field for thescopesrecord component.private final longThe field for theuserIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.Returns the value of thecreatedAtrecord component.final 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.longid()Returns the value of theidrecord component.Returns the value of thelastUsedAtrecord component.name()Returns the value of thenamerecord component.revoked()Returns the value of therevokedrecord component.scopes()Returns the value of thescopesrecord component.final StringtoString()Returns a string representation of this record class.longuserId()Returns the value of theuserIdrecord component.
-
Field Details
-
id
private final long idThe field for theidrecord component. -
userId
private final long userIdThe field for theuserIdrecord component. -
name
The field for thenamerecord component. -
revoked
The field for therevokedrecord component. -
createdAt
The field for thecreatedAtrecord component. -
expiresAt
The field for theexpiresAtrecord component. -
lastUsedAt
The field for thelastUsedAtrecord component. -
scopes
The field for thescopesrecord component. -
active
private final boolean activeThe field for theactiverecord 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 aPersonalAccessTokenrecord class.- Parameters:
id- the value for theidrecord componentuserId- the value for theuserIdrecord componentname- the value for thenamerecord componentrevoked- the value for therevokedrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentlastUsedAt- the value for thelastUsedAtrecord componentscopes- the value for thescopesrecord componentactive- the value for theactiverecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
userId
public long userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
revoked
Returns the value of therevokedrecord component.- Returns:
- the value of the
revokedrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
lastUsedAt
Returns the value of thelastUsedAtrecord component.- Returns:
- the value of the
lastUsedAtrecord component
-
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-