public static final class DescribeCommandsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeCommandsRequest |
build() |
DescribeCommandsRequest.Builder |
commandId(String commandId)
The ID of the command.
|
DescribeCommandsRequest.Builder |
contentEncoding(String contentEncoding)
The encoding mode of the `CommandContent` and `Output` values in the response.
|
DescribeCommandsRequest.Builder |
description(String description)
The description of the command.
|
DescribeCommandsRequest.Builder |
latest(Boolean latest)
Specifies whether to query only the latest version of common commands when common commands are queried.
|
DescribeCommandsRequest.Builder |
maxResults(Integer maxResults)
The maximum number of entries per page.
|
DescribeCommandsRequest.Builder |
name(String name)
The name of the command.
|
DescribeCommandsRequest.Builder |
nextToken(String nextToken)
The pagination token that is used in the next request to retrieve a new page of results.
|
DescribeCommandsRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DescribeCommandsRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DescribeCommandsRequest.Builder |
pageNumber(Long pageNumber)
The page number.
|
DescribeCommandsRequest.Builder |
pageSize(Long pageSize)
The number of entries per page.
|
DescribeCommandsRequest.Builder |
provider(String provider)
The provider of the common command.
|
DescribeCommandsRequest.Builder |
regionId(String regionId)
The region ID of the command.
|
DescribeCommandsRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the command belongs.
|
DescribeCommandsRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DescribeCommandsRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DescribeCommandsRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DescribeCommandsRequest.Builder |
tag(List<DescribeCommandsRequest.Tag> tag)
The list of tags.
|
DescribeCommandsRequest.Builder |
type(String type)
The type of the command.
|
public DescribeCommandsRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeCommandsRequest.Builder commandId(String commandId)
public DescribeCommandsRequest.Builder contentEncoding(String contentEncoding)
* PlainText: returns the original command content and command output. * Base64: returns the Base64-encoded command content and command output. Default value: Base64.
public DescribeCommandsRequest.Builder description(String description)
If you specify `Provider`, fuzzy search is supported by default. If you do not specify `Provider`, prefix-based fuzzy search is supported. For example, if you specify `test*`, all commands whose descriptions start with `test` are queried.
public DescribeCommandsRequest.Builder latest(Boolean latest)
* true: queries only the latest version of common commands. * false: queries all versions of common commands. Default value: false.
public DescribeCommandsRequest.Builder maxResults(Integer maxResults)
Valid values: 1 to 50. Default value: 10.
public DescribeCommandsRequest.Builder name(String name)
If you specify `Provider`, fuzzy search is supported by default. If you do not specify `Provider`, prefix-based fuzzy search is supported. For example, if you specify `command*`, all commands whose names start with `command` are queried.
public DescribeCommandsRequest.Builder nextToken(String nextToken)
public DescribeCommandsRequest.Builder ownerAccount(String ownerAccount)
public DescribeCommandsRequest.Builder ownerId(Long ownerId)
public DescribeCommandsRequest.Builder pageNumber(Long pageNumber)
Pages start from page 1. Default value: 1.
public DescribeCommandsRequest.Builder pageSize(Long pageSize)
Valid values: 1 to 50. Default value: 10.
public DescribeCommandsRequest.Builder provider(String provider)
* If you do not specify this parameter, all the commands that you created are queried. * If you set this parameter to `AlibabaCloud`, all the common commands provided by Alibaba Cloud are queried. * If you set this parameter to a specific provider, all the common commands provided by the provider are queried. Examples: * If you set `Provider` to AlibabaCloud.ECS.GuestOS, all the common commands provided by `AlibabaCloud.ECS.GuestOS` are queried. * If you set `Provider` to AlibabaCloud.ECS.GuestOSDiagnose, all the common commands provided by `AlibabaCloud.ECS.GuestOSDiagnose` are queried.
public DescribeCommandsRequest.Builder regionId(String regionId)
public DescribeCommandsRequest.Builder resourceGroupId(String resourceGroupId)
public DescribeCommandsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeCommandsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeCommandsRequest.Builder tag(List<DescribeCommandsRequest.Tag> tag)
public DescribeCommandsRequest.Builder type(String type)
* RunBatScript: batch command, applicable to Windows instances * RunPowerShellScript: PowerShell command, applicable to Windows instances * RunShellScript: shell command, applicable to Linux instances
public DescribeCommandsRequest build()
Copyright © 2024. All rights reserved.