VpnAuthenticationType.java

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.network.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for VpnAuthenticationType. */
public final class VpnAuthenticationType extends ExpandableStringEnum<VpnAuthenticationType> {
    /** Static value Certificate for VpnAuthenticationType. */
    public static final VpnAuthenticationType CERTIFICATE = fromString("Certificate");

    /** Static value Radius for VpnAuthenticationType. */
    public static final VpnAuthenticationType RADIUS = fromString("Radius");

    /** Static value AAD for VpnAuthenticationType. */
    public static final VpnAuthenticationType AAD = fromString("AAD");

    /**
     * Creates or finds a VpnAuthenticationType from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding VpnAuthenticationType.
     */
    @JsonCreator
    public static VpnAuthenticationType fromString(String name) {
        return fromString(name, VpnAuthenticationType.class);
    }

    /** @return known VpnAuthenticationType values. */
    public static Collection<VpnAuthenticationType> values() {
        return values(VpnAuthenticationType.class);
    }
}