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

package com.azure.resourcemanager.reservations.models;

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

/** Status of the operation. */
public final class CalculateExchangeOperationResultStatus
    extends ExpandableStringEnum<CalculateExchangeOperationResultStatus> {
    /** Static value Succeeded for CalculateExchangeOperationResultStatus. */
    public static final CalculateExchangeOperationResultStatus SUCCEEDED = fromString("Succeeded");

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

    /** Static value Cancelled for CalculateExchangeOperationResultStatus. */
    public static final CalculateExchangeOperationResultStatus CANCELLED = fromString("Cancelled");

    /** Static value Pending for CalculateExchangeOperationResultStatus. */
    public static final CalculateExchangeOperationResultStatus PENDING = fromString("Pending");

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

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

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