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

package com.azure.resourcemanager.recoveryservices.models;

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

/** Private endpoint state for backup. */
public final class VaultPrivateEndpointState extends ExpandableStringEnum<VaultPrivateEndpointState> {
    /** Static value None for VaultPrivateEndpointState. */
    public static final VaultPrivateEndpointState NONE = fromString("None");

    /** Static value Enabled for VaultPrivateEndpointState. */
    public static final VaultPrivateEndpointState ENABLED = fromString("Enabled");

    /**
     * Creates a new instance of VaultPrivateEndpointState value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public VaultPrivateEndpointState() {
    }

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

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