Class CostThresholdProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.CostThresholdProperties
Properties of a cost threshold item.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CostThresholdProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayOnChart property: Indicates whether this threshold will be displayed on cost charts.Get the notificationSent property: Indicates the datetime when notifications were last sent for this threshold.Get the percentageThreshold property: The value of the percentage cost threshold.Get the sendNotificationWhenExceeded property: Indicates whether notifications will be sent when this threshold is exceeded.Get the thresholdId property: The ID of the cost threshold item.void
validate()
Validates the instance.withDisplayOnChart
(CostThresholdStatus displayOnChart) Set the displayOnChart property: Indicates whether this threshold will be displayed on cost charts.withNotificationSent
(String notificationSent) Set the notificationSent property: Indicates the datetime when notifications were last sent for this threshold.withPercentageThreshold
(PercentageCostThresholdProperties percentageThreshold) Set the percentageThreshold property: The value of the percentage cost threshold.withSendNotificationWhenExceeded
(CostThresholdStatus sendNotificationWhenExceeded) Set the sendNotificationWhenExceeded property: Indicates whether notifications will be sent when this threshold is exceeded.withThresholdId
(String thresholdId) Set the thresholdId property: The ID of the cost threshold item.
-
Constructor Details
-
CostThresholdProperties
public CostThresholdProperties()Creates an instance of CostThresholdProperties class.
-
-
Method Details
-
thresholdId
Get the thresholdId property: The ID of the cost threshold item.- Returns:
- the thresholdId value.
-
withThresholdId
Set the thresholdId property: The ID of the cost threshold item.- Parameters:
thresholdId
- the thresholdId value to set.- Returns:
- the CostThresholdProperties object itself.
-
percentageThreshold
Get the percentageThreshold property: The value of the percentage cost threshold.- Returns:
- the percentageThreshold value.
-
withPercentageThreshold
public CostThresholdProperties withPercentageThreshold(PercentageCostThresholdProperties percentageThreshold) Set the percentageThreshold property: The value of the percentage cost threshold.- Parameters:
percentageThreshold
- the percentageThreshold value to set.- Returns:
- the CostThresholdProperties object itself.
-
displayOnChart
Get the displayOnChart property: Indicates whether this threshold will be displayed on cost charts.- Returns:
- the displayOnChart value.
-
withDisplayOnChart
Set the displayOnChart property: Indicates whether this threshold will be displayed on cost charts.- Parameters:
displayOnChart
- the displayOnChart value to set.- Returns:
- the CostThresholdProperties object itself.
-
sendNotificationWhenExceeded
Get the sendNotificationWhenExceeded property: Indicates whether notifications will be sent when this threshold is exceeded.- Returns:
- the sendNotificationWhenExceeded value.
-
withSendNotificationWhenExceeded
public CostThresholdProperties withSendNotificationWhenExceeded(CostThresholdStatus sendNotificationWhenExceeded) Set the sendNotificationWhenExceeded property: Indicates whether notifications will be sent when this threshold is exceeded.- Parameters:
sendNotificationWhenExceeded
- the sendNotificationWhenExceeded value to set.- Returns:
- the CostThresholdProperties object itself.
-
notificationSent
Get the notificationSent property: Indicates the datetime when notifications were last sent for this threshold.- Returns:
- the notificationSent value.
-
withNotificationSent
Set the notificationSent property: Indicates the datetime when notifications were last sent for this threshold.- Parameters:
notificationSent
- the notificationSent value to set.- Returns:
- the CostThresholdProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-