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

com.microsoft.graph.beta.generated.models.Windows10XVpnConfiguration 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;
import java.util.UUID;
/**
 * Windows X VPN configuration profile
 */
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Windows10XVpnConfiguration extends DeviceManagementResourceAccessProfileBase implements Parsable {
    /**
     * Instantiates a new {@link Windows10XVpnConfiguration} and sets the default values.
     */
    public Windows10XVpnConfiguration() {
        super();
        this.setOdataType("#microsoft.graph.windows10XVpnConfiguration");
    }
    /**
     * 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 Windows10XVpnConfiguration}
     */
    @jakarta.annotation.Nonnull
    public static Windows10XVpnConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new Windows10XVpnConfiguration();
    }
    /**
     * Gets the authenticationCertificateId property value. ID to the Authentication Certificate
     * @return a {@link UUID}
     */
    @jakarta.annotation.Nullable
    public UUID getAuthenticationCertificateId() {
        return this.backingStore.get("authenticationCertificateId");
    }
    /**
     * Gets the customXml property value. Custom XML commands that configures the VPN connection. (UTF8 byte encoding)
     * @return a {@link byte[]}
     */
    @jakarta.annotation.Nullable
    public byte[] getCustomXml() {
        return this.backingStore.get("customXml");
    }
    /**
     * Gets the customXmlFileName property value. Custom Xml file name.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getCustomXmlFileName() {
        return this.backingStore.get("customXmlFileName");
    }
    /**
     * 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("authenticationCertificateId", (n) -> { this.setAuthenticationCertificateId(n.getUUIDValue()); });
        deserializerMap.put("customXml", (n) -> { this.setCustomXml(n.getByteArrayValue()); });
        deserializerMap.put("customXmlFileName", (n) -> { this.setCustomXmlFileName(n.getStringValue()); });
        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.writeUUIDValue("authenticationCertificateId", this.getAuthenticationCertificateId());
        writer.writeByteArrayValue("customXml", this.getCustomXml());
        writer.writeStringValue("customXmlFileName", this.getCustomXmlFileName());
    }
    /**
     * Sets the authenticationCertificateId property value. ID to the Authentication Certificate
     * @param value Value to set for the authenticationCertificateId property.
     */
    public void setAuthenticationCertificateId(@jakarta.annotation.Nullable final UUID value) {
        this.backingStore.set("authenticationCertificateId", value);
    }
    /**
     * Sets the customXml property value. Custom XML commands that configures the VPN connection. (UTF8 byte encoding)
     * @param value Value to set for the customXml property.
     */
    public void setCustomXml(@jakarta.annotation.Nullable final byte[] value) {
        this.backingStore.set("customXml", value);
    }
    /**
     * Sets the customXmlFileName property value. Custom Xml file name.
     * @param value Value to set for the customXmlFileName property.
     */
    public void setCustomXmlFileName(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("customXmlFileName", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy