Partilhar via


ScaleRuleAuth Class

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

Implements

public final class ScaleRuleAuth
implements JsonSerializable<ScaleRuleAuth>

Auth Secrets for Container App Scale Rule.

Constructor Summary

Constructor Description
ScaleRuleAuth()

Creates an instance of ScaleRuleAuth class.

Method Summary

Modifier and Type Method and Description
static ScaleRuleAuth fromJson(JsonReader jsonReader)

Reads an instance of ScaleRuleAuth from the JsonReader.

String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the auth params.

JsonWriter toJson(JsonWriter jsonWriter)
String triggerParameter()

Get the triggerParameter property: Trigger Parameter that uses the secret.

void validate()

Validates the instance.

ScaleRuleAuth withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the auth params.

ScaleRuleAuth withTriggerParameter(String triggerParameter)

Set the triggerParameter property: Trigger Parameter that uses the secret.

Methods inherited from java.lang.Object

Constructor Details

ScaleRuleAuth

public ScaleRuleAuth()

Creates an instance of ScaleRuleAuth class.

Method Details

fromJson

public static ScaleRuleAuth fromJson(JsonReader jsonReader)

Reads an instance of ScaleRuleAuth from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secretRef

public String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the auth params.

Returns:

the secretRef value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

triggerParameter

public String triggerParameter()

Get the triggerParameter property: Trigger Parameter that uses the secret.

Returns:

the triggerParameter value.

validate

public void validate()

Validates the instance.

withSecretRef

public ScaleRuleAuth withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the auth params.

Parameters:

secretRef - the secretRef value to set.

Returns:

the ScaleRuleAuth object itself.

withTriggerParameter

public ScaleRuleAuth withTriggerParameter(String triggerParameter)

Set the triggerParameter property: Trigger Parameter that uses the secret.

Parameters:

triggerParameter - the triggerParameter value to set.

Returns:

the ScaleRuleAuth object itself.

Applies to