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

com.microsoft.graph.beta.generated.models.DeviceManagementConfigurationIntegerSettingValueDefinition 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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceManagementConfigurationIntegerSettingValueDefinition extends DeviceManagementConfigurationSettingValueDefinition implements Parsable {
    /**
     * Instantiates a new {@link DeviceManagementConfigurationIntegerSettingValueDefinition} and sets the default values.
     */
    public DeviceManagementConfigurationIntegerSettingValueDefinition() {
        super();
        this.setOdataType("#microsoft.graph.deviceManagementConfigurationIntegerSettingValueDefinition");
    }
    /**
     * 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 DeviceManagementConfigurationIntegerSettingValueDefinition}
     */
    @jakarta.annotation.Nonnull
    public static DeviceManagementConfigurationIntegerSettingValueDefinition createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new DeviceManagementConfigurationIntegerSettingValueDefinition();
    }
    /**
     * 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("maximumValue", (n) -> { this.setMaximumValue(n.getLongValue()); });
        deserializerMap.put("minimumValue", (n) -> { this.setMinimumValue(n.getLongValue()); });
        return deserializerMap;
    }
    /**
     * Gets the maximumValue property value. Maximum allowed value of the integer
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getMaximumValue() {
        return this.backingStore.get("maximumValue");
    }
    /**
     * Gets the minimumValue property value. Minimum allowed value of the integer
     * @return a {@link Long}
     */
    @jakarta.annotation.Nullable
    public Long getMinimumValue() {
        return this.backingStore.get("minimumValue");
    }
    /**
     * 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.writeLongValue("maximumValue", this.getMaximumValue());
        writer.writeLongValue("minimumValue", this.getMinimumValue());
    }
    /**
     * Sets the maximumValue property value. Maximum allowed value of the integer
     * @param value Value to set for the maximumValue property.
     */
    public void setMaximumValue(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("maximumValue", value);
    }
    /**
     * Sets the minimumValue property value. Minimum allowed value of the integer
     * @param value Value to set for the minimumValue property.
     */
    public void setMinimumValue(@jakarta.annotation.Nullable final Long value) {
        this.backingStore.set("minimumValue", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy