// 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 list of HTTP methods supported by a WebActivity. */
public final class WebActivityMethod extends ExpandableStringEnum<WebActivityMethod> {
    /** Static value GET for WebActivityMethod. */
    public static final WebActivityMethod GET = fromString("GET");

    /** Static value POST for WebActivityMethod. */
    public static final WebActivityMethod POST = fromString("POST");

    /** Static value PUT for WebActivityMethod. */
    public static final WebActivityMethod PUT = fromString("PUT");

    /** Static value DELETE for WebActivityMethod. */
    public static final WebActivityMethod DELETE = fromString("DELETE");

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

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