Record Class CJ1AuditEvent
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1AuditEvent
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("An audit event.")
public record CJ1AuditEvent(CJ1UnsignedLong id, OffsetDateTime time, UUID owner, String type, Map<String,String> data)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1AuditEvent(CJ1UnsignedLong id, OffsetDateTime time, UUID owner, String type, Map<String, String> data) Creates an instance of aCJ1AuditEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.owner()Returns the value of theownerrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CJ1AuditEvent
public CJ1AuditEvent(@JsonPropertyDescription("The event ID.") CJ1UnsignedLong id, @JsonPropertyDescription("The event time.") OffsetDateTime time, @JsonPropertyDescription("The event owner.") UUID owner, @JsonPropertyDescription("The event type.") String type, @JsonPropertyDescription("The event data.") Map<String, String> data) Creates an instance of aCJ1AuditEventrecord class.- Parameters:
id- the value for theidrecord componenttime- the value for thetimerecord componentowner- the value for theownerrecord componenttype- the value for thetyperecord componentdata- the value for thedatarecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
data
-