WebHookActivityMethod.java

// 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;

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

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

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