RunCommandDocumentInner Class

public final class RunCommandDocumentInner
extends RunCommandDocumentBaseInner

Describes the properties of a Run Command.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The VM run command description.

static RunCommandDocumentInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandDocumentInner from the JsonReader.

String id()

Get the id property: The VM run command id.

String label()

Get the label property: The VM run command label.

OperatingSystemTypes osType()

Get the osType property: The Operating System type.

List<RunCommandParameterDefinition> parameters()

Get the parameters property: The parameters used by the script.

String schema()

Get the schema property: The VM run command schema.

List<String> script()

Get the script property: The script to be executed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from RunCommandDocumentBaseInner

Methods inherited from java.lang.Object

Method Details

description

public String description()

Get the description property: The VM run command description.

Overrides:

RunCommandDocumentInner.description()

Returns:

the description value.

fromJson

public static RunCommandDocumentInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandDocumentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: The VM run command id.

Overrides:

RunCommandDocumentInner.id()

Returns:

the id value.

label

public String label()

Get the label property: The VM run command label.

Overrides:

RunCommandDocumentInner.label()

Returns:

the label value.

osType

public OperatingSystemTypes osType()

Get the osType property: The Operating System type.

Overrides:

RunCommandDocumentInner.osType()

Returns:

the osType value.

parameters

public List<RunCommandParameterDefinition> parameters()

Get the parameters property: The parameters used by the script.

Returns:

the parameters value.

schema

public String schema()

Get the schema property: The VM run command schema.

Overrides:

RunCommandDocumentInner.schema()

Returns:

the schema value.

script

public List<String> script()

Get the script property: The script to be executed.

Returns:

the script value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RunCommandDocumentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

RunCommandDocumentInner.validate()

Applies to