SavingsPlanPurchasesPolicy Class

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 SavingsPlanPurchasesPolicy ALLOWED

Static value Allowed for SavingsPlanPurchasesPolicy.

static final SavingsPlanPurchasesPolicy DISABLED

Static value Disabled for SavingsPlanPurchasesPolicy.

static final SavingsPlanPurchasesPolicy NOT_ALLOWED

Static value NotAllowed for SavingsPlanPurchasesPolicy.

static final SavingsPlanPurchasesPolicy OTHER

Static value Other for SavingsPlanPurchasesPolicy.

Constructor Summary

Constructor Description
SavingsPlanPurchasesPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SavingsPlanPurchasesPolicy value.

Method Summary

Modifier and Type Method and Description
static SavingsPlanPurchasesPolicy fromString(String name)

Creates or finds a SavingsPlanPurchasesPolicy from its string representation.

static Collection<SavingsPlanPurchasesPolicy> values()

Gets known SavingsPlanPurchasesPolicy values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding SavingsPlanPurchasesPolicy.

values

public static Collection<SavingsPlanPurchasesPolicy> values()

Gets known SavingsPlanPurchasesPolicy values.

Returns:

known SavingsPlanPurchasesPolicy values.

Applies to