CustomScaleRule Class

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

Implements

public final class CustomScaleRule
implements JsonSerializable<CustomScaleRule>

Container App container Custom scaling rule.

Constructor Summary

Constructor Description
CustomScaleRule()

Creates an instance of CustomScaleRule class.

Method Summary

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

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

static CustomScaleRule fromJson(JsonReader jsonReader)

Reads an instance of CustomScaleRule from the JsonReader.

Map<String,String> metadata()

Get the metadata property: Metadata properties to describe custom scale rule.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.

void validate()

Validates the instance.

CustomScaleRule withAuth(List<ScaleRuleAuth> auth)

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

CustomScaleRule withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata properties to describe custom scale rule.

CustomScaleRule withType(String type)

Set the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.

Methods inherited from java.lang.Object

Constructor Details

CustomScaleRule

public CustomScaleRule()

Creates an instance of CustomScaleRule class.

Method Details

auth

public List auth()

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

Returns:

the auth value.

fromJson

public static CustomScaleRule fromJson(JsonReader jsonReader)

Reads an instance of CustomScaleRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadata

public Map metadata()

Get the metadata property: Metadata properties to describe custom scale rule.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the custom scale rule eg: azure-servicebus, redis etc.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAuth

public CustomScaleRule withAuth(List auth)

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

Parameters:

auth - the auth value to set.

Returns:

the CustomScaleRule object itself.

withMetadata

public CustomScaleRule withMetadata(Map metadata)

Set the metadata property: Metadata properties to describe custom scale rule.

Parameters:

metadata - the metadata value to set.

Returns:

the CustomScaleRule object itself.

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.

Applies to