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

package com.azure.resourcemanager.mysql.models;

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

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

    /** Static value user for OperationOrigin. */
    public static final OperationOrigin USER = fromString("user");

    /** Static value system for OperationOrigin. */
    public static final OperationOrigin SYSTEM = fromString("system");

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

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