Record Class CAICommandRolesRevoke
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.CAICommandRolesRevoke
- Record Components:
user- The userroles- The role
- All Implemented Interfaces:
CAProtocolMessageType,CAICommandType<CAIResponseRolesRevoke>,CAIMessageType,com.io7m.hibiscus.api.HBMessageType
public record CAICommandRolesRevoke(CAUserID user, Set<com.io7m.medrina.api.MRoleName> roles)
extends Record
implements CAICommandType<CAIResponseRolesRevoke>
Revoke the given roles from the given user.
-
Constructor Summary
ConstructorsConstructorDescriptionCAICommandRolesRevoke(CAUserID user, Set<com.io7m.medrina.api.MRoleName> roles) Revoke the given roles from the given user. -
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.Set<com.io7m.medrina.api.MRoleName> roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
CAICommandRolesRevoke
-
-
Method Details
-
responseClass
- Specified by:
responseClassin interfaceCAICommandType<CAIResponseRolesRevoke>- Returns:
- The response class associated with this command (excluding the error response)
-
toString
-
hashCode
-
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
-
roles
-