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

com.microsoft.graph.beta.generated.models.DailyUserInsightMetricsRoot 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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DailyUserInsightMetricsRoot extends Entity implements Parsable {
    /**
     * Instantiates a new {@link DailyUserInsightMetricsRoot} and sets the default values.
     */
    public DailyUserInsightMetricsRoot() {
        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 DailyUserInsightMetricsRoot}
     */
    @jakarta.annotation.Nonnull
    public static DailyUserInsightMetricsRoot createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new DailyUserInsightMetricsRoot();
    }
    /**
     * Gets the activeUsers property value. Insights for active users on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getActiveUsers() {
        return this.backingStore.get("activeUsers");
    }
    /**
     * Gets the authentications property value. Insights for authentications on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getAuthentications() {
        return this.backingStore.get("authentications");
    }
    /**
     * 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("activeUsers", (n) -> { this.setActiveUsers(n.getCollectionOfObjectValues(ActiveUsersMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("authentications", (n) -> { this.setAuthentications(n.getCollectionOfObjectValues(AuthenticationsMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("inactiveUsers", (n) -> { this.setInactiveUsers(n.getCollectionOfObjectValues(DailyInactiveUsersMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("inactiveUsersByApplication", (n) -> { this.setInactiveUsersByApplication(n.getCollectionOfObjectValues(DailyInactiveUsersByApplicationMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("mfaCompletions", (n) -> { this.setMfaCompletions(n.getCollectionOfObjectValues(MfaCompletionMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("signUps", (n) -> { this.setSignUps(n.getCollectionOfObjectValues(UserSignUpMetric::createFromDiscriminatorValue)); });
        deserializerMap.put("summary", (n) -> { this.setSummary(n.getCollectionOfObjectValues(InsightSummary::createFromDiscriminatorValue)); });
        deserializerMap.put("userCount", (n) -> { this.setUserCount(n.getCollectionOfObjectValues(UserCountMetric::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the inactiveUsers property value. The inactiveUsers property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getInactiveUsers() {
        return this.backingStore.get("inactiveUsers");
    }
    /**
     * Gets the inactiveUsersByApplication property value. The inactiveUsersByApplication property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getInactiveUsersByApplication() {
        return this.backingStore.get("inactiveUsersByApplication");
    }
    /**
     * Gets the mfaCompletions property value. Insights for MFA usage on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getMfaCompletions() {
        return this.backingStore.get("mfaCompletions");
    }
    /**
     * Gets the signUps property value. Total sign-ups on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getSignUps() {
        return this.backingStore.get("signUps");
    }
    /**
     * Gets the summary property value. Summary of all usage insights on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getSummary() {
        return this.backingStore.get("summary");
    }
    /**
     * Gets the userCount property value. Insights for total users on apps registered in the tenant for a specified period.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getUserCount() {
        return this.backingStore.get("userCount");
    }
    /**
     * 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.writeCollectionOfObjectValues("activeUsers", this.getActiveUsers());
        writer.writeCollectionOfObjectValues("authentications", this.getAuthentications());
        writer.writeCollectionOfObjectValues("inactiveUsers", this.getInactiveUsers());
        writer.writeCollectionOfObjectValues("inactiveUsersByApplication", this.getInactiveUsersByApplication());
        writer.writeCollectionOfObjectValues("mfaCompletions", this.getMfaCompletions());
        writer.writeCollectionOfObjectValues("signUps", this.getSignUps());
        writer.writeCollectionOfObjectValues("summary", this.getSummary());
        writer.writeCollectionOfObjectValues("userCount", this.getUserCount());
    }
    /**
     * Sets the activeUsers property value. Insights for active users on apps registered in the tenant for a specified period.
     * @param value Value to set for the activeUsers property.
     */
    public void setActiveUsers(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("activeUsers", value);
    }
    /**
     * Sets the authentications property value. Insights for authentications on apps registered in the tenant for a specified period.
     * @param value Value to set for the authentications property.
     */
    public void setAuthentications(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("authentications", value);
    }
    /**
     * Sets the inactiveUsers property value. The inactiveUsers property
     * @param value Value to set for the inactiveUsers property.
     */
    public void setInactiveUsers(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("inactiveUsers", value);
    }
    /**
     * Sets the inactiveUsersByApplication property value. The inactiveUsersByApplication property
     * @param value Value to set for the inactiveUsersByApplication property.
     */
    public void setInactiveUsersByApplication(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("inactiveUsersByApplication", value);
    }
    /**
     * Sets the mfaCompletions property value. Insights for MFA usage on apps registered in the tenant for a specified period.
     * @param value Value to set for the mfaCompletions property.
     */
    public void setMfaCompletions(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("mfaCompletions", value);
    }
    /**
     * Sets the signUps property value. Total sign-ups on apps registered in the tenant for a specified period.
     * @param value Value to set for the signUps property.
     */
    public void setSignUps(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("signUps", value);
    }
    /**
     * Sets the summary property value. Summary of all usage insights on apps registered in the tenant for a specified period.
     * @param value Value to set for the summary property.
     */
    public void setSummary(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("summary", value);
    }
    /**
     * Sets the userCount property value. Insights for total users on apps registered in the tenant for a specified period.
     * @param value Value to set for the userCount property.
     */
    public void setUserCount(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("userCount", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy