ContainerProbe Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.ContainerProbe

Implements

public final class ContainerProbe
implements JsonSerializable<ContainerProbe>

The container probe, for liveness or readiness.

Constructor Summary

Constructor Description
ContainerProbe()

Creates an instance of ContainerProbe class.

Method Summary

Modifier and Type Method and Description
ContainerExec exec()

Get the exec property: The execution command to probe.

Integer failureThreshold()

Get the failureThreshold property: The failure threshold.

static ContainerProbe fromJson(JsonReader jsonReader)

Reads an instance of ContainerProbe from the JsonReader.

ContainerHttpGet httpGet()

Get the httpGet property: The Http Get settings to probe.

Integer initialDelaySeconds()

Get the initialDelaySeconds property: The initial delay seconds.

Integer periodSeconds()

Get the periodSeconds property: The period seconds.

Integer successThreshold()

Get the successThreshold property: The success threshold.

Integer timeoutSeconds()

Get the timeoutSeconds property: The timeout seconds.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerProbe withExec(ContainerExec exec)

Set the exec property: The execution command to probe.

ContainerProbe withFailureThreshold(Integer failureThreshold)

Set the failureThreshold property: The failure threshold.

ContainerProbe withHttpGet(ContainerHttpGet httpGet)

Set the httpGet property: The Http Get settings to probe.

ContainerProbe withInitialDelaySeconds(Integer initialDelaySeconds)

Set the initialDelaySeconds property: The initial delay seconds.

ContainerProbe withPeriodSeconds(Integer periodSeconds)

Set the periodSeconds property: The period seconds.

ContainerProbe withSuccessThreshold(Integer successThreshold)

Set the successThreshold property: The success threshold.

ContainerProbe withTimeoutSeconds(Integer timeoutSeconds)

Set the timeoutSeconds property: The timeout seconds.

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:

the exec value.

failureThreshold

public Integer failureThreshold()

Get the failureThreshold property: The failure threshold.

Returns:

the failureThreshold value.

fromJson

public static ContainerProbe fromJson(JsonReader jsonReader)

Reads an instance of ContainerProbe from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerProbe if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ContainerProbe.

httpGet

public ContainerHttpGet httpGet()

Get the httpGet property: The Http Get settings to probe.

Returns:

the httpGet value.

initialDelaySeconds

public Integer initialDelaySeconds()

Get the initialDelaySeconds property: The initial delay seconds.

Returns:

the initialDelaySeconds value.

periodSeconds

public Integer periodSeconds()

Get the periodSeconds property: The period seconds.

Returns:

the periodSeconds value.

successThreshold

public Integer successThreshold()

Get the successThreshold property: The success threshold.

Returns:

the successThreshold value.

timeoutSeconds

public Integer timeoutSeconds()

Get the timeoutSeconds property: The timeout seconds.

Returns:

the timeoutSeconds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

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.

Applies to