
com.tencentcloudapi.cdb.v20170320.models.CreateDBInstanceRequest 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.cdb.v20170320.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateDBInstanceRequest extends AbstractModel{
/**
* 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
*/
@SerializedName("Volume")
@Expose
private Long Volume;
/**
* 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 实例数量,默认值为1, 最小值1,最大值为100。
*/
@SerializedName("GoodsNum")
@Expose
private Long GoodsNum;
/**
* 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
*/
@SerializedName("UniqVpcId")
@Expose
private String UniqVpcId;
/**
* 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
*/
@SerializedName("UniqSubnetId")
@Expose
private String UniqSubnetId;
/**
* 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 自定义端口,端口支持范围:[ 1024-65535 ]。
*/
@SerializedName("Port")
@Expose
private Long Port;
/**
* 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
*/
@SerializedName("InstanceRole")
@Expose
private String InstanceRole;
/**
* 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
*/
@SerializedName("MasterInstanceId")
@Expose
private String MasterInstanceId;
/**
* MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
*/
@SerializedName("EngineVersion")
@Expose
private String EngineVersion;
/**
* 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
*/
@SerializedName("Password")
@Expose
private String Password;
/**
* 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
*/
@SerializedName("ProtectMode")
@Expose
private Long ProtectMode;
/**
* 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
*/
@SerializedName("DeployMode")
@Expose
private Long DeployMode;
/**
* 备库 1 的可用区信息,默认为 Zone 的值。
*/
@SerializedName("SlaveZone")
@Expose
private String SlaveZone;
/**
* 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
*/
@SerializedName("ParamList")
@Expose
private ParamInfo [] ParamList;
/**
* 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
*/
@SerializedName("BackupZone")
@Expose
private String BackupZone;
/**
* 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
*/
@SerializedName("AutoRenewFlag")
@Expose
private Long AutoRenewFlag;
/**
* 主实例地域信息,购买灾备实例时,该字段必填。
*/
@SerializedName("MasterRegion")
@Expose
private String MasterRegion;
/**
* 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
*/
@SerializedName("SecurityGroup")
@Expose
private String [] SecurityGroup;
/**
* 只读实例参数。购买只读实例时,该参数必传。
*/
@SerializedName("RoGroup")
@Expose
private RoGroup RoGroup;
/**
* 实例名称。
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 实例标签信息。
*/
@SerializedName("ResourceTags")
@Expose
private TagInfo [] ResourceTags;
/**
* 置放群组 ID。
*/
@SerializedName("DeployGroupId")
@Expose
private String DeployGroupId;
/**
* 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
@SerializedName("ClientToken")
@Expose
private String ClientToken;
/**
* 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
*/
@SerializedName("DeviceType")
@Expose
private String DeviceType;
/**
* 参数模板id。
*/
@SerializedName("ParamTemplateId")
@Expose
private Long ParamTemplateId;
/**
* 告警策略id数组。
*/
@SerializedName("AlarmPolicyList")
@Expose
private Long [] AlarmPolicyList;
/**
* 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
*/
@SerializedName("InstanceNodes")
@Expose
private Long InstanceNodes;
/**
* 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
*/
@SerializedName("Cpu")
@Expose
private Long Cpu;
/**
* 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。
*/
@SerializedName("AutoSyncFlag")
@Expose
private Long AutoSyncFlag;
/**
* Get 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
* @return Memory 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
* @param Memory 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
* @return Volume 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
*/
public Long getVolume() {
return this.Volume;
}
/**
* Set 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
* @param Volume 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
*/
public void setVolume(Long Volume) {
this.Volume = Volume;
}
/**
* Get 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
* @return Period 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
* @param Period 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 实例数量,默认值为1, 最小值1,最大值为100。
* @return GoodsNum 实例数量,默认值为1, 最小值1,最大值为100。
*/
public Long getGoodsNum() {
return this.GoodsNum;
}
/**
* Set 实例数量,默认值为1, 最小值1,最大值为100。
* @param GoodsNum 实例数量,默认值为1, 最小值1,最大值为100。
*/
public void setGoodsNum(Long GoodsNum) {
this.GoodsNum = GoodsNum;
}
/**
* Get 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
* @return Zone 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
*/
public String getZone() {
return this.Zone;
}
/**
* Set 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
* @param Zone 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
* @return UniqVpcId 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
*/
public String getUniqVpcId() {
return this.UniqVpcId;
}
/**
* Set 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
* @param UniqVpcId 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
*/
public void setUniqVpcId(String UniqVpcId) {
this.UniqVpcId = UniqVpcId;
}
/**
* Get 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
* @return UniqSubnetId 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
*/
public String getUniqSubnetId() {
return this.UniqSubnetId;
}
/**
* Set 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
* @param UniqSubnetId 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
*/
public void setUniqSubnetId(String UniqSubnetId) {
this.UniqSubnetId = UniqSubnetId;
}
/**
* Get 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
* @return ProjectId 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
* @param ProjectId 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 自定义端口,端口支持范围:[ 1024-65535 ]。
* @return Port 自定义端口,端口支持范围:[ 1024-65535 ]。
*/
public Long getPort() {
return this.Port;
}
/**
* Set 自定义端口,端口支持范围:[ 1024-65535 ]。
* @param Port 自定义端口,端口支持范围:[ 1024-65535 ]。
*/
public void setPort(Long Port) {
this.Port = Port;
}
/**
* Get 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
* @return InstanceRole 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
*/
public String getInstanceRole() {
return this.InstanceRole;
}
/**
* Set 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
* @param InstanceRole 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
*/
public void setInstanceRole(String InstanceRole) {
this.InstanceRole = InstanceRole;
}
/**
* Get 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
* @return MasterInstanceId 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
*/
public String getMasterInstanceId() {
return this.MasterInstanceId;
}
/**
* Set 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
* @param MasterInstanceId 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
*/
public void setMasterInstanceId(String MasterInstanceId) {
this.MasterInstanceId = MasterInstanceId;
}
/**
* Get MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
* @return EngineVersion MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
*/
public String getEngineVersion() {
return this.EngineVersion;
}
/**
* Set MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
* @param EngineVersion MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
*/
public void setEngineVersion(String EngineVersion) {
this.EngineVersion = EngineVersion;
}
/**
* Get 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
* @return Password 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
*/
public String getPassword() {
return this.Password;
}
/**
* Set 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
* @param Password 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
*/
public void setPassword(String Password) {
this.Password = Password;
}
/**
* Get 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
* @return ProtectMode 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
*/
public Long getProtectMode() {
return this.ProtectMode;
}
/**
* Set 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
* @param ProtectMode 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
*/
public void setProtectMode(Long ProtectMode) {
this.ProtectMode = ProtectMode;
}
/**
* Get 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
* @return DeployMode 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
*/
public Long getDeployMode() {
return this.DeployMode;
}
/**
* Set 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
* @param DeployMode 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
*/
public void setDeployMode(Long DeployMode) {
this.DeployMode = DeployMode;
}
/**
* Get 备库 1 的可用区信息,默认为 Zone 的值。
* @return SlaveZone 备库 1 的可用区信息,默认为 Zone 的值。
*/
public String getSlaveZone() {
return this.SlaveZone;
}
/**
* Set 备库 1 的可用区信息,默认为 Zone 的值。
* @param SlaveZone 备库 1 的可用区信息,默认为 Zone 的值。
*/
public void setSlaveZone(String SlaveZone) {
this.SlaveZone = SlaveZone;
}
/**
* Get 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
* @return ParamList 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
*/
public ParamInfo [] getParamList() {
return this.ParamList;
}
/**
* Set 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
* @param ParamList 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
*/
public void setParamList(ParamInfo [] ParamList) {
this.ParamList = ParamList;
}
/**
* Get 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
* @return BackupZone 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
*/
public String getBackupZone() {
return this.BackupZone;
}
/**
* Set 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
* @param BackupZone 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
*/
public void setBackupZone(String BackupZone) {
this.BackupZone = BackupZone;
}
/**
* Get 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
* @return AutoRenewFlag 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
*/
public Long getAutoRenewFlag() {
return this.AutoRenewFlag;
}
/**
* Set 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
* @param AutoRenewFlag 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
*/
public void setAutoRenewFlag(Long AutoRenewFlag) {
this.AutoRenewFlag = AutoRenewFlag;
}
/**
* Get 主实例地域信息,购买灾备实例时,该字段必填。
* @return MasterRegion 主实例地域信息,购买灾备实例时,该字段必填。
*/
public String getMasterRegion() {
return this.MasterRegion;
}
/**
* Set 主实例地域信息,购买灾备实例时,该字段必填。
* @param MasterRegion 主实例地域信息,购买灾备实例时,该字段必填。
*/
public void setMasterRegion(String MasterRegion) {
this.MasterRegion = MasterRegion;
}
/**
* Get 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
* @return SecurityGroup 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
*/
public String [] getSecurityGroup() {
return this.SecurityGroup;
}
/**
* Set 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
* @param SecurityGroup 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
*/
public void setSecurityGroup(String [] SecurityGroup) {
this.SecurityGroup = SecurityGroup;
}
/**
* Get 只读实例参数。购买只读实例时,该参数必传。
* @return RoGroup 只读实例参数。购买只读实例时,该参数必传。
*/
public RoGroup getRoGroup() {
return this.RoGroup;
}
/**
* Set 只读实例参数。购买只读实例时,该参数必传。
* @param RoGroup 只读实例参数。购买只读实例时,该参数必传。
*/
public void setRoGroup(RoGroup RoGroup) {
this.RoGroup = RoGroup;
}
/**
* Get 实例名称。
* @return InstanceName 实例名称。
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 实例名称。
* @param InstanceName 实例名称。
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 实例标签信息。
* @return ResourceTags 实例标签信息。
*/
public TagInfo [] getResourceTags() {
return this.ResourceTags;
}
/**
* Set 实例标签信息。
* @param ResourceTags 实例标签信息。
*/
public void setResourceTags(TagInfo [] ResourceTags) {
this.ResourceTags = ResourceTags;
}
/**
* Get 置放群组 ID。
* @return DeployGroupId 置放群组 ID。
*/
public String getDeployGroupId() {
return this.DeployGroupId;
}
/**
* Set 置放群组 ID。
* @param DeployGroupId 置放群组 ID。
*/
public void setDeployGroupId(String DeployGroupId) {
this.DeployGroupId = DeployGroupId;
}
/**
* Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
* @return ClientToken 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
public String getClientToken() {
return this.ClientToken;
}
/**
* Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
* @param ClientToken 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
public void setClientToken(String ClientToken) {
this.ClientToken = ClientToken;
}
/**
* Get 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
* @return DeviceType 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
*/
public String getDeviceType() {
return this.DeviceType;
}
/**
* Set 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
* @param DeviceType 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
*/
public void setDeviceType(String DeviceType) {
this.DeviceType = DeviceType;
}
/**
* Get 参数模板id。
* @return ParamTemplateId 参数模板id。
*/
public Long getParamTemplateId() {
return this.ParamTemplateId;
}
/**
* Set 参数模板id。
* @param ParamTemplateId 参数模板id。
*/
public void setParamTemplateId(Long ParamTemplateId) {
this.ParamTemplateId = ParamTemplateId;
}
/**
* Get 告警策略id数组。
* @return AlarmPolicyList 告警策略id数组。
*/
public Long [] getAlarmPolicyList() {
return this.AlarmPolicyList;
}
/**
* Set 告警策略id数组。
* @param AlarmPolicyList 告警策略id数组。
*/
public void setAlarmPolicyList(Long [] AlarmPolicyList) {
this.AlarmPolicyList = AlarmPolicyList;
}
/**
* Get 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
* @return InstanceNodes 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
*/
public Long getInstanceNodes() {
return this.InstanceNodes;
}
/**
* Set 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
* @param InstanceNodes 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
*/
public void setInstanceNodes(Long InstanceNodes) {
this.InstanceNodes = InstanceNodes;
}
/**
* Get 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
* @return Cpu 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
*/
public Long getCpu() {
return this.Cpu;
}
/**
* Set 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
* @param Cpu 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
*/
public void setCpu(Long Cpu) {
this.Cpu = Cpu;
}
/**
* Get 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。
* @return AutoSyncFlag 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。
*/
public Long getAutoSyncFlag() {
return this.AutoSyncFlag;
}
/**
* Set 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。
* @param AutoSyncFlag 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。
*/
public void setAutoSyncFlag(Long AutoSyncFlag) {
this.AutoSyncFlag = AutoSyncFlag;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "Volume", this.Volume);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "Port", this.Port);
this.setParamSimple(map, prefix + "InstanceRole", this.InstanceRole);
this.setParamSimple(map, prefix + "MasterInstanceId", this.MasterInstanceId);
this.setParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
this.setParamSimple(map, prefix + "Password", this.Password);
this.setParamSimple(map, prefix + "ProtectMode", this.ProtectMode);
this.setParamSimple(map, prefix + "DeployMode", this.DeployMode);
this.setParamSimple(map, prefix + "SlaveZone", this.SlaveZone);
this.setParamArrayObj(map, prefix + "ParamList.", this.ParamList);
this.setParamSimple(map, prefix + "BackupZone", this.BackupZone);
this.setParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.setParamSimple(map, prefix + "MasterRegion", this.MasterRegion);
this.setParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
this.setParamObj(map, prefix + "RoGroup.", this.RoGroup);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamArrayObj(map, prefix + "ResourceTags.", this.ResourceTags);
this.setParamSimple(map, prefix + "DeployGroupId", this.DeployGroupId);
this.setParamSimple(map, prefix + "ClientToken", this.ClientToken);
this.setParamSimple(map, prefix + "DeviceType", this.DeviceType);
this.setParamSimple(map, prefix + "ParamTemplateId", this.ParamTemplateId);
this.setParamArraySimple(map, prefix + "AlarmPolicyList.", this.AlarmPolicyList);
this.setParamSimple(map, prefix + "InstanceNodes", this.InstanceNodes);
this.setParamSimple(map, prefix + "Cpu", this.Cpu);
this.setParamSimple(map, prefix + "AutoSyncFlag", this.AutoSyncFlag);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy