Compartir a través de


RunCommandParameterDefinition Class

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

Implements

public final class RunCommandParameterDefinition
implements JsonSerializable<RunCommandParameterDefinition>

Describes the properties of a run command parameter.

Constructor Summary

Constructor Description
RunCommandParameterDefinition()

Creates an instance of RunCommandParameterDefinition class.

Method Summary

Modifier and Type Method and Description
String defaultValue()

Get the defaultValue property: The run command parameter default value.

static RunCommandParameterDefinition fromJson(JsonReader jsonReader)

Reads an instance of RunCommandParameterDefinition from the JsonReader.

String name()

Get the name property: The run command parameter name.

Boolean required()

Get the required property: The run command parameter required.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The run command parameter type.

void validate()

Validates the instance.

RunCommandParameterDefinition withDefaultValue(String defaultValue)

Set the defaultValue property: The run command parameter default value.

RunCommandParameterDefinition withName(String name)

Set the name property: The run command parameter name.

RunCommandParameterDefinition withRequired(Boolean required)

Set the required property: The run command parameter required.

RunCommandParameterDefinition withType(String type)

Set the type property: The run command parameter type.

Methods inherited from java.lang.Object

Constructor Details

RunCommandParameterDefinition

public RunCommandParameterDefinition()

Creates an instance of RunCommandParameterDefinition class.

Method Details

defaultValue

public String defaultValue()

Get the defaultValue property: The run command parameter default value.

Returns:

the defaultValue value.

fromJson

public static RunCommandParameterDefinition fromJson(JsonReader jsonReader)

Reads an instance of RunCommandParameterDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

required

public Boolean required()

Get the required property: The run command parameter required.

Returns:

the required value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The run command parameter type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDefaultValue

public RunCommandParameterDefinition withDefaultValue(String defaultValue)

Set the defaultValue property: The run command parameter default value.

Parameters:

defaultValue - the defaultValue value to set.

Returns:

the RunCommandParameterDefinition object itself.

withName

public RunCommandParameterDefinition withName(String name)

Set the name property: The run command parameter name.

Parameters:

name - the name value to set.

Returns:

the RunCommandParameterDefinition object itself.

withRequired

public RunCommandParameterDefinition withRequired(Boolean required)

Set the required property: The run command parameter required.

Parameters:

required - the required value to set.

Returns:

the RunCommandParameterDefinition object itself.

withType

public RunCommandParameterDefinition withType(String type)

Set the type property: The run command parameter type.

Parameters:

type - the type value to set.

Returns:

the RunCommandParameterDefinition object itself.

Applies to