ContainerExecRequest Class

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

Implements

public final class ContainerExecRequest
implements JsonSerializable<ContainerExecRequest>

The container exec request.

Constructor Summary

Constructor Description
ContainerExecRequest()

Creates an instance of ContainerExecRequest class.

Method Summary

Modifier and Type Method and Description
String command()

Get the command property: The command to be executed.

static ContainerExecRequest fromJson(JsonReader jsonReader)

Reads an instance of ContainerExecRequest from the JsonReader.

ContainerExecRequestTerminalSize terminalSize()

Get the terminalSize property: The size of the terminal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerExecRequest withCommand(String command)

Set the command property: The command to be executed.

ContainerExecRequest withTerminalSize(ContainerExecRequestTerminalSize terminalSize)

Set the terminalSize property: The size of the terminal.

Methods inherited from java.lang.Object

Constructor Details

ContainerExecRequest

public ContainerExecRequest()

Creates an instance of ContainerExecRequest class.

Method Details

command

public String command()

Get the command property: The command to be executed.

Returns:

the command value.

fromJson

public static ContainerExecRequest fromJson(JsonReader jsonReader)

Reads an instance of ContainerExecRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

terminalSize

public ContainerExecRequestTerminalSize terminalSize()

Get the terminalSize property: The size of the terminal.

Returns:

the terminalSize value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCommand

public ContainerExecRequest withCommand(String command)

Set the command property: The command to be executed.

Parameters:

command - the command value to set.

Returns:

the ContainerExecRequest object itself.

withTerminalSize

public ContainerExecRequest withTerminalSize(ContainerExecRequestTerminalSize terminalSize)

Set the terminalSize property: The size of the terminal.

Parameters:

terminalSize - the terminalSize value to set.

Returns:

the ContainerExecRequest object itself.

Applies to

Azure SDK for Java

Latest