All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.beta.generated.models.DeviceManagementComplianceActionItem Maven / Gradle / Ivy

There is a newer version: 6.26.0
Show newest version
package com.microsoft.graph.beta.models;

import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
 * Scheduled Action for Rule
 */
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceManagementComplianceActionItem extends Entity implements Parsable {
    /**
     * Instantiates a new {@link DeviceManagementComplianceActionItem} and sets the default values.
     */
    public DeviceManagementComplianceActionItem() {
        super();
    }
    /**
     * Creates a new instance of the appropriate class based on discriminator value
     * @param parseNode The parse node to use to read the discriminator value and create the object
     * @return a {@link DeviceManagementComplianceActionItem}
     */
    @jakarta.annotation.Nonnull
    public static DeviceManagementComplianceActionItem createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new DeviceManagementComplianceActionItem();
    }
    /**
     * Gets the actionType property value. Scheduled Action Type Enum
     * @return a {@link DeviceManagementComplianceActionType}
     */
    @jakarta.annotation.Nullable
    public DeviceManagementComplianceActionType getActionType() {
        return this.backingStore.get("actionType");
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
        deserializerMap.put("actionType", (n) -> { this.setActionType(n.getEnumValue(DeviceManagementComplianceActionType::forValue)); });
        deserializerMap.put("gracePeriodHours", (n) -> { this.setGracePeriodHours(n.getIntegerValue()); });
        deserializerMap.put("notificationMessageCCList", (n) -> { this.setNotificationMessageCCList(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("notificationTemplateId", (n) -> { this.setNotificationTemplateId(n.getStringValue()); });
        return deserializerMap;
    }
    /**
     * Gets the gracePeriodHours property value. Number of hours to wait till the action will be enforced. Valid values 0 to 8760
     * @return a {@link Integer}
     */
    @jakarta.annotation.Nullable
    public Integer getGracePeriodHours() {
        return this.backingStore.get("gracePeriodHours");
    }
    /**
     * Gets the notificationMessageCCList property value. A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getNotificationMessageCCList() {
        return this.backingStore.get("notificationMessageCCList");
    }
    /**
     * Gets the notificationTemplateId property value. What notification Message template to use
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getNotificationTemplateId() {
        return this.backingStore.get("notificationTemplateId");
    }
    /**
     * Serializes information the current object
     * @param writer Serialization writer to use to serialize this model
     */
    public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
        Objects.requireNonNull(writer);
        super.serialize(writer);
        writer.writeEnumValue("actionType", this.getActionType());
        writer.writeIntegerValue("gracePeriodHours", this.getGracePeriodHours());
        writer.writeCollectionOfPrimitiveValues("notificationMessageCCList", this.getNotificationMessageCCList());
        writer.writeStringValue("notificationTemplateId", this.getNotificationTemplateId());
    }
    /**
     * Sets the actionType property value. Scheduled Action Type Enum
     * @param value Value to set for the actionType property.
     */
    public void setActionType(@jakarta.annotation.Nullable final DeviceManagementComplianceActionType value) {
        this.backingStore.set("actionType", value);
    }
    /**
     * Sets the gracePeriodHours property value. Number of hours to wait till the action will be enforced. Valid values 0 to 8760
     * @param value Value to set for the gracePeriodHours property.
     */
    public void setGracePeriodHours(@jakarta.annotation.Nullable final Integer value) {
        this.backingStore.set("gracePeriodHours", value);
    }
    /**
     * Sets the notificationMessageCCList property value. A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.
     * @param value Value to set for the notificationMessageCCList property.
     */
    public void setNotificationMessageCCList(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("notificationMessageCCList", value);
    }
    /**
     * Sets the notificationTemplateId property value. What notification Message template to use
     * @param value Value to set for the notificationTemplateId property.
     */
    public void setNotificationTemplateId(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("notificationTemplateId", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy