java.lang.Object
com.azure.core.util.ExpandableStringEnum<Grain>
com.azure.resourcemanager.costmanagement.models.Grain

public final class Grain extends com.azure.core.util.ExpandableStringEnum<Grain>
Grain which corresponds to value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Grain
    Static value Daily for Grain.
    static final Grain
    Static value Hourly for Grain.
    static final Grain
    Static value Monthly for Grain.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Grain
    Creates or finds a Grain from its string representation.
    Gets known Grain values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • HOURLY

      public static final Grain HOURLY
      Static value Hourly for Grain.
    • DAILY

      public static final Grain DAILY
      Static value Daily for Grain.
    • MONTHLY

      public static final Grain MONTHLY
      Static value Monthly for Grain.
  • Constructor Details

  • Method Details

    • fromString

      public static Grain fromString(String name)
      Creates or finds a Grain from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding Grain.
    • values

      public static Collection<Grain> values()
      Gets known Grain values.
      Returns:
      known Grain values.