Class ContainerAppProbeHttpGet

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

public final class ContainerAppProbeHttpGet extends Object implements com.azure.json.JsonSerializable<ContainerAppProbeHttpGet>
HTTPGet specifies the http request to perform.
  • Constructor Details

    • ContainerAppProbeHttpGet

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

    • host

      public String host()
      Get the host property: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
      Returns:
      the host value.
    • withHost

      public ContainerAppProbeHttpGet withHost(String host)
      Set the host property: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
      Parameters:
      host - the host value to set.
      Returns:
      the ContainerAppProbeHttpGet object itself.
    • httpHeaders

      Get the httpHeaders property: Custom headers to set in the request. HTTP allows repeated headers.
      Returns:
      the httpHeaders value.
    • withHttpHeaders

      Set the httpHeaders property: Custom headers to set in the request. HTTP allows repeated headers.
      Parameters:
      httpHeaders - the httpHeaders value to set.
      Returns:
      the ContainerAppProbeHttpGet object itself.
    • path

      public String path()
      Get the path property: Path to access on the HTTP server.
      Returns:
      the path value.
    • withPath

      public ContainerAppProbeHttpGet withPath(String path)
      Set the path property: Path to access on the HTTP server.
      Parameters:
      path - the path value to set.
      Returns:
      the ContainerAppProbeHttpGet object itself.
    • port

      public int port()
      Get the port property: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
      Returns:
      the port value.
    • withPort

      public ContainerAppProbeHttpGet withPort(int port)
      Set the port property: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
      Parameters:
      port - the port value to set.
      Returns:
      the ContainerAppProbeHttpGet object itself.
    • scheme

      public Scheme scheme()
      Get the scheme property: Scheme to use for connecting to the host. Defaults to HTTP.
      Returns:
      the scheme value.
    • withScheme

      public ContainerAppProbeHttpGet withScheme(Scheme scheme)
      Set the scheme property: Scheme to use for connecting to the host. Defaults to HTTP.
      Parameters:
      scheme - the scheme value to set.
      Returns:
      the ContainerAppProbeHttpGet 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<ContainerAppProbeHttpGet>
      Throws:
      IOException
    • fromJson

      public static ContainerAppProbeHttpGet fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerAppProbeHttpGet from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerAppProbeHttpGet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ContainerAppProbeHttpGet.