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

package com.azure.resourcemanager.containerinstance.models;

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

/** The intended executor of the operation. */
public final class ContainerInstanceOperationsOrigin extends ExpandableStringEnum<ContainerInstanceOperationsOrigin> {
    /** Static value User for ContainerInstanceOperationsOrigin. */
    public static final ContainerInstanceOperationsOrigin USER = fromString("User");

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

    /**
     * Creates a new instance of ContainerInstanceOperationsOrigin value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ContainerInstanceOperationsOrigin() {
    }

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

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