Class ScaleRule
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.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 QueueScaleRule
azureQueue()
Get the azureQueue property: Azure Queue based scaling.CustomScaleRule
custom()
Get the custom property: Custom scale rule.HttpScaleRule
http()
Get the http property: HTTP requests based scaling.String
name()
Get the name property: Scale Rule Name.void
validate()
Validates the instance.ScaleRule
withAzureQueue(QueueScaleRule azureQueue)
Set the azureQueue property: Azure Queue based scaling.ScaleRule
withCustom(CustomScaleRule custom)
Set the custom property: Custom scale rule.ScaleRule
withHttp(HttpScaleRule http)
Set the http property: HTTP requests based scaling.ScaleRule
withName(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.
-
-