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

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

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.time.LocalDate;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Office365ActiveUserCounts extends Entity implements Parsable {
    /**
     * Instantiates a new {@link Office365ActiveUserCounts} and sets the default values.
     */
    public Office365ActiveUserCounts() {
        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 Office365ActiveUserCounts}
     */
    @jakarta.annotation.Nonnull
    public static Office365ActiveUserCounts createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new Office365ActiveUserCounts();
    }
    /**
     * Gets the exchange property value. The number of active users in Exchange. Any user who can read and send email is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getExchange() {
        return this.backingStore.get("exchange");
    }
    /**
     * 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("exchange", (n) -> { this.setExchange(n.getLongValue()); });
        deserializerMap.put("office365", (n) -> { this.setOffice365(n.getLongValue()); });
        deserializerMap.put("oneDrive", (n) -> { this.setOneDrive(n.getLongValue()); });
        deserializerMap.put("reportDate", (n) -> { this.setReportDate(n.getLocalDateValue()); });
        deserializerMap.put("reportPeriod", (n) -> { this.setReportPeriod(n.getStringValue()); });
        deserializerMap.put("reportRefreshDate", (n) -> { this.setReportRefreshDate(n.getLocalDateValue()); });
        deserializerMap.put("sharePoint", (n) -> { this.setSharePoint(n.getLongValue()); });
        deserializerMap.put("skypeForBusiness", (n) -> { this.setSkypeForBusiness(n.getLongValue()); });
        deserializerMap.put("teams", (n) -> { this.setTeams(n.getLongValue()); });
        deserializerMap.put("yammer", (n) -> { this.setYammer(n.getLongValue()); });
        return deserializerMap;
    }
    /**
     * Gets the office365 property value. The number of active users in Microsoft 365. This number includes all the active users in Exchange, OneDrive, SharePoint, Skype For Business, Yammer, and Microsoft Teams. You can find the definition of active user for each product in the respective property description.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getOffice365() {
        return this.backingStore.get("office365");
    }
    /**
     * Gets the oneDrive property value. The number of active users in OneDrive. Any user who viewed or edited files, shared files internally or externally, or synced files is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getOneDrive() {
        return this.backingStore.get("oneDrive");
    }
    /**
     * Gets the reportDate property value. The date on which a number of users were active.
     * @return a {@link LocalDate}
     */
    @jakarta.annotation.Nullable
    public LocalDate getReportDate() {
        return this.backingStore.get("reportDate");
    }
    /**
     * Gets the reportPeriod property value. The number of days the report covers.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getReportPeriod() {
        return this.backingStore.get("reportPeriod");
    }
    /**
     * Gets the reportRefreshDate property value. The latest date of the content.
     * @return a {@link LocalDate}
     */
    @jakarta.annotation.Nullable
    public LocalDate getReportRefreshDate() {
        return this.backingStore.get("reportRefreshDate");
    }
    /**
     * Gets the sharePoint property value. The number of active users in SharePoint. Any user who viewed or edited files, shared files internally or externally, synced files, or viewed SharePoint pages is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getSharePoint() {
        return this.backingStore.get("sharePoint");
    }
    /**
     * Gets the skypeForBusiness property value. The number of active users in Skype For Business. Any user who organized or participated in conferences, or joined peer-to-peer sessions is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getSkypeForBusiness() {
        return this.backingStore.get("skypeForBusiness");
    }
    /**
     * Gets the teams property value. The number of active users in Microsoft Teams. Any user who posted messages in team channels, sent messages in private chat sessions, or participated in meetings or calls is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getTeams() {
        return this.backingStore.get("teams");
    }
    /**
     * Gets the yammer property value. The number of active users in Yammer. Any user who can post, read, or like messages is considered an active user.
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getYammer() {
        return this.backingStore.get("yammer");
    }
    /**
     * 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.writeLongValue("exchange", this.getExchange());
        writer.writeLongValue("office365", this.getOffice365());
        writer.writeLongValue("oneDrive", this.getOneDrive());
        writer.writeLocalDateValue("reportDate", this.getReportDate());
        writer.writeStringValue("reportPeriod", this.getReportPeriod());
        writer.writeLocalDateValue("reportRefreshDate", this.getReportRefreshDate());
        writer.writeLongValue("sharePoint", this.getSharePoint());
        writer.writeLongValue("skypeForBusiness", this.getSkypeForBusiness());
        writer.writeLongValue("teams", this.getTeams());
        writer.writeLongValue("yammer", this.getYammer());
    }
    /**
     * Sets the exchange property value. The number of active users in Exchange. Any user who can read and send email is considered an active user.
     * @param value Value to set for the exchange property.
     */
    public void setExchange(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("exchange", value);
    }
    /**
     * Sets the office365 property value. The number of active users in Microsoft 365. This number includes all the active users in Exchange, OneDrive, SharePoint, Skype For Business, Yammer, and Microsoft Teams. You can find the definition of active user for each product in the respective property description.
     * @param value Value to set for the office365 property.
     */
    public void setOffice365(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("office365", value);
    }
    /**
     * Sets the oneDrive property value. The number of active users in OneDrive. Any user who viewed or edited files, shared files internally or externally, or synced files is considered an active user.
     * @param value Value to set for the oneDrive property.
     */
    public void setOneDrive(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("oneDrive", value);
    }
    /**
     * Sets the reportDate property value. The date on which a number of users were active.
     * @param value Value to set for the reportDate property.
     */
    public void setReportDate(@jakarta.annotation.Nullable final LocalDate value) {
        this.backingStore.set("reportDate", value);
    }
    /**
     * Sets the reportPeriod property value. The number of days the report covers.
     * @param value Value to set for the reportPeriod property.
     */
    public void setReportPeriod(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("reportPeriod", value);
    }
    /**
     * Sets the reportRefreshDate property value. The latest date of the content.
     * @param value Value to set for the reportRefreshDate property.
     */
    public void setReportRefreshDate(@jakarta.annotation.Nullable final LocalDate value) {
        this.backingStore.set("reportRefreshDate", value);
    }
    /**
     * Sets the sharePoint property value. The number of active users in SharePoint. Any user who viewed or edited files, shared files internally or externally, synced files, or viewed SharePoint pages is considered an active user.
     * @param value Value to set for the sharePoint property.
     */
    public void setSharePoint(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("sharePoint", value);
    }
    /**
     * Sets the skypeForBusiness property value. The number of active users in Skype For Business. Any user who organized or participated in conferences, or joined peer-to-peer sessions is considered an active user.
     * @param value Value to set for the skypeForBusiness property.
     */
    public void setSkypeForBusiness(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("skypeForBusiness", value);
    }
    /**
     * Sets the teams property value. The number of active users in Microsoft Teams. Any user who posted messages in team channels, sent messages in private chat sessions, or participated in meetings or calls is considered an active user.
     * @param value Value to set for the teams property.
     */
    public void setTeams(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("teams", value);
    }
    /**
     * Sets the yammer property value. The number of active users in Yammer. Any user who can post, read, or like messages is considered an active user.
     * @param value Value to set for the yammer property.
     */
    public void setYammer(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("yammer", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy