ContainerExecRequestTerminalSize Class

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

Implements

public final class ContainerExecRequestTerminalSize
implements JsonSerializable<ContainerExecRequestTerminalSize>

The size of the terminal.

Constructor Summary

Constructor Description
ContainerExecRequestTerminalSize()

Creates an instance of ContainerExecRequestTerminalSize class.

Method Summary

Modifier and Type Method and Description
Integer cols()

Get the cols property: The column size of the terminal.

static ContainerExecRequestTerminalSize fromJson(JsonReader jsonReader)

Reads an instance of ContainerExecRequestTerminalSize from the JsonReader.

Integer rows()

Get the rows property: The row size of the terminal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerExecRequestTerminalSize withCols(Integer cols)

Set the cols property: The column size of the terminal.

ContainerExecRequestTerminalSize withRows(Integer rows)

Set the rows property: The row size of the terminal.

Methods inherited from java.lang.Object

Constructor Details

ContainerExecRequestTerminalSize

public ContainerExecRequestTerminalSize()

Creates an instance of ContainerExecRequestTerminalSize class.

Method Details

cols

public Integer cols()

Get the cols property: The column size of the terminal.

Returns:

the cols value.

fromJson

public static ContainerExecRequestTerminalSize fromJson(JsonReader jsonReader)

Reads an instance of ContainerExecRequestTerminalSize from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rows

public Integer rows()

Get the rows property: The row size of the terminal.

Returns:

the rows value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCols

public ContainerExecRequestTerminalSize withCols(Integer cols)

Set the cols property: The column size of the terminal.

Parameters:

cols - the cols value to set.

Returns:

the ContainerExecRequestTerminalSize object itself.

withRows

public ContainerExecRequestTerminalSize withRows(Integer rows)

Set the rows property: The row size of the terminal.

Parameters:

rows - the rows value to set.

Returns:

the ContainerExecRequestTerminalSize object itself.

Applies to

Azure SDK for Java

Latest