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

package com.azure.resourcemanager.securityinsights.models;

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

/** Status while trying to fetch the deployment information. */
public final class DeploymentResult extends ExpandableStringEnum<DeploymentResult> {
    /** Static value Success for DeploymentResult. */
    public static final DeploymentResult SUCCESS = fromString("Success");

    /** Static value Canceled for DeploymentResult. */
    public static final DeploymentResult CANCELED = fromString("Canceled");

    /** Static value Failed for DeploymentResult. */
    public static final DeploymentResult FAILED = fromString("Failed");

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

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