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

    Constructors
    Constructor
    Description
    Permissions(boolean canList, boolean canGet, boolean canWait, boolean canDestroy)
    Creates an instance of a Permissions record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Returns the value of the canDestroy record component.
    boolean
    Returns the value of the canGet record component.
    boolean
    Returns the value of the canList record component.
    boolean
    Returns the value of the canWait record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • Permissions

      public Permissions(boolean canList, boolean canGet, boolean canWait, boolean canDestroy)
      Creates an instance of a Permissions record class.
      Parameters:
      canList - the value for the canList record component
      canGet - the value for the canGet record component
      canWait - the value for the canWait record component
      canDestroy - the value for the canDestroy record component
  • Method Details

    • allGranted

      public boolean allGranted()
    • missing

      public List<String> missing()
    • 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 '=='.
      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.
    • canList

      public boolean canList()
      Returns the value of the canList record component.
      Returns:
      the value of the canList record component
    • canGet

      public boolean canGet()
      Returns the value of the canGet record component.
      Returns:
      the value of the canGet record component
    • canWait

      public boolean canWait()
      Returns the value of the canWait record component.
      Returns:
      the value of the canWait record component
    • canDestroy

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