Class ContainerExec
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerExec
The container execution command, for liveness or readiness probe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Get the command property: The commands to execute within the container.voidvalidate()Validates the instance.withCommand(List<String> command) Set the command property: The commands to execute within the container.
-
Constructor Details
-
ContainerExec
public ContainerExec()Creates an instance of ContainerExec class.
-
-
Method Details
-
command
Get the command property: The commands to execute within the container.- Returns:
- the command value.
-
withCommand
Set the command property: The commands to execute within the container.- Parameters:
command- the command value to set.- Returns:
- the ContainerExec object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-