![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.PlannerPlanDetails Maven / Gradle / Ivy
package com.microsoft.graph.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 PlannerPlanDetails extends Entity implements Parsable {
/**
* Instantiates a new {@link PlannerPlanDetails} and sets the default values.
*/
public PlannerPlanDetails() {
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 PlannerPlanDetails}
*/
@jakarta.annotation.Nonnull
public static PlannerPlanDetails createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new PlannerPlanDetails();
}
/**
* Gets the categoryDescriptions property value. An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan.
* @return a {@link PlannerCategoryDescriptions}
*/
@jakarta.annotation.Nullable
public PlannerCategoryDescriptions getCategoryDescriptions() {
return this.backingStore.get("categoryDescriptions");
}
/**
* 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("categoryDescriptions", (n) -> { this.setCategoryDescriptions(n.getObjectValue(PlannerCategoryDescriptions::createFromDiscriminatorValue)); });
deserializerMap.put("sharedWith", (n) -> { this.setSharedWith(n.getObjectValue(PlannerUserIds::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the sharedWith property value. Set of user IDs that this plan is shared with. If you're using Microsoft 365 groups, use the Groups API to manage group membership to share the group's plan. You can also add existing members of the group to this collection, although it isn't required for them to access the plan owned by the group.
* @return a {@link PlannerUserIds}
*/
@jakarta.annotation.Nullable
public PlannerUserIds getSharedWith() {
return this.backingStore.get("sharedWith");
}
/**
* 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("categoryDescriptions", this.getCategoryDescriptions());
writer.writeObjectValue("sharedWith", this.getSharedWith());
}
/**
* Sets the categoryDescriptions property value. An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan.
* @param value Value to set for the categoryDescriptions property.
*/
public void setCategoryDescriptions(@jakarta.annotation.Nullable final PlannerCategoryDescriptions value) {
this.backingStore.set("categoryDescriptions", value);
}
/**
* Sets the sharedWith property value. Set of user IDs that this plan is shared with. If you're using Microsoft 365 groups, use the Groups API to manage group membership to share the group's plan. You can also add existing members of the group to this collection, although it isn't required for them to access the plan owned by the group.
* @param value Value to set for the sharedWith property.
*/
public void setSharedWith(@jakarta.annotation.Nullable final PlannerUserIds value) {
this.backingStore.set("sharedWith", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy