// 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 type of agreement. */
public final class AgreementType extends ExpandableStringEnum<AgreementType> {
    /** Static value MicrosoftCustomerAgreement for AgreementType. */
    public static final AgreementType MICROSOFT_CUSTOMER_AGREEMENT = fromString("MicrosoftCustomerAgreement");

    /** Static value EnterpriseAgreement for AgreementType. */
    public static final AgreementType ENTERPRISE_AGREEMENT = fromString("EnterpriseAgreement");

    /** Static value MicrosoftOnlineServicesProgram for AgreementType. */
    public static final AgreementType MICROSOFT_ONLINE_SERVICES_PROGRAM = fromString("MicrosoftOnlineServicesProgram");

    /** Static value MicrosoftPartnerAgreement for AgreementType. */
    public static final AgreementType MICROSOFT_PARTNER_AGREEMENT = fromString("MicrosoftPartnerAgreement");

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

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

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