Class ContainerAppProbeTcpSocket
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerAppProbeTcpSocket>
public final class ContainerAppProbeTcpSocket
extends Object
implements com.azure.json.JsonSerializable<ContainerAppProbeTcpSocket>
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerAppProbeTcpSocket class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerAppProbeTcpSocket
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerAppProbeTcpSocket from the JsonReader.host()
Get the host property: Optional: Host name to connect to, defaults to the pod IP.int
port()
Get the port property: Number or name of the port to access on the container.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the host property: Optional: Host name to connect to, defaults to the pod IP.withPort
(int port) Set the port property: Number or name of the port to access on the container.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerAppProbeTcpSocket
public ContainerAppProbeTcpSocket()Creates an instance of ContainerAppProbeTcpSocket class.
-
-
Method Details
-
host
Get the host property: Optional: Host name to connect to, defaults to the pod IP.- Returns:
- the host value.
-
withHost
Set the host property: Optional: Host name to connect to, defaults to the pod IP.- Parameters:
host
- the host value to set.- Returns:
- the ContainerAppProbeTcpSocket object itself.
-
port
public int port()Get the port property: Number or name 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: Number or name 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 ContainerAppProbeTcpSocket object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ContainerAppProbeTcpSocket>
- Throws:
IOException
-
fromJson
public static ContainerAppProbeTcpSocket fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerAppProbeTcpSocket from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ContainerAppProbeTcpSocket 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 ContainerAppProbeTcpSocket.
-