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

package com.azure.communication.administration.models;

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

/** Defines values for PhoneNumberType. */
public final class PhoneNumberType extends ExpandableStringEnum<PhoneNumberType> {
    /** Static value Unknown for PhoneNumberType. */
    public static final PhoneNumberType UNKNOWN = fromString("Unknown");

    /** Static value Geographic for PhoneNumberType. */
    public static final PhoneNumberType GEOGRAPHIC = fromString("Geographic");

    /** Static value TollFree for PhoneNumberType. */
    public static final PhoneNumberType TOLL_FREE = fromString("TollFree");

    /** Static value Indirect for PhoneNumberType. */
    public static final PhoneNumberType INDIRECT = fromString("Indirect");

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

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