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

com.microsoft.graph.beta.generated.models.IosEduDeviceConfiguration 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;
/**
 * iOS Education device configuration
 */
@jakarta.annotation.Generated("com.microsoft.kiota")
public class IosEduDeviceConfiguration extends DeviceConfiguration implements Parsable {
    /**
     * Instantiates a new {@link IosEduDeviceConfiguration} and sets the default values.
     */
    public IosEduDeviceConfiguration() {
        super();
        this.setOdataType("#microsoft.graph.iosEduDeviceConfiguration");
    }
    /**
     * 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 IosEduDeviceConfiguration}
     */
    @jakarta.annotation.Nonnull
    public static IosEduDeviceConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new IosEduDeviceConfiguration();
    }
    /**
     * Gets the deviceCertificateSettings property value. The Trusted Root and PFX certificates for Device
     * @return a {@link IosEduCertificateSettings}
     */
    @jakarta.annotation.Nullable
    public IosEduCertificateSettings getDeviceCertificateSettings() {
        return this.backingStore.get("deviceCertificateSettings");
    }
    /**
     * 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("deviceCertificateSettings", (n) -> { this.setDeviceCertificateSettings(n.getObjectValue(IosEduCertificateSettings::createFromDiscriminatorValue)); });
        deserializerMap.put("studentCertificateSettings", (n) -> { this.setStudentCertificateSettings(n.getObjectValue(IosEduCertificateSettings::createFromDiscriminatorValue)); });
        deserializerMap.put("teacherCertificateSettings", (n) -> { this.setTeacherCertificateSettings(n.getObjectValue(IosEduCertificateSettings::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the studentCertificateSettings property value. The Trusted Root and PFX certificates for Student
     * @return a {@link IosEduCertificateSettings}
     */
    @jakarta.annotation.Nullable
    public IosEduCertificateSettings getStudentCertificateSettings() {
        return this.backingStore.get("studentCertificateSettings");
    }
    /**
     * Gets the teacherCertificateSettings property value. Trusted Root and PFX certificates for iOS EDU.
     * @return a {@link IosEduCertificateSettings}
     */
    @jakarta.annotation.Nullable
    public IosEduCertificateSettings getTeacherCertificateSettings() {
        return this.backingStore.get("teacherCertificateSettings");
    }
    /**
     * 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("deviceCertificateSettings", this.getDeviceCertificateSettings());
        writer.writeObjectValue("studentCertificateSettings", this.getStudentCertificateSettings());
        writer.writeObjectValue("teacherCertificateSettings", this.getTeacherCertificateSettings());
    }
    /**
     * Sets the deviceCertificateSettings property value. The Trusted Root and PFX certificates for Device
     * @param value Value to set for the deviceCertificateSettings property.
     */
    public void setDeviceCertificateSettings(@jakarta.annotation.Nullable final IosEduCertificateSettings value) {
        this.backingStore.set("deviceCertificateSettings", value);
    }
    /**
     * Sets the studentCertificateSettings property value. The Trusted Root and PFX certificates for Student
     * @param value Value to set for the studentCertificateSettings property.
     */
    public void setStudentCertificateSettings(@jakarta.annotation.Nullable final IosEduCertificateSettings value) {
        this.backingStore.set("studentCertificateSettings", value);
    }
    /**
     * Sets the teacherCertificateSettings property value. Trusted Root and PFX certificates for iOS EDU.
     * @param value Value to set for the teacherCertificateSettings property.
     */
    public void setTeacherCertificateSettings(@jakarta.annotation.Nullable final IosEduCertificateSettings value) {
        this.backingStore.set("teacherCertificateSettings", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy