SavingsPlanTerm Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. billing. models. SavingsPlanTerm
- com.
- com.
public final class SavingsPlanTerm
extends ExpandableStringEnum<SavingsPlanTerm>
Represents the Savings plan term in ISO 8601 format.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Savings |
P1Y
Static value P1Y for Savings |
|
static final
Savings |
P3Y
Static value P3Y for Savings |
|
static final
Savings |
P5Y
Static value P5Y for Savings |
Constructor Summary
| Constructor | Description |
|---|---|
| SavingsPlanTerm() |
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
P1Y
public static final SavingsPlanTerm P1Y
Static value P1Y for SavingsPlanTerm.
P3Y
public static final SavingsPlanTerm P3Y
Static value P3Y for SavingsPlanTerm.
P5Y
public static final SavingsPlanTerm P5Y
Static value P5Y for SavingsPlanTerm.
Constructor Details
SavingsPlanTerm
@Deprecated
public SavingsPlanTerm()
Deprecated
Creates a new instance of SavingsPlanTerm value.
Method Details
fromString
public static SavingsPlanTerm fromString(String name)
Creates or finds a SavingsPlanTerm from its string representation.
Parameters:
Returns:
values
public static Collection<SavingsPlanTerm> values()
Gets known SavingsPlanTerm values.
Returns: