Class BaseCreateAnnouncementsPreferencesDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.announcementsservice.model.BaseCreateAnnouncementsPreferencesDetails
-
- Direct Known Subclasses:
CreateAnnouncementsPreferencesDetails,UpdateAnnouncementsPreferencesDetails
@Generated(value="OracleSDKGenerator", comments="API Version: 0.0.1") public class BaseCreateAnnouncementsPreferencesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe model for the parameters of 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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseCreateAnnouncementsPreferencesDetails.PreferenceTypeThe string representing the user’s preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseCreateAnnouncementsPreferencesDetails(Boolean isUnsubscribed, String compartmentId, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType, String preferredTimeZone)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCompartmentId()The OCID of the compartment for which you want to manage announcement email 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, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements.StringgetPreferredTimeZone()The time zone in which the user prefers to receive announcements.inthashCode()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
BaseCreateAnnouncementsPreferencesDetails
@Deprecated @ConstructorProperties({"isUnsubscribed","compartmentId","preferenceType","preferredTimeZone"}) protected BaseCreateAnnouncementsPreferencesDetails(Boolean isUnsubscribed, String compartmentId, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType, String preferredTimeZone)
Deprecated.
-
-
Method Detail
-
getIsUnsubscribed
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.)
- Returns:
- the value
-
getCompartmentId
public String getCompartmentId()
The OCID of the compartment for which you want to manage announcement email preferences.(Specify the tenancy by providing the root compartment OCID.)
- Returns:
- the value
-
getPreferenceType
public BaseCreateAnnouncementsPreferencesDetails.PreferenceType getPreferenceType()
The string representing the user’s preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements.- Returns:
- the value
-
getPreferredTimeZone
public 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
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-