Class ScaleRule
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ScaleRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScaleRule>
Container App container scaling rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureQueue property: Azure Queue based scaling.custom()Get the custom property: Custom scale rule.static ScaleRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScaleRule from the JsonReader.http()Get the http property: HTTP requests based scaling.name()Get the name property: Scale Rule Name.tcp()Get the tcp property: Tcp requests based scaling.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.withTcp(TcpScaleRule tcp) Set the tcp property: Tcp requests based scaling.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScaleRule
public ScaleRule()Creates an instance of ScaleRule class.
-
-
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.
-
tcp
Get the tcp property: Tcp requests based scaling.- Returns:
- the tcp value.
-
withTcp
Set the tcp property: Tcp requests based scaling.- Parameters:
tcp- the tcp value to set.- Returns:
- the ScaleRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScaleRule>- Throws:
IOException
-
fromJson
Reads an instance of ScaleRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScaleRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ScaleRule.
-