Record Class NamespaceClient.Permissions
java.lang.Object
java.lang.Record
io.jenkins.plugins.namespacecloud.client.NamespaceClient.Permissions
- Enclosing class:
NamespaceClient
public static record NamespaceClient.Permissions(boolean canList, boolean canGet, boolean canWait, boolean canDestroy)
extends Record
Which of the actions the plugin needs this token actually carries.
-
Constructor Summary
ConstructorsConstructorDescriptionPermissions(boolean canList, boolean canGet, boolean canWait, boolean canDestroy) Creates an instance of aPermissionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns the value of thecanDestroyrecord component.booleancanGet()Returns the value of thecanGetrecord component.booleancanList()Returns the value of thecanListrecord component.booleancanWait()Returns the value of thecanWaitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.missing()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Permissions
public Permissions(boolean canList, boolean canGet, boolean canWait, boolean canDestroy) Creates an instance of aPermissionsrecord class.- Parameters:
canList- the value for thecanListrecord componentcanGet- the value for thecanGetrecord componentcanWait- the value for thecanWaitrecord componentcanDestroy- the value for thecanDestroyrecord component
-
-
Method Details
-
allGranted
public boolean allGranted() -
missing
-
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 with '=='. -
canList
public boolean canList()Returns the value of thecanListrecord component.- Returns:
- the value of the
canListrecord component
-
canGet
public boolean canGet()Returns the value of thecanGetrecord component.- Returns:
- the value of the
canGetrecord component
-
canWait
public boolean canWait()Returns the value of thecanWaitrecord component.- Returns:
- the value of the
canWaitrecord component
-
canDestroy
public boolean canDestroy()Returns the value of thecanDestroyrecord component.- Returns:
- the value of the
canDestroyrecord component
-