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

com.microsoft.graph.beta.generated.models.PlannerUser 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PlannerUser extends PlannerDelta implements Parsable {
    /**
     * Instantiates a new {@link PlannerUser} and sets the default values.
     */
    public PlannerUser() {
        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 PlannerUser}
     */
    @jakarta.annotation.Nonnull
    public static PlannerUser createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new PlannerUser();
    }
    /**
     * Gets the all property value. The all property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getAll() {
        return this.backingStore.get("all");
    }
    /**
     * Gets the favoritePlanReferences property value. A collection that contains the references to the plans that the user marked as favorites.
     * @return a {@link PlannerFavoritePlanReferenceCollection}
     */
    @jakarta.annotation.Nullable
    public PlannerFavoritePlanReferenceCollection getFavoritePlanReferences() {
        return this.backingStore.get("favoritePlanReferences");
    }
    /**
     * Gets the favoritePlans property value. Read-only. Nullable. Returns the plannerPlans that the user marked as favorites.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getFavoritePlans() {
        return this.backingStore.get("favoritePlans");
    }
    /**
     * 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("all", (n) -> { this.setAll(n.getCollectionOfObjectValues(PlannerDelta::createFromDiscriminatorValue)); });
        deserializerMap.put("favoritePlanReferences", (n) -> { this.setFavoritePlanReferences(n.getObjectValue(PlannerFavoritePlanReferenceCollection::createFromDiscriminatorValue)); });
        deserializerMap.put("favoritePlans", (n) -> { this.setFavoritePlans(n.getCollectionOfObjectValues(PlannerPlan::createFromDiscriminatorValue)); });
        deserializerMap.put("myDayTasks", (n) -> { this.setMyDayTasks(n.getCollectionOfObjectValues(PlannerTask::createFromDiscriminatorValue)); });
        deserializerMap.put("plans", (n) -> { this.setPlans(n.getCollectionOfObjectValues(PlannerPlan::createFromDiscriminatorValue)); });
        deserializerMap.put("recentPlanReferences", (n) -> { this.setRecentPlanReferences(n.getObjectValue(PlannerRecentPlanReferenceCollection::createFromDiscriminatorValue)); });
        deserializerMap.put("recentPlans", (n) -> { this.setRecentPlans(n.getCollectionOfObjectValues(PlannerPlan::createFromDiscriminatorValue)); });
        deserializerMap.put("rosterPlans", (n) -> { this.setRosterPlans(n.getCollectionOfObjectValues(PlannerPlan::createFromDiscriminatorValue)); });
        deserializerMap.put("tasks", (n) -> { this.setTasks(n.getCollectionOfObjectValues(PlannerTask::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the myDayTasks property value. Read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getMyDayTasks() {
        return this.backingStore.get("myDayTasks");
    }
    /**
     * Gets the plans property value. The plans property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getPlans() {
        return this.backingStore.get("plans");
    }
    /**
     * Gets the recentPlanReferences property value. A collection that contains references to the plans that the user recently viewed in apps that support recent plans.
     * @return a {@link PlannerRecentPlanReferenceCollection}
     */
    @jakarta.annotation.Nullable
    public PlannerRecentPlanReferenceCollection getRecentPlanReferences() {
        return this.backingStore.get("recentPlanReferences");
    }
    /**
     * Gets the recentPlans property value. Read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getRecentPlans() {
        return this.backingStore.get("recentPlans");
    }
    /**
     * Gets the rosterPlans property value. Read-only. Nullable. Returns the plannerPlans contained by the plannerRosters the user is a member.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getRosterPlans() {
        return this.backingStore.get("rosterPlans");
    }
    /**
     * Gets the tasks property value. Read-only. Nullable. Returns the plannerTasks assigned to the user.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getTasks() {
        return this.backingStore.get("tasks");
    }
    /**
     * 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("all", this.getAll());
        writer.writeObjectValue("favoritePlanReferences", this.getFavoritePlanReferences());
        writer.writeCollectionOfObjectValues("favoritePlans", this.getFavoritePlans());
        writer.writeCollectionOfObjectValues("myDayTasks", this.getMyDayTasks());
        writer.writeCollectionOfObjectValues("plans", this.getPlans());
        writer.writeObjectValue("recentPlanReferences", this.getRecentPlanReferences());
        writer.writeCollectionOfObjectValues("recentPlans", this.getRecentPlans());
        writer.writeCollectionOfObjectValues("rosterPlans", this.getRosterPlans());
        writer.writeCollectionOfObjectValues("tasks", this.getTasks());
    }
    /**
     * Sets the all property value. The all property
     * @param value Value to set for the all property.
     */
    public void setAll(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("all", value);
    }
    /**
     * Sets the favoritePlanReferences property value. A collection that contains the references to the plans that the user marked as favorites.
     * @param value Value to set for the favoritePlanReferences property.
     */
    public void setFavoritePlanReferences(@jakarta.annotation.Nullable final PlannerFavoritePlanReferenceCollection value) {
        this.backingStore.set("favoritePlanReferences", value);
    }
    /**
     * Sets the favoritePlans property value. Read-only. Nullable. Returns the plannerPlans that the user marked as favorites.
     * @param value Value to set for the favoritePlans property.
     */
    public void setFavoritePlans(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("favoritePlans", value);
    }
    /**
     * Sets the myDayTasks property value. Read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user.
     * @param value Value to set for the myDayTasks property.
     */
    public void setMyDayTasks(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("myDayTasks", value);
    }
    /**
     * Sets the plans property value. The plans property
     * @param value Value to set for the plans property.
     */
    public void setPlans(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("plans", value);
    }
    /**
     * Sets the recentPlanReferences property value. A collection that contains references to the plans that the user recently viewed in apps that support recent plans.
     * @param value Value to set for the recentPlanReferences property.
     */
    public void setRecentPlanReferences(@jakarta.annotation.Nullable final PlannerRecentPlanReferenceCollection value) {
        this.backingStore.set("recentPlanReferences", value);
    }
    /**
     * Sets the recentPlans property value. Read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans.
     * @param value Value to set for the recentPlans property.
     */
    public void setRecentPlans(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("recentPlans", value);
    }
    /**
     * Sets the rosterPlans property value. Read-only. Nullable. Returns the plannerPlans contained by the plannerRosters the user is a member.
     * @param value Value to set for the rosterPlans property.
     */
    public void setRosterPlans(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("rosterPlans", value);
    }
    /**
     * Sets the tasks property value. Read-only. Nullable. Returns the plannerTasks assigned to the user.
     * @param value Value to set for the tasks property.
     */
    public void setTasks(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("tasks", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy