com.microsoft.graph.beta.generated.models.Employee 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.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Employee implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link Employee} and sets the default values.
*/
public Employee() {
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 Employee}
*/
@jakarta.annotation.Nonnull
public static Employee createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Employee();
}
/**
* 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 address property value. The address property
* @return a {@link PostalAddressType}
*/
@jakarta.annotation.Nullable
public PostalAddressType getAddress() {
return this.backingStore.get("address");
}
/**
* 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. The birthDate property
* @return a {@link LocalDate}
*/
@jakarta.annotation.Nullable
public LocalDate getBirthDate() {
return this.backingStore.get("birthDate");
}
/**
* Gets the displayName property value. The displayName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the email property value. The email property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmail() {
return this.backingStore.get("email");
}
/**
* Gets the employmentDate property value. The employmentDate property
* @return a {@link LocalDate}
*/
@jakarta.annotation.Nullable
public LocalDate getEmploymentDate() {
return this.backingStore.get("employmentDate");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(20);
deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(PostalAddressType::createFromDiscriminatorValue)); });
deserializerMap.put("birthDate", (n) -> { this.setBirthDate(n.getLocalDateValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("employmentDate", (n) -> { this.setEmploymentDate(n.getLocalDateValue()); });
deserializerMap.put("givenName", (n) -> { this.setGivenName(n.getStringValue()); });
deserializerMap.put("id", (n) -> { this.setId(n.getUUIDValue()); });
deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("middleName", (n) -> { this.setMiddleName(n.getStringValue()); });
deserializerMap.put("mobilePhone", (n) -> { this.setMobilePhone(n.getStringValue()); });
deserializerMap.put("number", (n) -> { this.setNumber(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("personalEmail", (n) -> { this.setPersonalEmail(n.getStringValue()); });
deserializerMap.put("phoneNumber", (n) -> { this.setPhoneNumber(n.getStringValue()); });
deserializerMap.put("picture", (n) -> { this.setPicture(n.getCollectionOfObjectValues(Picture::createFromDiscriminatorValue)); });
deserializerMap.put("statisticsGroupCode", (n) -> { this.setStatisticsGroupCode(n.getStringValue()); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getStringValue()); });
deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); });
deserializerMap.put("terminationDate", (n) -> { this.setTerminationDate(n.getLocalDateValue()); });
return deserializerMap;
}
/**
* Gets the givenName property value. The givenName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGivenName() {
return this.backingStore.get("givenName");
}
/**
* Gets the id property value. The id property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getId() {
return this.backingStore.get("id");
}
/**
* Gets the jobTitle property value. The jobTitle property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getJobTitle() {
return this.backingStore.get("jobTitle");
}
/**
* Gets the lastModifiedDateTime property value. The lastModifiedDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the middleName property value. The middleName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMiddleName() {
return this.backingStore.get("middleName");
}
/**
* Gets the mobilePhone property value. The mobilePhone property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMobilePhone() {
return this.backingStore.get("mobilePhone");
}
/**
* Gets the number property value. The number property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getNumber() {
return this.backingStore.get("number");
}
/**
* 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 personalEmail property value. The personalEmail property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPersonalEmail() {
return this.backingStore.get("personalEmail");
}
/**
* Gets the phoneNumber property value. The phoneNumber property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPhoneNumber() {
return this.backingStore.get("phoneNumber");
}
/**
* Gets the picture property value. The picture property
* @return a {@link java.util.List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy