Class ScaleRuleAuth
java.lang.Object
com.azure.resourcemanager.appservice.models.ScaleRuleAuth
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScaleRuleAuth>
public final class ScaleRuleAuth
extends Object
implements com.azure.json.JsonSerializable<ScaleRuleAuth>
Auth Secrets for Container App Scale Rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleRuleAuthfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScaleRuleAuth from the JsonReader.Get the secretRef property: Name of the Container App secret from which to pull the auth params.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the triggerParameter property: Trigger Parameter that uses the secret.voidvalidate()Validates the instance.withSecretRef(String secretRef) Set the secretRef property: Name of the Container App secret from which to pull the auth params.withTriggerParameter(String triggerParameter) Set the triggerParameter property: Trigger Parameter that uses the secret.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScaleRuleAuth
public ScaleRuleAuth()Creates an instance of ScaleRuleAuth class.
-
-
Method Details
-
secretRef
Get the secretRef property: Name of the Container App secret from which to pull the auth params.- Returns:
- the secretRef value.
-
withSecretRef
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.
-
triggerParameter
Get the triggerParameter property: Trigger Parameter that uses the secret.- Returns:
- the triggerParameter value.
-
withTriggerParameter
Set the triggerParameter property: Trigger Parameter that uses the secret.- Parameters:
triggerParameter- the triggerParameter value to set.- Returns:
- the ScaleRuleAuth object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScaleRuleAuth>- Throws:
IOException
-
fromJson
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.
-