Class ContainerHttpGet
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerHttpGet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerHttpGet>
public final class ContainerHttpGet
extends Object
implements com.azure.json.JsonSerializable<ContainerHttpGet>
The container Http Get settings, for liveness or readiness probe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerHttpGetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerHttpGet from the JsonReader.Get the httpHeaders property: The HTTP headers.path()Get the path property: The path to probe.intport()Get the port property: The port number to probe.scheme()Get the scheme property: The scheme.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHttpHeaders(List<HttpHeader> httpHeaders) Set the httpHeaders property: The HTTP headers.Set the path property: The path to probe.withPort(int port) Set the port property: The port number to probe.withScheme(Scheme scheme) Set the scheme property: The scheme.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
-
ContainerHttpGet
public ContainerHttpGet()Creates an instance of ContainerHttpGet class.
-
-
Method Details
-
path
Get the path property: The path to probe.- Returns:
- the path value.
-
withPath
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
Set the port property: The port number to probe.- Parameters:
port- the port value to set.- Returns:
- the ContainerHttpGet object itself.
-
scheme
Get the scheme property: The scheme.- Returns:
- the scheme value.
-
withScheme
Set the scheme property: The scheme.- Parameters:
scheme- the scheme value to set.- Returns:
- the ContainerHttpGet object itself.
-
httpHeaders
Get the httpHeaders property: The HTTP headers.- Returns:
- the httpHeaders value.
-
withHttpHeaders
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerHttpGet>- Throws:
IOException
-
fromJson
Reads an instance of ContainerHttpGet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerHttpGet 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 ContainerHttpGet.
-