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

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

package com.microsoft.graph.beta.models;

import com.microsoft.kiota.PeriodAndDuration;
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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PrivilegedRoleSettings extends Entity implements Parsable {
    /**
     * Instantiates a new {@link PrivilegedRoleSettings} and sets the default values.
     */
    public PrivilegedRoleSettings() {
        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 PrivilegedRoleSettings}
     */
    @jakarta.annotation.Nonnull
    public static PrivilegedRoleSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new PrivilegedRoleSettings();
    }
    /**
     * Gets the approvalOnElevation property value. The approvalOnElevation property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getApprovalOnElevation() {
        return this.backingStore.get("approvalOnElevation");
    }
    /**
     * Gets the approverIds property value. The approverIds property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getApproverIds() {
        return this.backingStore.get("approverIds");
    }
    /**
     * Gets the elevationDuration property value. The elevationDuration property
     * @return a {@link PeriodAndDuration}
     */
    @jakarta.annotation.Nullable
    public PeriodAndDuration getElevationDuration() {
        return this.backingStore.get("elevationDuration");
    }
    /**
     * 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("approvalOnElevation", (n) -> { this.setApprovalOnElevation(n.getBooleanValue()); });
        deserializerMap.put("approverIds", (n) -> { this.setApproverIds(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("elevationDuration", (n) -> { this.setElevationDuration(n.getPeriodAndDurationValue()); });
        deserializerMap.put("isMfaOnElevationConfigurable", (n) -> { this.setIsMfaOnElevationConfigurable(n.getBooleanValue()); });
        deserializerMap.put("lastGlobalAdmin", (n) -> { this.setLastGlobalAdmin(n.getBooleanValue()); });
        deserializerMap.put("maxElavationDuration", (n) -> { this.setMaxElavationDuration(n.getPeriodAndDurationValue()); });
        deserializerMap.put("mfaOnElevation", (n) -> { this.setMfaOnElevation(n.getBooleanValue()); });
        deserializerMap.put("minElevationDuration", (n) -> { this.setMinElevationDuration(n.getPeriodAndDurationValue()); });
        deserializerMap.put("notificationToUserOnElevation", (n) -> { this.setNotificationToUserOnElevation(n.getBooleanValue()); });
        deserializerMap.put("ticketingInfoOnElevation", (n) -> { this.setTicketingInfoOnElevation(n.getBooleanValue()); });
        return deserializerMap;
    }
    /**
     * Gets the isMfaOnElevationConfigurable property value. The isMfaOnElevationConfigurable property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getIsMfaOnElevationConfigurable() {
        return this.backingStore.get("isMfaOnElevationConfigurable");
    }
    /**
     * Gets the lastGlobalAdmin property value. The lastGlobalAdmin property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getLastGlobalAdmin() {
        return this.backingStore.get("lastGlobalAdmin");
    }
    /**
     * Gets the maxElavationDuration property value. The maxElavationDuration property
     * @return a {@link PeriodAndDuration}
     */
    @jakarta.annotation.Nullable
    public PeriodAndDuration getMaxElavationDuration() {
        return this.backingStore.get("maxElavationDuration");
    }
    /**
     * Gets the mfaOnElevation property value. The mfaOnElevation property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getMfaOnElevation() {
        return this.backingStore.get("mfaOnElevation");
    }
    /**
     * Gets the minElevationDuration property value. The minElevationDuration property
     * @return a {@link PeriodAndDuration}
     */
    @jakarta.annotation.Nullable
    public PeriodAndDuration getMinElevationDuration() {
        return this.backingStore.get("minElevationDuration");
    }
    /**
     * Gets the notificationToUserOnElevation property value. The notificationToUserOnElevation property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getNotificationToUserOnElevation() {
        return this.backingStore.get("notificationToUserOnElevation");
    }
    /**
     * Gets the ticketingInfoOnElevation property value. The ticketingInfoOnElevation property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getTicketingInfoOnElevation() {
        return this.backingStore.get("ticketingInfoOnElevation");
    }
    /**
     * 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.writeBooleanValue("approvalOnElevation", this.getApprovalOnElevation());
        writer.writeCollectionOfPrimitiveValues("approverIds", this.getApproverIds());
        writer.writePeriodAndDurationValue("elevationDuration", this.getElevationDuration());
        writer.writeBooleanValue("isMfaOnElevationConfigurable", this.getIsMfaOnElevationConfigurable());
        writer.writeBooleanValue("lastGlobalAdmin", this.getLastGlobalAdmin());
        writer.writePeriodAndDurationValue("maxElavationDuration", this.getMaxElavationDuration());
        writer.writeBooleanValue("mfaOnElevation", this.getMfaOnElevation());
        writer.writePeriodAndDurationValue("minElevationDuration", this.getMinElevationDuration());
        writer.writeBooleanValue("notificationToUserOnElevation", this.getNotificationToUserOnElevation());
        writer.writeBooleanValue("ticketingInfoOnElevation", this.getTicketingInfoOnElevation());
    }
    /**
     * Sets the approvalOnElevation property value. The approvalOnElevation property
     * @param value Value to set for the approvalOnElevation property.
     */
    public void setApprovalOnElevation(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("approvalOnElevation", value);
    }
    /**
     * Sets the approverIds property value. The approverIds property
     * @param value Value to set for the approverIds property.
     */
    public void setApproverIds(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("approverIds", value);
    }
    /**
     * Sets the elevationDuration property value. The elevationDuration property
     * @param value Value to set for the elevationDuration property.
     */
    public void setElevationDuration(@jakarta.annotation.Nullable final PeriodAndDuration value) {
        this.backingStore.set("elevationDuration", value);
    }
    /**
     * Sets the isMfaOnElevationConfigurable property value. The isMfaOnElevationConfigurable property
     * @param value Value to set for the isMfaOnElevationConfigurable property.
     */
    public void setIsMfaOnElevationConfigurable(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("isMfaOnElevationConfigurable", value);
    }
    /**
     * Sets the lastGlobalAdmin property value. The lastGlobalAdmin property
     * @param value Value to set for the lastGlobalAdmin property.
     */
    public void setLastGlobalAdmin(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("lastGlobalAdmin", value);
    }
    /**
     * Sets the maxElavationDuration property value. The maxElavationDuration property
     * @param value Value to set for the maxElavationDuration property.
     */
    public void setMaxElavationDuration(@jakarta.annotation.Nullable final PeriodAndDuration value) {
        this.backingStore.set("maxElavationDuration", value);
    }
    /**
     * Sets the mfaOnElevation property value. The mfaOnElevation property
     * @param value Value to set for the mfaOnElevation property.
     */
    public void setMfaOnElevation(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("mfaOnElevation", value);
    }
    /**
     * Sets the minElevationDuration property value. The minElevationDuration property
     * @param value Value to set for the minElevationDuration property.
     */
    public void setMinElevationDuration(@jakarta.annotation.Nullable final PeriodAndDuration value) {
        this.backingStore.set("minElevationDuration", value);
    }
    /**
     * Sets the notificationToUserOnElevation property value. The notificationToUserOnElevation property
     * @param value Value to set for the notificationToUserOnElevation property.
     */
    public void setNotificationToUserOnElevation(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("notificationToUserOnElevation", value);
    }
    /**
     * Sets the ticketingInfoOnElevation property value. The ticketingInfoOnElevation property
     * @param value Value to set for the ticketingInfoOnElevation property.
     */
    public void setTicketingInfoOnElevation(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("ticketingInfoOnElevation", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy