Class QueueScaleRule
java.lang.Object
com.azure.resourcemanager.appcontainers.models.QueueScaleRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueueScaleRule>
public final class QueueScaleRule
extends Object
implements com.azure.json.JsonSerializable<QueueScaleRule>
Container App container Azure Queue based scaling rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accountName property: Storage account name. required if using managed identity to authenticate.auth()
Get the auth property: Authentication secrets for the queue scale rule.static QueueScaleRule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of QueueScaleRule 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.Get the queueLength property: Queue length.Get the queueName property: Queue name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAccountName
(String accountName) Set the accountName property: Storage account name. required if using managed identity to authenticate.withAuth
(List<ScaleRuleAuth> auth) Set the auth property: Authentication secrets for the queue 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.withQueueLength
(Integer queueLength) Set the queueLength property: Queue length.withQueueName
(String queueName) Set the queueName property: Queue name.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
-
QueueScaleRule
public QueueScaleRule()Creates an instance of QueueScaleRule class.
-
-
Method Details
-
accountName
Get the accountName property: Storage account name. required if using managed identity to authenticate.- Returns:
- the accountName value.
-
withAccountName
Set the accountName property: Storage account name. required if using managed identity to authenticate.- Parameters:
accountName
- the accountName value to set.- Returns:
- the QueueScaleRule object itself.
-
queueName
Get the queueName property: Queue name.- Returns:
- the queueName value.
-
withQueueName
Set the queueName property: Queue name.- Parameters:
queueName
- the queueName value to set.- Returns:
- the QueueScaleRule object itself.
-
queueLength
Get the queueLength property: Queue length.- Returns:
- the queueLength value.
-
withQueueLength
Set the queueLength property: Queue length.- Parameters:
queueLength
- the queueLength value to set.- Returns:
- the QueueScaleRule object itself.
-
auth
Get the auth property: Authentication secrets for the queue scale rule.- Returns:
- the auth value.
-
withAuth
Set the auth property: Authentication secrets for the queue scale rule.- Parameters:
auth
- the auth value to set.- Returns:
- the QueueScaleRule 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 QueueScaleRule 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<QueueScaleRule>
- Throws:
IOException
-
fromJson
Reads an instance of QueueScaleRule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of QueueScaleRule 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 QueueScaleRule.
-