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

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

There is a newer version: 6.28.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 ItemAnalytics extends Entity implements Parsable {
    /**
     * Instantiates a new {@link ItemAnalytics} and sets the default values.
     */
    public ItemAnalytics() {
        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 ItemAnalytics}
     */
    @jakarta.annotation.Nonnull
    public static ItemAnalytics createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new ItemAnalytics();
    }
    /**
     * Gets the allTime property value. The allTime property
     * @return a {@link ItemActivityStat}
     */
    @jakarta.annotation.Nullable
    public ItemActivityStat getAllTime() {
        return this.backingStore.get("allTime");
    }
    /**
     * 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("allTime", (n) -> { this.setAllTime(n.getObjectValue(ItemActivityStat::createFromDiscriminatorValue)); });
        deserializerMap.put("itemActivityStats", (n) -> { this.setItemActivityStats(n.getCollectionOfObjectValues(ItemActivityStat::createFromDiscriminatorValue)); });
        deserializerMap.put("lastSevenDays", (n) -> { this.setLastSevenDays(n.getObjectValue(ItemActivityStat::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the itemActivityStats property value. The itemActivityStats property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getItemActivityStats() {
        return this.backingStore.get("itemActivityStats");
    }
    /**
     * Gets the lastSevenDays property value. The lastSevenDays property
     * @return a {@link ItemActivityStat}
     */
    @jakarta.annotation.Nullable
    public ItemActivityStat getLastSevenDays() {
        return this.backingStore.get("lastSevenDays");
    }
    /**
     * 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.writeObjectValue("allTime", this.getAllTime());
        writer.writeCollectionOfObjectValues("itemActivityStats", this.getItemActivityStats());
        writer.writeObjectValue("lastSevenDays", this.getLastSevenDays());
    }
    /**
     * Sets the allTime property value. The allTime property
     * @param value Value to set for the allTime property.
     */
    public void setAllTime(@jakarta.annotation.Nullable final ItemActivityStat value) {
        this.backingStore.set("allTime", value);
    }
    /**
     * Sets the itemActivityStats property value. The itemActivityStats property
     * @param value Value to set for the itemActivityStats property.
     */
    public void setItemActivityStats(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("itemActivityStats", value);
    }
    /**
     * Sets the lastSevenDays property value. The lastSevenDays property
     * @param value Value to set for the lastSevenDays property.
     */
    public void setLastSevenDays(@jakarta.annotation.Nullable final ItemActivityStat value) {
        this.backingStore.set("lastSevenDays", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy