SavingsPlanPurchasesPolicy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. billing. models. SavingsPlanPurchasesPolicy
- com.
- com.
public final class SavingsPlanPurchasesPolicy
extends ExpandableStringEnum<SavingsPlanPurchasesPolicy>
The policy that controls whether users with Azure savings plan purchase are allowed.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Savings |
ALLOWED
Static value Allowed for Savings |
|
static final
Savings |
DISABLED
Static value Disabled for Savings |
|
static final
Savings |
NOT_ALLOWED
Static value Not |
|
static final
Savings |
OTHER
Static value Other for Savings |
Constructor Summary
| Constructor | Description |
|---|---|
| SavingsPlanPurchasesPolicy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Savings |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Savings |
fromString(String name)
Creates or finds a Savings |
|
static
Collection<Savings |
values()
Gets known Savings |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALLOWED
public static final SavingsPlanPurchasesPolicy ALLOWED
Static value Allowed for SavingsPlanPurchasesPolicy.
DISABLED
public static final SavingsPlanPurchasesPolicy DISABLED
Static value Disabled for SavingsPlanPurchasesPolicy.
NOT_ALLOWED
public static final SavingsPlanPurchasesPolicy NOT_ALLOWED
Static value NotAllowed for SavingsPlanPurchasesPolicy.
OTHER
public static final SavingsPlanPurchasesPolicy OTHER
Static value Other for SavingsPlanPurchasesPolicy.
Constructor Details
SavingsPlanPurchasesPolicy
@Deprecated
public SavingsPlanPurchasesPolicy()
Deprecated
Creates a new instance of SavingsPlanPurchasesPolicy value.
Method Details
fromString
public static SavingsPlanPurchasesPolicy fromString(String name)
Creates or finds a SavingsPlanPurchasesPolicy from its string representation.
Parameters:
Returns:
values
public static Collection<SavingsPlanPurchasesPolicy> values()
Gets known SavingsPlanPurchasesPolicy values.
Returns: