All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeCommandsRequest Maven / Gradle / Ivy

There is a newer version: 5.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeCommandsRequest} extends {@link RequestModel}
 *
 * 

DescribeCommandsRequest

*/ public class DescribeCommandsRequest extends Request { @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("CommandId") private String commandId; @Query @NameInMap("ContentEncoding") private String contentEncoding; @Query @NameInMap("Description") private String description; @Query @NameInMap("Latest") private Boolean latest; @Query @NameInMap("MaxResults") private Integer maxResults; @Query @NameInMap("Name") private String name; @Query @NameInMap("NextToken") private String nextToken; @Query @NameInMap("OwnerAccount") private String ownerAccount; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("PageNumber") private Long pageNumber; @Query @NameInMap("PageSize") private Long pageSize; @Query @NameInMap("Provider") private String provider; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceGroupId") private String resourceGroupId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("Tag") private java.util.List < Tag> tag; @Query @NameInMap("Type") private String type; private DescribeCommandsRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.commandId = builder.commandId; this.contentEncoding = builder.contentEncoding; this.description = builder.description; this.latest = builder.latest; this.maxResults = builder.maxResults; this.name = builder.name; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.provider = builder.provider; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeCommandsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return contentEncoding */ public String getContentEncoding() { return this.contentEncoding; } /** * @return description */ public String getDescription() { return this.description; } /** * @return latest */ public Boolean getLatest() { return this.latest; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return name */ public String getName() { return this.name; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String commandId; private String contentEncoding; private String description; private Boolean latest; private Integer maxResults; private String name; private String nextToken; private String ownerAccount; private Long ownerId; private Long pageNumber; private Long pageSize; private String provider; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List < Tag> tag; private String type; private Builder() { super(); } private Builder(DescribeCommandsRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.commandId = request.commandId; this.contentEncoding = request.contentEncoding; this.description = request.description; this.latest = request.latest; this.maxResults = request.maxResults; this.name = request.name; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.provider = request.provider; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; this.type = request.type; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * The ID of the command. */ public Builder commandId(String commandId) { this.putQueryParameter("CommandId", commandId); this.commandId = commandId; return this; } /** * The encoding mode of the `CommandContent` and `Output` values in the response. Valid values: *

* * * PlainText: returns the original command content and command output. * * Base64: returns the Base64-encoded command content and command output. * * Default value: Base64. */ public Builder contentEncoding(String contentEncoding) { this.putQueryParameter("ContentEncoding", contentEncoding); this.contentEncoding = contentEncoding; return this; } /** * The description of the common command. This parameter takes effect and fuzzy search is supported by default only when `Provider` is specified. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * Specifies whether to query only the latest version of common commands when common commands are queried. This parameter does not affect the query for private commands. *

* * * true: queries only the latest version of common commands. * * false: queries all versions of common commands. * * Default value: false. */ public Builder latest(Boolean latest) { this.putQueryParameter("Latest", latest); this.latest = latest; return this; } /** * The maximum number of entries per page. *

* * Valid values: 1 to 50. * * Default value: 10. */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * The name of the command. If you specify `Provider`, fuzzy search is supported by default. */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The page number. *

* * Pages start from page 1. * * Default value: 1. */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries per page. *

* * Valid values: 1 to 50. * * Default value: 10. */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The provider of the common command. Take note of the following items: *

* * * 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 Builder provider(String provider) { this.putQueryParameter("Provider", provider); this.provider = provider; return this; } /** * The region ID of the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the resource group to which the command belongs. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * The list of tags. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * The type of the command. Valid values: *

* * * RunBatScript: batch command, applicable to Windows instances * * RunPowerShellScript: PowerShell command, applicable to Windows instances * * RunShellScript: shell command, applicable to Linux instances */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeCommandsRequest build() { return new DescribeCommandsRequest(this); } } public static class Tag extends TeaModel { @NameInMap("Key") private String key; @NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * The key of tag N of the command. Valid values of N: 1 to 20. The tag key cannot be an empty string. *

* * If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags, call the [ListTagResources](~~110425~~) operation. * * The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. */ public Builder key(String key) { this.key = key; return this; } /** * The value of tag N of the command. Valid values of N: 1 to 20. The tag value can be an empty string. *

* * It can be up to 128 characters in length and cannot contain `http://` or `https://`. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy