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

package com.azure.resourcemanager.databricks.models;

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

/** The status of the virtual network peering. */
public final class PeeringState extends ExpandableStringEnum<PeeringState> {
    /** Static value Initiated for PeeringState. */
    public static final PeeringState INITIATED = fromString("Initiated");

    /** Static value Connected for PeeringState. */
    public static final PeeringState CONNECTED = fromString("Connected");

    /** Static value Disconnected for PeeringState. */
    public static final PeeringState DISCONNECTED = fromString("Disconnected");

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

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

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