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

package com.azure.resourcemanager.datafactory.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 a new instance of WebActivityMethod value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public WebActivityMethod() {
    }

    /**
     * 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);
    }
}
