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

package com.azure.resourcemanager.deviceprovisioningservices.models;

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

/** Defines values for CertificatePurpose. */
public final class CertificatePurpose extends ExpandableStringEnum<CertificatePurpose> {
    /** Static value clientAuthentication for CertificatePurpose. */
    public static final CertificatePurpose CLIENT_AUTHENTICATION = fromString("clientAuthentication");

    /** Static value serverAuthentication for CertificatePurpose. */
    public static final CertificatePurpose SERVER_AUTHENTICATION = fromString("serverAuthentication");

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

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