다음을 통해 공유


RunCommandDocumentInner Class

public final class RunCommandDocumentInner
extends RunCommandDocumentBaseInner

Describes the properties of a Run Command.

Constructor Summary

Constructor Description
RunCommandDocumentInner()

Creates an instance of RunCommandDocumentInner class.

Method Summary

Modifier and Type Method and Description
static RunCommandDocumentInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandDocumentInner from the JsonReader.

List<RunCommandParameterDefinition> parameters()

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

List<String> script()

Get the script property: The script to be executed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RunCommandDocumentInner withDescription(String description)

Set the description property: The VM run command description.

RunCommandDocumentInner withId(String id)

Set the id property: The VM run command id.

RunCommandDocumentInner withLabel(String label)

Set the label property: The VM run command label.

RunCommandDocumentInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

RunCommandDocumentInner withParameters(List<RunCommandParameterDefinition> parameters)

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

RunCommandDocumentInner withSchema(String schema)

Set the schema property: The VM run command schema.

RunCommandDocumentInner withScript(List<String> script)

Set the script property: The script to be executed.

Methods inherited from RunCommandDocumentBaseInner

Methods inherited from java.lang.Object

Constructor Details

RunCommandDocumentInner

public RunCommandDocumentInner()

Creates an instance of RunCommandDocumentInner class.

Method Details

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.

parameters

public List parameters()

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

Returns:

the parameters value.

script

public List 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()

withDescription

public RunCommandDocumentInner withDescription(String description)

Set the description property: The VM run command description.

Overrides:

RunCommandDocumentInner.withDescription(String description)

Parameters:

description

withId

public RunCommandDocumentInner withId(String id)

Set the id property: The VM run command id.

Overrides:

RunCommandDocumentInner.withId(String id)

Parameters:

id

withLabel

public RunCommandDocumentInner withLabel(String label)

Set the label property: The VM run command label.

Overrides:

RunCommandDocumentInner.withLabel(String label)

Parameters:

label

withOsType

public RunCommandDocumentInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

Overrides:

RunCommandDocumentInner.withOsType(OperatingSystemTypes osType)

Parameters:

osType

withParameters

public RunCommandDocumentInner withParameters(List parameters)

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

Parameters:

parameters - the parameters value to set.

Returns:

the RunCommandDocumentInner object itself.

withSchema

public RunCommandDocumentInner withSchema(String schema)

Set the schema property: The VM run command schema.

Overrides:

RunCommandDocumentInner.withSchema(String schema)

Parameters:

schema

withScript

public RunCommandDocumentInner withScript(List script)

Set the script property: The script to be executed.

Parameters:

script - the script value to set.

Returns:

the RunCommandDocumentInner object itself.

Applies to