public static class Suppression.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Suppression |
build() |
Suppression.Builder |
compartmentId(String compartmentId)
The OCID of the compartment to contain the suppression.
|
Suppression.Builder |
copy(Suppression model) |
Suppression.Builder |
emailAddress(String emailAddress)
Email address of the suppression.
|
Suppression.Builder |
errorDetail(String errorDetail)
The specific error message returned by a system that resulted in the suppression.
|
Suppression.Builder |
errorSource(String errorSource)
DNS name of the source of the error that caused the suppression.
|
Suppression.Builder |
id(String id)
The unique ID of the suppression.
|
Suppression.Builder |
messageId(String messageId)
The value of the Message-ID header from the email that triggered a suppression.
|
Suppression.Builder |
reason(SuppressionReason reason)
The reason that the email address was suppressed.
|
Suppression.Builder |
timeCreated(Date timeCreated)
The date and time the suppression was added in “YYYY-MM-ddThh:mmZ” format with a Z
offset, as defined by RFC 3339.
|
Suppression.Builder |
timeLastSuppressed(Date timeLastSuppressed)
The last date and time the suppression prevented submission in “YYYY-MM-ddThh:mmZ” format
with a Z offset, as defined by RFC 3339.
|
public Suppression.Builder compartmentId(String compartmentId)
The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
compartmentId
- the value to setpublic Suppression.Builder emailAddress(String emailAddress)
Email address of the suppression.
emailAddress
- the value to setpublic Suppression.Builder id(String id)
The unique ID of the suppression.
id
- the value to setpublic Suppression.Builder reason(SuppressionReason reason)
The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
reason
- the value to setpublic Suppression.Builder timeCreated(Date timeCreated)
The date and time the suppression was added in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.
timeCreated
- the value to setpublic Suppression.Builder timeLastSuppressed(Date timeLastSuppressed)
The last date and time the suppression prevented submission in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.
timeLastSuppressed
- the value to setpublic Suppression.Builder messageId(String messageId)
The value of the Message-ID header from the email that triggered a suppression. This value is as defined in RFC 5322 section 3.6.4, excluding angle-brackets. Not provided for all types of suppressions.
messageId
- the value to setpublic Suppression.Builder errorDetail(String errorDetail)
The specific error message returned by a system that resulted in the suppression. This message is usually an SMTP error code with additional descriptive text. Not provided for all types of suppressions.
errorDetail
- the value to setpublic Suppression.Builder errorSource(String errorSource)
DNS name of the source of the error that caused the suppression. Will be set to either the remote-mta or reporting-mta field from a delivery status notification (RFC 3464) when available. Not provided for all types of suppressions, and not always known.
Note: Most SMTP errors that cause suppressions come from software run by email receiving systems rather than from OCI email delivery itself.
errorSource
- the value to setpublic Suppression build()
public Suppression.Builder copy(Suppression model)
Copyright © 2016–2024. All rights reserved.