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

com.microsoft.graph.generated.models.EducationFeedbackOutcome Maven / Gradle / Ivy

There is a newer version: 6.20.0
Show newest version
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 EducationFeedbackOutcome extends EducationOutcome implements Parsable {
    /**
     * Instantiates a new {@link EducationFeedbackOutcome} and sets the default values.
     */
    public EducationFeedbackOutcome() {
        super();
        this.setOdataType("#microsoft.graph.educationFeedbackOutcome");
    }
    /**
     * 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 EducationFeedbackOutcome}
     */
    @jakarta.annotation.Nonnull
    public static EducationFeedbackOutcome createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new EducationFeedbackOutcome();
    }
    /**
     * Gets the feedback property value. Teacher's written feedback to the student.
     * @return a {@link EducationFeedback}
     */
    @jakarta.annotation.Nullable
    public EducationFeedback getFeedback() {
        return this.backingStore.get("feedback");
    }
    /**
     * 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("feedback", (n) -> { this.setFeedback(n.getObjectValue(EducationFeedback::createFromDiscriminatorValue)); });
        deserializerMap.put("publishedFeedback", (n) -> { this.setPublishedFeedback(n.getObjectValue(EducationFeedback::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the publishedFeedback property value. A copy of the feedback property that is made when the grade is released to the student.
     * @return a {@link EducationFeedback}
     */
    @jakarta.annotation.Nullable
    public EducationFeedback getPublishedFeedback() {
        return this.backingStore.get("publishedFeedback");
    }
    /**
     * 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("feedback", this.getFeedback());
        writer.writeObjectValue("publishedFeedback", this.getPublishedFeedback());
    }
    /**
     * Sets the feedback property value. Teacher's written feedback to the student.
     * @param value Value to set for the feedback property.
     */
    public void setFeedback(@jakarta.annotation.Nullable final EducationFeedback value) {
        this.backingStore.set("feedback", value);
    }
    /**
     * Sets the publishedFeedback property value. A copy of the feedback property that is made when the grade is released to the student.
     * @param value Value to set for the publishedFeedback property.
     */
    public void setPublishedFeedback(@jakarta.annotation.Nullable final EducationFeedback value) {
        this.backingStore.set("publishedFeedback", value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy