
com.azure.resourcemanager.billing.models.SavingsPlanTerm 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;
/**
* Represents the Savings plan term in ISO 8601 format.
*/
public final class SavingsPlanTerm extends ExpandableStringEnum {
/**
* Static value P1Y for SavingsPlanTerm.
*/
public static final SavingsPlanTerm P1Y = fromString("P1Y");
/**
* Static value P3Y for SavingsPlanTerm.
*/
public static final SavingsPlanTerm P3Y = fromString("P3Y");
/**
* Static value P5Y for SavingsPlanTerm.
*/
public static final SavingsPlanTerm P5Y = fromString("P5Y");
/**
* Creates a new instance of SavingsPlanTerm value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public SavingsPlanTerm() {
}
/**
* Creates or finds a SavingsPlanTerm from its string representation.
*
* @param name a name to look for.
* @return the corresponding SavingsPlanTerm.
*/
public static SavingsPlanTerm fromString(String name) {
return fromString(name, SavingsPlanTerm.class);
}
/**
* Gets known SavingsPlanTerm values.
*
* @return known SavingsPlanTerm values.
*/
public static Collection values() {
return values(SavingsPlanTerm.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy