
com.microsoft.graph.beta.generated.models.WindowsKioskDesktopApp 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;
/**
* The base class for a type of apps
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsKioskDesktopApp extends WindowsKioskAppBase implements Parsable {
/**
* Instantiates a new {@link WindowsKioskDesktopApp} and sets the default values.
*/
public WindowsKioskDesktopApp() {
super();
this.setOdataType("#microsoft.graph.windowsKioskDesktopApp");
}
/**
* 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 WindowsKioskDesktopApp}
*/
@jakarta.annotation.Nonnull
public static WindowsKioskDesktopApp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsKioskDesktopApp();
}
/**
* Gets the desktopApplicationId property value. Define the DesktopApplicationID of the app
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDesktopApplicationId() {
return this.backingStore.get("desktopApplicationId");
}
/**
* Gets the desktopApplicationLinkPath property value. Define the DesktopApplicationLinkPath of the app
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDesktopApplicationLinkPath() {
return this.backingStore.get("desktopApplicationLinkPath");
}
/**
* 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("desktopApplicationId", (n) -> { this.setDesktopApplicationId(n.getStringValue()); });
deserializerMap.put("desktopApplicationLinkPath", (n) -> { this.setDesktopApplicationLinkPath(n.getStringValue()); });
deserializerMap.put("path", (n) -> { this.setPath(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the path property value. Define the path of a desktop app
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPath() {
return this.backingStore.get("path");
}
/**
* 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("desktopApplicationId", this.getDesktopApplicationId());
writer.writeStringValue("desktopApplicationLinkPath", this.getDesktopApplicationLinkPath());
writer.writeStringValue("path", this.getPath());
}
/**
* Sets the desktopApplicationId property value. Define the DesktopApplicationID of the app
* @param value Value to set for the desktopApplicationId property.
*/
public void setDesktopApplicationId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("desktopApplicationId", value);
}
/**
* Sets the desktopApplicationLinkPath property value. Define the DesktopApplicationLinkPath of the app
* @param value Value to set for the desktopApplicationLinkPath property.
*/
public void setDesktopApplicationLinkPath(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("desktopApplicationLinkPath", value);
}
/**
* Sets the path property value. Define the path of a desktop app
* @param value Value to set for the path property.
*/
public void setPath(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("path", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy