Class VirtualMachineRunCommandProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandProperties
Describes the properties of a Virtual Machine run command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the asyncExecution property: Optional.Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.Get the instanceView property: The virtual machine run command instance view.Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.Get the parameters property: The parameters used by the script.Get the protectedParameters property: The parameters used by the script.Get the provisioningState property: The provisioning state, which only appears in the response.Get the runAsPassword property: Specifies the user account password on the VM when executing the run command.Get the runAsUser property: Specifies the user account on the VM when executing the run command.source()Get the source property: The source of the run command script.Get the timeoutInSeconds property: The timeout in seconds to execute the run command.voidvalidate()Validates the instance.withAsyncExecution(Boolean asyncExecution) Set the asyncExecution property: Optional.withErrorBlobUri(String errorBlobUri) Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.withOutputBlobUri(String outputBlobUri) Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.withParameters(List<RunCommandInputParameter> parameters) Set the parameters property: The parameters used by the script.withProtectedParameters(List<RunCommandInputParameter> protectedParameters) Set the protectedParameters property: The parameters used by the script.withRunAsPassword(String runAsPassword) Set the runAsPassword property: Specifies the user account password on the VM when executing the run command.withRunAsUser(String runAsUser) Set the runAsUser property: Specifies the user account on the VM when executing the run command.Set the source property: The source of the run command script.withTimeoutInSeconds(Integer timeoutInSeconds) Set the timeoutInSeconds property: The timeout in seconds to execute the run command.
-
Constructor Details
-
VirtualMachineRunCommandProperties
public VirtualMachineRunCommandProperties()
-
-
Method Details
-
source
Get the source property: The source of the run command script.- Returns:
- the source value.
-
withSource
Set the source property: The source of the run command script.- Parameters:
source- the source value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
parameters
Get the parameters property: The parameters used by the script.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: The parameters used by the script.- Parameters:
parameters- the parameters value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
protectedParameters
Get the protectedParameters property: The parameters used by the script.- Returns:
- the protectedParameters value.
-
withProtectedParameters
public VirtualMachineRunCommandProperties withProtectedParameters(List<RunCommandInputParameter> protectedParameters) Set the protectedParameters property: The parameters used by the script.- Parameters:
protectedParameters- the protectedParameters value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
asyncExecution
Get the asyncExecution property: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.- Returns:
- the asyncExecution value.
-
withAsyncExecution
Set the asyncExecution property: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.- Parameters:
asyncExecution- the asyncExecution value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
runAsUser
Get the runAsUser property: Specifies the user account on the VM when executing the run command.- Returns:
- the runAsUser value.
-
withRunAsUser
Set the runAsUser property: Specifies the user account on the VM when executing the run command.- Parameters:
runAsUser- the runAsUser value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
runAsPassword
Get the runAsPassword property: Specifies the user account password on the VM when executing the run command.- Returns:
- the runAsPassword value.
-
withRunAsPassword
Set the runAsPassword property: Specifies the user account password on the VM when executing the run command.- Parameters:
runAsPassword- the runAsPassword value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
timeoutInSeconds
Get the timeoutInSeconds property: The timeout in seconds to execute the run command.- Returns:
- the timeoutInSeconds value.
-
withTimeoutInSeconds
Set the timeoutInSeconds property: The timeout in seconds to execute the run command.- Parameters:
timeoutInSeconds- the timeoutInSeconds value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
outputBlobUri
Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.- Returns:
- the outputBlobUri value.
-
withOutputBlobUri
Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.- Parameters:
outputBlobUri- the outputBlobUri value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
errorBlobUri
Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.- Returns:
- the errorBlobUri value.
-
withErrorBlobUri
Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.- Parameters:
errorBlobUri- the errorBlobUri value to set.- Returns:
- the VirtualMachineRunCommandProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
Get the instanceView property: The virtual machine run command instance view.- Returns:
- the instanceView value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-