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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

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

/** To trigger cancel for entire migration we need to send this flag as True. */
public final class CancelEnum extends ExpandableStringEnum<CancelEnum> {
    /** Static value True for CancelEnum. */
    public static final CancelEnum TRUE = fromString("True");

    /** Static value False for CancelEnum. */
    public static final CancelEnum FALSE = fromString("False");

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

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

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