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 aGrantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.may()Returns the value of themayrecord component.role()Returns the value of therolerecord component.toString()To string.user()Returns the value of theuserrecord 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 theuserrecord component.- Returns:
- the value of the
userrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
may
Returns the value of themayrecord component.- Returns:
- the value of the
mayrecord component
-