Class IngressConfig

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

public final class IngressConfig extends Object implements com.azure.json.JsonSerializable<IngressConfig>
Ingress configuration payload for Azure Spring Apps resource.
  • Constructor Details

    • IngressConfig

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

    • readTimeoutInSeconds

      public Integer readTimeoutInSeconds()
      Get the readTimeoutInSeconds property: Ingress read time out in seconds.
      Returns:
      the readTimeoutInSeconds value.
    • withReadTimeoutInSeconds

      public IngressConfig withReadTimeoutInSeconds(Integer readTimeoutInSeconds)
      Set the readTimeoutInSeconds property: Ingress read time out in seconds.
      Parameters:
      readTimeoutInSeconds - the readTimeoutInSeconds value to set.
      Returns:
      the IngressConfig 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<IngressConfig>
      Throws:
      IOException
    • fromJson

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