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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerAppProbeHttpGet class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerAppProbeHttpGetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerAppProbeHttpGet from the JsonReader.host()Get the host property: Host name to connect to, defaults to the pod IP.Get the httpHeaders property: Custom headers to set in the request.path()Get the path property: Path to access on the HTTP server.intport()Get the port property: Name or number of the port to access on the container.scheme()Get the scheme property: Scheme to use for connecting to the host.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the host property: Host name to connect to, defaults to the pod IP.withHttpHeaders(List<ContainerAppProbeHttpGetHttpHeadersItem> httpHeaders) Set the httpHeaders property: Custom headers to set in the request.Set the path property: Path to access on the HTTP server.withPort(int port) Set the port property: Name or number of the port to access on the container.withScheme(Scheme scheme) Set the scheme property: Scheme to use for connecting to the host.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerAppProbeHttpGet
public ContainerAppProbeHttpGet()Creates an instance of ContainerAppProbeHttpGet class.
-
-
Method Details
-
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
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
public ContainerAppProbeHttpGet withHttpHeaders(List<ContainerAppProbeHttpGetHttpHeadersItem> httpHeaders) 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
Get the path property: Path to access on the HTTP server.- Returns:
- the path value.
-
withPath
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
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
Get the scheme property: Scheme to use for connecting to the host. Defaults to HTTP.- Returns:
- the scheme value.
-
withScheme
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
- Specified by:
toJsonin interfacecom.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.
-