Class ContainerProbe
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ContainerProbe
-
public final class ContainerProbe extends Object
The container probe, for liveness or readiness.
-
-
Constructor Summary
Constructors Constructor Description ContainerProbe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerExecexec()Get the exec property: The execution command to probe.IntegerfailureThreshold()Get the failureThreshold property: The failure threshold.ContainerHttpGethttpGet()Get the httpGet property: The Http Get settings to probe.IntegerinitialDelaySeconds()Get the initialDelaySeconds property: The initial delay seconds.IntegerperiodSeconds()Get the periodSeconds property: The period seconds.IntegersuccessThreshold()Get the successThreshold property: The success threshold.IntegertimeoutSeconds()Get the timeoutSeconds property: The timeout seconds.voidvalidate()Validates the instance.ContainerProbewithExec(ContainerExec exec)Set the exec property: The execution command to probe.ContainerProbewithFailureThreshold(Integer failureThreshold)Set the failureThreshold property: The failure threshold.ContainerProbewithHttpGet(ContainerHttpGet httpGet)Set the httpGet property: The Http Get settings to probe.ContainerProbewithInitialDelaySeconds(Integer initialDelaySeconds)Set the initialDelaySeconds property: The initial delay seconds.ContainerProbewithPeriodSeconds(Integer periodSeconds)Set the periodSeconds property: The period seconds.ContainerProbewithSuccessThreshold(Integer successThreshold)Set the successThreshold property: The success threshold.ContainerProbewithTimeoutSeconds(Integer timeoutSeconds)Set the timeoutSeconds property: The timeout seconds.
-
-
-
Method Detail
-
exec
public ContainerExec exec()
Get the exec property: The execution command to probe.- Returns:
- the exec value.
-
withExec
public ContainerProbe withExec(ContainerExec exec)
Set the exec property: The execution command to probe.- Parameters:
exec- the exec value to set.- Returns:
- the ContainerProbe object itself.
-
httpGet
public ContainerHttpGet httpGet()
Get the httpGet property: The Http Get settings to probe.- Returns:
- the httpGet value.
-
withHttpGet
public ContainerProbe withHttpGet(ContainerHttpGet httpGet)
Set the httpGet property: The Http Get settings to probe.- Parameters:
httpGet- the httpGet value to set.- Returns:
- the ContainerProbe object itself.
-
initialDelaySeconds
public Integer initialDelaySeconds()
Get the initialDelaySeconds property: The initial delay seconds.- Returns:
- the initialDelaySeconds value.
-
withInitialDelaySeconds
public ContainerProbe withInitialDelaySeconds(Integer initialDelaySeconds)
Set the initialDelaySeconds property: The initial delay seconds.- Parameters:
initialDelaySeconds- the initialDelaySeconds value to set.- Returns:
- the ContainerProbe object itself.
-
periodSeconds
public Integer periodSeconds()
Get the periodSeconds property: The period seconds.- Returns:
- the periodSeconds value.
-
withPeriodSeconds
public ContainerProbe withPeriodSeconds(Integer periodSeconds)
Set the periodSeconds property: The period seconds.- Parameters:
periodSeconds- the periodSeconds value to set.- Returns:
- the ContainerProbe object itself.
-
failureThreshold
public Integer failureThreshold()
Get the failureThreshold property: The failure threshold.- Returns:
- the failureThreshold value.
-
withFailureThreshold
public ContainerProbe withFailureThreshold(Integer failureThreshold)
Set the failureThreshold property: The failure threshold.- Parameters:
failureThreshold- the failureThreshold value to set.- Returns:
- the ContainerProbe object itself.
-
successThreshold
public Integer successThreshold()
Get the successThreshold property: The success threshold.- Returns:
- the successThreshold value.
-
withSuccessThreshold
public ContainerProbe withSuccessThreshold(Integer successThreshold)
Set the successThreshold property: The success threshold.- Parameters:
successThreshold- the successThreshold value to set.- Returns:
- the ContainerProbe object itself.
-
timeoutSeconds
public Integer timeoutSeconds()
Get the timeoutSeconds property: The timeout seconds.- Returns:
- the timeoutSeconds value.
-
withTimeoutSeconds
public ContainerProbe withTimeoutSeconds(Integer timeoutSeconds)
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.
-
-