@Generated(value="OracleSDKGenerator", comments="API Version: 20170907") public final class Suppression extends Object
The full information representing an email suppression.
Note: Objects should always be created or deserialized using the Suppression.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 the Suppression.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Suppression.Builder |
static class |
Suppression.Reason
The reason that the email address was suppressed.
|
Constructor and Description |
---|
Suppression(String compartmentId,
String emailAddress,
String id,
Suppression.Reason reason,
Date timeCreated)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Suppression.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCompartmentId()
The OCID of the compartment to contain the suppression.
|
String |
getEmailAddress()
Email address of the suppression.
|
String |
getId()
The unique ID of the suppression.
|
Suppression.Reason |
getReason()
The reason that the email address was suppressed.
|
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.
|
int |
hashCode() |
Suppression.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"compartmentId","emailAddress","id","reason","timeCreated"}) @Deprecated public Suppression(String compartmentId, String emailAddress, String id, Suppression.Reason reason, Date timeCreated)
public static Suppression.Builder builder()
Create a new builder.
public Suppression.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
public String getEmailAddress()
Email address of the suppression.
public String getId()
The unique ID of the suppression.
public Suppression.Reason getReason()
The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
public 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.
Copyright © 2016–2021. All rights reserved.