QueueScaleRule Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.QueueScaleRule

Implements

public final class QueueScaleRule
implements JsonSerializable<QueueScaleRule>

Container App container Azure Queue based scaling rule.

Constructor Summary

Constructor Description
QueueScaleRule()

Creates an instance of QueueScaleRule class.

Method Summary

Modifier and Type Method and Description
List<ScaleRuleAuth> auth()

Get the auth property: Authentication secrets for the queue scale rule.

static QueueScaleRule fromJson(JsonReader jsonReader)

Reads an instance of QueueScaleRule from the JsonReader.

Integer queueLength()

Get the queueLength property: Queue length.

String queueName()

Get the queueName property: Queue name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueueScaleRule withAuth(List<ScaleRuleAuth> auth)

Set the auth property: Authentication secrets for the queue scale rule.

QueueScaleRule withQueueLength(Integer queueLength)

Set the queueLength property: Queue length.

QueueScaleRule withQueueName(String queueName)

Set the queueName property: Queue name.

Methods inherited from java.lang.Object

Constructor Details

QueueScaleRule

public QueueScaleRule()

Creates an instance of QueueScaleRule class.

Method Details

auth

public List auth()

Get the auth property: Authentication secrets for the queue scale rule.

Returns:

the auth value.

fromJson

public static QueueScaleRule fromJson(JsonReader jsonReader)

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.

queueLength

public Integer queueLength()

Get the queueLength property: Queue length.

Returns:

the queueLength value.

queueName

public String queueName()

Get the queueName property: Queue name.

Returns:

the queueName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuth

public QueueScaleRule withAuth(List auth)

Set the auth property: Authentication secrets for the queue scale rule.

Parameters:

auth - the auth value to set.

Returns:

the QueueScaleRule object itself.

withQueueLength

public QueueScaleRule withQueueLength(Integer queueLength)

Set the queueLength property: Queue length.

Parameters:

queueLength - the queueLength value to set.

Returns:

the QueueScaleRule object itself.

withQueueName

public QueueScaleRule withQueueName(String queueName)

Set the queueName property: Queue name.

Parameters:

queueName - the queueName value to set.

Returns:

the QueueScaleRule object itself.

Applies to