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.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Contains properties and inherited properties for Win32 apps.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Win32LobApp extends MobileLobApp implements Parsable {
/**
* Instantiates a new {@link Win32LobApp} and sets the default values.
*/
public Win32LobApp() {
super();
this.setOdataType("#microsoft.graph.win32LobApp");
}
/**
* 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 Win32LobApp}
*/
@jakarta.annotation.Nonnull
public static Win32LobApp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Win32LobApp();
}
/**
* Gets the applicableArchitectures property value. Contains properties for Windows architecture.
* @return a {@link EnumSet}
*/
@jakarta.annotation.Nullable
public EnumSet getApplicableArchitectures() {
return this.backingStore.get("applicableArchitectures");
}
/**
* 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("applicableArchitectures", (n) -> { this.setApplicableArchitectures(n.getEnumSetValue(WindowsArchitecture::forValue)); });
deserializerMap.put("installCommandLine", (n) -> { this.setInstallCommandLine(n.getStringValue()); });
deserializerMap.put("installExperience", (n) -> { this.setInstallExperience(n.getObjectValue(Win32LobAppInstallExperience::createFromDiscriminatorValue)); });
deserializerMap.put("minimumCpuSpeedInMHz", (n) -> { this.setMinimumCpuSpeedInMHz(n.getIntegerValue()); });
deserializerMap.put("minimumFreeDiskSpaceInMB", (n) -> { this.setMinimumFreeDiskSpaceInMB(n.getIntegerValue()); });
deserializerMap.put("minimumMemoryInMB", (n) -> { this.setMinimumMemoryInMB(n.getIntegerValue()); });
deserializerMap.put("minimumNumberOfProcessors", (n) -> { this.setMinimumNumberOfProcessors(n.getIntegerValue()); });
deserializerMap.put("minimumSupportedWindowsRelease", (n) -> { this.setMinimumSupportedWindowsRelease(n.getStringValue()); });
deserializerMap.put("msiInformation", (n) -> { this.setMsiInformation(n.getObjectValue(Win32LobAppMsiInformation::createFromDiscriminatorValue)); });
deserializerMap.put("returnCodes", (n) -> { this.setReturnCodes(n.getCollectionOfObjectValues(Win32LobAppReturnCode::createFromDiscriminatorValue)); });
deserializerMap.put("rules", (n) -> { this.setRules(n.getCollectionOfObjectValues(Win32LobAppRule::createFromDiscriminatorValue)); });
deserializerMap.put("setupFilePath", (n) -> { this.setSetupFilePath(n.getStringValue()); });
deserializerMap.put("uninstallCommandLine", (n) -> { this.setUninstallCommandLine(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the installCommandLine property value. The command line to install this app
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getInstallCommandLine() {
return this.backingStore.get("installCommandLine");
}
/**
* Gets the installExperience property value. The install experience for this app.
* @return a {@link Win32LobAppInstallExperience}
*/
@jakarta.annotation.Nullable
public Win32LobAppInstallExperience getInstallExperience() {
return this.backingStore.get("installExperience");
}
/**
* Gets the minimumCpuSpeedInMHz property value. The value for the minimum CPU speed which is required to install this app.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMinimumCpuSpeedInMHz() {
return this.backingStore.get("minimumCpuSpeedInMHz");
}
/**
* Gets the minimumFreeDiskSpaceInMB property value. The value for the minimum free disk space which is required to install this app.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMinimumFreeDiskSpaceInMB() {
return this.backingStore.get("minimumFreeDiskSpaceInMB");
}
/**
* Gets the minimumMemoryInMB property value. The value for the minimum physical memory which is required to install this app.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMinimumMemoryInMB() {
return this.backingStore.get("minimumMemoryInMB");
}
/**
* Gets the minimumNumberOfProcessors property value. The value for the minimum number of processors which is required to install this app.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMinimumNumberOfProcessors() {
return this.backingStore.get("minimumNumberOfProcessors");
}
/**
* Gets the minimumSupportedWindowsRelease property value. The value for the minimum supported windows release.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMinimumSupportedWindowsRelease() {
return this.backingStore.get("minimumSupportedWindowsRelease");
}
/**
* Gets the msiInformation property value. The MSI details if this Win32 app is an MSI app.
* @return a {@link Win32LobAppMsiInformation}
*/
@jakarta.annotation.Nullable
public Win32LobAppMsiInformation getMsiInformation() {
return this.backingStore.get("msiInformation");
}
/**
* Gets the returnCodes property value. The return codes for post installation behavior.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getReturnCodes() {
return this.backingStore.get("returnCodes");
}
/**
* Gets the rules property value. The detection and requirement rules for this app.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getRules() {
return this.backingStore.get("rules");
}
/**
* Gets the setupFilePath property value. The relative path of the setup file in the encrypted Win32LobApp package.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSetupFilePath() {
return this.backingStore.get("setupFilePath");
}
/**
* Gets the uninstallCommandLine property value. The command line to uninstall this app
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUninstallCommandLine() {
return this.backingStore.get("uninstallCommandLine");
}
/**
* 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.writeEnumSetValue("applicableArchitectures", this.getApplicableArchitectures());
writer.writeStringValue("installCommandLine", this.getInstallCommandLine());
writer.writeObjectValue("installExperience", this.getInstallExperience());
writer.writeIntegerValue("minimumCpuSpeedInMHz", this.getMinimumCpuSpeedInMHz());
writer.writeIntegerValue("minimumFreeDiskSpaceInMB", this.getMinimumFreeDiskSpaceInMB());
writer.writeIntegerValue("minimumMemoryInMB", this.getMinimumMemoryInMB());
writer.writeIntegerValue("minimumNumberOfProcessors", this.getMinimumNumberOfProcessors());
writer.writeStringValue("minimumSupportedWindowsRelease", this.getMinimumSupportedWindowsRelease());
writer.writeObjectValue("msiInformation", this.getMsiInformation());
writer.writeCollectionOfObjectValues("returnCodes", this.getReturnCodes());
writer.writeCollectionOfObjectValues("rules", this.getRules());
writer.writeStringValue("setupFilePath", this.getSetupFilePath());
writer.writeStringValue("uninstallCommandLine", this.getUninstallCommandLine());
}
/**
* Sets the applicableArchitectures property value. Contains properties for Windows architecture.
* @param value Value to set for the applicableArchitectures property.
*/
public void setApplicableArchitectures(@jakarta.annotation.Nullable final EnumSet value) {
this.backingStore.set("applicableArchitectures", value);
}
/**
* Sets the installCommandLine property value. The command line to install this app
* @param value Value to set for the installCommandLine property.
*/
public void setInstallCommandLine(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("installCommandLine", value);
}
/**
* Sets the installExperience property value. The install experience for this app.
* @param value Value to set for the installExperience property.
*/
public void setInstallExperience(@jakarta.annotation.Nullable final Win32LobAppInstallExperience value) {
this.backingStore.set("installExperience", value);
}
/**
* Sets the minimumCpuSpeedInMHz property value. The value for the minimum CPU speed which is required to install this app.
* @param value Value to set for the minimumCpuSpeedInMHz property.
*/
public void setMinimumCpuSpeedInMHz(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("minimumCpuSpeedInMHz", value);
}
/**
* Sets the minimumFreeDiskSpaceInMB property value. The value for the minimum free disk space which is required to install this app.
* @param value Value to set for the minimumFreeDiskSpaceInMB property.
*/
public void setMinimumFreeDiskSpaceInMB(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("minimumFreeDiskSpaceInMB", value);
}
/**
* Sets the minimumMemoryInMB property value. The value for the minimum physical memory which is required to install this app.
* @param value Value to set for the minimumMemoryInMB property.
*/
public void setMinimumMemoryInMB(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("minimumMemoryInMB", value);
}
/**
* Sets the minimumNumberOfProcessors property value. The value for the minimum number of processors which is required to install this app.
* @param value Value to set for the minimumNumberOfProcessors property.
*/
public void setMinimumNumberOfProcessors(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("minimumNumberOfProcessors", value);
}
/**
* Sets the minimumSupportedWindowsRelease property value. The value for the minimum supported windows release.
* @param value Value to set for the minimumSupportedWindowsRelease property.
*/
public void setMinimumSupportedWindowsRelease(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("minimumSupportedWindowsRelease", value);
}
/**
* Sets the msiInformation property value. The MSI details if this Win32 app is an MSI app.
* @param value Value to set for the msiInformation property.
*/
public void setMsiInformation(@jakarta.annotation.Nullable final Win32LobAppMsiInformation value) {
this.backingStore.set("msiInformation", value);
}
/**
* Sets the returnCodes property value. The return codes for post installation behavior.
* @param value Value to set for the returnCodes property.
*/
public void setReturnCodes(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("returnCodes", value);
}
/**
* Sets the rules property value. The detection and requirement rules for this app.
* @param value Value to set for the rules property.
*/
public void setRules(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("rules", value);
}
/**
* Sets the setupFilePath property value. The relative path of the setup file in the encrypted Win32LobApp package.
* @param value Value to set for the setupFilePath property.
*/
public void setSetupFilePath(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("setupFilePath", value);
}
/**
* Sets the uninstallCommandLine property value. The command line to uninstall this app
* @param value Value to set for the uninstallCommandLine property.
*/
public void setUninstallCommandLine(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("uninstallCommandLine", value);
}
}