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

package com.azure.analytics.synapse.artifacts.models;

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

/** The type of the connection. */
public final class SqlConnectionType extends ExpandableStringEnum<SqlConnectionType> {
    /** Static value SqlOnDemand for SqlConnectionType. */
    public static final SqlConnectionType SQL_ON_DEMAND = fromString("SqlOnDemand");

    /** Static value SqlPool for SqlConnectionType. */
    public static final SqlConnectionType SQL_POOL = fromString("SqlPool");

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

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