Package org.apache.nifi.gitlab
Record Class GitLabRepositoryClient.TokenInfo
java.lang.Object
java.lang.Record
org.apache.nifi.gitlab.GitLabRepositoryClient.TokenInfo
- Enclosing class:
GitLabRepositoryClient
private static record GitLabRepositoryClient.TokenInfo(String name, boolean canReadApi, boolean canWriteApi)
extends Record
Holder for information about the permissions of the provided token.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thecanReadApirecord component.private final booleanThe field for thecanWriteApirecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanReadApirecord component.booleanReturns the value of thecanWriteApirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
canReadApi
private final boolean canReadApiThe field for thecanReadApirecord component. -
canWriteApi
private final boolean canWriteApiThe field for thecanWriteApirecord component.
-
-
Constructor Details
-
TokenInfo
Creates an instance of aTokenInforecord class.- Parameters:
name- the value for thenamerecord componentcanReadApi- the value for thecanReadApirecord componentcanWriteApi- the value for thecanWriteApirecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
canReadApi
public boolean canReadApi()Returns the value of thecanReadApirecord component.- Returns:
- the value of the
canReadApirecord component
-
canWriteApi
public boolean canWriteApi()Returns the value of thecanWriteApirecord component.- Returns:
- the value of the
canWriteApirecord component
-