Class ScaleRuleInner
- java.lang.Object
-
- com.azure.resourcemanager.monitor.fluent.models.ScaleRuleInner
-
public final class ScaleRuleInner extends Object
A rule that provide the triggers and parameters for the scaling action.
-
-
Constructor Summary
Constructors Constructor Description ScaleRuleInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricTriggermetricTrigger()Get the metricTrigger property: the trigger that results in a scaling action.ScaleActionscaleAction()Get the scaleAction property: the parameters for the scaling action.voidvalidate()Validates the instance.ScaleRuleInnerwithMetricTrigger(MetricTrigger metricTrigger)Set the metricTrigger property: the trigger that results in a scaling action.ScaleRuleInnerwithScaleAction(ScaleAction scaleAction)Set the scaleAction property: the parameters for the scaling action.
-
-
-
Method Detail
-
metricTrigger
public MetricTrigger metricTrigger()
Get the metricTrigger property: the trigger that results in a scaling action.- Returns:
- the metricTrigger value.
-
withMetricTrigger
public ScaleRuleInner withMetricTrigger(MetricTrigger metricTrigger)
Set the metricTrigger property: the trigger that results in a scaling action.- Parameters:
metricTrigger- the metricTrigger value to set.- Returns:
- the ScaleRuleInner object itself.
-
scaleAction
public ScaleAction scaleAction()
Get the scaleAction property: the parameters for the scaling action.- Returns:
- the scaleAction value.
-
withScaleAction
public ScaleRuleInner withScaleAction(ScaleAction scaleAction)
Set the scaleAction property: the parameters for the scaling action.- Parameters:
scaleAction- the scaleAction value to set.- Returns:
- the ScaleRuleInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-