Class ScaleRule
java.lang.Object
com.azure.resourcemanager.appservice.models.ScaleRule
Container App container scaling rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the azureQueue property: Azure Queue based scaling.custom()
Get the custom property: Custom scale rule.http()
Get the http property: HTTP requests based scaling.name()
Get the name property: Scale Rule Name.void
validate()
Validates the instance.withAzureQueue
(QueueScaleRule azureQueue) Set the azureQueue property: Azure Queue based scaling.withCustom
(CustomScaleRule custom) Set the custom property: Custom scale rule.withHttp
(HttpScaleRule http) Set the http property: HTTP requests based scaling.Set the name property: Scale Rule Name.
-
Constructor Details
-
ScaleRule
public ScaleRule()
-
-
Method Details
-
name
Get the name property: Scale Rule Name.- Returns:
- the name value.
-
withName
Set the name property: Scale Rule Name.- Parameters:
name
- the name value to set.- Returns:
- the ScaleRule object itself.
-
azureQueue
Get the azureQueue property: Azure Queue based scaling.- Returns:
- the azureQueue value.
-
withAzureQueue
Set the azureQueue property: Azure Queue based scaling.- Parameters:
azureQueue
- the azureQueue value to set.- Returns:
- the ScaleRule object itself.
-
custom
Get the custom property: Custom scale rule.- Returns:
- the custom value.
-
withCustom
Set the custom property: Custom scale rule.- Parameters:
custom
- the custom value to set.- Returns:
- the ScaleRule object itself.
-
http
Get the http property: HTTP requests based scaling.- Returns:
- the http value.
-
withHttp
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.
-