HttpScaleRule Class

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

Implements

public final class HttpScaleRule
implements JsonSerializable<HttpScaleRule>

Container App container Http 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.

String 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.

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 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.

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<ScaleRuleAuth> 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.

identity

public String 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.

metadata

public Map<String,String> 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<ScaleRuleAuth> auth)

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

Parameters:

auth - the auth value to set.

Returns:

the HttpScaleRule object itself.

withIdentity

public HttpScaleRule 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.

Parameters:

identity - the identity value to set.

Returns:

the HttpScaleRule object itself.

withMetadata

public HttpScaleRule withMetadata(Map<String,String> 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