Class RunCommandDocumentBaseInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunCommandDocumentBaseInner>
- Direct Known Subclasses:
RunCommandDocumentInner
public class RunCommandDocumentBaseInner
extends Object
implements com.azure.json.JsonSerializable<RunCommandDocumentBaseInner>
Describes the properties of a Run Command metadata.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of RunCommandDocumentBaseInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The VM run command description.static RunCommandDocumentBaseInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RunCommandDocumentBaseInner 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.schema()Get the schema property: The VM run command schema.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
-
Constructor Details
-
RunCommandDocumentBaseInner
protected RunCommandDocumentBaseInner()Creates an instance of RunCommandDocumentBaseInner class.
-
-
Method Details
-
schema
Get the schema property: The VM run command schema.- Returns:
- the schema value.
-
id
-
osType
Get the osType property: The Operating System type.- Returns:
- the osType value.
-
label
-
description
Get the description property: The VM run command description.- Returns:
- the description value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RunCommandDocumentBaseInner>- Throws:
IOException
-
fromJson
public static RunCommandDocumentBaseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RunCommandDocumentBaseInner.
-