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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ResourceVisualization implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link ResourceVisualization} and sets the default values.
*/
public ResourceVisualization() {
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 ResourceVisualization}
*/
@jakarta.annotation.Nonnull
public static ResourceVisualization createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ResourceVisualization();
}
/**
* 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 containerDisplayName property value. A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getContainerDisplayName() {
return this.backingStore.get("containerDisplayName");
}
/**
* Gets the containerType property value. Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getContainerType() {
return this.backingStore.get("containerType");
}
/**
* Gets the containerWebUrl property value. A path leading to the folder in which the item is stored.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getContainerWebUrl() {
return this.backingStore.get("containerWebUrl");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(9);
deserializerMap.put("containerDisplayName", (n) -> { this.setContainerDisplayName(n.getStringValue()); });
deserializerMap.put("containerType", (n) -> { this.setContainerType(n.getStringValue()); });
deserializerMap.put("containerWebUrl", (n) -> { this.setContainerWebUrl(n.getStringValue()); });
deserializerMap.put("mediaType", (n) -> { this.setMediaType(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("previewImageUrl", (n) -> { this.setPreviewImageUrl(n.getStringValue()); });
deserializerMap.put("previewText", (n) -> { this.setPreviewText(n.getStringValue()); });
deserializerMap.put("title", (n) -> { this.setTitle(n.getStringValue()); });
deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the mediaType property value. The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Not all Media Mime Types are supported.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMediaType() {
return this.backingStore.get("mediaType");
}
/**
* 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 previewImageUrl property value. A URL leading to the preview image for the item.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPreviewImageUrl() {
return this.backingStore.get("previewImageUrl");
}
/**
* Gets the previewText property value. A preview text for the item.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPreviewText() {
return this.backingStore.get("previewText");
}
/**
* Gets the title property value. The item's title text.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getTitle() {
return this.backingStore.get("title");
}
/**
* Gets the type property value. The item's media type. Can be used for filtering for a specific file based on a specific type. See the section Type property values for supported types.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getType() {
return this.backingStore.get("type");
}
/**
* 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.writeStringValue("containerDisplayName", this.getContainerDisplayName());
writer.writeStringValue("containerType", this.getContainerType());
writer.writeStringValue("containerWebUrl", this.getContainerWebUrl());
writer.writeStringValue("mediaType", this.getMediaType());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeStringValue("previewImageUrl", this.getPreviewImageUrl());
writer.writeStringValue("previewText", this.getPreviewText());
writer.writeStringValue("title", this.getTitle());
writer.writeStringValue("type", this.getType());
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 containerDisplayName property value. A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item.
* @param value Value to set for the containerDisplayName property.
*/
public void setContainerDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("containerDisplayName", value);
}
/**
* Sets the containerType property value. Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness.
* @param value Value to set for the containerType property.
*/
public void setContainerType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("containerType", value);
}
/**
* Sets the containerWebUrl property value. A path leading to the folder in which the item is stored.
* @param value Value to set for the containerWebUrl property.
*/
public void setContainerWebUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("containerWebUrl", value);
}
/**
* Sets the mediaType property value. The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Not all Media Mime Types are supported.
* @param value Value to set for the mediaType property.
*/
public void setMediaType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("mediaType", 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 previewImageUrl property value. A URL leading to the preview image for the item.
* @param value Value to set for the previewImageUrl property.
*/
public void setPreviewImageUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("previewImageUrl", value);
}
/**
* Sets the previewText property value. A preview text for the item.
* @param value Value to set for the previewText property.
*/
public void setPreviewText(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("previewText", value);
}
/**
* Sets the title property value. The item's title text.
* @param value Value to set for the title property.
*/
public void setTitle(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("title", value);
}
/**
* Sets the type property value. The item's media type. Can be used for filtering for a specific file based on a specific type. See the section Type property values for supported types.
* @param value Value to set for the type property.
*/
public void setType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("type", value);
}
}