Class ContainerProbe
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerProbe
The container probe, for liveness or readiness.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexec()Get the exec property: The execution command to probe.Get the failureThreshold property: The failure threshold.httpGet()Get the httpGet property: The Http Get settings to probe.Get the initialDelaySeconds property: The initial delay seconds.Get the periodSeconds property: The period seconds.Get the successThreshold property: The success threshold.Get the timeoutSeconds property: The timeout seconds.voidvalidate()Validates the instance.withExec(ContainerExec exec) Set the exec property: The execution command to probe.withFailureThreshold(Integer failureThreshold) Set the failureThreshold property: The failure threshold.withHttpGet(ContainerHttpGet httpGet) Set the httpGet property: The Http Get settings to probe.withInitialDelaySeconds(Integer initialDelaySeconds) Set the initialDelaySeconds property: The initial delay seconds.withPeriodSeconds(Integer periodSeconds) Set the periodSeconds property: The period seconds.withSuccessThreshold(Integer successThreshold) Set the successThreshold property: The success threshold.withTimeoutSeconds(Integer timeoutSeconds) Set the timeoutSeconds property: The timeout seconds.
-
Constructor Details
-
ContainerProbe
public ContainerProbe()Creates an instance of ContainerProbe class.
-
-
Method Details
-
exec
Get the exec property: The execution command to probe.- Returns:
- the exec value.
-
withExec
Set the exec property: The execution command to probe.- Parameters:
exec- the exec value to set.- Returns:
- the ContainerProbe object itself.
-
httpGet
Get the httpGet property: The Http Get settings to probe.- Returns:
- the httpGet value.
-
withHttpGet
Set the httpGet property: The Http Get settings to probe.- Parameters:
httpGet- the httpGet value to set.- Returns:
- the ContainerProbe object itself.
-
initialDelaySeconds
Get the initialDelaySeconds property: The initial delay seconds.- Returns:
- the initialDelaySeconds value.
-
withInitialDelaySeconds
Set the initialDelaySeconds property: The initial delay seconds.- Parameters:
initialDelaySeconds- the initialDelaySeconds value to set.- Returns:
- the ContainerProbe object itself.
-
periodSeconds
Get the periodSeconds property: The period seconds.- Returns:
- the periodSeconds value.
-
withPeriodSeconds
Set the periodSeconds property: The period seconds.- Parameters:
periodSeconds- the periodSeconds value to set.- Returns:
- the ContainerProbe object itself.
-
failureThreshold
Get the failureThreshold property: The failure threshold.- Returns:
- the failureThreshold value.
-
withFailureThreshold
Set the failureThreshold property: The failure threshold.- Parameters:
failureThreshold- the failureThreshold value to set.- Returns:
- the ContainerProbe object itself.
-
successThreshold
Get the successThreshold property: The success threshold.- Returns:
- the successThreshold value.
-
withSuccessThreshold
Set the successThreshold property: The success threshold.- Parameters:
successThreshold- the successThreshold value to set.- Returns:
- the ContainerProbe object itself.
-
timeoutSeconds
Get the timeoutSeconds property: The timeout seconds.- Returns:
- the timeoutSeconds value.
-
withTimeoutSeconds
Set the timeoutSeconds property: The timeout seconds.- Parameters:
timeoutSeconds- the timeoutSeconds value to set.- Returns:
- the ContainerProbe object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-