com.aliyun.sdk.service.ecs20140526.models.DescribeSendFileResultsResponseBody Maven / Gradle / Ivy
// 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 DescribeSendFileResultsResponseBody} extends {@link TeaModel}
*
* DescribeSendFileResultsResponseBody
*/
public class DescribeSendFileResultsResponseBody extends TeaModel {
@NameInMap("Invocations")
private Invocations invocations;
@NameInMap("NextToken")
private String nextToken;
@NameInMap("PageNumber")
private Long pageNumber;
@NameInMap("PageSize")
private Long pageSize;
@NameInMap("RequestId")
private String requestId;
@NameInMap("TotalCount")
private Long totalCount;
private DescribeSendFileResultsResponseBody(Builder builder) {
this.invocations = builder.invocations;
this.nextToken = builder.nextToken;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSendFileResultsResponseBody create() {
return builder().build();
}
/**
* @return invocations
*/
public Invocations getInvocations() {
return this.invocations;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Invocations invocations;
private String nextToken;
private Long pageNumber;
private Long pageSize;
private String requestId;
private Long totalCount;
/**
* The queried file sending records.
*/
public Builder invocations(Invocations invocations) {
this.invocations = invocations;
return this;
}
/**
* A pagination token. It can be used in the next request to retrieve a new page of results.
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* The page number.
*/
public Builder pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*/
public Builder pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of file sending tasks queried.
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeSendFileResultsResponseBody build() {
return new DescribeSendFileResultsResponseBody(this);
}
}
public static class InvokeInstance extends TeaModel {
@NameInMap("CreationTime")
private String creationTime;
@NameInMap("ErrorCode")
private String errorCode;
@NameInMap("ErrorInfo")
private String errorInfo;
@NameInMap("FinishTime")
private String finishTime;
@NameInMap("InstanceId")
private String instanceId;
@NameInMap("InvocationStatus")
private String invocationStatus;
@NameInMap("StartTime")
private String startTime;
@NameInMap("UpdateTime")
private String updateTime;
private InvokeInstance(Builder builder) {
this.creationTime = builder.creationTime;
this.errorCode = builder.errorCode;
this.errorInfo = builder.errorInfo;
this.finishTime = builder.finishTime;
this.instanceId = builder.instanceId;
this.invocationStatus = builder.invocationStatus;
this.startTime = builder.startTime;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static InvokeInstance create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorInfo
*/
public String getErrorInfo() {
return this.errorInfo;
}
/**
* @return finishTime
*/
public String getFinishTime() {
return this.finishTime;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return invocationStatus
*/
public String getInvocationStatus() {
return this.invocationStatus;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String creationTime;
private String errorCode;
private String errorInfo;
private String finishTime;
private String instanceId;
private String invocationStatus;
private String startTime;
private String updateTime;
/**
* The time when the file sending task was created.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The error code returned when the file failed to be sent to the instance. Valid values:
*
*
* * Null: The file is sent to the instance.
* * InstanceNotExists: The instance does not exist or has been released.
* * InstanceReleased: The instance is released while the file is being sent.
* * InstanceNotRunning: The instance is not running when the file sending task is being created.
* * AccountNotExists: The specified account does not exist.
* * ClientNotRunning: Cloud Assistant Agent is not running.
* * ClientNotResponse: Cloud Assistant Agent does not respond.
* * ClientIsUpgrading: Cloud Assistant Agent is being upgraded.
* * ClientNeedUpgrade: Cloud Assistant Agent needs to be upgraded.
* * DeliveryTimeout: The file sending task timed out.
* * FileCreateFail: The file failed to be created.
* * FileAlreadyExists: A file with the same name already exists in the specified directory.
* * FileContentInvalid: The file content is invalid.
* * FileNameInvalid: The file name is invalid.
* * FilePathInvalid: The specified directory is invalid.
* * FileAuthorityInvalid: The specified permissions on the file are invalid.
* * UserGroupNotExists: The specified user group does not exist.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* The error message returned when the file failed to be sent or the file sending task failed to be executed. Valid values:
*
*
* * Null: The file is sent to the instance.
* * the specified instance does not exists
* * the specified instance has been released
* * the instance is not running when create task
* * the specified account does not exists
* * the aliyun service is not running on the instance
* * the aliyun service in the instance does not response
* * the aliyun service in the instance is upgrading now
* * the aliyun service in the instance need upgrade
* * the command delivery has been timeout
* * the file creation is failed due to unknown error
* * the authority of file is invalid
* * File content is empty
* * the content of file is invalid
* * File already exists
* * File name is invalid
* * File path is invalid
* * Owner not exists
* * Group not exists
* * Mode is invalid
*/
public Builder errorInfo(String errorInfo) {
this.errorInfo = errorInfo;
return this;
}
/**
* The time when the file sending task was completed.
*/
public Builder finishTime(String finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* The ID of the instance
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The state of the file sending task.
*/
public Builder invocationStatus(String invocationStatus) {
this.invocationStatus = invocationStatus;
return this;
}
/**
* The time when the file sending task started to be executed on the instance.
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* The time when the task status was updated.
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public InvokeInstance build() {
return new InvokeInstance(this);
}
}
}
public static class InvokeInstances extends TeaModel {
@NameInMap("InvokeInstance")
private java.util.List < InvokeInstance> invokeInstance;
private InvokeInstances(Builder builder) {
this.invokeInstance = builder.invokeInstance;
}
public static Builder builder() {
return new Builder();
}
public static InvokeInstances create() {
return builder().build();
}
/**
* @return invokeInstance
*/
public java.util.List < InvokeInstance> getInvokeInstance() {
return this.invokeInstance;
}
public static final class Builder {
private java.util.List < InvokeInstance> invokeInstance;
/**
* InvokeInstance.
*/
public Builder invokeInstance(java.util.List < InvokeInstance> invokeInstance) {
this.invokeInstance = invokeInstance;
return this;
}
public InvokeInstances build() {
return new InvokeInstances(this);
}
}
}
public static class Tag extends TeaModel {
@NameInMap("TagKey")
private String tagKey;
@NameInMap("TagValue")
private String tagValue;
private Tag(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String tagKey;
private String tagValue;
/**
* The tag key of the file sending task.
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* The tag value of the file sending task.
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
public static class Tags extends TeaModel {
@NameInMap("Tag")
private java.util.List < Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List < Tag> tag;
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
public static class Invocation extends TeaModel {
@NameInMap("Content")
private String content;
@NameInMap("ContentType")
private String contentType;
@NameInMap("CreationTime")
private String creationTime;
@NameInMap("Description")
private String description;
@NameInMap("FileGroup")
private String fileGroup;
@NameInMap("FileMode")
private String fileMode;
@NameInMap("FileOwner")
private String fileOwner;
@NameInMap("InvocationStatus")
private String invocationStatus;
@NameInMap("InvokeId")
private String invokeId;
@NameInMap("InvokeInstances")
private InvokeInstances invokeInstances;
@NameInMap("Name")
private String name;
@NameInMap("Overwrite")
private String overwrite;
@NameInMap("Tags")
private Tags tags;
@NameInMap("TargetDir")
private String targetDir;
@NameInMap("VmCount")
private Integer vmCount;
private Invocation(Builder builder) {
this.content = builder.content;
this.contentType = builder.contentType;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.fileGroup = builder.fileGroup;
this.fileMode = builder.fileMode;
this.fileOwner = builder.fileOwner;
this.invocationStatus = builder.invocationStatus;
this.invokeId = builder.invokeId;
this.invokeInstances = builder.invokeInstances;
this.name = builder.name;
this.overwrite = builder.overwrite;
this.tags = builder.tags;
this.targetDir = builder.targetDir;
this.vmCount = builder.vmCount;
}
public static Builder builder() {
return new Builder();
}
public static Invocation create() {
return builder().build();
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return contentType
*/
public String getContentType() {
return this.contentType;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fileGroup
*/
public String getFileGroup() {
return this.fileGroup;
}
/**
* @return fileMode
*/
public String getFileMode() {
return this.fileMode;
}
/**
* @return fileOwner
*/
public String getFileOwner() {
return this.fileOwner;
}
/**
* @return invocationStatus
*/
public String getInvocationStatus() {
return this.invocationStatus;
}
/**
* @return invokeId
*/
public String getInvokeId() {
return this.invokeId;
}
/**
* @return invokeInstances
*/
public InvokeInstances getInvokeInstances() {
return this.invokeInstances;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return overwrite
*/
public String getOverwrite() {
return this.overwrite;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return targetDir
*/
public String getTargetDir() {
return this.targetDir;
}
/**
* @return vmCount
*/
public Integer getVmCount() {
return this.vmCount;
}
public static final class Builder {
private String content;
private String contentType;
private String creationTime;
private String description;
private String fileGroup;
private String fileMode;
private String fileOwner;
private String invocationStatus;
private String invokeId;
private InvokeInstances invokeInstances;
private String name;
private String overwrite;
private Tags tags;
private String targetDir;
private Integer vmCount;
/**
* The content of the file.
*/
public Builder content(String content) {
this.content = content;
return this;
}
/**
* The content type of the file. Valid values:
*
*
* * PlainText
* * Base64
*/
public Builder contentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* The time when the file sending task was created.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The description of the file.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The user group of the file.
*/
public Builder fileGroup(String fileGroup) {
this.fileGroup = fileGroup;
return this;
}
/**
* The permissions on the file.
*/
public Builder fileMode(String fileMode) {
this.fileMode = fileMode;
return this;
}
/**
* The owner of the file.
*/
public Builder fileOwner(String fileOwner) {
this.fileOwner = fileOwner;
return this;
}
/**
* The overall sending state of the file. The overall sending state of the file depends on its sending state on all the destination instances. Valid values:
*
*
* * Pending: The file is being verified or sent.
* * Invalid: The file is invalid.
* * Running: The file is being sent to the instances.
* * Aborted: The file failed to be sent to the instances. To send a file to an instance, make sure that the instance is in the Running state and the file can be sent within 1 minute.
* * Success: The file is sent.
* * Failed: The file failed to be created on the instances.
* * Error: An error occurs and interrupts the file sending task.
* * Timeout: The file sending task times out.
* * Cancelled: The file sending task is canceled.
* * Stopping: The file sending task is being stopped.
* * Terminated: The file sending task is terminated.
*/
public Builder invocationStatus(String invocationStatus) {
this.invocationStatus = invocationStatus;
return this;
}
/**
* The ID of the file sending task.
*/
public Builder invokeId(String invokeId) {
this.invokeId = invokeId;
return this;
}
/**
* The destination instances.
*/
public Builder invokeInstances(InvokeInstances invokeInstances) {
this.invokeInstances = invokeInstances;
return this;
}
/**
* The name of the file.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Indicates whether a file in the destination directory is overwritten if the file has the same name as the sent file.
*/
public Builder overwrite(String overwrite) {
this.overwrite = overwrite;
return this;
}
/**
* The tags of the file sending task.
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* The destination directory.
*/
public Builder targetDir(String targetDir) {
this.targetDir = targetDir;
return this;
}
/**
* The number of instances to which the file was sent.
*/
public Builder vmCount(Integer vmCount) {
this.vmCount = vmCount;
return this;
}
public Invocation build() {
return new Invocation(this);
}
}
}
public static class Invocations extends TeaModel {
@NameInMap("Invocation")
private java.util.List < Invocation> invocation;
private Invocations(Builder builder) {
this.invocation = builder.invocation;
}
public static Builder builder() {
return new Builder();
}
public static Invocations create() {
return builder().build();
}
/**
* @return invocation
*/
public java.util.List < Invocation> getInvocation() {
return this.invocation;
}
public static final class Builder {
private java.util.List < Invocation> invocation;
/**
* Invocation.
*/
public Builder invocation(java.util.List < Invocation> invocation) {
this.invocation = invocation;
return this;
}
public Invocations build() {
return new Invocations(this);
}
}
}
}