Class BaseAnnouncementsPreferences
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.announcementsservice.model.BaseAnnouncementsPreferences
 
 
- 
- Direct Known Subclasses:
- AnnouncementsPreferences,- AnnouncementsPreferencesSummary
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 0.0.1") public class BaseAnnouncementsPreferences extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe object that contains the announcement email preferences configured for the tenancy (root compartment).
 Note: Objects should always be created or deserialized using theBuilder. 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 theBuilder, which maintain a set of all explicitly set fields calledBuilder#__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).
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBaseAnnouncementsPreferences(String compartmentId, String id, Boolean isUnsubscribed, Date timeCreated, Date timeUpdated, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType, String preferredTimeZone)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCompartmentId()The OCID of the compartment for which the email preferences apply.StringgetId()The ID of the preferences.BooleangetIsUnsubscribed()A Boolean value to indicate whether the specified compartment chooses to not to receive informational announcements by email.BaseCreateAnnouncementsPreferencesDetails.PreferenceTypegetPreferenceType()The string representing the user’s preference regarding receiving announcements by email.StringgetPreferredTimeZone()The time zone in which the user prefers to receive announcements.DategetTimeCreated()When the preferences were set initially.DategetTimeUpdated()When the preferences were last updated.inthashCode()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
BaseAnnouncementsPreferences@Deprecated @ConstructorProperties({"compartmentId","id","isUnsubscribed","timeCreated","timeUpdated","preferenceType","preferredTimeZone"}) protected BaseAnnouncementsPreferences(String compartmentId, String id, Boolean isUnsubscribed, Date timeCreated, Date timeUpdated, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType, String preferredTimeZone) Deprecated.
 
- 
 - 
Method Detail- 
getCompartmentIdpublic 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. - Returns:
- the value
 
 - 
getIdpublic String getId() The ID of the preferences.- Returns:
- the value
 
 - 
getIsUnsubscribedpublic 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.) - Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() When the preferences were set initially.- Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() When the preferences were last updated.- Returns:
- the value
 
 - 
getPreferenceTypepublic BaseCreateAnnouncementsPreferencesDetails.PreferenceType getPreferenceType() The string representing the user’s preference regarding receiving announcements by email.- Returns:
- the value
 
 - 
getPreferredTimeZonepublic String getPreferredTimeZone() The time zone in which the user prefers to receive announcements.Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles - 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
 
 
- 
 
-