Class IosNotificationSettings

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class IosNotificationSettings
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “An item describing notification setting.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • appName

        protected String appName
      • badgesEnabled

        protected Boolean badgesEnabled
      • bundleID

        protected String bundleID
      • enabled

        protected Boolean enabled
      • publisher

        protected String publisher
      • showInNotificationCenter

        protected Boolean showInNotificationCenter
      • showOnLockScreen

        protected Boolean showOnLockScreen
      • soundsEnabled

        protected Boolean soundsEnabled
    • Constructor Detail

      • IosNotificationSettings

        protected IosNotificationSettings()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getAlertType

        public Optional<IosNotificationAlertType> getAlertType()
        “Indicates the type of alert for notifications for this app.”
        Returns:
        property alertType
      • withAlertType

        public IosNotificationSettings withAlertType​(IosNotificationAlertType alertType)
        Returns an immutable copy of this with just the alertType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates the type of alert for notifications for this app.”

        Parameters:
        alertType - new value of alertType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the alertType field changed
      • getAppName

        public Optional<String> getAppName()
        “Application name to be associated with the bundleID.”
        Returns:
        property appName
      • withAppName

        public IosNotificationSettings withAppName​(String appName)
        Returns an immutable copy of this with just the appName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Application name to be associated with the bundleID.”

        Parameters:
        appName - new value of appName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the appName field changed
      • getBadgesEnabled

        public Optional<Boolean> getBadgesEnabled()
        “Indicates whether badges are allowed for this app.”
        Returns:
        property badgesEnabled
      • withBadgesEnabled

        public IosNotificationSettings withBadgesEnabled​(Boolean badgesEnabled)
        Returns an immutable copy of this with just the badgesEnabled field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates whether badges are allowed for this app.”

        Parameters:
        badgesEnabled - new value of badgesEnabled field (as defined in service metadata)
        Returns:
        immutable copy of this with just the badgesEnabled field changed
      • getBundleID

        public Optional<String> getBundleID()
        “Bundle id of app to which to apply these notification settings.”
        Returns:
        property bundleID
      • withBundleID

        public IosNotificationSettings withBundleID​(String bundleID)
        Returns an immutable copy of this with just the bundleID field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Bundle id of app to which to apply these notification settings.”

        Parameters:
        bundleID - new value of bundleID field (as defined in service metadata)
        Returns:
        immutable copy of this with just the bundleID field changed
      • getEnabled

        public Optional<Boolean> getEnabled()
        “Indicates whether notifications are allowed for this app.”
        Returns:
        property enabled
      • withEnabled

        public IosNotificationSettings withEnabled​(Boolean enabled)
        Returns an immutable copy of this with just the enabled field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates whether notifications are allowed for this app.”

        Parameters:
        enabled - new value of enabled field (as defined in service metadata)
        Returns:
        immutable copy of this with just the enabled field changed
      • getPublisher

        public Optional<String> getPublisher()
        “Publisher to be associated with the bundleID.”
        Returns:
        property publisher
      • withPublisher

        public IosNotificationSettings withPublisher​(String publisher)
        Returns an immutable copy of this with just the publisher field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Publisher to be associated with the bundleID.”

        Parameters:
        publisher - new value of publisher field (as defined in service metadata)
        Returns:
        immutable copy of this with just the publisher field changed
      • getShowInNotificationCenter

        public Optional<Boolean> getShowInNotificationCenter()
        “Indicates whether notifications can be shown in notification center.”
        Returns:
        property showInNotificationCenter
      • withShowInNotificationCenter

        public IosNotificationSettings withShowInNotificationCenter​(Boolean showInNotificationCenter)
        Returns an immutable copy of this with just the showInNotificationCenter field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates whether notifications can be shown in notification center.”

        Parameters:
        showInNotificationCenter - new value of showInNotificationCenter field (as defined in service metadata)
        Returns:
        immutable copy of this with just the showInNotificationCenter field changed
      • getShowOnLockScreen

        public Optional<Boolean> getShowOnLockScreen()
        “Indicates whether notifications can be shown on the lock screen.”
        Returns:
        property showOnLockScreen
      • withShowOnLockScreen

        public IosNotificationSettings withShowOnLockScreen​(Boolean showOnLockScreen)
        Returns an immutable copy of this with just the showOnLockScreen field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates whether notifications can be shown on the lock screen.”

        Parameters:
        showOnLockScreen - new value of showOnLockScreen field (as defined in service metadata)
        Returns:
        immutable copy of this with just the showOnLockScreen field changed
      • getSoundsEnabled

        public Optional<Boolean> getSoundsEnabled()
        “Indicates whether sounds are allowed for this app.”
        Returns:
        property soundsEnabled
      • withSoundsEnabled

        public IosNotificationSettings withSoundsEnabled​(Boolean soundsEnabled)
        Returns an immutable copy of this with just the soundsEnabled field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates whether sounds are allowed for this app.”

        Parameters:
        soundsEnabled - new value of soundsEnabled field (as defined in service metadata)
        Returns:
        immutable copy of this with just the soundsEnabled field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static IosNotificationSettings.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class