
com.azure.resourcemanager.billing.models.SavingsPlanPurchasesPolicy 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 users with Azure savings plan purchase are allowed.
*/
public final class SavingsPlanPurchasesPolicy extends ExpandableStringEnum {
/**
* Static value Other for SavingsPlanPurchasesPolicy.
*/
public static final SavingsPlanPurchasesPolicy OTHER = fromString("Other");
/**
* Static value Allowed for SavingsPlanPurchasesPolicy.
*/
public static final SavingsPlanPurchasesPolicy ALLOWED = fromString("Allowed");
/**
* Static value Disabled for SavingsPlanPurchasesPolicy.
*/
public static final SavingsPlanPurchasesPolicy DISABLED = fromString("Disabled");
/**
* Static value NotAllowed for SavingsPlanPurchasesPolicy.
*/
public static final SavingsPlanPurchasesPolicy NOT_ALLOWED = fromString("NotAllowed");
/**
* Creates a new instance of SavingsPlanPurchasesPolicy value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public SavingsPlanPurchasesPolicy() {
}
/**
* Creates or finds a SavingsPlanPurchasesPolicy from its string representation.
*
* @param name a name to look for.
* @return the corresponding SavingsPlanPurchasesPolicy.
*/
public static SavingsPlanPurchasesPolicy fromString(String name) {
return fromString(name, SavingsPlanPurchasesPolicy.class);
}
/**
* Gets known SavingsPlanPurchasesPolicy values.
*
* @return known SavingsPlanPurchasesPolicy values.
*/
public static Collection values() {
return values(SavingsPlanPurchasesPolicy.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy