/src/main/java/com/tencentcloudapi/mongodb/v20180408/models/CreateDBInstanceRequest.java

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 344 lines · 139 code · 44 blank · 161 comment · 0 complexity · 2694096e85e27ba626d3b60f870c714a MD5 · raw file

  1. /*
  2. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.tencentcloudapi.mongodb.v20180408.models;
  17. import com.tencentcloudapi.common.AbstractModel;
  18. import com.google.gson.annotations.SerializedName;
  19. import com.google.gson.annotations.Expose;
  20. import java.util.HashMap;
  21. public class CreateDBInstanceRequest extends AbstractModel{
  22. /**
  23. * 每个副本集内从节点个数
  24. */
  25. @SerializedName("SecondaryNum")
  26. @Expose
  27. private Long SecondaryNum;
  28. /**
  29. * 实例内存大小,单位:GB
  30. */
  31. @SerializedName("Memory")
  32. @Expose
  33. private Long Memory;
  34. /**
  35. * 实例硬盘大小,单位:GB
  36. */
  37. @SerializedName("Volume")
  38. @Expose
  39. private Long Volume;
  40. /**
  41. * 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
  42. */
  43. @SerializedName("MongoVersion")
  44. @Expose
  45. private String MongoVersion;
  46. /**
  47. * 机器类型,GIO:高IO版;TGIO:高IO万兆
  48. */
  49. @SerializedName("MachineCode")
  50. @Expose
  51. private String MachineCode;
  52. /**
  53. * 实例数量,默认值为1, 最小值1,最大值为10
  54. */
  55. @SerializedName("GoodsNum")
  56. @Expose
  57. private Long GoodsNum;
  58. /**
  59. * 实例所属区域名称,格式如:ap-guangzhou-2
  60. */
  61. @SerializedName("Zone")
  62. @Expose
  63. private String Zone;
  64. /**
  65. * 时长,购买月数
  66. */
  67. @SerializedName("TimeSpan")
  68. @Expose
  69. private Long TimeSpan;
  70. /**
  71. * 实例密码
  72. */
  73. @SerializedName("Password")
  74. @Expose
  75. private String Password;
  76. /**
  77. * 项目ID,不填为默认项目
  78. */
  79. @SerializedName("ProjectId")
  80. @Expose
  81. private Long ProjectId;
  82. /**
  83. * 安全组参数
  84. */
  85. @SerializedName("SecurityGroup")
  86. @Expose
  87. private String [] SecurityGroup;
  88. /**
  89. * 私有网络ID,如果不传则默认选择基础网络
  90. */
  91. @SerializedName("UniqVpcId")
  92. @Expose
  93. private String UniqVpcId;
  94. /**
  95. * 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
  96. */
  97. @SerializedName("UniqSubnetId")
  98. @Expose
  99. private String UniqSubnetId;
  100. /**
  101. * Get 每个副本集内从节点个数
  102. * @return SecondaryNum 每个副本集内从节点个数
  103. */
  104. public Long getSecondaryNum() {
  105. return this.SecondaryNum;
  106. }
  107. /**
  108. * Set 每个副本集内从节点个数
  109. * @param SecondaryNum 每个副本集内从节点个数
  110. */
  111. public void setSecondaryNum(Long SecondaryNum) {
  112. this.SecondaryNum = SecondaryNum;
  113. }
  114. /**
  115. * Get 实例内存大小,单位:GB
  116. * @return Memory 实例内存大小,单位:GB
  117. */
  118. public Long getMemory() {
  119. return this.Memory;
  120. }
  121. /**
  122. * Set 实例内存大小,单位:GB
  123. * @param Memory 实例内存大小,单位:GB
  124. */
  125. public void setMemory(Long Memory) {
  126. this.Memory = Memory;
  127. }
  128. /**
  129. * Get 实例硬盘大小,单位:GB
  130. * @return Volume 实例硬盘大小,单位:GB
  131. */
  132. public Long getVolume() {
  133. return this.Volume;
  134. }
  135. /**
  136. * Set 实例硬盘大小,单位:GB
  137. * @param Volume 实例硬盘大小,单位:GB
  138. */
  139. public void setVolume(Long Volume) {
  140. this.Volume = Volume;
  141. }
  142. /**
  143. * Get 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
  144. * @return MongoVersion 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
  145. */
  146. public String getMongoVersion() {
  147. return this.MongoVersion;
  148. }
  149. /**
  150. * Set 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
  151. * @param MongoVersion 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
  152. */
  153. public void setMongoVersion(String MongoVersion) {
  154. this.MongoVersion = MongoVersion;
  155. }
  156. /**
  157. * Get 机器类型,GIO:高IO版;TGIO:高IO万兆
  158. * @return MachineCode 机器类型,GIO:高IO版;TGIO:高IO万兆
  159. */
  160. public String getMachineCode() {
  161. return this.MachineCode;
  162. }
  163. /**
  164. * Set 机器类型,GIO:高IO版;TGIO:高IO万兆
  165. * @param MachineCode 机器类型,GIO:高IO版;TGIO:高IO万兆
  166. */
  167. public void setMachineCode(String MachineCode) {
  168. this.MachineCode = MachineCode;
  169. }
  170. /**
  171. * Get 实例数量,默认值为1, 最小值1,最大值为10
  172. * @return GoodsNum 实例数量,默认值为1, 最小值1,最大值为10
  173. */
  174. public Long getGoodsNum() {
  175. return this.GoodsNum;
  176. }
  177. /**
  178. * Set 实例数量,默认值为1, 最小值1,最大值为10
  179. * @param GoodsNum 实例数量,默认值为1, 最小值1,最大值为10
  180. */
  181. public void setGoodsNum(Long GoodsNum) {
  182. this.GoodsNum = GoodsNum;
  183. }
  184. /**
  185. * Get 实例所属区域名称,格式如:ap-guangzhou-2
  186. * @return Zone 实例所属区域名称,格式如:ap-guangzhou-2
  187. */
  188. public String getZone() {
  189. return this.Zone;
  190. }
  191. /**
  192. * Set 实例所属区域名称,格式如:ap-guangzhou-2
  193. * @param Zone 实例所属区域名称,格式如:ap-guangzhou-2
  194. */
  195. public void setZone(String Zone) {
  196. this.Zone = Zone;
  197. }
  198. /**
  199. * Get 时长,购买月数
  200. * @return TimeSpan 时长,购买月数
  201. */
  202. public Long getTimeSpan() {
  203. return this.TimeSpan;
  204. }
  205. /**
  206. * Set 时长,购买月数
  207. * @param TimeSpan 时长,购买月数
  208. */
  209. public void setTimeSpan(Long TimeSpan) {
  210. this.TimeSpan = TimeSpan;
  211. }
  212. /**
  213. * Get 实例密码
  214. * @return Password 实例密码
  215. */
  216. public String getPassword() {
  217. return this.Password;
  218. }
  219. /**
  220. * Set 实例密码
  221. * @param Password 实例密码
  222. */
  223. public void setPassword(String Password) {
  224. this.Password = Password;
  225. }
  226. /**
  227. * Get 项目ID,不填为默认项目
  228. * @return ProjectId 项目ID,不填为默认项目
  229. */
  230. public Long getProjectId() {
  231. return this.ProjectId;
  232. }
  233. /**
  234. * Set 项目ID,不填为默认项目
  235. * @param ProjectId 项目ID,不填为默认项目
  236. */
  237. public void setProjectId(Long ProjectId) {
  238. this.ProjectId = ProjectId;
  239. }
  240. /**
  241. * Get 安全组参数
  242. * @return SecurityGroup 安全组参数
  243. */
  244. public String [] getSecurityGroup() {
  245. return this.SecurityGroup;
  246. }
  247. /**
  248. * Set 安全组参数
  249. * @param SecurityGroup 安全组参数
  250. */
  251. public void setSecurityGroup(String [] SecurityGroup) {
  252. this.SecurityGroup = SecurityGroup;
  253. }
  254. /**
  255. * Get 私有网络ID,如果不传则默认选择基础网络
  256. * @return UniqVpcId 私有网络ID,如果不传则默认选择基础网络
  257. */
  258. public String getUniqVpcId() {
  259. return this.UniqVpcId;
  260. }
  261. /**
  262. * Set 私有网络ID,如果不传则默认选择基础网络
  263. * @param UniqVpcId 私有网络ID,如果不传则默认选择基础网络
  264. */
  265. public void setUniqVpcId(String UniqVpcId) {
  266. this.UniqVpcId = UniqVpcId;
  267. }
  268. /**
  269. * Get 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
  270. * @return UniqSubnetId 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
  271. */
  272. public String getUniqSubnetId() {
  273. return this.UniqSubnetId;
  274. }
  275. /**
  276. * Set 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
  277. * @param UniqSubnetId 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
  278. */
  279. public void setUniqSubnetId(String UniqSubnetId) {
  280. this.UniqSubnetId = UniqSubnetId;
  281. }
  282. /**
  283. * Internal implementation, normal users should not use it.
  284. */
  285. public void toMap(HashMap<String, String> map, String prefix) {
  286. this.setParamSimple(map, prefix + "SecondaryNum", this.SecondaryNum);
  287. this.setParamSimple(map, prefix + "Memory", this.Memory);
  288. this.setParamSimple(map, prefix + "Volume", this.Volume);
  289. this.setParamSimple(map, prefix + "MongoVersion", this.MongoVersion);
  290. this.setParamSimple(map, prefix + "MachineCode", this.MachineCode);
  291. this.setParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
  292. this.setParamSimple(map, prefix + "Zone", this.Zone);
  293. this.setParamSimple(map, prefix + "TimeSpan", this.TimeSpan);
  294. this.setParamSimple(map, prefix + "Password", this.Password);
  295. this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
  296. this.setParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
  297. this.setParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
  298. this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
  299. }
  300. }