ScaleRule Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ScaleRule
- com.
Implements
public final class ScaleRule
implements JsonSerializable<ScaleRule>
Container App container scaling rule.
Constructor Summary
Constructor | Description |
---|---|
ScaleRule() |
Creates an instance of Scale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Queue |
azureQueue()
Get the azure |
Custom |
custom()
Get the custom property: Custom scale rule. |
static
Scale |
fromJson(JsonReader jsonReader)
Reads an instance of Scale |
Http |
http()
Get the http property: HTTP requests based scaling. |
String |
name()
Get the name property: Scale Rule Name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Scale |
withAzureQueue(QueueScaleRule azureQueue)
Set the azure |
Scale |
withCustom(CustomScaleRule custom)
Set the custom property: Custom scale rule. |
Scale |
withHttp(HttpScaleRule http)
Set the http property: HTTP requests based scaling. |
Scale |
withName(String name)
Set the name property: Scale Rule Name. |
Methods inherited from java.lang.Object
Constructor Details
ScaleRule
public ScaleRule()
Creates an instance of ScaleRule class.
Method Details
azureQueue
public QueueScaleRule azureQueue()
Get the azureQueue property: Azure Queue based scaling.
Returns:
custom
public CustomScaleRule custom()
Get the custom property: Custom scale rule.
Returns:
fromJson
public static ScaleRule fromJson(JsonReader jsonReader)
Reads an instance of ScaleRule from the JsonReader.
Parameters:
Returns:
Throws:
http
public HttpScaleRule http()
Get the http property: HTTP requests based scaling.
Returns:
name
public String name()
Get the name property: Scale Rule Name.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAzureQueue
public ScaleRule withAzureQueue(QueueScaleRule azureQueue)
Set the azureQueue property: Azure Queue based scaling.
Parameters:
Returns:
withCustom
public ScaleRule withCustom(CustomScaleRule custom)
Set the custom property: Custom scale rule.
Parameters:
Returns:
withHttp
public ScaleRule withHttp(HttpScaleRule http)
Set the http property: HTTP requests based scaling.
Parameters:
Returns:
withName
public ScaleRule withName(String name)
Set the name property: Scale Rule Name.
Parameters:
Returns:
Applies to
Azure SDK for Java