ScaleRule Class

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

Implements

public final class ScaleRule
implements JsonSerializable<ScaleRule>

Container App container scaling rule.

Constructor Summary

Constructor Description
ScaleRule()

Creates an instance of ScaleRule class.

Method Summary

Modifier and Type Method and Description
QueueScaleRule azureQueue()

Get the azureQueue property: Azure Queue based scaling.

CustomScaleRule custom()

Get the custom property: Custom scale rule.

static ScaleRule fromJson(JsonReader jsonReader)

Reads an instance of ScaleRule from the JsonReader.

HttpScaleRule http()

Get the http property: HTTP requests based scaling.

String name()

Get the name property: Scale Rule Name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScaleRule withAzureQueue(QueueScaleRule azureQueue)

Set the azureQueue property: Azure Queue based scaling.

ScaleRule withCustom(CustomScaleRule custom)

Set the custom property: Custom scale rule.

ScaleRule withHttp(HttpScaleRule http)

Set the http property: HTTP requests based scaling.

ScaleRule withName(String name)

Set the name property: Scale Rule Name.

Methods inherited from java.lang.Object

Constructor Details

ScaleRule

public ScaleRule()

Creates an instance of ScaleRule class.

Method Details

azureQueue

public QueueScaleRule azureQueue()

Get the azureQueue property: Azure Queue based scaling.

Returns:

the azureQueue value.

custom

public CustomScaleRule custom()

Get the custom property: Custom scale rule.

Returns:

the custom value.

fromJson

public static ScaleRule fromJson(JsonReader jsonReader)

Reads an instance of ScaleRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScaleRule 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 ScaleRule.

http

public HttpScaleRule http()

Get the http property: HTTP requests based scaling.

Returns:

the http value.

name

public String name()

Get the name property: Scale Rule Name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureQueue

public ScaleRule withAzureQueue(QueueScaleRule azureQueue)

Set the azureQueue property: Azure Queue based scaling.

Parameters:

azureQueue - the azureQueue value to set.

Returns:

the ScaleRule object itself.

withCustom

public ScaleRule withCustom(CustomScaleRule custom)

Set the custom property: Custom scale rule.

Parameters:

custom - the custom value to set.

Returns:

the ScaleRule object itself.

withHttp

public ScaleRule withHttp(HttpScaleRule http)

Set the http property: HTTP requests based scaling.

Parameters:

http - the http value to set.

Returns:

the ScaleRule object itself.

withName

public ScaleRule withName(String name)

Set the name property: Scale Rule Name.

Parameters:

name - the name value to set.

Returns:

the ScaleRule object itself.

Applies to