ContainerExecRequest Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ContainerExecRequest
- com.
Implements
public final class ContainerExecRequest
implements JsonSerializable<ContainerExecRequest>
The container exec request.
Constructor Summary
| Constructor | Description |
|---|---|
| ContainerExecRequest() |
Creates an instance of Container |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
command()
Get the command property: The command to be executed. |
|
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
|
Container |
terminalSize()
Get the terminal |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Container |
withCommand(String command)
Set the command property: The command to be executed. |
|
Container |
withTerminalSize(ContainerExecRequestTerminalSize terminalSize)
Set 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:
fromJson
public static ContainerExecRequest fromJson(JsonReader jsonReader)
Reads an instance of ContainerExecRequest from the JsonReader.
Parameters:
Returns:
Throws:
terminalSize
public ContainerExecRequestTerminalSize terminalSize()
Get the terminalSize property: The size of the terminal.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCommand
public ContainerExecRequest withCommand(String command)
Set the command property: The command to be executed.
Parameters:
Returns:
withTerminalSize
public ContainerExecRequest withTerminalSize(ContainerExecRequestTerminalSize terminalSize)
Set the terminalSize property: The size of the terminal.
Parameters:
Returns: