Class ScaleRule
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.ScaleRule
-
public final class ScaleRule extends Object
Container App container scaling rule.
-
-
Constructor Summary
Constructors Constructor Description ScaleRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueScaleRuleazureQueue()Get the azureQueue property: Azure Queue based scaling.CustomScaleRulecustom()Get the custom property: Custom scale rule.HttpScaleRulehttp()Get the http property: HTTP requests based scaling.Stringname()Get the name property: Scale Rule Name.voidvalidate()Validates the instance.ScaleRulewithAzureQueue(QueueScaleRule azureQueue)Set the azureQueue property: Azure Queue based scaling.ScaleRulewithCustom(CustomScaleRule custom)Set the custom property: Custom scale rule.ScaleRulewithHttp(HttpScaleRule http)Set the http property: HTTP requests based scaling.ScaleRulewithName(String name)Set the name property: Scale Rule Name.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Scale Rule Name.- Returns:
- the name value.
-
withName
public ScaleRule withName(String name)
Set the name property: Scale Rule Name.- Parameters:
name- the name value to set.- Returns:
- the ScaleRule object itself.
-
azureQueue
public QueueScaleRule azureQueue()
Get the azureQueue property: Azure Queue based scaling.- Returns:
- the azureQueue value.
-
withAzureQueue
public ScaleRule withAzureQueue(QueueScaleRule azureQueue)
Set the azureQueue property: Azure Queue based scaling.- Parameters:
azureQueue- the azureQueue value to set.- Returns:
- the ScaleRule object itself.
-
custom
public CustomScaleRule custom()
Get the custom property: Custom scale rule.- Returns:
- the custom value.
-
withCustom
public ScaleRule withCustom(CustomScaleRule custom)
Set the custom property: Custom scale rule.- Parameters:
custom- the custom value to set.- Returns:
- the ScaleRule object itself.
-
http
public HttpScaleRule http()
Get the http property: HTTP requests based scaling.- Returns:
- the http value.
-
withHttp
public ScaleRule withHttp(HttpScaleRule http)
Set the http property: HTTP requests based scaling.- Parameters:
http- the http value to set.- Returns:
- the ScaleRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-