Class ContainerAppProbeTcpSocket
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContainerAppProbeTcpSocket class. -
Method Summary
Modifier and TypeMethodDescriptionhost()
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.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.
-
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.
-