
com.tencentcloudapi.postgres.v20170312.models.CloneDBInstanceRequest Maven / Gradle / Ivy
/*
* 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.postgres.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CloneDBInstanceRequest extends AbstractModel{
/**
* 克隆的源实例ID。
*/
@SerializedName("DBInstanceId")
@Expose
private String DBInstanceId;
/**
* 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
*/
@SerializedName("SpecCode")
@Expose
private String SpecCode;
/**
* 实例容量大小,单位:GB。
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* 购买时长,单位:月。
预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
后付费:只支持1
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 续费标记:
0:手动续费
1:自动续费
默认值:0
*/
@SerializedName("AutoRenewFlag")
@Expose
private Long AutoRenewFlag;
/**
* 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 实例计费类型,目前支持:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费
默认值:PREPAID
*/
@SerializedName("InstanceChargeType")
@Expose
private String InstanceChargeType;
/**
* 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
*/
@SerializedName("SecurityGroupIds")
@Expose
private String [] SecurityGroupIds;
/**
* 项目ID。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
*/
@SerializedName("TagList")
@Expose
private Tag [] TagList;
/**
* 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
*/
@SerializedName("DBNodeSet")
@Expose
private DBNode [] DBNodeSet;
/**
* 是否自动使用代金券:
0:否
1:是
默认值:0
*/
@SerializedName("AutoVoucher")
@Expose
private Long AutoVoucher;
/**
* 代金券ID列表。
*/
@SerializedName("VoucherIds")
@Expose
private String VoucherIds;
/**
* 活动ID。
*/
@SerializedName("ActivityId")
@Expose
private Long ActivityId;
/**
* 基础备份集ID。
*/
@SerializedName("BackupSetId")
@Expose
private String BackupSetId;
/**
* 恢复时间点。
*/
@SerializedName("RecoveryTargetTime")
@Expose
private String RecoveryTargetTime;
/**
* 主从同步方式,支持:
Semi-sync:半同步
Async:异步
主实例默认值:Semi-sync
只读实例默认值:Async
*/
@SerializedName("SyncMode")
@Expose
private String SyncMode;
/**
* Get 克隆的源实例ID。
* @return DBInstanceId 克隆的源实例ID。
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* Set 克隆的源实例ID。
* @param DBInstanceId 克隆的源实例ID。
*/
public void setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
}
/**
* Get 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
* @return SpecCode 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
*/
public String getSpecCode() {
return this.SpecCode;
}
/**
* Set 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
* @param SpecCode 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
*/
public void setSpecCode(String SpecCode) {
this.SpecCode = SpecCode;
}
/**
* Get 实例容量大小,单位:GB。
* @return Storage 实例容量大小,单位:GB。
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set 实例容量大小,单位:GB。
* @param Storage 实例容量大小,单位:GB。
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get 购买时长,单位:月。
预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
后付费:只支持1
* @return Period 购买时长,单位:月。
预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
后付费:只支持1
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 购买时长,单位:月。
预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
后付费:只支持1
* @param Period 购买时长,单位:月。
预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
后付费:只支持1
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 续费标记:
0:手动续费
1:自动续费
默认值:0
* @return AutoRenewFlag 续费标记:
0:手动续费
1:自动续费
默认值:0
*/
public Long getAutoRenewFlag() {
return this.AutoRenewFlag;
}
/**
* Set 续费标记:
0:手动续费
1:自动续费
默认值:0
* @param AutoRenewFlag 续费标记:
0:手动续费
1:自动续费
默认值:0
*/
public void setAutoRenewFlag(Long AutoRenewFlag) {
this.AutoRenewFlag = AutoRenewFlag;
}
/**
* Get 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
* @return VpcId 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
* @param VpcId 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
* @return SubnetId 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
* @param SubnetId 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
* @return Name 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
*/
public String getName() {
return this.Name;
}
/**
* Set 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
* @param Name 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 实例计费类型,目前支持:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费
默认值:PREPAID
* @return InstanceChargeType 实例计费类型,目前支持:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费
默认值:PREPAID
*/
public String getInstanceChargeType() {
return this.InstanceChargeType;
}
/**
* Set 实例计费类型,目前支持:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费
默认值:PREPAID
* @param InstanceChargeType 实例计费类型,目前支持:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费
默认值:PREPAID
*/
public void setInstanceChargeType(String InstanceChargeType) {
this.InstanceChargeType = InstanceChargeType;
}
/**
* Get 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
* @return SecurityGroupIds 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
*/
public String [] getSecurityGroupIds() {
return this.SecurityGroupIds;
}
/**
* Set 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
* @param SecurityGroupIds 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
*/
public void setSecurityGroupIds(String [] SecurityGroupIds) {
this.SecurityGroupIds = SecurityGroupIds;
}
/**
* Get 项目ID。
* @return ProjectId 项目ID。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 项目ID。
* @param ProjectId 项目ID。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
* @return TagList 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
*/
public Tag [] getTagList() {
return this.TagList;
}
/**
* Set 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
* @param TagList 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
*/
public void setTagList(Tag [] TagList) {
this.TagList = TagList;
}
/**
* Get 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
* @return DBNodeSet 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
*/
public DBNode [] getDBNodeSet() {
return this.DBNodeSet;
}
/**
* Set 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
* @param DBNodeSet 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
*/
public void setDBNodeSet(DBNode [] DBNodeSet) {
this.DBNodeSet = DBNodeSet;
}
/**
* Get 是否自动使用代金券:
0:否
1:是
默认值:0
* @return AutoVoucher 是否自动使用代金券:
0:否
1:是
默认值:0
*/
public Long getAutoVoucher() {
return this.AutoVoucher;
}
/**
* Set 是否自动使用代金券:
0:否
1:是
默认值:0
* @param AutoVoucher 是否自动使用代金券:
0:否
1:是
默认值:0
*/
public void setAutoVoucher(Long AutoVoucher) {
this.AutoVoucher = AutoVoucher;
}
/**
* Get 代金券ID列表。
* @return VoucherIds 代金券ID列表。
*/
public String getVoucherIds() {
return this.VoucherIds;
}
/**
* Set 代金券ID列表。
* @param VoucherIds 代金券ID列表。
*/
public void setVoucherIds(String VoucherIds) {
this.VoucherIds = VoucherIds;
}
/**
* Get 活动ID。
* @return ActivityId 活动ID。
*/
public Long getActivityId() {
return this.ActivityId;
}
/**
* Set 活动ID。
* @param ActivityId 活动ID。
*/
public void setActivityId(Long ActivityId) {
this.ActivityId = ActivityId;
}
/**
* Get 基础备份集ID。
* @return BackupSetId 基础备份集ID。
*/
public String getBackupSetId() {
return this.BackupSetId;
}
/**
* Set 基础备份集ID。
* @param BackupSetId 基础备份集ID。
*/
public void setBackupSetId(String BackupSetId) {
this.BackupSetId = BackupSetId;
}
/**
* Get 恢复时间点。
* @return RecoveryTargetTime 恢复时间点。
*/
public String getRecoveryTargetTime() {
return this.RecoveryTargetTime;
}
/**
* Set 恢复时间点。
* @param RecoveryTargetTime 恢复时间点。
*/
public void setRecoveryTargetTime(String RecoveryTargetTime) {
this.RecoveryTargetTime = RecoveryTargetTime;
}
/**
* Get 主从同步方式,支持:
Semi-sync:半同步
Async:异步
主实例默认值:Semi-sync
只读实例默认值:Async
* @return SyncMode 主从同步方式,支持:
Semi-sync:半同步
Async:异步
主实例默认值:Semi-sync
只读实例默认值:Async
*/
public String getSyncMode() {
return this.SyncMode;
}
/**
* Set 主从同步方式,支持:
Semi-sync:半同步
Async:异步
主实例默认值:Semi-sync
只读实例默认值:Async
* @param SyncMode 主从同步方式,支持:
Semi-sync:半同步
Async:异步
主实例默认值:Semi-sync
只读实例默认值:Async
*/
public void setSyncMode(String SyncMode) {
this.SyncMode = SyncMode;
}
public CloneDBInstanceRequest() {
}
/**
* 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 CloneDBInstanceRequest(CloneDBInstanceRequest source) {
if (source.DBInstanceId != null) {
this.DBInstanceId = new String(source.DBInstanceId);
}
if (source.SpecCode != null) {
this.SpecCode = new String(source.SpecCode);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.AutoRenewFlag != null) {
this.AutoRenewFlag = new Long(source.AutoRenewFlag);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.InstanceChargeType != null) {
this.InstanceChargeType = new String(source.InstanceChargeType);
}
if (source.SecurityGroupIds != null) {
this.SecurityGroupIds = new String[source.SecurityGroupIds.length];
for (int i = 0; i < source.SecurityGroupIds.length; i++) {
this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]);
}
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.TagList != null) {
this.TagList = new Tag[source.TagList.length];
for (int i = 0; i < source.TagList.length; i++) {
this.TagList[i] = new Tag(source.TagList[i]);
}
}
if (source.DBNodeSet != null) {
this.DBNodeSet = new DBNode[source.DBNodeSet.length];
for (int i = 0; i < source.DBNodeSet.length; i++) {
this.DBNodeSet[i] = new DBNode(source.DBNodeSet[i]);
}
}
if (source.AutoVoucher != null) {
this.AutoVoucher = new Long(source.AutoVoucher);
}
if (source.VoucherIds != null) {
this.VoucherIds = new String(source.VoucherIds);
}
if (source.ActivityId != null) {
this.ActivityId = new Long(source.ActivityId);
}
if (source.BackupSetId != null) {
this.BackupSetId = new String(source.BackupSetId);
}
if (source.RecoveryTargetTime != null) {
this.RecoveryTargetTime = new String(source.RecoveryTargetTime);
}
if (source.SyncMode != null) {
this.SyncMode = new String(source.SyncMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DBInstanceId", this.DBInstanceId);
this.setParamSimple(map, prefix + "SpecCode", this.SpecCode);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamArrayObj(map, prefix + "TagList.", this.TagList);
this.setParamArrayObj(map, prefix + "DBNodeSet.", this.DBNodeSet);
this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher);
this.setParamSimple(map, prefix + "VoucherIds", this.VoucherIds);
this.setParamSimple(map, prefix + "ActivityId", this.ActivityId);
this.setParamSimple(map, prefix + "BackupSetId", this.BackupSetId);
this.setParamSimple(map, prefix + "RecoveryTargetTime", this.RecoveryTargetTime);
this.setParamSimple(map, prefix + "SyncMode", this.SyncMode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy