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

package com.azure.resourcemanager.support.models;

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

/** Direction of communication. */
public final class CommunicationDirection extends ExpandableStringEnum<CommunicationDirection> {
    /** Static value inbound for CommunicationDirection. */
    public static final CommunicationDirection INBOUND = fromString("inbound");

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

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

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

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