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
    Constructor
    Description
    Creates an instance of ScaleRuleAuth class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the triggerParameter property: Trigger Parameter that uses the secret.
    void
    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, wait

    Methods 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

      public String secretRef()
      Get the secretRef property: Name of the Container App secret from which to pull the auth params.
      Returns:
      the secretRef value.
    • 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.
    • triggerParameter

      public String triggerParameter()
      Get the triggerParameter property: Trigger Parameter that uses the secret.
      Returns:
      the triggerParameter value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ScaleRuleAuth>
      Throws:
      IOException
    • fromJson

      public static ScaleRuleAuth fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.