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

com.aliyun.sdk.service.gpdb20160503.models.DescribeDataBackupsRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;

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

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

DescribeDataBackupsRequest

*/ public class DescribeDataBackupsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackupId") private String backupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackupMode") private String backupMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackupStatus") private String backupStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String DBInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DataType") private String dataType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") @com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1) private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private DescribeDataBackupsRequest(Builder builder) { super(builder); this.backupId = builder.backupId; this.backupMode = builder.backupMode; this.backupStatus = builder.backupStatus; this.DBInstanceId = builder.DBInstanceId; this.dataType = builder.dataType; this.endTime = builder.endTime; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeDataBackupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return backupId */ public String getBackupId() { return this.backupId; } /** * @return backupMode */ public String getBackupMode() { return this.backupMode; } /** * @return backupStatus */ public String getBackupStatus() { return this.backupStatus; } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return dataType */ public String getDataType() { return this.dataType; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder { private String backupId; private String backupMode; private String backupStatus; private String DBInstanceId; private String dataType; private String endTime; private Integer pageNumber; private Integer pageSize; private String startTime; private Builder() { super(); } private Builder(DescribeDataBackupsRequest request) { super(request); this.backupId = request.backupId; this.backupMode = request.backupMode; this.backupStatus = request.backupStatus; this.DBInstanceId = request.DBInstanceId; this.dataType = request.dataType; this.endTime = request.endTime; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.startTime = request.startTime; } /** * The ID of the backup set. If you specify BackupId, the details of the backup set are returned. *

* * > You can call the [DescribeDataBackups](~~210093~~) operation to query the information about all backup sets of an instance, including backup set IDs. */ public Builder backupId(String backupId) { this.putQueryParameter("BackupId", backupId); this.backupId = backupId; return this; } /** * The backup mode. Valid values: *

* * * Automated * * Manual * * If you do not specify this parameter, all backup sets are returned. */ public Builder backupMode(String backupMode) { this.putQueryParameter("BackupMode", backupMode); this.backupMode = backupMode; return this; } /** * The state of the backup set. Valid values: *

* * * Success * * Failed * * If you do not specify this parameter, all backup sets are returned. */ public Builder backupStatus(String backupStatus) { this.putQueryParameter("BackupStatus", backupStatus); this.backupStatus = backupStatus; return this; } /** * The instance ID. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * The backup type. Valid values: *

* * * **DATA**: full backup. * * **RESTOREPOI**: point-in-time recovery backup. * * If you do not specify this parameter, the backup sets of full backup are returned. */ public Builder dataType(String dataType) { this.putQueryParameter("DataType", dataType); this.dataType = dataType; return this; } /** * The end of the time range to query. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * The page number. Pages start from page 1. Default value: 1 */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries per page. Valid values: *

* * * 30 * * 50 * * 100 * * Default value: 30. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeDataBackupsRequest build() { return new DescribeDataBackupsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy