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

package com.azure.resourcemanager.edgeorder.models;

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

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

    /** Static value CancellableWithFee for OrderItemCancellationEnum. */
    public static final OrderItemCancellationEnum CANCELLABLE_WITH_FEE = fromString("CancellableWithFee");

    /** Static value NotCancellable for OrderItemCancellationEnum. */
    public static final OrderItemCancellationEnum NOT_CANCELLABLE = fromString("NotCancellable");

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

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