Class CustomScaleRule
java.lang.Object
com.azure.resourcemanager.appservice.models.CustomScaleRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomScaleRule>
public final class CustomScaleRule
extends Object
implements com.azure.json.JsonSerializable<CustomScaleRule>
Container App container Custom scaling rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth()
Get the auth property: Authentication secrets for the custom scale rule.static CustomScaleRule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomScaleRule from the JsonReader.metadata()
Get the metadata property: Metadata properties to describe custom scale rule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.void
validate()
Validates the instance.withAuth
(List<ScaleRuleAuth> auth) Set the auth property: Authentication secrets for the custom scale rule.withMetadata
(Map<String, String> metadata) Set the metadata property: Metadata properties to describe custom scale rule.Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomScaleRule
public CustomScaleRule()Creates an instance of CustomScaleRule class.
-
-
Method Details
-
type
Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.- Returns:
- the type value.
-
withType
Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.- Parameters:
type
- the type value to set.- Returns:
- the CustomScaleRule object itself.
-
metadata
Get the metadata property: Metadata properties to describe custom scale rule.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Metadata properties to describe custom scale rule.- Parameters:
metadata
- the metadata value to set.- Returns:
- the CustomScaleRule object itself.
-
auth
Get the auth property: Authentication secrets for the custom scale rule.- Returns:
- the auth value.
-
withAuth
Set the auth property: Authentication secrets for the custom scale rule.- Parameters:
auth
- the auth value to set.- Returns:
- the CustomScaleRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CustomScaleRule>
- Throws:
IOException
-
fromJson
Reads an instance of CustomScaleRule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CustomScaleRule 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 CustomScaleRule.
-