Class ErasureRequest

java.lang.Object
ai.vectros.resources.compliance.requests.ErasureRequest

public final class ErasureRequest extends Object
  • Method Details

    • getSubjectType

      public String getSubjectType()
      Returns:
      The kind of end-subject to erase: user for a person, or an ownership namespace such as org or client — including a custom namespace you have defined.
    • getSubjectId

      public Optional<String> getSubjectId()
      Returns:
      The platform id of the subject to erase (the Vectros-assigned id returned when the subject was created). Provide exactly one of subjectId or externalId.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      Your own externalId for the subject, as an alternative to subjectId. Provide exactly one of subjectId or externalId.
    • getContextScope

      public Optional<List<String>> getContextScope()
      Returns:
      The contexts in which to erase the subject. As the data controller, you declare the blast radius: each listed context is erased independently and reported separately on the certificate. Omit or leave empty to erase every context the subject has data in; those contexts are then enumerated and erased one at a time, never as a single account-wide sweep. Any context you do not list is left untouched, and managing that residual data is your responsibility.
    • getAuditDisposition

      public Optional<ErasureRequestAuditDisposition> getAuditDisposition()
      Returns:
      How to handle the subject's audit and version-history trail. This governs only the audit data — the subject's records and documents are always erased regardless. retain-redacted (the default) keeps the compliance audit trail with sensitive data redacted; purge additionally hard-removes the audit history itself (subject to your legal obligations).
    • 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 ErasureRequest.SubjectTypeStage builder()