RunCommandInputParameter Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.RunCommandInputParameter

Implements

public final class RunCommandInputParameter
implements JsonSerializable<RunCommandInputParameter>

Describes the properties of a run command parameter.

Constructor Summary

Constructor Description
RunCommandInputParameter()

Creates an instance of RunCommandInputParameter class.

Method Summary

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

Reads an instance of RunCommandInputParameter from the JsonReader.

String name()

Get the name property: The run command parameter name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The run command parameter value.

RunCommandInputParameter withName(String name)

Set the name property: The run command parameter name.

RunCommandInputParameter withValue(String value)

Set the value property: The run command parameter value.

Methods inherited from java.lang.Object

Constructor Details

RunCommandInputParameter

public RunCommandInputParameter()

Creates an instance of RunCommandInputParameter class.

Method Details

fromJson

public static RunCommandInputParameter fromJson(JsonReader jsonReader)

Reads an instance of RunCommandInputParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The run command parameter name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The run command parameter value.

Returns:

the value value.

withName

public RunCommandInputParameter withName(String name)

Set the name property: The run command parameter name.

Parameters:

name - the name value to set.

Returns:

the RunCommandInputParameter object itself.

withValue

public RunCommandInputParameter withValue(String value)

Set the value property: The run command parameter value.

Parameters:

value - the value value to set.

Returns:

the RunCommandInputParameter object itself.

Applies to