com.microsoft.graph.generated.models.MacOSDmgApp Maven / Gradle / Ivy
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.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Contains properties and inherited properties for the MacOS DMG (Apple Disk Image) App.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MacOSDmgApp extends MobileLobApp implements Parsable {
/**
* Instantiates a new {@link MacOSDmgApp} and sets the default values.
*/
public MacOSDmgApp() {
super();
this.setOdataType("#microsoft.graph.macOSDmgApp");
}
/**
* 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 MacOSDmgApp}
*/
@jakarta.annotation.Nonnull
public static MacOSDmgApp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MacOSDmgApp();
}
/**
* 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("ignoreVersionDetection", (n) -> { this.setIgnoreVersionDetection(n.getBooleanValue()); });
deserializerMap.put("includedApps", (n) -> { this.setIncludedApps(n.getCollectionOfObjectValues(MacOSIncludedApp::createFromDiscriminatorValue)); });
deserializerMap.put("minimumSupportedOperatingSystem", (n) -> { this.setMinimumSupportedOperatingSystem(n.getObjectValue(MacOSMinimumOperatingSystem::createFromDiscriminatorValue)); });
deserializerMap.put("primaryBundleId", (n) -> { this.setPrimaryBundleId(n.getStringValue()); });
deserializerMap.put("primaryBundleVersion", (n) -> { this.setPrimaryBundleVersion(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIgnoreVersionDetection() {
return this.backingStore.get("ignoreVersionDetection");
}
/**
* Gets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getIncludedApps() {
return this.backingStore.get("includedApps");
}
/**
* Gets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.
* @return a {@link MacOSMinimumOperatingSystem}
*/
@jakarta.annotation.Nullable
public MacOSMinimumOperatingSystem getMinimumSupportedOperatingSystem() {
return this.backingStore.get("minimumSupportedOperatingSystem");
}
/**
* Gets the primaryBundleId property value. The bundleId of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleIdentifier in the app's bundle configuration.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPrimaryBundleId() {
return this.backingStore.get("primaryBundleId");
}
/**
* Gets the primaryBundleVersion property value. The version of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleShortVersion in the app's bundle configuration.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPrimaryBundleVersion() {
return this.backingStore.get("primaryBundleVersion");
}
/**
* 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.writeBooleanValue("ignoreVersionDetection", this.getIgnoreVersionDetection());
writer.writeCollectionOfObjectValues("includedApps", this.getIncludedApps());
writer.writeObjectValue("minimumSupportedOperatingSystem", this.getMinimumSupportedOperatingSystem());
writer.writeStringValue("primaryBundleId", this.getPrimaryBundleId());
writer.writeStringValue("primaryBundleVersion", this.getPrimaryBundleVersion());
}
/**
* Sets the ignoreVersionDetection property value. When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE.
* @param value Value to set for the ignoreVersionDetection property.
*/
public void setIgnoreVersionDetection(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("ignoreVersionDetection", value);
}
/**
* Sets the includedApps property value. The list of .apps expected to be installed by the DMG (Apple Disk Image). This collection can contain a maximum of 500 elements.
* @param value Value to set for the includedApps property.
*/
public void setIncludedApps(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("includedApps", value);
}
/**
* Sets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.
* @param value Value to set for the minimumSupportedOperatingSystem property.
*/
public void setMinimumSupportedOperatingSystem(@jakarta.annotation.Nullable final MacOSMinimumOperatingSystem value) {
this.backingStore.set("minimumSupportedOperatingSystem", value);
}
/**
* Sets the primaryBundleId property value. The bundleId of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleIdentifier in the app's bundle configuration.
* @param value Value to set for the primaryBundleId property.
*/
public void setPrimaryBundleId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("primaryBundleId", value);
}
/**
* Sets the primaryBundleVersion property value. The version of the primary .app in the DMG (Apple Disk Image). This maps to the CFBundleShortVersion in the app's bundle configuration.
* @param value Value to set for the primaryBundleVersion property.
*/
public void setPrimaryBundleVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("primaryBundleVersion", value);
}
}