Record Class CJ1Location
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1Location
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("A location.")
public record CJ1Location(UUID id, Optional<UUID> parent, List<String> path, OffsetDateTime timeCreated, OffsetDateTime timeUpdated, Map<CJ1TypeRecordFieldIdentifier, CJ1MetadataType> metadata, List<CJ1AttachmentItem> attachments, Set<CJ1TypeRecordIdentifier> types)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1Location(UUID id, Optional<UUID> parent, List<String> path, OffsetDateTime timeCreated, OffsetDateTime timeUpdated, Map<CJ1TypeRecordFieldIdentifier, CJ1MetadataType> metadata, List<CJ1AttachmentItem> attachments, Set<CJ1TypeRecordIdentifier> types) Creates an instance of aCJ1Locationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord 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.metadata()Returns the value of themetadatarecord component.parent()Returns the value of theparentrecord component.path()Returns the value of thepathrecord component.Returns the value of thetimeCreatedrecord component.Returns the value of thetimeUpdatedrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
CJ1Location
public CJ1Location(@JsonPropertyDescription("The location ID.") UUID id, @JsonPropertyDescription("The location parent.") Optional<UUID> parent, @JsonPropertyDescription("The location path.") List<String> path, @JsonPropertyDescription("The location creation time.") OffsetDateTime timeCreated, @JsonPropertyDescription("The location most recent update time.") OffsetDateTime timeUpdated, @JsonPropertyDescription("The location metadata.") Map<CJ1TypeRecordFieldIdentifier, CJ1MetadataType> metadata, @JsonPropertyDescription("The location attachments.") List<CJ1AttachmentItem> attachments, @JsonPropertyDescription("The location types.") Set<CJ1TypeRecordIdentifier> types) Creates an instance of aCJ1Locationrecord class.- Parameters:
id- the value for theidrecord componentparent- the value for theparentrecord componentpath- the value for thepathrecord componenttimeCreated- the value for thetimeCreatedrecord componenttimeUpdated- the value for thetimeUpdatedrecord componentmetadata- the value for themetadatarecord componentattachments- the value for theattachmentsrecord componenttypes- the value for thetypesrecord 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
-
parent
-
path
-
timeCreated
Returns the value of thetimeCreatedrecord component.- Returns:
- the value of the
timeCreatedrecord component
-
timeUpdated
@JsonPropertyDescription("The location most recent update time.") public OffsetDateTime timeUpdated()Returns the value of thetimeUpdatedrecord component.- Returns:
- the value of the
timeUpdatedrecord component
-
metadata
@JsonPropertyDescription("The location metadata.") public Map<CJ1TypeRecordFieldIdentifier, CJ1MetadataType> metadata()Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-