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

package com.azure.communication.callautomation.implementation.models;

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

/** Defines values for CallRejectReasonInternal. */
public final class CallRejectReasonInternal extends ExpandableStringEnum<CallRejectReasonInternal> {
    /** Static value none for CallRejectReasonInternal. */
    public static final CallRejectReasonInternal NONE = fromString("none");

    /** Static value busy for CallRejectReasonInternal. */
    public static final CallRejectReasonInternal BUSY = fromString("busy");

    /** Static value forbidden for CallRejectReasonInternal. */
    public static final CallRejectReasonInternal FORBIDDEN = fromString("forbidden");

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

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