Package org.jdrupes.vmoperator.common
Record Class VmDefinition.Grant
java.lang.Object
java.lang.Record
org.jdrupes.vmoperator.common.VmDefinition.Grant
- Record Components:
user
- the userrole
- the rolemay
- the may
- Enclosing class:
VmDefinition
public static record VmDefinition.Grant(String user, String role, Set<VmDefinition.Permission> may)
extends Record
Permissions granted to a user or role.
-
Constructor Summary
ConstructorsConstructorDescriptionGrant
(String user, String role, Set<VmDefinition.Permission> may) Creates an instance of aGrant
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.may()
Returns the value of themay
record component.role()
Returns the value of therole
record component.toString()
To string.user()
Returns the value of theuser
record component.
-
Constructor Details
-
Method Details
-
toString
To string. -
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 withObjects::equals(Object,Object)
. -
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
may
Returns the value of themay
record component.- Returns:
- the value of the
may
record component
-