com.microsoft.graph.beta.generated.models.Workspace Maven / Gradle / Ivy
package com.microsoft.graph.beta.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 Workspace extends Place implements Parsable {
/**
* Instantiates a new {@link Workspace} and sets the default values.
*/
public Workspace() {
super();
this.setOdataType("#microsoft.graph.workspace");
}
/**
* 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 Workspace}
*/
@jakarta.annotation.Nonnull
public static Workspace createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Workspace();
}
/**
* Gets the building property value. Specifies the building name or building number that the workspace is in.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getBuilding() {
return this.backingStore.get("building");
}
/**
* Gets the capacity property value. Specifies the capacity of the workspace.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getCapacity() {
return this.backingStore.get("capacity");
}
/**
* Gets the emailAddress property value. Email address of the workspace.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmailAddress() {
return this.backingStore.get("emailAddress");
}
/**
* 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("building", (n) -> { this.setBuilding(n.getStringValue()); });
deserializerMap.put("capacity", (n) -> { this.setCapacity(n.getIntegerValue()); });
deserializerMap.put("emailAddress", (n) -> { this.setEmailAddress(n.getStringValue()); });
deserializerMap.put("floorLabel", (n) -> { this.setFloorLabel(n.getStringValue()); });
deserializerMap.put("floorNumber", (n) -> { this.setFloorNumber(n.getIntegerValue()); });
deserializerMap.put("isWheelChairAccessible", (n) -> { this.setIsWheelChairAccessible(n.getBooleanValue()); });
deserializerMap.put("label", (n) -> { this.setLabel(n.getStringValue()); });
deserializerMap.put("nickname", (n) -> { this.setNickname(n.getStringValue()); });
deserializerMap.put("tags", (n) -> { this.setTags(n.getCollectionOfPrimitiveValues(String.class)); });
return deserializerMap;
}
/**
* Gets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getFloorLabel() {
return this.backingStore.get("floorLabel");
}
/**
* Gets the floorNumber property value. Specifies the floor number that the workspace is on.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getFloorNumber() {
return this.backingStore.get("floorNumber");
}
/**
* Gets the isWheelChairAccessible property value. Specifies whether the workspace is wheelchair accessible.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsWheelChairAccessible() {
return this.backingStore.get("isWheelChairAccessible");
}
/**
* Gets the label property value. Specifies a descriptive label for the workspace, for example, a number or name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLabel() {
return this.backingStore.get("label");
}
/**
* Gets the nickname property value. Specifies a nickname for the workspace, for example, 'quiet workspace'.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getNickname() {
return this.backingStore.get("nickname");
}
/**
* Gets the tags property value. Specifies other features of the workspace; for example, the type of view or furniture type.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTags() {
return this.backingStore.get("tags");
}
/**
* 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.writeStringValue("building", this.getBuilding());
writer.writeIntegerValue("capacity", this.getCapacity());
writer.writeStringValue("emailAddress", this.getEmailAddress());
writer.writeStringValue("floorLabel", this.getFloorLabel());
writer.writeIntegerValue("floorNumber", this.getFloorNumber());
writer.writeBooleanValue("isWheelChairAccessible", this.getIsWheelChairAccessible());
writer.writeStringValue("label", this.getLabel());
writer.writeStringValue("nickname", this.getNickname());
writer.writeCollectionOfPrimitiveValues("tags", this.getTags());
}
/**
* Sets the building property value. Specifies the building name or building number that the workspace is in.
* @param value Value to set for the building property.
*/
public void setBuilding(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("building", value);
}
/**
* Sets the capacity property value. Specifies the capacity of the workspace.
* @param value Value to set for the capacity property.
*/
public void setCapacity(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("capacity", value);
}
/**
* Sets the emailAddress property value. Email address of the workspace.
* @param value Value to set for the emailAddress property.
*/
public void setEmailAddress(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("emailAddress", value);
}
/**
* Sets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.
* @param value Value to set for the floorLabel property.
*/
public void setFloorLabel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("floorLabel", value);
}
/**
* Sets the floorNumber property value. Specifies the floor number that the workspace is on.
* @param value Value to set for the floorNumber property.
*/
public void setFloorNumber(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("floorNumber", value);
}
/**
* Sets the isWheelChairAccessible property value. Specifies whether the workspace is wheelchair accessible.
* @param value Value to set for the isWheelChairAccessible property.
*/
public void setIsWheelChairAccessible(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isWheelChairAccessible", value);
}
/**
* Sets the label property value. Specifies a descriptive label for the workspace, for example, a number or name.
* @param value Value to set for the label property.
*/
public void setLabel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("label", value);
}
/**
* Sets the nickname property value. Specifies a nickname for the workspace, for example, 'quiet workspace'.
* @param value Value to set for the nickname property.
*/
public void setNickname(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("nickname", value);
}
/**
* Sets the tags property value. Specifies other features of the workspace; for example, the type of view or furniture type.
* @param value Value to set for the tags property.
*/
public void setTags(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("tags", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy