ContainerExec Class

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

Implements

public final class ContainerExec
implements JsonSerializable<ContainerExec>

The container execution command, for liveness or readiness probe.

Constructor Summary

Constructor Description
ContainerExec()

Creates an instance of ContainerExec class.

Method Summary

Modifier and Type Method and Description
List<String> command()

Get the command property: The commands to execute within the container.

static ContainerExec fromJson(JsonReader jsonReader)

Reads an instance of ContainerExec from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerExec withCommand(List<String> command)

Set the command property: The commands to execute within the container.

Methods inherited from java.lang.Object

Constructor Details

ContainerExec

public ContainerExec()

Creates an instance of ContainerExec class.

Method Details

command

public List command()

Get the command property: The commands to execute within the container.

Returns:

the command value.

fromJson

public static ContainerExec fromJson(JsonReader jsonReader)

Reads an instance of ContainerExec from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerExec 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 ContainerExec.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCommand

public ContainerExec withCommand(List command)

Set the command property: The commands to execute within the container.

Parameters:

command - the command value to set.

Returns:

the ContainerExec object itself.

Applies to