// 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;

/** The direction of the traffic. */
public final class Direction extends ExpandableStringEnum<Direction> {
    /** Static value Inbound for Direction. */
    public static final Direction INBOUND = fromString("Inbound");

    /** Static value Outbound for Direction. */
    public static final Direction OUTBOUND = fromString("Outbound");

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

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

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