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

package com.azure.resourcemanager.voiceservices.models;

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

/** Available platform types. */
public final class CommunicationsPlatform extends ExpandableStringEnum<CommunicationsPlatform> {
    /** Static value OperatorConnect for CommunicationsPlatform. */
    public static final CommunicationsPlatform OPERATOR_CONNECT = fromString("OperatorConnect");

    /** Static value TeamsPhoneMobile for CommunicationsPlatform. */
    public static final CommunicationsPlatform TEAMS_PHONE_MOBILE = fromString("TeamsPhoneMobile");

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

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

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