public static final class RunCommandRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RunCommandRequest |
build() |
RunCommandRequest.Builder |
commandContent(String commandContent)
The content of the command.
|
RunCommandRequest.Builder |
contentEncoding(String contentEncoding)
The encoding mode of the command content.
|
RunCommandRequest.Builder |
desktopId(List<String> desktopId)
The ID of cloud desktop N.
|
RunCommandRequest.Builder |
endUserId(String endUserId)
The ID of the end user.
|
RunCommandRequest.Builder |
regionId(String regionId)
The ID of the region.
|
RunCommandRequest.Builder |
timeout(Long timeout)
The timeout period for the command to run.
|
RunCommandRequest.Builder |
type(String type)
The language of the O\&M command.
|
public RunCommandRequest.Builder commandContent(String commandContent)
The Base64-encoded command content cannot exceed 16 KB in size. > If the command content is Base64-encoded, you must set the ContentEncoding parameter to Base64.
public RunCommandRequest.Builder contentEncoding(String contentEncoding)
* PlainText: The command content is not encoded. * Base64: The command content is Base64-encoded. Default value: PlainText. If the specified value of this parameter is invalid, PlainText is used by default.
public RunCommandRequest.Builder desktopId(List<String> desktopId)
If multiple cloud desktops are specified and the command execution succeeds on at least one of the cloud desktops, the operation is considered successful. If multiple cloud desktops are specified and the command execution fails on all the cloud desktops, verify the value of the parameter and try again.
public RunCommandRequest.Builder endUserId(String endUserId)
public RunCommandRequest.Builder regionId(String regionId)
public RunCommandRequest.Builder timeout(Long timeout)
A timeout error occurs if the command cannot be run because the process slows down or because a specific module or the Cloud Assistant client does not exist. When a timeout error occurs, the command process is forcibly terminated.
public RunCommandRequest.Builder type(String type)
* RunBatScript * RunPowerShellScript
public RunCommandRequest build()
Copyright © 2024. All rights reserved.