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
ConstructorsConstructorDescriptionCreates 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.withDescription(String description) Set the description property: The VM run command description.Set the id property: The VM run command id.Set the label property: The VM run command label.withOsType(OperatingSystemTypes osType) Set the osType property: The Operating System type.withSchema(String schema) Set the schema property: The VM run command schema.Methods inherited from class java.lang.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
public RunCommandDocumentBaseInner()Creates an instance of RunCommandDocumentBaseInner class.
-
-
Method Details
-
schema
Get the schema property: The VM run command schema.- Returns:
- the schema value.
-
withSchema
Set the schema property: The VM run command schema.- Parameters:
schema- the schema value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
id
Get the id property: The VM run command id.- Returns:
- the id value.
-
withId
Set the id property: The VM run command id.- Parameters:
id- the id value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
osType
Get the osType property: The Operating System type.- Returns:
- the osType value.
-
withOsType
Set the osType property: The Operating System type.- Parameters:
osType- the osType value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
label
Get the label property: The VM run command label.- Returns:
- the label value.
-
withLabel
Set the label property: The VM run command label.- Parameters:
label- the label value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
description
Get the description property: The VM run command description.- Returns:
- the description value.
-
withDescription
Set the description property: The VM run command description.- Parameters:
description- the description value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
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.
-