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