com.aliyun.sdk.service.polardb20170801.models.RestoreTableRequest 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 RestoreTableRequest} extends {@link RequestModel}
*
* RestoreTableRequest
*/
public class RestoreTableRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupId")
private String backupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBClusterId;
@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("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("RestoreTime")
private String restoreTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableMeta")
@com.aliyun.core.annotation.Validation(required = true)
private String tableMeta;
private RestoreTableRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.backupId = builder.backupId;
this.DBClusterId = builder.DBClusterId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTime = builder.restoreTime;
this.securityToken = builder.securityToken;
this.tableMeta = builder.tableMeta;
}
public static Builder builder() {
return new Builder();
}
public static RestoreTableRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return backupId
*/
public String getBackupId() {
return this.backupId;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return tableMeta
*/
public String getTableMeta() {
return this.tableMeta;
}
public static final class Builder extends Request.Builder {
private String regionId;
private String backupId;
private String DBClusterId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String restoreTime;
private String securityToken;
private String tableMeta;
private Builder() {
super();
}
private Builder(RestoreTableRequest request) {
super(request);
this.regionId = request.regionId;
this.backupId = request.backupId;
this.DBClusterId = request.DBClusterId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTime = request.restoreTime;
this.securityToken = request.securityToken;
this.tableMeta = request.tableMeta;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The ID of the backup set.
*
* You must specify this parameter if you need to restore a database or a table by using a backup set. You can call the DescribeBackups operation to query the ID of the backup set.
*
*
* example:
* 111111
*/
public Builder backupId(String backupId) {
this.putQueryParameter("BackupId", backupId);
this.backupId = backupId;
return this;
}
/**
* The cluster ID.
*
* You can call the DescribeDBClusters operation to query the details of all clusters within your account.
*
* This parameter is required.
*
* example:
* pc-bp***************
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
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;
}
/**
* 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 point in time for the restoration. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. The time must be in UTC.
*
*
*
* You must specify this parameter if you need to restore the database or the table to a point in time.
*
* You can restore your cluster to a particular time only over the past seven days.
*
*
*
* example:
* 2020-10-04T01:40:00Z
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The JSON string that contains the information of the database and the table that you want to restore. All values of the database and table information are of the string type. Example: [ { "tables":[ { "name":"testtb", "type":"table", "newname":"testtb_restore" } ], "name":"testdb", "type":"db", "newname":"testdb_restore" } ]
.
*
* You can call the DescribeMetaList operation to query the names and details of databases and tables that can be restored and enter their information into the corresponding locations in the preceding example.
*
* This parameter is required.
*
* example:
* [ { "tables":[ { "name":"testtb", "type":"table", "newname":"testtb_restore" } ], "name":"testdb", "type":"db", "newname":"testdb_restore" } ]
*/
public Builder tableMeta(String tableMeta) {
this.putQueryParameter("TableMeta", tableMeta);
this.tableMeta = tableMeta;
return this;
}
@Override
public RestoreTableRequest build() {
return new RestoreTableRequest(this);
}
}
}