Class RunCommandDocumentInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner
com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunCommandDocumentBaseInner>
Describes the properties of a Run Command.
-
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The VM run command description.static RunCommandDocumentInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RunCommandDocumentInner from the JsonReader.id()Get the id property: The VM run command id.label()Get the label property: The VM run command label.osType()Get the osType property: The Operating System type.Get the parameters property: The parameters used by the script.schema()Get the schema property: The VM run command schema.script()Get the script property: The script to be executed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
script
-
parameters
Get the parameters property: The parameters used by the script.- Returns:
- the parameters value.
-
description
Get the description property: The VM run command description.- Overrides:
descriptionin classRunCommandDocumentBaseInner- Returns:
- the description value.
-
label
Get the label property: The VM run command label.- Overrides:
labelin classRunCommandDocumentBaseInner- Returns:
- the label value.
-
osType
Get the osType property: The Operating System type.- Overrides:
osTypein classRunCommandDocumentBaseInner- Returns:
- the osType value.
-
id
Get the id property: The VM run command id.- Overrides:
idin classRunCommandDocumentBaseInner- Returns:
- the id value.
-
schema
Get the schema property: The VM run command schema.- Overrides:
schemain classRunCommandDocumentBaseInner- Returns:
- the schema value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRunCommandDocumentBaseInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RunCommandDocumentBaseInner>- Overrides:
toJsonin classRunCommandDocumentBaseInner- Throws:
IOException
-
fromJson
public static RunCommandDocumentInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RunCommandDocumentInner.
-