Class KpiProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.models.KpiProperties
Each KPI must contain a 'type' and 'enabled' key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get the enabled property: show the KPI in the UI?.id()
Get the id property: ID of resource related to metric (budget).type()
Get the type property: KPI type (Forecast, Budget).void
validate()
Validates the instance.withEnabled
(Boolean enabled) Set the enabled property: show the KPI in the UI?.Set the id property: ID of resource related to metric (budget).Set the type property: KPI type (Forecast, Budget).
-
Constructor Details
-
KpiProperties
public KpiProperties()Creates an instance of KpiProperties class.
-
-
Method Details
-
type
Get the type property: KPI type (Forecast, Budget).- Returns:
- the type value.
-
withType
Set the type property: KPI type (Forecast, Budget).- Parameters:
type
- the type value to set.- Returns:
- the KpiProperties object itself.
-
id
Get the id property: ID of resource related to metric (budget).- Returns:
- the id value.
-
withId
Set the id property: ID of resource related to metric (budget).- Parameters:
id
- the id value to set.- Returns:
- the KpiProperties object itself.
-
enabled
Get the enabled property: show the KPI in the UI?.- Returns:
- the enabled value.
-
withEnabled
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.
-