Class RunCommandDocumentInner
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner
-
- com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentInner
-
public final class RunCommandDocumentInner extends RunCommandDocumentBaseInner
Describes the properties of a Run Command.
-
-
Constructor Summary
Constructors Constructor Description RunCommandDocumentInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RunCommandParameterDefinition>parameters()Get the parameters property: The parameters used by the script.List<String>script()Get the script property: The script to be executed.voidvalidate()Validates the instance.RunCommandDocumentInnerwithDescription(String description)Set the description property: The VM run command description.RunCommandDocumentInnerwithId(String id)Set the id property: The VM run command id.RunCommandDocumentInnerwithLabel(String label)Set the label property: The VM run command label.RunCommandDocumentInnerwithOsType(OperatingSystemTypes osType)Set the osType property: The Operating System type.RunCommandDocumentInnerwithParameters(List<RunCommandParameterDefinition> parameters)Set the parameters property: The parameters used by the script.RunCommandDocumentInnerwithSchema(String schema)Set the schema property: The VM run command schema.RunCommandDocumentInnerwithScript(List<String> script)Set the script property: The script to be executed.-
Methods inherited from class com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner
description, id, label, osType, schema
-
-
-
-
Method Detail
-
script
public List<String> script()
Get the script property: The script to be executed.- Returns:
- the script value.
-
withScript
public RunCommandDocumentInner withScript(List<String> script)
Set the script property: The script to be executed.- Parameters:
script- the script value to set.- Returns:
- the RunCommandDocumentInner object itself.
-
parameters
public List<RunCommandParameterDefinition> parameters()
Get the parameters property: The parameters used by the script.- Returns:
- the parameters value.
-
withParameters
public RunCommandDocumentInner withParameters(List<RunCommandParameterDefinition> parameters)
Set the parameters property: The parameters used by the script.- Parameters:
parameters- the parameters value to set.- Returns:
- the RunCommandDocumentInner object itself.
-
withSchema
public RunCommandDocumentInner withSchema(String schema)
Set the schema property: The VM run command schema.- Overrides:
withSchemain classRunCommandDocumentBaseInner- Parameters:
schema- the schema value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
withId
public RunCommandDocumentInner withId(String id)
Set the id property: The VM run command id.- Overrides:
withIdin classRunCommandDocumentBaseInner- Parameters:
id- the id value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
withOsType
public RunCommandDocumentInner withOsType(OperatingSystemTypes osType)
Set the osType property: The Operating System type.- Overrides:
withOsTypein classRunCommandDocumentBaseInner- Parameters:
osType- the osType value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
withLabel
public RunCommandDocumentInner withLabel(String label)
Set the label property: The VM run command label.- Overrides:
withLabelin classRunCommandDocumentBaseInner- Parameters:
label- the label value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
withDescription
public RunCommandDocumentInner withDescription(String description)
Set the description property: The VM run command description.- Overrides:
withDescriptionin classRunCommandDocumentBaseInner- Parameters:
description- the description value to set.- Returns:
- the RunCommandDocumentBaseInner object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classRunCommandDocumentBaseInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-