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

package com.azure.resourcemanager.peering.models;

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

/** The state of the IPv6 session. */
public final class SessionStateV6 extends ExpandableStringEnum<SessionStateV6> {
    /** Static value None for SessionStateV6. */
    public static final SessionStateV6 NONE = fromString("None");

    /** Static value Idle for SessionStateV6. */
    public static final SessionStateV6 IDLE = fromString("Idle");

    /** Static value Connect for SessionStateV6. */
    public static final SessionStateV6 CONNECT = fromString("Connect");

    /** Static value Active for SessionStateV6. */
    public static final SessionStateV6 ACTIVE = fromString("Active");

    /** Static value OpenSent for SessionStateV6. */
    public static final SessionStateV6 OPEN_SENT = fromString("OpenSent");

    /** Static value OpenConfirm for SessionStateV6. */
    public static final SessionStateV6 OPEN_CONFIRM = fromString("OpenConfirm");

    /** Static value OpenReceived for SessionStateV6. */
    public static final SessionStateV6 OPEN_RECEIVED = fromString("OpenReceived");

    /** Static value Established for SessionStateV6. */
    public static final SessionStateV6 ESTABLISHED = fromString("Established");

    /** Static value PendingAdd for SessionStateV6. */
    public static final SessionStateV6 PENDING_ADD = fromString("PendingAdd");

    /** Static value PendingUpdate for SessionStateV6. */
    public static final SessionStateV6 PENDING_UPDATE = fromString("PendingUpdate");

    /** Static value PendingRemove for SessionStateV6. */
    public static final SessionStateV6 PENDING_REMOVE = fromString("PendingRemove");

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

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

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