com.tencentcloudapi.sqlserver.v20180328.models.DescribeBackupMigrationRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-sqlserver Show documentation
Show all versions of tencentcloud-sdk-java-sqlserver Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.sqlserver.v20180328.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeBackupMigrationRequest extends AbstractModel{
/**
* 导入目标实例ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 备份导入任务ID,由CreateBackupMigration接口返回
*/
@SerializedName("BackupMigrationId")
@Expose
private String BackupMigrationId;
/**
* 导入任务名称
*/
@SerializedName("MigrationName")
@Expose
private String MigrationName;
/**
* 备份文件名称
*/
@SerializedName("BackupFileName")
@Expose
private String BackupFileName;
/**
* 导入任务状态集合
*/
@SerializedName("StatusSet")
@Expose
private Long [] StatusSet;
/**
* 导入任务恢复类型,FULL,FULL_LOG,FULL_DIFF
*/
@SerializedName("RecoveryType")
@Expose
private String RecoveryType;
/**
* COS_URL-备份放在用户的对象存储上,提供URL。COS_UPLOAD-备份放在业务的对象存储上,用户上传
*/
@SerializedName("UploadType")
@Expose
private String UploadType;
/**
* 分页,页大小
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* 分页,页数
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* 排序字段,name,createTime,startTime,endTime
*/
@SerializedName("OrderBy")
@Expose
private String OrderBy;
/**
* 排序方式,desc,asc
*/
@SerializedName("OrderByType")
@Expose
private String OrderByType;
/**
* Get 导入目标实例ID
* @return InstanceId 导入目标实例ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 导入目标实例ID
* @param InstanceId 导入目标实例ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 备份导入任务ID,由CreateBackupMigration接口返回
* @return BackupMigrationId 备份导入任务ID,由CreateBackupMigration接口返回
*/
public String getBackupMigrationId() {
return this.BackupMigrationId;
}
/**
* Set 备份导入任务ID,由CreateBackupMigration接口返回
* @param BackupMigrationId 备份导入任务ID,由CreateBackupMigration接口返回
*/
public void setBackupMigrationId(String BackupMigrationId) {
this.BackupMigrationId = BackupMigrationId;
}
/**
* Get 导入任务名称
* @return MigrationName 导入任务名称
*/
public String getMigrationName() {
return this.MigrationName;
}
/**
* Set 导入任务名称
* @param MigrationName 导入任务名称
*/
public void setMigrationName(String MigrationName) {
this.MigrationName = MigrationName;
}
/**
* Get 备份文件名称
* @return BackupFileName 备份文件名称
*/
public String getBackupFileName() {
return this.BackupFileName;
}
/**
* Set 备份文件名称
* @param BackupFileName 备份文件名称
*/
public void setBackupFileName(String BackupFileName) {
this.BackupFileName = BackupFileName;
}
/**
* Get 导入任务状态集合
* @return StatusSet 导入任务状态集合
*/
public Long [] getStatusSet() {
return this.StatusSet;
}
/**
* Set 导入任务状态集合
* @param StatusSet 导入任务状态集合
*/
public void setStatusSet(Long [] StatusSet) {
this.StatusSet = StatusSet;
}
/**
* Get 导入任务恢复类型,FULL,FULL_LOG,FULL_DIFF
* @return RecoveryType 导入任务恢复类型,FULL,FULL_LOG,FULL_DIFF
*/
public String getRecoveryType() {
return this.RecoveryType;
}
/**
* Set 导入任务恢复类型,FULL,FULL_LOG,FULL_DIFF
* @param RecoveryType 导入任务恢复类型,FULL,FULL_LOG,FULL_DIFF
*/
public void setRecoveryType(String RecoveryType) {
this.RecoveryType = RecoveryType;
}
/**
* Get COS_URL-备份放在用户的对象存储上,提供URL。COS_UPLOAD-备份放在业务的对象存储上,用户上传
* @return UploadType COS_URL-备份放在用户的对象存储上,提供URL。COS_UPLOAD-备份放在业务的对象存储上,用户上传
*/
public String getUploadType() {
return this.UploadType;
}
/**
* Set COS_URL-备份放在用户的对象存储上,提供URL。COS_UPLOAD-备份放在业务的对象存储上,用户上传
* @param UploadType COS_URL-备份放在用户的对象存储上,提供URL。COS_UPLOAD-备份放在业务的对象存储上,用户上传
*/
public void setUploadType(String UploadType) {
this.UploadType = UploadType;
}
/**
* Get 分页,页大小
* @return Limit 分页,页大小
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set 分页,页大小
* @param Limit 分页,页大小
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get 分页,页数
* @return Offset 分页,页数
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set 分页,页数
* @param Offset 分页,页数
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get 排序字段,name,createTime,startTime,endTime
* @return OrderBy 排序字段,name,createTime,startTime,endTime
*/
public String getOrderBy() {
return this.OrderBy;
}
/**
* Set 排序字段,name,createTime,startTime,endTime
* @param OrderBy 排序字段,name,createTime,startTime,endTime
*/
public void setOrderBy(String OrderBy) {
this.OrderBy = OrderBy;
}
/**
* Get 排序方式,desc,asc
* @return OrderByType 排序方式,desc,asc
*/
public String getOrderByType() {
return this.OrderByType;
}
/**
* Set 排序方式,desc,asc
* @param OrderByType 排序方式,desc,asc
*/
public void setOrderByType(String OrderByType) {
this.OrderByType = OrderByType;
}
public DescribeBackupMigrationRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeBackupMigrationRequest(DescribeBackupMigrationRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.BackupMigrationId != null) {
this.BackupMigrationId = new String(source.BackupMigrationId);
}
if (source.MigrationName != null) {
this.MigrationName = new String(source.MigrationName);
}
if (source.BackupFileName != null) {
this.BackupFileName = new String(source.BackupFileName);
}
if (source.StatusSet != null) {
this.StatusSet = new Long[source.StatusSet.length];
for (int i = 0; i < source.StatusSet.length; i++) {
this.StatusSet[i] = new Long(source.StatusSet[i]);
}
}
if (source.RecoveryType != null) {
this.RecoveryType = new String(source.RecoveryType);
}
if (source.UploadType != null) {
this.UploadType = new String(source.UploadType);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.OrderBy != null) {
this.OrderBy = new String(source.OrderBy);
}
if (source.OrderByType != null) {
this.OrderByType = new String(source.OrderByType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "BackupMigrationId", this.BackupMigrationId);
this.setParamSimple(map, prefix + "MigrationName", this.MigrationName);
this.setParamSimple(map, prefix + "BackupFileName", this.BackupFileName);
this.setParamArraySimple(map, prefix + "StatusSet.", this.StatusSet);
this.setParamSimple(map, prefix + "RecoveryType", this.RecoveryType);
this.setParamSimple(map, prefix + "UploadType", this.UploadType);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "OrderBy", this.OrderBy);
this.setParamSimple(map, prefix + "OrderByType", this.OrderByType);
}
}