java.lang.Object
com.azure.resourcemanager.costmanagement.models.KpiProperties

public final class KpiProperties extends Object
Each KPI must contain a 'type' and 'enabled' key.
  • Constructor Details

    • KpiProperties

      public KpiProperties()
      Creates an instance of KpiProperties class.
  • Method Details

    • type

      public KpiType type()
      Get the type property: KPI type (Forecast, Budget).
      Returns:
      the type value.
    • withType

      public KpiProperties withType(KpiType type)
      Set the type property: KPI type (Forecast, Budget).
      Parameters:
      type - the type value to set.
      Returns:
      the KpiProperties object itself.
    • id

      public String id()
      Get the id property: ID of resource related to metric (budget).
      Returns:
      the id value.
    • withId

      public KpiProperties withId(String id)
      Set the id property: ID of resource related to metric (budget).
      Parameters:
      id - the id value to set.
      Returns:
      the KpiProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: show the KPI in the UI?.
      Returns:
      the enabled value.
    • withEnabled

      public KpiProperties withEnabled(Boolean enabled)
      Set the enabled property: show the KPI in the UI?.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the KpiProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.