Record Class ResetarPowersyncStatusResponse

java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.powersync.ResetarPowersyncStatusResponse
Record Components:
resetId - identificador da execução de reset da replicação
status - status atual da execução
motivo - motivo informado ao iniciar a execução
iniciadoPor - identificação de quem iniciou a execução
iniciadoEm - data/hora de início da execução
concluidoEm - data/hora de conclusão da execução
tempoMs - tempo total da execução em milissegundos
stepAtual - passo em andamento no momento da consulta
erroMensagem - mensagem de erro, se a execução falhou
stepsCompletados - lista de passos já concluídos
detalhesJson - detalhes adicionais da execução em formato JSON

public record ResetarPowersyncStatusResponse(long resetId, String status, @Nullable String motivo, @Nullable String iniciadoPor, LocalDateTime iniciadoEm, @Nullable LocalDateTime concluidoEm, @Nullable Long tempoMs, @Nullable String stepAtual, @Nullable String erroMensagem, List<String> stepsCompletados, @Nullable String detalhesJson) extends Record
Resposta 200 do GET /api/transporte/admin/resetar-powersync/{id}.

Espelha o conteúdo da row em xls_resetar_powersync, com stepsCompletados e detalhes já parseados de JSONB para estruturas Java.

  • Constructor Details

    • ResetarPowersyncStatusResponse

      public ResetarPowersyncStatusResponse(long resetId, String status, @Nullable String motivo, @Nullable String iniciadoPor, LocalDateTime iniciadoEm, @Nullable LocalDateTime concluidoEm, @Nullable Long tempoMs, @Nullable String stepAtual, @Nullable String erroMensagem, List<String> stepsCompletados, @Nullable String detalhesJson)
      Creates an instance of a ResetarPowersyncStatusResponse record class.
      Parameters:
      resetId - the value for the resetId record component
      status - the value for the status record component
      motivo - the value for the motivo record component
      iniciadoPor - the value for the iniciadoPor record component
      iniciadoEm - the value for the iniciadoEm record component
      concluidoEm - the value for the concluidoEm record component
      tempoMs - the value for the tempoMs record component
      stepAtual - the value for the stepAtual record component
      erroMensagem - the value for the erroMensagem record component
      stepsCompletados - the value for the stepsCompletados record component
      detalhesJson - the value for the detalhesJson record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • resetId

      public long resetId()
      Returns the value of the resetId record component.
      Returns:
      the value of the resetId record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • motivo

      @Nullable public String motivo()
      Returns the value of the motivo record component.
      Returns:
      the value of the motivo record component
    • iniciadoPor

      @Nullable public String iniciadoPor()
      Returns the value of the iniciadoPor record component.
      Returns:
      the value of the iniciadoPor record component
    • iniciadoEm

      public LocalDateTime iniciadoEm()
      Returns the value of the iniciadoEm record component.
      Returns:
      the value of the iniciadoEm record component
    • concluidoEm

      @Nullable public LocalDateTime concluidoEm()
      Returns the value of the concluidoEm record component.
      Returns:
      the value of the concluidoEm record component
    • tempoMs

      @Nullable public Long tempoMs()
      Returns the value of the tempoMs record component.
      Returns:
      the value of the tempoMs record component
    • stepAtual

      @Nullable public String stepAtual()
      Returns the value of the stepAtual record component.
      Returns:
      the value of the stepAtual record component
    • erroMensagem

      @Nullable public String erroMensagem()
      Returns the value of the erroMensagem record component.
      Returns:
      the value of the erroMensagem record component
    • stepsCompletados

      public List<String> stepsCompletados()
      Returns the value of the stepsCompletados record component.
      Returns:
      the value of the stepsCompletados record component
    • detalhesJson

      @Nullable public String detalhesJson()
      Returns the value of the detalhesJson record component.
      Returns:
      the value of the detalhesJson record component