Record Class CAI1CommandRolesAssign
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1CommandRolesAssign
- Record Components:
fieldUser- The target user.fieldRoles- The assigned roles.
- All Implemented Interfaces:
ProtocolCAIType,ProtocolCAIv1Type,com.io7m.cedarbridge.runtime.api.CBProtocolMessageType,com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1CommandRolesAssign(com.io7m.cedarbridge.runtime.api.CBUUID fieldUser, com.io7m.cedarbridge.runtime.api.CBList<com.io7m.cedarbridge.runtime.api.CBString> fieldRoles)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType, ProtocolCAIv1Type
Assign a set of roles to a user.
-
Constructor Summary
ConstructorsConstructorDescriptionCAI1CommandRolesAssign(com.io7m.cedarbridge.runtime.api.CBUUID fieldUser, com.io7m.cedarbridge.runtime.api.CBList<com.io7m.cedarbridge.runtime.api.CBString> fieldRoles) Creates an instance of aCAI1CommandRolesAssignrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1CommandRolesAssigndeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type CAI1CommandRolesAssign.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBList<com.io7m.cedarbridge.runtime.api.CBString> Returns the value of thefieldRolesrecord component.com.io7m.cedarbridge.runtime.api.CBUUIDReturns the value of thefieldUserrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1CommandRolesAssign $x) Serialize a value of type CAI1CommandRolesAssign.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1CommandRolesAssign
public CAI1CommandRolesAssign(com.io7m.cedarbridge.runtime.api.CBUUID fieldUser, com.io7m.cedarbridge.runtime.api.CBList<com.io7m.cedarbridge.runtime.api.CBString> fieldRoles) Creates an instance of aCAI1CommandRolesAssignrecord class.- Parameters:
fieldUser- the value for thefieldUserrecord componentfieldRoles- the value for thefieldRolesrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1CommandRolesAssign $x) throws IOException Serialize a value of type CAI1CommandRolesAssign.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1CommandRolesAssign deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type CAI1CommandRolesAssign.- Parameters:
$context- The serialization context.- Returns:
- A value of type CAI1CommandRolesAssign.
- Throws:
IOException
-
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). -
fieldUser
-
fieldRoles
public com.io7m.cedarbridge.runtime.api.CBList<com.io7m.cedarbridge.runtime.api.CBString> fieldRoles()Returns the value of thefieldRolesrecord component.- Returns:
- the value of the
fieldRolesrecord component
-