Class Preference
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.notification.user.subscriber.Preference
@ApiType("SoftLayer_Notification_User_Subscriber_Preference") public class Preference extends Entity
Preferences are settings that can be modified to change the behavior of the subscription. For example, modify the limit preference to only receive notifications 10 times instead of 1 during a billing cycle.
NOTE: Some preferences have certain restrictions on values that can be set.
NOTE: Some preferences have certain restrictions on values that can be set.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Preference.Mask
static interface
Preference.Service
static interface
Preference.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Preference
defaultPreference
Details such name, keyname, minimum and maximum values for the preference.protected Long
id
Unique identifier for the subscriber's preferences.protected boolean
idSpecified
protected Long
notificationPreferenceId
Unique identifier of the default preference for which the subscriber preference is based on.protected boolean
notificationPreferenceIdSpecified
protected Subscriber
notificationUserSubscriber
Details of the subscriber tied to the preference.protected Long
notificationUserSubscriberId
Unique identifier of the subscriber tied to the subscriber preference.protected boolean
notificationUserSubscriberIdSpecified
protected String
value
The user supplied value to "override" the "default" preference's value.protected boolean
valueSpecified
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
Constructor Summary
Constructors Constructor Description Preference()
-
Method Summary
Modifier and Type Method Description Preference.Service
asService(ApiClient client)
Preference
getDefaultPreference()
Long
getId()
Long
getNotificationPreferenceId()
Subscriber
getNotificationUserSubscriber()
Long
getNotificationUserSubscriberId()
String
getValue()
boolean
isIdSpecified()
boolean
isNotificationPreferenceIdSpecified()
boolean
isNotificationUserSubscriberIdSpecified()
boolean
isValueSpecified()
static Preference.Service
service(ApiClient client)
static Preference.Service
service(ApiClient client, Long id)
void
setDefaultPreference(Preference defaultPreference)
void
setId(Long id)
void
setNotificationPreferenceId(Long notificationPreferenceId)
void
setNotificationUserSubscriber(Subscriber notificationUserSubscriber)
void
setNotificationUserSubscriberId(Long notificationUserSubscriberId)
void
setValue(String value)
void
unsetId()
void
unsetNotificationPreferenceId()
void
unsetNotificationUserSubscriberId()
void
unsetValue()
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
Field Details
-
defaultPreference
Details such name, keyname, minimum and maximum values for the preference. -
notificationUserSubscriber
Details of the subscriber tied to the preference. -
id
Unique identifier for the subscriber's preferences. -
idSpecified
protected boolean idSpecified -
notificationPreferenceId
Unique identifier of the default preference for which the subscriber preference is based on. For example, if no preferences are supplied during the creation of a subscriber. The default values are pulled using this property. -
notificationPreferenceIdSpecified
protected boolean notificationPreferenceIdSpecified -
notificationUserSubscriberId
Unique identifier of the subscriber tied to the subscriber preference. -
notificationUserSubscriberIdSpecified
protected boolean notificationUserSubscriberIdSpecified -
value
The user supplied value to "override" the "default" preference's value. -
valueSpecified
protected boolean valueSpecified
-
-
Constructor Details
-
Preference
public Preference()
-
-
Method Details
-
getDefaultPreference
-
setDefaultPreference
-
getNotificationUserSubscriber
-
setNotificationUserSubscriber
-
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getNotificationPreferenceId
-
setNotificationPreferenceId
-
isNotificationPreferenceIdSpecified
public boolean isNotificationPreferenceIdSpecified() -
unsetNotificationPreferenceId
public void unsetNotificationPreferenceId() -
getNotificationUserSubscriberId
-
setNotificationUserSubscriberId
-
isNotificationUserSubscriberIdSpecified
public boolean isNotificationUserSubscriberIdSpecified() -
unsetNotificationUserSubscriberId
public void unsetNotificationUserSubscriberId() -
getValue
-
setValue
-
isValueSpecified
public boolean isValueSpecified() -
unsetValue
public void unsetValue() -
asService
-
service
-
service
-