Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.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.time.LocalDate;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class EducationStudent implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link EducationStudent} and sets the default values.
*/
public EducationStudent() {
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 EducationStudent}
*/
@jakarta.annotation.Nonnull
public static EducationStudent createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new EducationStudent();
}
/**
* 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 birthDate property value. Birth date of the student.
* @return a {@link LocalDate}
*/
@jakarta.annotation.Nullable
public LocalDate getBirthDate() {
return this.backingStore.get("birthDate");
}
/**
* Gets the externalId property value. ID of the student in the source system.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getExternalId() {
return this.backingStore.get("externalId");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(7);
deserializerMap.put("birthDate", (n) -> { this.setBirthDate(n.getLocalDateValue()); });
deserializerMap.put("externalId", (n) -> { this.setExternalId(n.getStringValue()); });
deserializerMap.put("gender", (n) -> { this.setGender(n.getEnumValue(EducationGender::forValue)); });
deserializerMap.put("grade", (n) -> { this.setGrade(n.getStringValue()); });
deserializerMap.put("graduationYear", (n) -> { this.setGraduationYear(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("studentNumber", (n) -> { this.setStudentNumber(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the gender property value. The possible values are: female, male, other, unknownFutureValue.
* @return a {@link EducationGender}
*/
@jakarta.annotation.Nullable
public EducationGender getGender() {
return this.backingStore.get("gender");
}
/**
* Gets the grade property value. Current grade level of the student.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGrade() {
return this.backingStore.get("grade");
}
/**
* Gets the graduationYear property value. Year the student is graduating from the school.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGraduationYear() {
return this.backingStore.get("graduationYear");
}
/**
* 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 studentNumber property value. Student Number.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getStudentNumber() {
return this.backingStore.get("studentNumber");
}
/**
* 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.writeLocalDateValue("birthDate", this.getBirthDate());
writer.writeStringValue("externalId", this.getExternalId());
writer.writeEnumValue("gender", this.getGender());
writer.writeStringValue("grade", this.getGrade());
writer.writeStringValue("graduationYear", this.getGraduationYear());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeStringValue("studentNumber", this.getStudentNumber());
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 birthDate property value. Birth date of the student.
* @param value Value to set for the birthDate property.
*/
public void setBirthDate(@jakarta.annotation.Nullable final LocalDate value) {
this.backingStore.set("birthDate", value);
}
/**
* Sets the externalId property value. ID of the student in the source system.
* @param value Value to set for the externalId property.
*/
public void setExternalId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("externalId", value);
}
/**
* Sets the gender property value. The possible values are: female, male, other, unknownFutureValue.
* @param value Value to set for the gender property.
*/
public void setGender(@jakarta.annotation.Nullable final EducationGender value) {
this.backingStore.set("gender", value);
}
/**
* Sets the grade property value. Current grade level of the student.
* @param value Value to set for the grade property.
*/
public void setGrade(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("grade", value);
}
/**
* Sets the graduationYear property value. Year the student is graduating from the school.
* @param value Value to set for the graduationYear property.
*/
public void setGraduationYear(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("graduationYear", 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 studentNumber property value. Student Number.
* @param value Value to set for the studentNumber property.
*/
public void setStudentNumber(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("studentNumber", value);
}
}