java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobScaleRule
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobScaleRule>

public final class JobScaleRule extends Object implements com.azure.json.JsonSerializable<JobScaleRule>
Scaling rule.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of JobScaleRule class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the auth property: Authentication secrets for the scale rule.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of JobScaleRule from the JsonReader.
    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.
    Get the metadata property: Metadata properties to describe the scale rule.
    Get the name property: Scale Rule Name.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Type of the scale rule eg: azure-servicebus, redis etc.
    void
    Validates the instance.
    Set the auth property: Authentication secrets for the scale rule.
    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.
    withMetadata(Object metadata)
    Set the metadata property: Metadata properties to describe the scale rule.
    Set the name property: Scale Rule Name.
    Set the type property: Type of the scale rule eg: azure-servicebus, redis etc.

    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

    • JobScaleRule

      public JobScaleRule()
      Creates an instance of JobScaleRule class.
  • Method Details

    • name

      public String name()
      Get the name property: Scale Rule Name.
      Returns:
      the name value.
    • withName

      public JobScaleRule withName(String name)
      Set the name property: Scale Rule Name.
      Parameters:
      name - the name value to set.
      Returns:
      the JobScaleRule object itself.
    • type

      public String type()
      Get the type property: Type of the scale rule eg: azure-servicebus, redis etc.
      Returns:
      the type value.
    • withType

      public JobScaleRule withType(String type)
      Set the type property: Type of the scale rule eg: azure-servicebus, redis etc.
      Parameters:
      type - the type value to set.
      Returns:
      the JobScaleRule object itself.
    • metadata

      public Object metadata()
      Get the metadata property: Metadata properties to describe the scale rule.
      Returns:
      the metadata value.
    • withMetadata

      public JobScaleRule withMetadata(Object metadata)
      Set the metadata property: Metadata properties to describe the scale rule.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the JobScaleRule object itself.
    • auth

      public List<ScaleRuleAuth> auth()
      Get the auth property: Authentication secrets for the scale rule.
      Returns:
      the auth value.
    • withAuth

      public JobScaleRule withAuth(List<ScaleRuleAuth> auth)
      Set the auth property: Authentication secrets for the scale rule.
      Parameters:
      auth - the auth value to set.
      Returns:
      the JobScaleRule object itself.
    • 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.
    • withIdentity

      public JobScaleRule 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 JobScaleRule 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<JobScaleRule>
      Throws:
      IOException
    • fromJson

      public static JobScaleRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobScaleRule from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobScaleRule 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 JobScaleRule.