HttpScaleRule Class

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

Implements

public final class HttpScaleRule
implements JsonSerializable<HttpScaleRule>

Container App container Custom scaling rule.

Constructor Summary

Constructor Description
HttpScaleRule()

Creates an instance of HttpScaleRule class.

Method Summary

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

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

static HttpScaleRule fromJson(JsonReader jsonReader)

Reads an instance of HttpScaleRule from the JsonReader.

Map<String,String> metadata()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpScaleRule withAuth(List<ScaleRuleAuth> auth)

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

HttpScaleRule withMetadata(Map<String,String> metadata)

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

Methods inherited from java.lang.Object

Constructor Details

HttpScaleRule

public HttpScaleRule()

Creates an instance of HttpScaleRule 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 HttpScaleRule fromJson(JsonReader jsonReader)

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.

metadata

public Map metadata()

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

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuth

public HttpScaleRule withAuth(List auth)

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

Parameters:

auth - the auth value to set.

Returns:

the HttpScaleRule object itself.

withMetadata

public HttpScaleRule withMetadata(Map metadata)

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

Parameters:

metadata - the metadata value to set.

Returns:

the HttpScaleRule object itself.

Applies to