Package com.oracle.bmc.email.model
Class Suppression
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.email.model.Suppression
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20170907") public final class Suppression extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe full information representing an email suppression.
 Note: Objects should always be created or deserialized using theSuppression.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theSuppression.Builder, which maintain a set of all explicitly set fields calledSuppression.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSuppression.Builder
 - 
Constructor SummaryConstructors Constructor Description Suppression(String compartmentId, String emailAddress, String id, SuppressionReason reason, Date timeCreated, Date timeLastSuppressed, String messageId, String errorDetail, String errorSource)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Suppression.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCompartmentId()The OCID of the compartment to contain the suppression.StringgetEmailAddress()Email address of the suppression.StringgetErrorDetail()The specific error message returned by a system that resulted in the suppression.StringgetErrorSource()DNS name of the source of the error that caused the suppression.StringgetId()The unique ID of the suppression.StringgetMessageId()The value of the Message-ID header from the email that triggered a suppression.SuppressionReasongetReason()The reason that the email address was suppressed.DategetTimeCreated()The date and time the suppression was added in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.DategetTimeLastSuppressed()The last date and time the suppression prevented submission in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.inthashCode()Suppression.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
Suppression@Deprecated @ConstructorProperties({"compartmentId","emailAddress","id","reason","timeCreated","timeLastSuppressed","messageId","errorDetail","errorSource"}) public Suppression(String compartmentId, String emailAddress, String id, SuppressionReason reason, Date timeCreated, Date timeLastSuppressed, String messageId, String errorDetail, String errorSource) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static Suppression.Builder builder() Create a new builder.
 - 
toBuilderpublic Suppression.Builder toBuilder() 
 - 
getCompartmentIdpublic String getCompartmentId() The OCID of the compartment to contain the suppression.Since suppressions are at the customer level, this must be the tenancy OCID. - Returns:
- the value
 
 - 
getEmailAddresspublic String getEmailAddress() Email address of the suppression.- Returns:
- the value
 
 - 
getIdpublic String getId() The unique ID of the suppression.- Returns:
- the value
 
 - 
getReasonpublic SuppressionReason getReason() The reason that the email address was suppressed.For more information on the types of bounces, see Suppression List. - Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the suppression was added in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.- Returns:
- the value
 
 - 
getTimeLastSuppressedpublic Date getTimeLastSuppressed() The last date and time the suppression prevented submission in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.- Returns:
- the value
 
 - 
getMessageIdpublic String getMessageId() 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. - Returns:
- the value
 
 - 
getErrorDetailpublic String getErrorDetail() 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. - Returns:
- the value
 
 - 
getErrorSourcepublic String getErrorSource() 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. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-