
com.aliyun.sdk.service.polardb20170801.models.DescribePendingMaintenanceActionResponseBody 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 darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribePendingMaintenanceActionResponseBody} extends {@link TeaModel}
*
* DescribePendingMaintenanceActionResponseBody
*/
public class DescribePendingMaintenanceActionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List < Items> items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribePendingMaintenanceActionResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribePendingMaintenanceActionResponseBody create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List < Items> getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private java.util.List < Items> items;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalRecordCount;
/**
* Details about tasks.
*/
public Builder items(java.util.List < Items> items) {
this.items = items;
return this;
}
/**
* The page number.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of returned entries.
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribePendingMaintenanceActionResponseBody build() {
return new DescribePendingMaintenanceActionResponseBody(this);
}
}
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private String createdTime;
@com.aliyun.core.annotation.NameInMap("DBClusterId")
private String DBClusterId;
@com.aliyun.core.annotation.NameInMap("DBType")
private String DBType;
@com.aliyun.core.annotation.NameInMap("DBVersion")
private String DBVersion;
@com.aliyun.core.annotation.NameInMap("Deadline")
private String deadline;
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("PrepareInterval")
private String prepareInterval;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.NameInMap("ResultInfo")
private String resultInfo;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("SwitchTime")
private String switchTime;
@com.aliyun.core.annotation.NameInMap("TaskType")
private String taskType;
private Items(Builder builder) {
this.createdTime = builder.createdTime;
this.DBClusterId = builder.DBClusterId;
this.DBType = builder.DBType;
this.DBVersion = builder.DBVersion;
this.deadline = builder.deadline;
this.id = builder.id;
this.modifiedTime = builder.modifiedTime;
this.prepareInterval = builder.prepareInterval;
this.region = builder.region;
this.resultInfo = builder.resultInfo;
this.startTime = builder.startTime;
this.status = builder.status;
this.switchTime = builder.switchTime;
this.taskType = builder.taskType;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return DBType
*/
public String getDBType() {
return this.DBType;
}
/**
* @return DBVersion
*/
public String getDBVersion() {
return this.DBVersion;
}
/**
* @return deadline
*/
public String getDeadline() {
return this.deadline;
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return prepareInterval
*/
public String getPrepareInterval() {
return this.prepareInterval;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return resultInfo
*/
public String getResultInfo() {
return this.resultInfo;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return switchTime
*/
public String getSwitchTime() {
return this.switchTime;
}
/**
* @return taskType
*/
public String getTaskType() {
return this.taskType;
}
public static final class Builder {
private String createdTime;
private String DBClusterId;
private String DBType;
private String DBVersion;
private String deadline;
private Integer id;
private String modifiedTime;
private String prepareInterval;
private String region;
private String resultInfo;
private String startTime;
private Integer status;
private String switchTime;
private String taskType;
/**
* The time when the task was created. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
*/
public Builder createdTime(String createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* The ID of the cluster.
*/
public Builder DBClusterId(String DBClusterId) {
this.DBClusterId = DBClusterId;
return this;
}
/**
* The type of the database engine. Valid values:
*
*
* * **MySQL**
* * **PostgreSQL**
* * **Oracle**
*/
public Builder DBType(String DBType) {
this.DBType = DBType;
return this;
}
/**
* The version of the database engine.
*
*
* * Valid values for the MySQL database engine:
*
* * **5.6**
* * **5.7**
* * **8.0**
*
* * Valid values for the PostgreSQL database engine:
*
* * **11**
* * **14**
*
* * Valid value for the Oracle database engine: **11**
*/
public Builder DBVersion(String DBVersion) {
this.DBVersion = DBVersion;
return this;
}
/**
* The deadline before which the task can be executed. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
*/
public Builder deadline(String deadline) {
this.deadline = deadline;
return this;
}
/**
* The ID of the task.
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* The time when the parameter was modified. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* The preparation time that is required before the pending event is switched. The time follows the `HH:mm:ss` format.
*/
public Builder prepareInterval(String prepareInterval) {
this.prepareInterval = prepareInterval;
return this;
}
/**
* The region ID of the pending event.
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* The execution result of the task. Valid values:
*
*
* * **manualCancel**: The task is manually canceled.
* * **paramCheckNotPass**: The task fails to pass the parameter check.
*
* > This parameter is returned only when the value of the `Status` parameter is **6** or **7**. The value 6 indicates that the task is completed but fails to be executed. The value 7 indicates that the task is canceled.
*/
public Builder resultInfo(String resultInfo) {
this.resultInfo = resultInfo;
return this;
}
/**
* The time when the task was executed in the background. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* The status of the pending task.
*
*
* * If you set the `IsHistory` parameter to **0**, the status of the pending task is returned. Valid values:
*
* * **2**: The start time of the task is to be specified.
* * **3**: The task is pending.
* * **4**: The task is running. In this case, you cannot modify the execution time.
*
* * If you set the `IsHistory` parameter to **1**, the details of the historical tasks are returned. Valid values:
*
* * **5**: The task is completed and executed.
* * **6**: The task is completed but fails to be executed.
* * **7**: The task is canceled.
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* The time when the pending event was switched. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
*/
public Builder switchTime(String switchTime) {
this.switchTime = switchTime;
return this;
}
/**
* The type of the pending event.
*/
public Builder taskType(String taskType) {
this.taskType = taskType;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}