Class ContainerAppProbeHttpGet
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet
HTTPGet specifies the http request to perform.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContainerAppProbeHttpGet class. -
Method Summary
Modifier and TypeMethodDescriptionhost()
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.int
port()
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.void
validate()
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.
-
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.
-