Class VirtualMachineRunCommandInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandInner
-
public final class VirtualMachineRunCommandInner extends com.azure.core.management.ResourceDescribes a Virtual Machine run command.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineRunCommandInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanasyncExecution()Get the asyncExecution property: Optional.StringerrorBlobUri()Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.VirtualMachineRunCommandInstanceViewinstanceView()Get the instanceView property: The virtual machine run command instance view.StringoutputBlobUri()Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.List<RunCommandInputParameter>parameters()Get the parameters property: The parameters used by the script.List<RunCommandInputParameter>protectedParameters()Get the protectedParameters property: The parameters used by the script.StringprovisioningState()Get the provisioningState property: The provisioning state, which only appears in the response.StringrunAsPassword()Get the runAsPassword property: Specifies the user account password on the VM when executing the run command.StringrunAsUser()Get the runAsUser property: Specifies the user account on the VM when executing the run command.VirtualMachineRunCommandScriptSourcesource()Get the source property: The source of the run command script.IntegertimeoutInSeconds()Get the timeoutInSeconds property: The timeout in seconds to execute the run command.voidvalidate()Validates the instance.VirtualMachineRunCommandInnerwithAsyncExecution(Boolean asyncExecution)Set the asyncExecution property: Optional.VirtualMachineRunCommandInnerwithErrorBlobUri(String errorBlobUri)Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.VirtualMachineRunCommandInnerwithLocation(String location)VirtualMachineRunCommandInnerwithOutputBlobUri(String outputBlobUri)Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.VirtualMachineRunCommandInnerwithParameters(List<RunCommandInputParameter> parameters)Set the parameters property: The parameters used by the script.VirtualMachineRunCommandInnerwithProtectedParameters(List<RunCommandInputParameter> protectedParameters)Set the protectedParameters property: The parameters used by the script.VirtualMachineRunCommandInnerwithRunAsPassword(String runAsPassword)Set the runAsPassword property: Specifies the user account password on the VM when executing the run command.VirtualMachineRunCommandInnerwithRunAsUser(String runAsUser)Set the runAsUser property: Specifies the user account on the VM when executing the run command.VirtualMachineRunCommandInnerwithSource(VirtualMachineRunCommandScriptSource source)Set the source property: The source of the run command script.VirtualMachineRunCommandInnerwithTags(Map<String,String> tags)VirtualMachineRunCommandInnerwithTimeoutInSeconds(Integer timeoutInSeconds)Set the timeoutInSeconds property: The timeout in seconds to execute the run command.
-
-
-
Method Detail
-
withLocation
public VirtualMachineRunCommandInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public VirtualMachineRunCommandInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
source
public VirtualMachineRunCommandScriptSource source()
Get the source property: The source of the run command script.- Returns:
- the source value.
-
withSource
public VirtualMachineRunCommandInner withSource(VirtualMachineRunCommandScriptSource source)
Set the source property: The source of the run command script.- Parameters:
source- the source value to set.- Returns:
- the VirtualMachineRunCommandInner object itself.
-
parameters
public List<RunCommandInputParameter> parameters()
Get the parameters property: The parameters used by the script.- Returns:
- the parameters value.
-
withParameters
public VirtualMachineRunCommandInner withParameters(List<RunCommandInputParameter> parameters)
Set the parameters property: The parameters used by the script.- Parameters:
parameters- the parameters value to set.- Returns:
- the VirtualMachineRunCommandInner object itself.
-
protectedParameters
public List<RunCommandInputParameter> protectedParameters()
Get the protectedParameters property: The parameters used by the script.- Returns:
- the protectedParameters value.
-
withProtectedParameters
public VirtualMachineRunCommandInner withProtectedParameters(List<RunCommandInputParameter> protectedParameters)
Set the protectedParameters property: The parameters used by the script.- Parameters:
protectedParameters- the protectedParameters value to set.- Returns:
- the VirtualMachineRunCommandInner object itself.
-
asyncExecution
public Boolean 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
public VirtualMachineRunCommandInner withAsyncExecution(Boolean asyncExecution)
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 VirtualMachineRunCommandInner object itself.
-
runAsUser
public String runAsUser()
Get the runAsUser property: Specifies the user account on the VM when executing the run command.- Returns:
- the runAsUser value.
-
withRunAsUser
public VirtualMachineRunCommandInner withRunAsUser(String runAsUser)
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 VirtualMachineRunCommandInner object itself.
-
runAsPassword
public String runAsPassword()
Get the runAsPassword property: Specifies the user account password on the VM when executing the run command.- Returns:
- the runAsPassword value.
-
withRunAsPassword
public VirtualMachineRunCommandInner withRunAsPassword(String runAsPassword)
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 VirtualMachineRunCommandInner object itself.
-
timeoutInSeconds
public Integer timeoutInSeconds()
Get the timeoutInSeconds property: The timeout in seconds to execute the run command.- Returns:
- the timeoutInSeconds value.
-
withTimeoutInSeconds
public VirtualMachineRunCommandInner withTimeoutInSeconds(Integer timeoutInSeconds)
Set the timeoutInSeconds property: The timeout in seconds to execute the run command.- Parameters:
timeoutInSeconds- the timeoutInSeconds value to set.- Returns:
- the VirtualMachineRunCommandInner object itself.
-
outputBlobUri
public String outputBlobUri()
Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded.- Returns:
- the outputBlobUri value.
-
withOutputBlobUri
public VirtualMachineRunCommandInner withOutputBlobUri(String outputBlobUri)
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 VirtualMachineRunCommandInner object itself.
-
errorBlobUri
public String errorBlobUri()
Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded.- Returns:
- the errorBlobUri value.
-
withErrorBlobUri
public VirtualMachineRunCommandInner withErrorBlobUri(String errorBlobUri)
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 VirtualMachineRunCommandInner object itself.
-
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
public VirtualMachineRunCommandInstanceView 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.
-
-