com.aliyun.sdk.service.ecs20140526.models.DescribeInvocationResultsRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeInvocationResultsRequest} extends {@link RequestModel}
*
* DescribeInvocationResultsRequest
*/
public class DescribeInvocationResultsRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("SourceRegionId")
private String sourceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CommandId")
private String commandId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContentEncoding")
private String contentEncoding;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeHistory")
private Boolean includeHistory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InvokeId")
private String invokeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InvokeRecordStatus")
private String invokeRecordStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List < Tag> tag;
private DescribeInvocationResultsRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.commandId = builder.commandId;
this.contentEncoding = builder.contentEncoding;
this.includeHistory = builder.includeHistory;
this.instanceId = builder.instanceId;
this.invokeId = builder.invokeId;
this.invokeRecordStatus = builder.invokeRecordStatus;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInvocationResultsRequest 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 includeHistory
*/
public Boolean getIncludeHistory() {
return this.includeHistory;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return invokeId
*/
public String getInvokeId() {
return this.invokeId;
}
/**
* @return invokeRecordStatus
*/
public String getInvokeRecordStatus() {
return this.invokeRecordStatus;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @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 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;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private String commandId;
private String contentEncoding;
private Boolean includeHistory;
private String instanceId;
private String invokeId;
private String invokeRecordStatus;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private Long pageNumber;
private Long pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List < Tag> tag;
private Builder() {
super();
}
private Builder(DescribeInvocationResultsRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.commandId = request.commandId;
this.contentEncoding = request.contentEncoding;
this.includeHistory = request.includeHistory;
this.instanceId = request.instanceId;
this.invokeId = request.invokeId;
this.invokeRecordStatus = request.invokeRecordStatus;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* The ID of the command.
*
* example:
* c-hz0jdfwcsr****
*/
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.
*
* example:
* PlainText
*/
public Builder contentEncoding(String contentEncoding) {
this.putQueryParameter("ContentEncoding", contentEncoding);
this.contentEncoding = contentEncoding;
return this;
}
/**
* Specifies whether to return the results of historical scheduled executions. Valid values:
*
* - true: returns the results of historical scheduled executions. If you set this parameter to true, you must set InvokeId to the ID of a task that is run on a schedule (RepeatMode set to Period) or on each system startup (RepeatMode set to EveryReboot).
* - false: does not return the results of historical scheduled executions.
*
* Default value: false.
*
* example:
* false
*/
public Builder includeHistory(Boolean includeHistory) {
this.putQueryParameter("IncludeHistory", includeHistory);
this.includeHistory = includeHistory;
return this;
}
/**
* The ID of the instance.
*
* example:
* i-bp1i7gg30r52z2em****
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The ID of the command task. You can call the DescribeInvocations operation to query the IDs of all command tasks.
*
* example:
* t-hz0jdfwd9f****
*/
public Builder invokeId(String invokeId) {
this.putQueryParameter("InvokeId", invokeId);
this.invokeId = invokeId;
return this;
}
/**
* The execution status of the command task. Valid values:
*
* Running:
*
* - Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running.
* - One-time task: If the command is being run on instances, the execution state is Running.
*
*
* Finished:
*
* - Scheduled task: The execution state can never be Finished.
* - One-time task: The execution is complete on all instances, or the execution is stopped on some instances and is complete on the other instances.
*
*
* Success:
*
* - One-time task: The execution is complete, and the exit code is 0.
* - Scheduled task: The last execution is complete, the exit code is 0, and the specified period ends.
*
*
* Failed:
*
* - Scheduled task: The execution state can never be Failed.
* - One-time task: The execution fails on all instances.
*
*
* PartialFailed:
*
* - Scheduled task: The execution state can never be PartialFailed.
* - One-time task: The execution fails on some instances.
*
*
* Stopped: The task is stopped.
*
* Stopping: The task is being stopped.
*
*
*
* example:
* Running
*/
public Builder invokeRecordStatus(String invokeRecordStatus) {
this.putQueryParameter("InvokeRecordStatus", invokeRecordStatus);
this.invokeRecordStatus = invokeRecordStatus;
return this;
}
/**
* The maximum number of entries per page.
* Valid values: 1 to 50.
* Default value: 10.
*
* example:
* 10
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.
*
* example:
* AAAAAdDWBF2
*/
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.
*
* example:
* 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.
*
* example:
* 1
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The region ID of the command. You can call the DescribeRegions operation to query the most recent region list.
* This parameter is required.
*
* example:
* cn-hangzhou
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The ID of the resource group. After you set this parameter, command execution results in the specified resource group are queried.
*
* example:
* rg-bp67acfmxazb4p****
*/
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 tags of the command task.
*/
public Builder tag(java.util.List < Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeInvocationResultsRequest build() {
return new DescribeInvocationResultsRequest(this);
}
}
/**
*
* {@link DescribeInvocationResultsRequest} extends {@link TeaModel}
*
* DescribeInvocationResultsRequest
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.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 task. 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 added, call the ListTagResources 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://
.
*
* example:
* TestKey
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The value of tag N of the command task. Valid values of N: 1 to 20. The tag value can be an empty string.
* The tag value can be up to 128 characters in length and cannot contain http://
or https://
.
*
* example:
* TestValue
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}