Class CustomScaleRule
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.CustomScaleRule
-
public final class CustomScaleRule extends Object
Container App container Custom scaling rule.
-
-
Constructor Summary
Constructors Constructor Description CustomScaleRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScaleRuleAuth>auth()Get the auth property: Authentication secrets for the custom scale rule.Map<String,String>metadata()Get the metadata property: Metadata properties to describe custom scale rule.Stringtype()Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.voidvalidate()Validates the instance.CustomScaleRulewithAuth(List<ScaleRuleAuth> auth)Set the auth property: Authentication secrets for the custom scale rule.CustomScaleRulewithMetadata(Map<String,String> metadata)Set the metadata property: Metadata properties to describe custom scale rule.CustomScaleRulewithType(String type)Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.
-
-
-
Method Detail
-
type
public String type()
Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.- Returns:
- the type value.
-
withType
public CustomScaleRule withType(String type)
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
public Map<String,String> metadata()
Get the metadata property: Metadata properties to describe custom scale rule.- Returns:
- the metadata value.
-
withMetadata
public CustomScaleRule withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata properties to describe custom scale rule.- Parameters:
metadata- the metadata value to set.- Returns:
- the CustomScaleRule object itself.
-
auth
public List<ScaleRuleAuth> auth()
Get the auth property: Authentication secrets for the custom scale rule.- Returns:
- the auth value.
-
withAuth
public CustomScaleRule withAuth(List<ScaleRuleAuth> auth)
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.
-
-