Package odata.msgraph.client.complex
Class IosNotificationSettings
- java.lang.Object
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIosNotificationSettings.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IosNotificationAlertTypealertTypeprotected StringappNameprotected BooleanbadgesEnabledprotected StringbundleIDprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Booleanenabledprotected StringodataTypeprotected Stringpublisherprotected BooleanshowInNotificationCenterprotected BooleanshowOnLockScreenprotected BooleansoundsEnabledprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedIosNotificationSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IosNotificationSettings.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<IosNotificationAlertType>getAlertType()“Indicates the type of alert for notifications for this app.”Optional<String>getAppName()“Application name to be associated with the bundleID.”Optional<Boolean>getBadgesEnabled()“Indicates whether badges are allowed for this app.”Optional<String>getBundleID()“Bundle id of app to which to apply these notification settings.”Optional<Boolean>getEnabled()“Indicates whether notifications are allowed for this app.”Optional<String>getPublisher()“Publisher to be associated with the bundleID.”Optional<Boolean>getShowInNotificationCenter()“Indicates whether notifications can be shown in notification center.”Optional<Boolean>getShowOnLockScreen()“Indicates whether notifications can be shown on the lock screen.”Optional<Boolean>getSoundsEnabled()“Indicates whether sounds are allowed for this app.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()IosNotificationSettingswithAlertType(IosNotificationAlertType alertType)Returns an immutable copy ofthiswith just thealertTypefield changed.IosNotificationSettingswithAppName(String appName)Returns an immutable copy ofthiswith just theappNamefield changed.IosNotificationSettingswithBadgesEnabled(Boolean badgesEnabled)Returns an immutable copy ofthiswith just thebadgesEnabledfield changed.IosNotificationSettingswithBundleID(String bundleID)Returns an immutable copy ofthiswith just thebundleIDfield changed.IosNotificationSettingswithEnabled(Boolean enabled)Returns an immutable copy ofthiswith just theenabledfield changed.IosNotificationSettingswithPublisher(String publisher)Returns an immutable copy ofthiswith just thepublisherfield changed.IosNotificationSettingswithShowInNotificationCenter(Boolean showInNotificationCenter)Returns an immutable copy ofthiswith just theshowInNotificationCenterfield changed.IosNotificationSettingswithShowOnLockScreen(Boolean showOnLockScreen)Returns an immutable copy ofthiswith just theshowOnLockScreenfield changed.IosNotificationSettingswithSoundsEnabled(Boolean soundsEnabled)Returns an immutable copy ofthiswith just thesoundsEnabledfield changed.IosNotificationSettingswithUnmappedField(String name, String value)
-
-
-
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
-
alertType
protected IosNotificationAlertType alertType
-
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
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.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 ofthiswith just thealertTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofalertTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thealertTypefield 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 ofthiswith just theappNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofappNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappNamefield 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 ofthiswith just thebadgesEnabledfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofbadgesEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebadgesEnabledfield 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 ofthiswith just thebundleIDfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofbundleIDfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebundleIDfield 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 ofthiswith just theenabledfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofenabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledfield 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 ofthiswith just thepublisherfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofpublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublisherfield 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 ofthiswith just theshowInNotificationCenterfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofshowInNotificationCenterfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theshowInNotificationCenterfield 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 ofthiswith just theshowOnLockScreenfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofshowOnLockScreenfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theshowOnLockScreenfield 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 ofthiswith just thesoundsEnabledfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofsoundsEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesoundsEnabledfield changed
-
withUnmappedField
public IosNotificationSettings withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.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
-
-