All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.billing.models.MarketplacePurchasesPolicy Maven / Gradle / Ivy

// 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 java.util.Collection;

/**
 * The policy that controls whether Azure marketplace purchases are allowed.
 */
public final class MarketplacePurchasesPolicy extends ExpandableStringEnum {
    /**
     * Static value Other for MarketplacePurchasesPolicy.
     */
    public static final MarketplacePurchasesPolicy OTHER = fromString("Other");

    /**
     * Static value AllAllowed for MarketplacePurchasesPolicy.
     */
    public static final MarketplacePurchasesPolicy ALL_ALLOWED = fromString("AllAllowed");

    /**
     * Static value Disabled for MarketplacePurchasesPolicy.
     */
    public static final MarketplacePurchasesPolicy DISABLED = fromString("Disabled");

    /**
     * Static value NotAllowed for MarketplacePurchasesPolicy.
     */
    public static final MarketplacePurchasesPolicy NOT_ALLOWED = fromString("NotAllowed");

    /**
     * Static value OnlyFreeAllowed for MarketplacePurchasesPolicy.
     */
    public static final MarketplacePurchasesPolicy ONLY_FREE_ALLOWED = fromString("OnlyFreeAllowed");

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy