com.aliyun.sdk.service.polardb20170801.models.DescribeTasksResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-polardb20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* DescribeTasksResponseBody
*/
public class DescribeTasksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterId")
private String DBClusterId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Tasks")
private Tasks tasks;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeTasksResponseBody(Builder builder) {
this.DBClusterId = builder.DBClusterId;
this.endTime = builder.endTime;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.startTime = builder.startTime;
this.tasks = builder.tasks;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTasksResponseBody create() {
return builder().build();
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return tasks
*/
public Tasks getTasks() {
return this.tasks;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBClusterId;
private String endTime;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private String startTime;
private Tasks tasks;
private Integer totalRecordCount;
/**
* The ID of the cluster for which the task was created.
*
* example:
* pc-***************
*/
public Builder DBClusterId(String DBClusterId) {
this.DBClusterId = DBClusterId;
return this;
}
/**
* The end time of the query.
*
* example:
* 2020-12-02T03:00Z
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* The page number of the page returned.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries returned per page.
*
* example:
* 30
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* The request ID.
*
* example:
* 4352AD99-9FF5-41A6-A319-068089******
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The start time of the query.
*
* example:
* 2020-11-30T00:00Z
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* The details of the task.
*/
public Builder tasks(Tasks tasks) {
this.tasks = tasks;
return this;
}
/**
* The total number of entries returned.
*
* example:
* 1
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeTasksResponseBody build() {
return new DescribeTasksResponseBody(this);
}
}
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* DescribeTasksResponseBody
*/
public static class Task extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginTime")
private String beginTime;
@com.aliyun.core.annotation.NameInMap("CurrentStepName")
private String currentStepName;
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("ExpectedFinishTime")
private String expectedFinishTime;
@com.aliyun.core.annotation.NameInMap("FinishTime")
private String finishTime;
@com.aliyun.core.annotation.NameInMap("Progress")
private Integer progress;
@com.aliyun.core.annotation.NameInMap("ProgressInfo")
private String progressInfo;
@com.aliyun.core.annotation.NameInMap("Remain")
private Integer remain;
@com.aliyun.core.annotation.NameInMap("StepProgressInfo")
private String stepProgressInfo;
@com.aliyun.core.annotation.NameInMap("StepsInfo")
private String stepsInfo;
@com.aliyun.core.annotation.NameInMap("TaskAction")
private String taskAction;
@com.aliyun.core.annotation.NameInMap("TaskErrorCode")
private String taskErrorCode;
@com.aliyun.core.annotation.NameInMap("TaskErrorMessage")
private String taskErrorMessage;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private Task(Builder builder) {
this.beginTime = builder.beginTime;
this.currentStepName = builder.currentStepName;
this.DBName = builder.DBName;
this.expectedFinishTime = builder.expectedFinishTime;
this.finishTime = builder.finishTime;
this.progress = builder.progress;
this.progressInfo = builder.progressInfo;
this.remain = builder.remain;
this.stepProgressInfo = builder.stepProgressInfo;
this.stepsInfo = builder.stepsInfo;
this.taskAction = builder.taskAction;
this.taskErrorCode = builder.taskErrorCode;
this.taskErrorMessage = builder.taskErrorMessage;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static Task create() {
return builder().build();
}
/**
* @return beginTime
*/
public String getBeginTime() {
return this.beginTime;
}
/**
* @return currentStepName
*/
public String getCurrentStepName() {
return this.currentStepName;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return expectedFinishTime
*/
public String getExpectedFinishTime() {
return this.expectedFinishTime;
}
/**
* @return finishTime
*/
public String getFinishTime() {
return this.finishTime;
}
/**
* @return progress
*/
public Integer getProgress() {
return this.progress;
}
/**
* @return progressInfo
*/
public String getProgressInfo() {
return this.progressInfo;
}
/**
* @return remain
*/
public Integer getRemain() {
return this.remain;
}
/**
* @return stepProgressInfo
*/
public String getStepProgressInfo() {
return this.stepProgressInfo;
}
/**
* @return stepsInfo
*/
public String getStepsInfo() {
return this.stepsInfo;
}
/**
* @return taskAction
*/
public String getTaskAction() {
return this.taskAction;
}
/**
* @return taskErrorCode
*/
public String getTaskErrorCode() {
return this.taskErrorCode;
}
/**
* @return taskErrorMessage
*/
public String getTaskErrorMessage() {
return this.taskErrorMessage;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String beginTime;
private String currentStepName;
private String DBName;
private String expectedFinishTime;
private String finishTime;
private Integer progress;
private String progressInfo;
private Integer remain;
private String stepProgressInfo;
private String stepsInfo;
private String taskAction;
private String taskErrorCode;
private String taskErrorMessage;
private String taskId;
/**
* The time when the task was started. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ
format. The time is displayed in UTC.
*
* example:
* 2020-12-02T02:39:15Z
*/
public Builder beginTime(String beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* The name of the current step.
*
* example:
* create_instance
*/
public Builder currentStepName(String currentStepName) {
this.currentStepName = currentStepName;
return this;
}
/**
* The database name.
*
* This parameter is returned for only the tasks that involve database operations.
*
*
* example:
* test
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* The estimated end time of the task. In most cases, this parameter is empty.
*
* example:
* null
*/
public Builder expectedFinishTime(String expectedFinishTime) {
this.expectedFinishTime = expectedFinishTime;
return this;
}
/**
* The time when the task was completed. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ
format. The time is displayed in UTC.
*
* example:
* 2020-12-02T02:40:15Z
*/
public Builder finishTime(String finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* The progress of the task in percentage.
*
* example:
* 100
*/
public Builder progress(Integer progress) {
this.progress = progress;
return this;
}
/**
* The description of the task progress. If no progress description is provided for the task, this parameter is empty.
*
* example:
* null
*/
public Builder progressInfo(String progressInfo) {
this.progressInfo = progressInfo;
return this;
}
/**
* The estimated remaining duration of the task. Unit: seconds.
*
* example:
* 1767
*/
public Builder remain(Integer remain) {
this.remain = remain;
return this;
}
/**
* The progress of the subtasks. For example, the value 1/4
indicates that the task consists of four subtasks and the first subtask is in progress.
*
* example:
* 1/4
*/
public Builder stepProgressInfo(String stepProgressInfo) {
this.stepProgressInfo = stepProgressInfo;
return this;
}
/**
* The details of the subtasks.
*
* example:
* [{"remain":0,"name":"init_task","progress":100},{"remain":1764,"name":"create_instance","progress":0},{"remain":1,"name":"init_cluster","progress":0},{"remain":2,"name":"create_backup","progress":0}]
*/
public Builder stepsInfo(String stepsInfo) {
this.stepsInfo = stepsInfo;
return this;
}
/**
* The API operation that is used by the task. Example: CreateDBInstance
.
*
* example:
* CreateDBInstance
*/
public Builder taskAction(String taskAction) {
this.taskAction = taskAction;
return this;
}
/**
* The error code that is returned when an error occurs.
*
* This parameter is returned only when the task is in the Stop state.
*
*
* example:
* null
*/
public Builder taskErrorCode(String taskErrorCode) {
this.taskErrorCode = taskErrorCode;
return this;
}
/**
* The error message that is returned when an error occurs.
*
* This parameter is returned only when the task is in the Stop state.
*
*
* example:
* null
*/
public Builder taskErrorMessage(String taskErrorMessage) {
this.taskErrorMessage = taskErrorMessage;
return this;
}
/**
* The ID of the task.
*
* example:
* 111111111
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public Task build() {
return new Task(this);
}
}
}
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* DescribeTasksResponseBody
*/
public static class Tasks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Task")
private java.util.List task;
private Tasks(Builder builder) {
this.task = builder.task;
}
public static Builder builder() {
return new Builder();
}
public static Tasks create() {
return builder().build();
}
/**
* @return task
*/
public java.util.List getTask() {
return this.task;
}
public static final class Builder {
private java.util.List task;
/**
* Task.
*/
public Builder task(java.util.List task) {
this.task = task;
return this;
}
public Tasks build() {
return new Tasks(this);
}
}
}
}