ContainerProbe Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ContainerProbe
- com.
Implements
public final class ContainerProbe
implements JsonSerializable<ContainerProbe>
The container probe, for liveness or readiness.
Constructor Summary
Constructor | Description |
---|---|
ContainerProbe() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
Container |
exec()
Get the exec property: The execution command to probe. |
Integer |
failureThreshold()
Get the failure |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
Container |
httpGet()
Get the http |
Integer |
initialDelaySeconds()
Get the initial |
Integer |
periodSeconds()
Get the period |
Integer |
successThreshold()
Get the success |
Integer |
timeoutSeconds()
Get the timeout |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withExec(ContainerExec exec)
Set the exec property: The execution command to probe. |
Container |
withFailureThreshold(Integer failureThreshold)
Set the failure |
Container |
withHttpGet(ContainerHttpGet httpGet)
Set the http |
Container |
withInitialDelaySeconds(Integer initialDelaySeconds)
Set the initial |
Container |
withPeriodSeconds(Integer periodSeconds)
Set the period |
Container |
withSuccessThreshold(Integer successThreshold)
Set the success |
Container |
withTimeoutSeconds(Integer timeoutSeconds)
Set the timeout |
Methods inherited from java.lang.Object
Constructor Details
ContainerProbe
public ContainerProbe()
Creates an instance of ContainerProbe class.
Method Details
exec
public ContainerExec exec()
Get the exec property: The execution command to probe.
Returns:
failureThreshold
public Integer failureThreshold()
Get the failureThreshold property: The failure threshold.
Returns:
fromJson
public static ContainerProbe fromJson(JsonReader jsonReader)
Reads an instance of ContainerProbe from the JsonReader.
Parameters:
Returns:
Throws:
httpGet
public ContainerHttpGet httpGet()
Get the httpGet property: The Http Get settings to probe.
Returns:
initialDelaySeconds
public Integer initialDelaySeconds()
Get the initialDelaySeconds property: The initial delay seconds.
Returns:
periodSeconds
public Integer periodSeconds()
Get the periodSeconds property: The period seconds.
Returns:
successThreshold
public Integer successThreshold()
Get the successThreshold property: The success threshold.
Returns:
timeoutSeconds
public Integer timeoutSeconds()
Get the timeoutSeconds property: The timeout seconds.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExec
public ContainerProbe withExec(ContainerExec exec)
Set the exec property: The execution command to probe.
Parameters:
Returns:
withFailureThreshold
public ContainerProbe withFailureThreshold(Integer failureThreshold)
Set the failureThreshold property: The failure threshold.
Parameters:
Returns:
withHttpGet
public ContainerProbe withHttpGet(ContainerHttpGet httpGet)
Set the httpGet property: The Http Get settings to probe.
Parameters:
Returns:
withInitialDelaySeconds
public ContainerProbe withInitialDelaySeconds(Integer initialDelaySeconds)
Set the initialDelaySeconds property: The initial delay seconds.
Parameters:
Returns:
withPeriodSeconds
public ContainerProbe withPeriodSeconds(Integer periodSeconds)
Set the periodSeconds property: The period seconds.
Parameters:
Returns:
withSuccessThreshold
public ContainerProbe withSuccessThreshold(Integer successThreshold)
Set the successThreshold property: The success threshold.
Parameters:
Returns:
withTimeoutSeconds
public ContainerProbe withTimeoutSeconds(Integer timeoutSeconds)
Set the timeoutSeconds property: The timeout seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java