Class NotificationMessageTemplate

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.NotificationMessageTemplate
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class NotificationMessageTemplate extends Entity implements com.microsoft.kiota.serialization.Parsable
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 Details

    • NotificationMessageTemplate

      public NotificationMessageTemplate()
      Instantiates a new NotificationMessageTemplate and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static NotificationMessageTemplate createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a NotificationMessageTemplate
    • getBrandingOptions

      @Nullable public EnumSet<NotificationTemplateBrandingOptions> getBrandingOptions()
      Gets the brandingOptions property value. Branding Options for the Message Template. Branding is defined in the Intune Admin Console.
      Returns:
      a EnumSet<NotificationTemplateBrandingOptions>
    • getDefaultLocale

      @Nullable public String getDefaultLocale()
      Gets the defaultLocale property value. The default locale to fallback onto when the requested locale is not available.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Display name for the Notification Message Template.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. DateTime the object was last modified.
      Returns:
      a OffsetDateTime
    • getLocalizedNotificationMessages

      @Nullable public List<LocalizedNotificationMessage> getLocalizedNotificationMessages()
      Gets the localizedNotificationMessages property value. The list of localized messages for this Notification Message Template.
      Returns:
      a List<LocalizedNotificationMessage>
    • getRoleScopeTagIds

      @Nullable public List<String> getRoleScopeTagIds()
      Gets the roleScopeTagIds property value. List of Scope Tags for this Entity instance.
      Returns:
      a List<String>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBrandingOptions

      public void setBrandingOptions(@Nullable EnumSet<NotificationTemplateBrandingOptions> value)
      Sets the brandingOptions property value. Branding Options for the Message Template. Branding is defined in the Intune Admin Console.
      Parameters:
      value - Value to set for the brandingOptions property.
    • setDefaultLocale

      public void setDefaultLocale(@Nullable String value)
      Sets the defaultLocale property value. The default locale to fallback onto when the requested locale is not available.
      Parameters:
      value - Value to set for the defaultLocale property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Display name for the Notification Message Template.
      Parameters:
      value - Value to set for the displayName property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. DateTime the object was last modified.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setLocalizedNotificationMessages

      public void setLocalizedNotificationMessages(@Nullable List<LocalizedNotificationMessage> value)
      Sets the localizedNotificationMessages property value. The list of localized messages for this Notification Message Template.
      Parameters:
      value - Value to set for the localizedNotificationMessages property.
    • setRoleScopeTagIds

      public void setRoleScopeTagIds(@Nullable List<String> value)
      Sets the roleScopeTagIds property value. List of Scope Tags for this Entity instance.
      Parameters:
      value - Value to set for the roleScopeTagIds property.