
com.microsoft.graph.beta.generated.models.DeviceManagementConfigurationSimpleSettingDefinition 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 DeviceManagementConfigurationSimpleSettingDefinition extends DeviceManagementConfigurationSettingDefinition implements Parsable {
/**
* Instantiates a new {@link DeviceManagementConfigurationSimpleSettingDefinition} and sets the default values.
*/
public DeviceManagementConfigurationSimpleSettingDefinition() {
super();
}
/**
* 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 DeviceManagementConfigurationSimpleSettingDefinition}
*/
@jakarta.annotation.Nonnull
public static DeviceManagementConfigurationSimpleSettingDefinition createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type");
if (mappingValueNode != null) {
final String mappingValue = mappingValueNode.getStringValue();
switch (mappingValue) {
case "#microsoft.graph.deviceManagementConfigurationSimpleSettingCollectionDefinition": return new DeviceManagementConfigurationSimpleSettingCollectionDefinition();
}
}
return new DeviceManagementConfigurationSimpleSettingDefinition();
}
/**
* Gets the defaultValue property value. Default setting value for this setting
* @return a {@link DeviceManagementConfigurationSettingValue}
*/
@jakarta.annotation.Nullable
public DeviceManagementConfigurationSettingValue getDefaultValue() {
return this.backingStore.get("defaultValue");
}
/**
* Gets the dependedOnBy property value. list of child settings that depend on this setting
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDependedOnBy() {
return this.backingStore.get("dependedOnBy");
}
/**
* Gets the dependentOn property value. list of parent settings this setting is dependent on
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDependentOn() {
return this.backingStore.get("dependentOn");
}
/**
* 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("defaultValue", (n) -> { this.setDefaultValue(n.getObjectValue(DeviceManagementConfigurationSettingValue::createFromDiscriminatorValue)); });
deserializerMap.put("dependedOnBy", (n) -> { this.setDependedOnBy(n.getCollectionOfObjectValues(DeviceManagementConfigurationSettingDependedOnBy::createFromDiscriminatorValue)); });
deserializerMap.put("dependentOn", (n) -> { this.setDependentOn(n.getCollectionOfObjectValues(DeviceManagementConfigurationDependentOn::createFromDiscriminatorValue)); });
deserializerMap.put("valueDefinition", (n) -> { this.setValueDefinition(n.getObjectValue(DeviceManagementConfigurationSettingValueDefinition::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the valueDefinition property value. Definition of the value for this setting
* @return a {@link DeviceManagementConfigurationSettingValueDefinition}
*/
@jakarta.annotation.Nullable
public DeviceManagementConfigurationSettingValueDefinition getValueDefinition() {
return this.backingStore.get("valueDefinition");
}
/**
* 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.writeObjectValue("defaultValue", this.getDefaultValue());
writer.writeCollectionOfObjectValues("dependedOnBy", this.getDependedOnBy());
writer.writeCollectionOfObjectValues("dependentOn", this.getDependentOn());
writer.writeObjectValue("valueDefinition", this.getValueDefinition());
}
/**
* Sets the defaultValue property value. Default setting value for this setting
* @param value Value to set for the defaultValue property.
*/
public void setDefaultValue(@jakarta.annotation.Nullable final DeviceManagementConfigurationSettingValue value) {
this.backingStore.set("defaultValue", value);
}
/**
* Sets the dependedOnBy property value. list of child settings that depend on this setting
* @param value Value to set for the dependedOnBy property.
*/
public void setDependedOnBy(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("dependedOnBy", value);
}
/**
* Sets the dependentOn property value. list of parent settings this setting is dependent on
* @param value Value to set for the dependentOn property.
*/
public void setDependentOn(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("dependentOn", value);
}
/**
* Sets the valueDefinition property value. Definition of the value for this setting
* @param value Value to set for the valueDefinition property.
*/
public void setValueDefinition(@jakarta.annotation.Nullable final DeviceManagementConfigurationSettingValueDefinition value) {
this.backingStore.set("valueDefinition", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy