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.
See Also:
SoftLayer_Notification_User_Subscriber_Preference
  • Field Details

    • defaultPreference

      @ApiProperty protected Preference defaultPreference
      Details such name, keyname, minimum and maximum values for the preference.
    • notificationUserSubscriber

      @ApiProperty protected Subscriber notificationUserSubscriber
      Details of the subscriber tied to the preference.
    • id

      @ApiProperty(canBeNullOrNotSet=true) protected Long id
      Unique identifier for the subscriber's preferences.
    • idSpecified

      protected boolean idSpecified
    • notificationPreferenceId

      @ApiProperty(canBeNullOrNotSet=true) protected Long 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

      @ApiProperty(canBeNullOrNotSet=true) protected Long notificationUserSubscriberId
      Unique identifier of the subscriber tied to the subscriber preference.
    • notificationUserSubscriberIdSpecified

      protected boolean notificationUserSubscriberIdSpecified
    • value

      @ApiProperty(canBeNullOrNotSet=true) protected String value
      The user supplied value to "override" the "default" preference's value.
    • valueSpecified

      protected boolean valueSpecified
  • Constructor Details

    • Preference

      public Preference()
  • Method Details

    • getDefaultPreference

      public Preference getDefaultPreference()
    • setDefaultPreference

      public void setDefaultPreference​(Preference defaultPreference)
    • getNotificationUserSubscriber

      public Subscriber getNotificationUserSubscriber()
    • setNotificationUserSubscriber

      public void setNotificationUserSubscriber​(Subscriber notificationUserSubscriber)
    • getId

      public Long getId()
    • setId

      public void setId​(Long id)
    • isIdSpecified

      public boolean isIdSpecified()
    • unsetId

      public void unsetId()
    • getNotificationPreferenceId

      public Long getNotificationPreferenceId()
    • setNotificationPreferenceId

      public void setNotificationPreferenceId​(Long notificationPreferenceId)
    • isNotificationPreferenceIdSpecified

      public boolean isNotificationPreferenceIdSpecified()
    • unsetNotificationPreferenceId

      public void unsetNotificationPreferenceId()
    • getNotificationUserSubscriberId

      public Long getNotificationUserSubscriberId()
    • setNotificationUserSubscriberId

      public void setNotificationUserSubscriberId​(Long notificationUserSubscriberId)
    • isNotificationUserSubscriberIdSpecified

      public boolean isNotificationUserSubscriberIdSpecified()
    • unsetNotificationUserSubscriberId

      public void unsetNotificationUserSubscriberId()
    • getValue

      public String getValue()
    • setValue

      public void setValue​(String value)
    • isValueSpecified

      public boolean isValueSpecified()
    • unsetValue

      public void unsetValue()
    • asService

      public Preference.Service asService​(ApiClient client)
    • service

      public static Preference.Service service​(ApiClient client)
    • service

      public static Preference.Service service​(ApiClient client, Long id)