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

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

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

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

    /** Static value connecting for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal CONNECTING = fromString("connecting");

    /** Static value connected for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal CONNECTED = fromString("connected");

    /** Static value transferring for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal TRANSFERRING = fromString("transferring");

    /** Static value transferAccepted for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal TRANSFER_ACCEPTED = fromString("transferAccepted");

    /** Static value disconnecting for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal DISCONNECTING = fromString("disconnecting");

    /** Static value disconnected for CallConnectionStateModelInternal. */
    public static final CallConnectionStateModelInternal DISCONNECTED = fromString("disconnected");

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

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