Class TenantSuppression

java.lang.Object
com.mxraven.admin.Entity<TenantSuppressionData>
com.mxraven.admin.model.TenantSuppression

public final class TenantSuppression extends Entity<TenantSuppressionData>
Hydrated TenantSuppression entity. Reads return a snapshot; call reload() for fresh state.
  • Constructor Details

    • TenantSuppression

      public TenantSuppression(AdminClient client, String path, TenantSuppressionData data)
      Creates a suppression bound to the given client, path, and data.
      Parameters:
      client - the admin client
      path - the resource path
      data - the backing data
  • Method Details

    • tenantId

      public String tenantId()
      Returns the identifier of the owning tenant.
      Returns:
      the owning tenant identifier
    • emailAddress

      public String emailAddress()
      Returns the suppressed email address.
      Returns:
      the suppressed email address
    • reason

      public SuppressionReason reason()
      Returns the reason the address is suppressed.
      Returns:
      the suppression reason
    • canonicalEmailAddress

      public String canonicalEmailAddress()
      Returns the provider-canonical mailbox identity used for matching.

      Provider-equivalent addresses (for example Gmail dot or subaddress variants and domain aliases) share one suppression and this value.

      Returns:
      the canonical email address
    • systemManaged

      public boolean systemManaged()
      Returns whether mxRaven feedback, rather than a customer, wrote the suppression. System-managed suppressions cannot be modified or deleted through the tenant API.
      Returns:
      true when the suppression is system-managed
    • source

      public String source()
      Returns the opaque provenance label, when the suppression has one.
      Returns:
      the provenance label, or null for a manual suppression
    • feedbackCount

      public long feedbackCount()
      Returns the number of feedback signals that contributed to the suppression.
      Returns:
      the contributing feedback count
    • addedAt

      public String addedAt()
      Returns the timestamp when the suppression was added.
      Returns:
      the addition timestamp
    • lastFeedbackAt

      public String lastFeedbackAt()
      Returns the timestamp of the latest contributing feedback signal.
      Returns:
      the latest feedback timestamp, or null
    • updatedAt

      public String updatedAt()
      Returns the timestamp when the suppression was last updated.
      Returns:
      the last-update timestamp
    • reload

      public TenantSuppression reload() throws IOException
      Re-fetches this suppression and returns a fresh snapshot.
      Returns:
      a fresh suppression snapshot
      Throws:
      IOException - if the request fails
    • update

      public TenantSuppression update(SuppressionReason reason) throws IOException
      Replaces the suppression reason.
      Parameters:
      reason - replacement suppression reason; may be null
      Returns:
      the updated suppression
      Throws:
      IOException - if the request fails
    • update

      Replaces the suppression reason using a builder.
      Parameters:
      configure - callback that configures the update request
      Returns:
      the updated suppression
      Throws:
      IOException - if the request fails
    • update

      Replaces the suppression reason.
      Parameters:
      request - replacement request
      Returns:
      the updated suppression
      Throws:
      IOException - if the request fails