Package com.mxraven.admin.model
Class TenantSuppression
Hydrated TenantSuppression entity. Reads return a snapshot; call
reload() for fresh state.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTenantSuppression(AdminClient client, String path, TenantSuppressionData data) Creates a suppression bound to the given client, path, and data. -
Method Summary
Modifier and TypeMethodDescriptionaddedAt()Returns the timestamp when the suppression was added.Returns the provider-canonical mailbox identity used for matching.Returns the suppressed email address.longReturns the number of feedback signals that contributed to the suppression.Returns the timestamp of the latest contributing feedback signal.reason()Returns the reason the address is suppressed.reload()Re-fetches this suppression and returns a fresh snapshot.source()Returns the opaque provenance label, when the suppression has one.booleanReturns whether mxRaven feedback, rather than a customer, wrote the suppression.tenantId()Returns the identifier of the owning tenant.update(SuppressionReason reason) Replaces the suppression reason.update(UpdateTenantSuppressionRequest request) Replaces the suppression reason.update(Consumer<UpdateTenantSuppressionRequest.Builder> configure) Replaces the suppression reason using a builder.Returns the timestamp when the suppression was last updated.
-
Constructor Details
-
TenantSuppression
Creates a suppression bound to the given client, path, and data.- Parameters:
client- the admin clientpath- the resource pathdata- the backing data
-
-
Method Details
-
tenantId
Returns the identifier of the owning tenant.- Returns:
- the owning tenant identifier
-
emailAddress
Returns the suppressed email address.- Returns:
- the suppressed email address
-
reason
Returns the reason the address is suppressed.- Returns:
- the suppression reason
-
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:
truewhen the suppression is system-managed
-
source
Returns the opaque provenance label, when the suppression has one.- Returns:
- the provenance label, or
nullfor a manual suppression
-
feedbackCount
public long feedbackCount()Returns the number of feedback signals that contributed to the suppression.- Returns:
- the contributing feedback count
-
addedAt
Returns the timestamp when the suppression was added.- Returns:
- the addition timestamp
-
lastFeedbackAt
Returns the timestamp of the latest contributing feedback signal.- Returns:
- the latest feedback timestamp, or
null
-
updatedAt
Returns the timestamp when the suppression was last updated.- Returns:
- the last-update timestamp
-
reload
Re-fetches this suppression and returns a fresh snapshot.- Returns:
- a fresh suppression snapshot
- Throws:
IOException- if the request fails
-
update
Replaces the suppression reason.- Parameters:
reason- replacement suppression reason; may be null- Returns:
- the updated suppression
- Throws:
IOException- if the request fails
-
update
public TenantSuppression update(Consumer<UpdateTenantSuppressionRequest.Builder> configure) throws IOException 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
-