Record Class OfflineSyncCommandDto

java.lang.Object
java.lang.Record
com.vireocode.vireo.offline.OfflineSyncCommandDto

public record OfflineSyncCommandDto(@NotNull UUID commandId, @NotBlank String method, @NotBlank String url, tools.jackson.databind.JsonNode body, Map<String,String> headers) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    OfflineSyncCommandDto(@NotNull UUID commandId, @NotBlank String method, @NotBlank String url, tools.jackson.databind.JsonNode body, Map<String,String> headers)
    Creates an instance of a OfflineSyncCommandDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    tools.jackson.databind.JsonNode
    Returns the value of the body record component.
    @NotNull UUID
    Returns the value of the commandId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the headers record component.
    @NotBlank String
    Returns the value of the method record component.
    Omits potentially sensitive body and header values from diagnostics.
    @NotBlank String
    url()
    Returns the value of the url record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a OfflineSyncCommandDto record class.
      Parameters:
      commandId - the value for the commandId record component
      method - the value for the method record component
      url - the value for the url record component
      body - the value for the body record component
      headers - the value for the headers record component
  • Method Details

    • toString

      public String toString()
      Omits potentially sensitive body and header values from diagnostics.
      Specified by:
      toString in class Record
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • commandId

      @NotNull public @NotNull UUID commandId()
      Returns the value of the commandId record component.
      Returns:
      the value of the commandId record component
    • method

      @NotBlank public @NotBlank String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • url

      @NotBlank public @NotBlank String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • body

      public tools.jackson.databind.JsonNode body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • headers

      public Map<String,String> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component