RunCommandDocumentInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. RunCommandDocumentBaseInner - com.
azure. resourcemanager. compute. fluent. models. RunCommandDocumentInner
- com.
- com.
public final class RunCommandDocumentInner
extends RunCommandDocumentBaseInner
Describes the properties of a Run Command.
Constructor Summary
Constructor | Description |
---|---|
RunCommandDocumentInner() |
Creates an instance of Run |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
List<Run |
parameters()
Get the parameters property: The parameters used by the script. |
List<String> |
script()
Get the script property: The script to be executed. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Run |
withDescription(String description)
Set the description property: The VM run command description. |
Run |
withId(String id)
Set the id property: The VM run command id. |
Run |
withLabel(String label)
Set the label property: The VM run command label. |
Run |
withOsType(OperatingSystemTypes osType)
Set the os |
Run |
withParameters(List<RunCommandParameterDefinition> parameters)
Set the parameters property: The parameters used by the script. |
Run |
withSchema(String schema)
Set the schema property: The VM run command schema. |
Run |
withScript(List<String> script)
Set the script property: The script to be executed. |
Methods inherited from RunCommandDocumentBaseInner
Methods inherited from java.lang.Object
Constructor Details
RunCommandDocumentInner
public RunCommandDocumentInner()
Creates an instance of RunCommandDocumentInner class.
Method Details
fromJson
public static RunCommandDocumentInner fromJson(JsonReader jsonReader)
Reads an instance of RunCommandDocumentInner from the JsonReader.
Parameters:
Returns:
Throws:
parameters
public List
Get the parameters property: The parameters used by the script.
Returns:
script
public List
Get the script property: The script to be executed.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RunCommandDocumentInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RunCommandDocumentInner.validate()withDescription
public RunCommandDocumentInner withDescription(String description)
Set the description property: The VM run command description.
Overrides:
RunCommandDocumentInner.withDescription(String description)Parameters:
withId
public RunCommandDocumentInner withId(String id)
Set the id property: The VM run command id.
Overrides:
RunCommandDocumentInner.withId(String id)Parameters:
withLabel
public RunCommandDocumentInner withLabel(String label)
Set the label property: The VM run command label.
Overrides:
RunCommandDocumentInner.withLabel(String label)Parameters:
withOsType
public RunCommandDocumentInner withOsType(OperatingSystemTypes osType)
Set the osType property: The Operating System type.
Overrides:
RunCommandDocumentInner.withOsType(OperatingSystemTypes osType)Parameters:
withParameters
public RunCommandDocumentInner withParameters(List
Set the parameters property: The parameters used by the script.
Parameters:
Returns:
withSchema
public RunCommandDocumentInner withSchema(String schema)
Set the schema property: The VM run command schema.
Overrides:
RunCommandDocumentInner.withSchema(String schema)Parameters:
withScript
public RunCommandDocumentInner withScript(List
Set the script property: The script to be executed.
Parameters:
Returns:
Applies to
Azure SDK for Java