Class ContainerHttpGet
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ContainerHttpGet
-
public final class ContainerHttpGet extends Object
The container Http Get settings, for liveness or readiness probe.
-
-
Constructor Summary
Constructors Constructor Description ContainerHttpGet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HttpHeader>httpHeaders()Get the httpHeaders property: The HTTP headers.Stringpath()Get the path property: The path to probe.intport()Get the port property: The port number to probe.Schemescheme()Get the scheme property: The scheme.voidvalidate()Validates the instance.ContainerHttpGetwithHttpHeaders(List<HttpHeader> httpHeaders)Set the httpHeaders property: The HTTP headers.ContainerHttpGetwithPath(String path)Set the path property: The path to probe.ContainerHttpGetwithPort(int port)Set the port property: The port number to probe.ContainerHttpGetwithScheme(Scheme scheme)Set the scheme property: The scheme.
-
-
-
Method Detail
-
path
public String path()
Get the path property: The path to probe.- Returns:
- the path value.
-
withPath
public ContainerHttpGet withPath(String path)
Set the path property: The path to probe.- Parameters:
path- the path value to set.- Returns:
- the ContainerHttpGet object itself.
-
port
public int port()
Get the port property: The port number to probe.- Returns:
- the port value.
-
withPort
public ContainerHttpGet withPort(int port)
Set the port property: The port number to probe.- Parameters:
port- the port value to set.- Returns:
- the ContainerHttpGet object itself.
-
scheme
public Scheme scheme()
Get the scheme property: The scheme.- Returns:
- the scheme value.
-
withScheme
public ContainerHttpGet withScheme(Scheme scheme)
Set the scheme property: The scheme.- Parameters:
scheme- the scheme value to set.- Returns:
- the ContainerHttpGet object itself.
-
httpHeaders
public List<HttpHeader> httpHeaders()
Get the httpHeaders property: The HTTP headers.- Returns:
- the httpHeaders value.
-
withHttpHeaders
public ContainerHttpGet withHttpHeaders(List<HttpHeader> httpHeaders)
Set the httpHeaders property: The HTTP headers.- Parameters:
httpHeaders- the httpHeaders value to set.- Returns:
- the ContainerHttpGet object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-