CustomScaleRule Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. CustomScaleRule
- com.
Implements
public final class CustomScaleRule
implements JsonSerializable<CustomScaleRule>
Container App container Custom scaling rule.
Constructor Summary
Constructor | Description |
---|---|
CustomScaleRule() |
Creates an instance of Custom |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Scale |
auth()
Get the auth property: Authentication secrets for the custom scale rule. |
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
Map<String,String> |
metadata()
Get the metadata property: Metadata properties to describe custom scale rule. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc. |
void |
validate()
Validates the instance. |
Custom |
withAuth(List<ScaleRuleAuth> auth)
Set the auth property: Authentication secrets for the custom scale rule. |
Custom |
withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata properties to describe custom scale rule. |
Custom |
withType(String type)
Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc. |
Methods inherited from java.lang.Object
Constructor Details
CustomScaleRule
public CustomScaleRule()
Creates an instance of CustomScaleRule class.
Method Details
auth
public List
Get the auth property: Authentication secrets for the custom scale rule.
Returns:
fromJson
public static CustomScaleRule fromJson(JsonReader jsonReader)
Reads an instance of CustomScaleRule from the JsonReader.
Parameters:
Returns:
Throws:
metadata
public Map
Get the metadata property: Metadata properties to describe custom scale rule.
Returns:
toJson
type
public String type()
Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.
Returns:
validate
public void validate()
Validates the instance.
withAuth
public CustomScaleRule withAuth(List
Set the auth property: Authentication secrets for the custom scale rule.
Parameters:
Returns:
withMetadata
public CustomScaleRule withMetadata(Map
Set the metadata property: Metadata properties to describe custom scale rule.
Parameters:
Returns:
withType
public CustomScaleRule withType(String type)
Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.
Parameters:
Returns:
Applies to
Azure SDK for Java