com.microsoft.graph.beta.generated.models.FollowupFlag Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class FollowupFlag implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link FollowupFlag} and sets the default values.
*/
public FollowupFlag() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 FollowupFlag}
*/
@jakarta.annotation.Nonnull
public static FollowupFlag createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new FollowupFlag();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the completedDateTime property value. The date and time that the follow-up was finished.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getCompletedDateTime() {
return this.backingStore.get("completedDateTime");
}
/**
* Gets the dueDateTime property value. The date and time that the follow-up is to be finished. Note: To set the due date, you must also specify the startDateTime; otherwise, you get a 400 Bad Request response.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getDueDateTime() {
return this.backingStore.get("dueDateTime");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(5);
deserializerMap.put("completedDateTime", (n) -> { this.setCompletedDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("dueDateTime", (n) -> { this.setDueDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("flagStatus", (n) -> { this.setFlagStatus(n.getEnumValue(FollowupFlagStatus::forValue)); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged.
* @return a {@link FollowupFlagStatus}
*/
@jakarta.annotation.Nullable
public FollowupFlagStatus getFlagStatus() {
return this.backingStore.get("flagStatus");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the startDateTime property value. The date and time that the follow-up is to begin.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getStartDateTime() {
return this.backingStore.get("startDateTime");
}
/**
* 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);
writer.writeObjectValue("completedDateTime", this.getCompletedDateTime());
writer.writeObjectValue("dueDateTime", this.getDueDateTime());
writer.writeEnumValue("flagStatus", this.getFlagStatus());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeObjectValue("startDateTime", this.getStartDateTime());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the completedDateTime property value. The date and time that the follow-up was finished.
* @param value Value to set for the completedDateTime property.
*/
public void setCompletedDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("completedDateTime", value);
}
/**
* Sets the dueDateTime property value. The date and time that the follow-up is to be finished. Note: To set the due date, you must also specify the startDateTime; otherwise, you get a 400 Bad Request response.
* @param value Value to set for the dueDateTime property.
*/
public void setDueDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("dueDateTime", value);
}
/**
* Sets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged.
* @param value Value to set for the flagStatus property.
*/
public void setFlagStatus(@jakarta.annotation.Nullable final FollowupFlagStatus value) {
this.backingStore.set("flagStatus", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the startDateTime property value. The date and time that the follow-up is to begin.
* @param value Value to set for the startDateTime property.
*/
public void setStartDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("startDateTime", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy