@Generated(value="OracleSDKGenerator", comments="API Version: 0.0.1") public class BaseAnnouncementsPreferences extends Object
The object that contains the announcement email preferences configured for the tenancy (root compartment).
Note: Objects should always be created or deserialized using the 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 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 | Constructor and Description |
---|---|
protected |
BaseAnnouncementsPreferences(String compartmentId,
String id,
Boolean isUnsubscribed,
Date timeCreated,
Date timeUpdated,
BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the compartment for which the email preferences apply.
|
String |
getId()
The ID of the preferences.
|
Boolean |
getIsUnsubscribed()
A Boolean value to indicate whether the specified compartment chooses to not to receive informational announcements by email.
|
BaseCreateAnnouncementsPreferencesDetails.PreferenceType |
getPreferenceType()
The string representing the user’s preference regarding receiving announcements by email.
|
Date |
getTimeCreated()
When the preferences were set initially.
|
Date |
getTimeUpdated()
When the preferences were last updated.
|
int |
hashCode() |
String |
toString() |
@Deprecated @ConstructorProperties(value={"compartmentId","id","isUnsubscribed","timeCreated","timeUpdated","preferenceType"}) protected BaseAnnouncementsPreferences(String compartmentId, String id, Boolean isUnsubscribed, Date timeCreated, Date timeUpdated, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType)
public String getCompartmentId()
The OCID of the compartment for which the email preferences apply. Because announcements are specific to a tenancy, specify the tenancy by providing the root compartment OCID.
public String getId()
The ID of the preferences.
public Boolean getIsUnsubscribed()
A Boolean value to indicate whether the specified compartment chooses to not to receive informational announcements by email.
(Manage preferences for receiving announcements by email by specifying the preferenceType
attribute instead.)
public Date getTimeCreated()
When the preferences were set initially.
public Date getTimeUpdated()
When the preferences were last updated.
public BaseCreateAnnouncementsPreferencesDetails.PreferenceType getPreferenceType()
The string representing the user’s preference regarding receiving announcements by email.
Copyright © 2016–2022. All rights reserved.