Package com.vireocode.vireo.offline
Record Class OfflineSyncCommandDto
java.lang.Object
java.lang.Record
com.vireocode.vireo.offline.OfflineSyncCommandDto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.JsonNodebody()Returns the value of thebodyrecord component.@NotNull UUIDReturns the value of thecommandIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.@NotBlank Stringmethod()Returns the value of themethodrecord component.toString()Omits potentially sensitive body and header values from diagnostics.@NotBlank Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
OfflineSyncCommandDto
public OfflineSyncCommandDto(@NotNull @NotNull UUID commandId, @NotBlank @NotBlank String method, @NotBlank @NotBlank String url, tools.jackson.databind.JsonNode body, Map<String, String> headers) Creates an instance of aOfflineSyncCommandDtorecord class.- Parameters:
commandId- the value for thecommandIdrecord componentmethod- the value for themethodrecord componenturl- the value for theurlrecord componentbody- the value for thebodyrecord componentheaders- the value for theheadersrecord component
-
-
Method Details
-
toString
Omits potentially sensitive body and header values from diagnostics. -
hashCode
public final int 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). -
commandId
Returns the value of thecommandIdrecord component.- Returns:
- the value of the
commandIdrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
body
public tools.jackson.databind.JsonNode body()Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-