Class 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.”
    • Constructor Detail

      • NotificationMessageTemplate

        protected NotificationMessageTemplate()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of this with just the brandingOptions 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.

        “The Message Template Branding Options. Branding is defined in the Intune Admin Console.”

        Parameters:
        brandingOptions - new value of brandingOptions field (as defined in service metadata)
        Returns:
        immutable copy of this with just the brandingOptions field 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 of this with just the defaultLocale 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.

        “The default locale to fallback onto when the requested locale is not available.”

        Parameters:
        defaultLocale - new value of defaultLocale field (as defined in service metadata)
        Returns:
        immutable copy of this with just the defaultLocale field 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 of this with just the displayName 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.

        “Display name for the Notification Message Template.”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field 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 of this with just the lastModifiedDateTime 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.

        “DateTime the object was last modified.”

        Parameters:
        lastModifiedDateTime - new value of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field 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 of this with just the roleScopeTagIds 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.

        “List of Scope Tags for this Entity instance.”

        Parameters:
        roleScopeTagIds - new value of roleScopeTagIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the roleScopeTagIds field 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
      • 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 of this with just the localizedNotificationMessages 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.

        “The list of localized messages for this Notification Message Template.”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public NotificationMessageTemplate patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public NotificationMessageTemplate put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • sendTestMessage

        public com.github.davidmoten.odata.client.ActionRequestNoReturn sendTestMessage()