Class HttpScaleRule
java.lang.Object
com.azure.resourcemanager.appcontainers.models.HttpScaleRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HttpScaleRule>
public final class HttpScaleRule
extends Object
implements com.azure.json.JsonSerializable<HttpScaleRule>
Container App container Http scaling rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth()Get the auth property: Authentication secrets for the custom scale rule.static HttpScaleRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HttpScaleRule from the JsonReader.identity()Get the identity property: The resource ID of a user-assigned managed identity that is assigned to the Container App, or 'system' for system-assigned identity.metadata()Get the metadata property: Metadata properties to describe http scale rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuth(List<ScaleRuleAuth> auth) Set the auth property: Authentication secrets for the custom scale rule.withIdentity(String identity) Set the identity property: The resource ID of a user-assigned managed identity that is assigned to the Container App, or 'system' for system-assigned identity.withMetadata(Map<String, String> metadata) Set the metadata property: Metadata properties to describe http scale rule.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
-
HttpScaleRule
public HttpScaleRule()Creates an instance of HttpScaleRule class.
-
-
Method Details
-
metadata
Get the metadata property: Metadata properties to describe http scale rule.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Metadata properties to describe http scale rule.- Parameters:
metadata- the metadata value to set.- Returns:
- the HttpScaleRule 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 HttpScaleRule object itself.
-
identity
Get the identity property: The resource ID of a user-assigned managed identity that is assigned to the Container App, or 'system' for system-assigned identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The resource ID of a user-assigned managed identity that is assigned to the Container App, or 'system' for system-assigned identity.- Parameters:
identity- the identity value to set.- Returns:
- the HttpScaleRule 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<HttpScaleRule>- Throws:
IOException
-
fromJson
Reads an instance of HttpScaleRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of HttpScaleRule 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 HttpScaleRule.
-