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

/** Communication type. */
public final class CommunicationType extends ExpandableStringEnum<CommunicationType> {
    /** Static value web for CommunicationType. */
    public static final CommunicationType WEB = fromString("web");

    /** Static value phone for CommunicationType. */
    public static final CommunicationType PHONE = fromString("phone");

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

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

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