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

public final class TcpScaleRule extends Object implements com.azure.json.JsonSerializable<TcpScaleRule>
Container App container Tcp scaling rule.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the auth property: Authentication secrets for the tcp scale rule.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TcpScaleRule 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 tcp scale rule.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the auth property: Authentication secrets for the tcp 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.
    Set the metadata property: Metadata properties to describe tcp scale rule.

    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

    • TcpScaleRule

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

    • metadata

      public Map<String,String> metadata()
      Get the metadata property: Metadata properties to describe tcp scale rule.
      Returns:
      the metadata value.
    • withMetadata

      public TcpScaleRule withMetadata(Map<String,String> metadata)
      Set the metadata property: Metadata properties to describe tcp scale rule.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the TcpScaleRule object itself.
    • auth

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

      public TcpScaleRule withAuth(List<ScaleRuleAuth> auth)
      Set the auth property: Authentication secrets for the tcp scale rule.
      Parameters:
      auth - the auth value to set.
      Returns:
      the TcpScaleRule 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 TcpScaleRule 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 TcpScaleRule 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<TcpScaleRule>
      Throws:
      IOException
    • fromJson

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