Class ContainerExec
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ContainerExec
-
public final class ContainerExec extends Object
The container execution command, for liveness or readiness probe.
-
-
Constructor Summary
Constructors Constructor Description ContainerExec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>command()Get the command property: The commands to execute within the container.voidvalidate()Validates the instance.ContainerExecwithCommand(List<String> command)Set the command property: The commands to execute within the container.
-
-
-
Method Detail
-
command
public List<String> command()
Get the command property: The commands to execute within the container.- Returns:
- the command value.
-
withCommand
public ContainerExec withCommand(List<String> command)
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.
-
-