Class SavingsPlanTerm
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SavingsPlanTerm>
com.azure.resourcemanager.reservations.models.SavingsPlanTerm
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class SavingsPlanTerm
extends com.azure.core.util.ExpandableStringEnum<SavingsPlanTerm>
Represent savings plan term in ISO 8601 format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SavingsPlanTerm
Static value P1Y for SavingsPlanTerm.static final SavingsPlanTerm
Static value P3Y for SavingsPlanTerm. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SavingsPlanTerm
fromString
(String name) Creates or finds a SavingsPlanTerm from its string representation.static Collection
<SavingsPlanTerm> values()
Gets known SavingsPlanTerm values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
P1Y
Static value P1Y for SavingsPlanTerm. -
P3Y
Static value P3Y for SavingsPlanTerm.
-
-
Constructor Details
-
SavingsPlanTerm
Deprecated.Use thefromString(String)
factory method.Creates a new instance of SavingsPlanTerm value.
-
-
Method Details
-
fromString
Creates or finds a SavingsPlanTerm from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding SavingsPlanTerm.
-
values
Gets known SavingsPlanTerm values.- Returns:
- known SavingsPlanTerm values.
-
fromString(String)
factory method.