Partager via


RunCommandDocumentBaseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner

Implements

public class RunCommandDocumentBaseInner
implements JsonSerializable<RunCommandDocumentBaseInner>

Describes the properties of a Run Command metadata.

Constructor Summary

Constructor Description
RunCommandDocumentBaseInner()

Creates an instance of RunCommandDocumentBaseInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The VM run command description.

static RunCommandDocumentBaseInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandDocumentBaseInner 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.

String schema()

Get the schema property: The VM run command schema.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RunCommandDocumentBaseInner withDescription(String description)

Set the description property: The VM run command description.

RunCommandDocumentBaseInner withId(String id)

Set the id property: The VM run command id.

RunCommandDocumentBaseInner withLabel(String label)

Set the label property: The VM run command label.

RunCommandDocumentBaseInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

RunCommandDocumentBaseInner withSchema(String schema)

Set the schema property: The VM run command schema.

Methods inherited from java.lang.Object

Constructor Details

RunCommandDocumentBaseInner

public RunCommandDocumentBaseInner()

Creates an instance of RunCommandDocumentBaseInner class.

Method Details

description

public String description()

Get the description property: The VM run command description.

Returns:

the description value.

fromJson

public static RunCommandDocumentBaseInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandDocumentBaseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the id value.

label

public String label()

Get the label property: The VM run command label.

Returns:

the label value.

osType

public OperatingSystemTypes osType()

Get the osType property: The Operating System type.

Returns:

the osType value.

schema

public String schema()

Get the schema property: The VM run command schema.

Returns:

the schema value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public RunCommandDocumentBaseInner withDescription(String description)

Set the description property: The VM run command description.

Parameters:

description - the description value to set.

Returns:

the RunCommandDocumentBaseInner object itself.

withId

public RunCommandDocumentBaseInner withId(String id)

Set the id property: The VM run command id.

Parameters:

id - the id value to set.

Returns:

the RunCommandDocumentBaseInner object itself.

withLabel

public RunCommandDocumentBaseInner withLabel(String label)

Set the label property: The VM run command label.

Parameters:

label - the label value to set.

Returns:

the RunCommandDocumentBaseInner object itself.

withOsType

public RunCommandDocumentBaseInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

Parameters:

osType - the osType value to set.

Returns:

the RunCommandDocumentBaseInner object itself.

withSchema

public RunCommandDocumentBaseInner withSchema(String schema)

Set the schema property: The VM run command schema.

Parameters:

schema - the schema value to set.

Returns:

the RunCommandDocumentBaseInner object itself.

Applies to