All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.beta.generated.models.WindowsMinimumOperatingSystem Maven / Gradle / Ivy

There is a newer version: 6.26.0
Show newest version
package com.microsoft.graph.beta.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;
/**
 * The minimum operating system required for a Windows mobile app.
 */
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsMinimumOperatingSystem implements AdditionalDataHolder, BackedModel, Parsable {
    /**
     * Stores model information.
     */
    @jakarta.annotation.Nonnull
    protected BackingStore backingStore;
    /**
     * Instantiates a new {@link WindowsMinimumOperatingSystem} and sets the default values.
     */
    public WindowsMinimumOperatingSystem() {
        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 WindowsMinimumOperatingSystem}
     */
    @jakarta.annotation.Nonnull
    public static WindowsMinimumOperatingSystem createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new WindowsMinimumOperatingSystem();
    }
    /**
     * 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;
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(14);
        deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
        deserializerMap.put("v10_0", (n) -> { this.setV100(n.getBooleanValue()); });
        deserializerMap.put("v10_1607", (n) -> { this.setV101607(n.getBooleanValue()); });
        deserializerMap.put("v10_1703", (n) -> { this.setV101703(n.getBooleanValue()); });
        deserializerMap.put("v10_1709", (n) -> { this.setV101709(n.getBooleanValue()); });
        deserializerMap.put("v10_1803", (n) -> { this.setV101803(n.getBooleanValue()); });
        deserializerMap.put("v10_1809", (n) -> { this.setV101809(n.getBooleanValue()); });
        deserializerMap.put("v10_1903", (n) -> { this.setV101903(n.getBooleanValue()); });
        deserializerMap.put("v10_1909", (n) -> { this.setV101909(n.getBooleanValue()); });
        deserializerMap.put("v10_2004", (n) -> { this.setV102004(n.getBooleanValue()); });
        deserializerMap.put("v10_21H1", (n) -> { this.setV1021H1(n.getBooleanValue()); });
        deserializerMap.put("v10_2H20", (n) -> { this.setV102H20(n.getBooleanValue()); });
        deserializerMap.put("v8_0", (n) -> { this.setV80(n.getBooleanValue()); });
        deserializerMap.put("v8_1", (n) -> { this.setV81(n.getBooleanValue()); });
        return deserializerMap;
    }
    /**
     * 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 v10_0 property value. Windows version 10.0 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV100() {
        return this.backingStore.get("v100");
    }
    /**
     * Gets the v10_1607 property value. Windows 10 1607 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101607() {
        return this.backingStore.get("v101607");
    }
    /**
     * Gets the v10_1703 property value. Windows 10 1703 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101703() {
        return this.backingStore.get("v101703");
    }
    /**
     * Gets the v10_1709 property value. Windows 10 1709 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101709() {
        return this.backingStore.get("v101709");
    }
    /**
     * Gets the v10_1803 property value. Windows 10 1803 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101803() {
        return this.backingStore.get("v101803");
    }
    /**
     * Gets the v10_1809 property value. Windows 10 1809 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101809() {
        return this.backingStore.get("v101809");
    }
    /**
     * Gets the v10_1903 property value. Windows 10 1903 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101903() {
        return this.backingStore.get("v101903");
    }
    /**
     * Gets the v10_1909 property value. Windows 10 1909 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV101909() {
        return this.backingStore.get("v101909");
    }
    /**
     * Gets the v10_2004 property value. Windows 10 2004 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV102004() {
        return this.backingStore.get("v102004");
    }
    /**
     * Gets the v10_21H1 property value. Windows 10 21H1 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV1021H1() {
        return this.backingStore.get("v1021H1");
    }
    /**
     * Gets the v10_2H20 property value. Windows 10 2H20 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV102H20() {
        return this.backingStore.get("v102H20");
    }
    /**
     * Gets the v8_0 property value. Windows version 8.0 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV80() {
        return this.backingStore.get("v80");
    }
    /**
     * Gets the v8_1 property value. Windows version 8.1 or later.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getV81() {
        return this.backingStore.get("v81");
    }
    /**
     * 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("@odata.type", this.getOdataType());
        writer.writeBooleanValue("v10_0", this.getV100());
        writer.writeBooleanValue("v10_1607", this.getV101607());
        writer.writeBooleanValue("v10_1703", this.getV101703());
        writer.writeBooleanValue("v10_1709", this.getV101709());
        writer.writeBooleanValue("v10_1803", this.getV101803());
        writer.writeBooleanValue("v10_1809", this.getV101809());
        writer.writeBooleanValue("v10_1903", this.getV101903());
        writer.writeBooleanValue("v10_1909", this.getV101909());
        writer.writeBooleanValue("v10_2004", this.getV102004());
        writer.writeBooleanValue("v10_21H1", this.getV1021H1());
        writer.writeBooleanValue("v10_2H20", this.getV102H20());
        writer.writeBooleanValue("v8_0", this.getV80());
        writer.writeBooleanValue("v8_1", this.getV81());
        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 @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 v10_0 property value. Windows version 10.0 or later.
     * @param value Value to set for the v10_0 property.
     */
    public void setV100(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v100", value);
    }
    /**
     * Sets the v10_1607 property value. Windows 10 1607 or later.
     * @param value Value to set for the v10_1607 property.
     */
    public void setV101607(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101607", value);
    }
    /**
     * Sets the v10_1703 property value. Windows 10 1703 or later.
     * @param value Value to set for the v10_1703 property.
     */
    public void setV101703(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101703", value);
    }
    /**
     * Sets the v10_1709 property value. Windows 10 1709 or later.
     * @param value Value to set for the v10_1709 property.
     */
    public void setV101709(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101709", value);
    }
    /**
     * Sets the v10_1803 property value. Windows 10 1803 or later.
     * @param value Value to set for the v10_1803 property.
     */
    public void setV101803(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101803", value);
    }
    /**
     * Sets the v10_1809 property value. Windows 10 1809 or later.
     * @param value Value to set for the v10_1809 property.
     */
    public void setV101809(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101809", value);
    }
    /**
     * Sets the v10_1903 property value. Windows 10 1903 or later.
     * @param value Value to set for the v10_1903 property.
     */
    public void setV101903(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101903", value);
    }
    /**
     * Sets the v10_1909 property value. Windows 10 1909 or later.
     * @param value Value to set for the v10_1909 property.
     */
    public void setV101909(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v101909", value);
    }
    /**
     * Sets the v10_2004 property value. Windows 10 2004 or later.
     * @param value Value to set for the v10_2004 property.
     */
    public void setV102004(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v102004", value);
    }
    /**
     * Sets the v10_21H1 property value. Windows 10 21H1 or later.
     * @param value Value to set for the v10_21H1 property.
     */
    public void setV1021H1(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v1021H1", value);
    }
    /**
     * Sets the v10_2H20 property value. Windows 10 2H20 or later.
     * @param value Value to set for the v10_2H20 property.
     */
    public void setV102H20(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v102H20", value);
    }
    /**
     * Sets the v8_0 property value. Windows version 8.0 or later.
     * @param value Value to set for the v8_0 property.
     */
    public void setV80(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v80", value);
    }
    /**
     * Sets the v8_1 property value. Windows version 8.1 or later.
     * @param value Value to set for the v8_1 property.
     */
    public void setV81(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("v81", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy