com.microsoft.graph.beta.generated.models.AndroidOmaCpConfiguration 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;
/**
* By providing a configuration in this profile you can configure Android devices that support OMA-CP.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AndroidOmaCpConfiguration extends DeviceConfiguration implements Parsable {
/**
* Instantiates a new {@link AndroidOmaCpConfiguration} and sets the default values.
*/
public AndroidOmaCpConfiguration() {
super();
this.setOdataType("#microsoft.graph.androidOmaCpConfiguration");
}
/**
* 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 AndroidOmaCpConfiguration}
*/
@jakarta.annotation.Nonnull
public static AndroidOmaCpConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AndroidOmaCpConfiguration();
}
/**
* Gets the configurationXml property value. Configuration XML that will be applied to the device. When it is read, it only provides a placeholder string since the original data is encrypted and stored.
* @return a {@link byte[]}
*/
@jakarta.annotation.Nullable
public byte[] getConfigurationXml() {
return this.backingStore.get("configurationXml");
}
/**
* 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("configurationXml", (n) -> { this.setConfigurationXml(n.getByteArrayValue()); });
return deserializerMap;
}
/**
* 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.writeByteArrayValue("configurationXml", this.getConfigurationXml());
}
/**
* Sets the configurationXml property value. Configuration XML that will be applied to the device. When it is read, it only provides a placeholder string since the original data is encrypted and stored.
* @param value Value to set for the configurationXml property.
*/
public void setConfigurationXml(@jakarta.annotation.Nullable final byte[] value) {
this.backingStore.set("configurationXml", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy