CallConnectionState.java
// 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.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** Defines values for CallConnectionState. */
public final class CallConnectionState extends ExpandableStringEnum<CallConnectionState> {
/** Static value incoming for CallConnectionState. */
public static final CallConnectionState INCOMING = fromString("incoming");
/** Static value connecting for CallConnectionState. */
public static final CallConnectionState CONNECTING = fromString("connecting");
/** Static value connected for CallConnectionState. */
public static final CallConnectionState CONNECTED = fromString("connected");
/** Static value disconnecting for CallConnectionState. */
public static final CallConnectionState DISCONNECTING = fromString("disconnecting");
/** Static value disconnected for CallConnectionState. */
public static final CallConnectionState DISCONNECTED = fromString("disconnected");
/**
* Creates or finds a CallConnectionState from its string representation.
*
* @param name a name to look for.
* @return the corresponding CallConnectionState.
*/
@JsonCreator
public static CallConnectionState fromString(String name) {
return fromString(name, CallConnectionState.class);
}
/** @return known CallConnectionState values. */
public static Collection<CallConnectionState> values() {
return values(CallConnectionState.class);
}
}