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

package com.azure.resourcemanager.billing.models;

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

/** The family of payment method. */
public final class PaymentMethodFamily extends ExpandableStringEnum<PaymentMethodFamily> {
    /** Static value Credits for PaymentMethodFamily. */
    public static final PaymentMethodFamily CREDITS = fromString("Credits");

    /** Static value CheckWire for PaymentMethodFamily. */
    public static final PaymentMethodFamily CHECK_WIRE = fromString("CheckWire");

    /** Static value CreditCard for PaymentMethodFamily. */
    public static final PaymentMethodFamily CREDIT_CARD = fromString("CreditCard");

    /** Static value None for PaymentMethodFamily. */
    public static final PaymentMethodFamily NONE = fromString("None");

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

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

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