Package odata.msgraph.client.entity
Class NotificationMessageTemplate
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.NotificationMessageTemplate
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class NotificationMessageTemplate extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non- compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationMessageTemplate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected NotificationTemplateBrandingOptionsbrandingOptionsprotected StringdefaultLocaleprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected List<LocalizedNotificationMessage>localizedNotificationMessagesprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLink-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotificationMessageTemplate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationMessageTemplate.BuilderbuilderNotificationMessageTemplate()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<NotificationTemplateBrandingOptions>getBrandingOptions()“The Message Template Branding Options.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDefaultLocale()“The default locale to fallback onto when the requested locale is not available.”Optional<String>getDisplayName()“Display name for the Notification Message Template.”Optional<OffsetDateTime>getLastModifiedDateTime()“DateTime the object was last modified.”LocalizedNotificationMessageCollectionRequestgetLocalizedNotificationMessages()“The list of localized messages for this Notification Message Template.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tags for this Entity instance.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tags for this Entity instance.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()NotificationMessageTemplatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)NotificationMessageTemplateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnsendTestMessage()StringtoString()NotificationMessageTemplatewithBrandingOptions(NotificationTemplateBrandingOptions brandingOptions)Returns an immutable copy ofthiswith just thebrandingOptionsfield changed.NotificationMessageTemplatewithDefaultLocale(String defaultLocale)Returns an immutable copy ofthiswith just thedefaultLocalefield changed.NotificationMessageTemplatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.NotificationMessageTemplatewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.NotificationMessageTemplatewithLocalizedNotificationMessages(List<LocalizedNotificationMessage> localizedNotificationMessages)Returns an immutable copy ofthiswith just thelocalizedNotificationMessagesfield changed.NotificationMessageTemplatewithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.NotificationMessageTemplatewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
brandingOptions
protected NotificationTemplateBrandingOptions brandingOptions
-
defaultLocale
protected String defaultLocale
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
localizedNotificationMessages
protected List<LocalizedNotificationMessage> localizedNotificationMessages
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderNotificationMessageTemplate
public static NotificationMessageTemplate.Builder builderNotificationMessageTemplate()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getBrandingOptions
public Optional<NotificationTemplateBrandingOptions> getBrandingOptions()
“The Message Template Branding Options. Branding is defined in the Intune Admin Console.”- Returns:
- property brandingOptions
-
withBrandingOptions
public NotificationMessageTemplate withBrandingOptions(NotificationTemplateBrandingOptions brandingOptions)
Returns an immutable copy ofthiswith just thebrandingOptionsfield 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.“The Message Template Branding Options. Branding is defined in the Intune Admin Console.”
- Parameters:
brandingOptions- new value ofbrandingOptionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebrandingOptionsfield changed
-
getDefaultLocale
public Optional<String> getDefaultLocale()
“The default locale to fallback onto when the requested locale is not available.”- Returns:
- property defaultLocale
-
withDefaultLocale
public NotificationMessageTemplate withDefaultLocale(String defaultLocale)
Returns an immutable copy ofthiswith just thedefaultLocalefield 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.“The default locale to fallback onto when the requested locale is not available.”
- Parameters:
defaultLocale- new value ofdefaultLocalefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultLocalefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Display name for the Notification Message Template.”- Returns:
- property displayName
-
withDisplayName
public NotificationMessageTemplate withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Display name for the Notification Message Template.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public NotificationMessageTemplate withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“DateTime the object was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tags for this Entity instance.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public NotificationMessageTemplate withRoleScopeTagIds(List<String> roleScopeTagIds)
Returns an immutable copy ofthiswith just theroleScopeTagIdsfield 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.“List of Scope Tags for this Entity instance.”
- Parameters:
roleScopeTagIds- new value ofroleScopeTagIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagIdsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of Scope Tags for this Entity instance.”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
withUnmappedField
public NotificationMessageTemplate withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getLocalizedNotificationMessages
public LocalizedNotificationMessageCollectionRequest getLocalizedNotificationMessages()
“The list of localized messages for this Notification Message Template.”- Returns:
- navigational property localizedNotificationMessages
-
withLocalizedNotificationMessages
public NotificationMessageTemplate withLocalizedNotificationMessages(List<LocalizedNotificationMessage> localizedNotificationMessages)
Returns an immutable copy ofthiswith just thelocalizedNotificationMessagesfield 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.“The list of localized messages for this Notification Message Template.”
- Parameters:
localizedNotificationMessages- new value oflocalizedNotificationMessagesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelocalizedNotificationMessagesfield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public NotificationMessageTemplate patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public NotificationMessageTemplate put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
sendTestMessage
public com.github.davidmoten.odata.client.ActionRequestNoReturn sendTestMessage()
-
-