Package com.microsoft.graph.models
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.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationMessageTemplate
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the brandingOptions property value.Gets the defaultLocale property value.Gets the displayName property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.Gets the localizedNotificationMessages property value.Gets the roleScopeTagIds property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the brandingOptions property value.void
setDefaultLocale
(String value) Sets the defaultLocale property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the lastModifiedDateTime property value.void
Sets the localizedNotificationMessages property value.void
setRoleScopeTagIds
(List<String> value) Sets the roleScopeTagIds property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
NotificationMessageTemplate
public NotificationMessageTemplate()Instantiates a newNotificationMessageTemplate
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
Gets the brandingOptions property value. Branding Options for the Message Template. Branding is defined in the Intune Admin Console.- Returns:
- a
EnumSet<NotificationTemplateBrandingOptions>
-
getDefaultLocale
Gets the defaultLocale property value. The default locale to fallback onto when the requested locale is not available.- Returns:
- a
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. DateTime the object was last modified.- Returns:
- a
OffsetDateTime
-
getLocalizedNotificationMessages
Gets the localizedNotificationMessages property value. The list of localized messages for this Notification Message Template.- Returns:
- a
List<LocalizedNotificationMessage>
-
getRoleScopeTagIds
Gets the roleScopeTagIds property value. List of Scope Tags for this Entity instance. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setBrandingOptions
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
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
Sets the displayName property value. Display name for the Notification Message Template.- Parameters:
value
- Value to set for the displayName property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. DateTime the object was last modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setLocalizedNotificationMessages
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
Sets the roleScopeTagIds property value. List of Scope Tags for this Entity instance.- Parameters:
value
- Value to set for the roleScopeTagIds property.
-