Class ErasureRequestResponse

java.lang.Object
ai.vectros.types.ErasureRequestResponse

public final class ErasureRequestResponse extends Object
  • Method Details

    • getRequestId

      public Optional<String> getRequestId()
      Returns:
      Opaque identifier for the erasure request. Pass this to GET /v1/erasure-requests/{id} to poll for status and, once complete, the certificate.
    • getStatus

      Returns:
      Current status of the job. accepted immediately after submission, then processing while the erasure runs, then either completed (the certificate is populated) or failed (see failureReason).
    • getSubjectType

      public Optional<ErasureRequestResponseSubjectType> getSubjectType()
      Returns:
      The kind of subject that was erased (user, client, or org), echoed back from your request.
    • getSubjectId

      public Optional<String> getSubjectId()
      Returns:
      The resolved platform id of the erased subject, echoed back once it has been resolved.
    • getCreatedAt

      public Optional<String> getCreatedAt()
      Returns:
      When the request was accepted, as an ISO-8601 UTC timestamp.
    • getCompletedAt

      public Optional<String> getCompletedAt()
      Returns:
      When the erasure finished, as an ISO-8601 UTC timestamp. Null until status is completed.
    • getFailureReason

      public Optional<String> getFailureReason()
      Returns:
      Reason the erasure failed, suitable for display or programmatic handling so you do not have to inspect logs. Present only when status is failed; null otherwise.
    • getCertificate

      public Optional<ErasureCertificate> getCertificate()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ErasureRequestResponse.Builder builder()