/src/main/java/com/tencentcloudapi/mongodb/v20190725/models/SpecItem.java

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 536 lines · 219 code · 68 blank · 249 comment · 0 complexity · 3a49dad3802ad20edfcb0d486e0141b1 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.v20190725.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 SpecItem extends AbstractModel{
  22. /**
  23. * 规格信息标识
  24. */
  25. @SerializedName("SpecCode")
  26. @Expose
  27. private String SpecCode;
  28. /**
  29. * 规格有效标志,取值:0-停止售卖,1-开放售卖
  30. */
  31. @SerializedName("Status")
  32. @Expose
  33. private Long Status;
  34. /**
  35. * 规格有效标志,取值:0-停止售卖,1-开放售卖
  36. */
  37. @SerializedName("Cpu")
  38. @Expose
  39. private Long Cpu;
  40. /**
  41. * 内存规格,单位为MB
  42. */
  43. @SerializedName("Memory")
  44. @Expose
  45. private Long Memory;
  46. /**
  47. * 默认磁盘规格,单位MB
  48. */
  49. @SerializedName("DefaultStorage")
  50. @Expose
  51. private Long DefaultStorage;
  52. /**
  53. * 最大磁盘规格,单位MB
  54. */
  55. @SerializedName("MaxStorage")
  56. @Expose
  57. private Long MaxStorage;
  58. /**
  59. * 最小磁盘规格,单位MB
  60. */
  61. @SerializedName("MinStorage")
  62. @Expose
  63. private Long MinStorage;
  64. /**
  65. * 可承载qps信息
  66. */
  67. @SerializedName("Qps")
  68. @Expose
  69. private Long Qps;
  70. /**
  71. * 连接数限制
  72. */
  73. @SerializedName("Conns")
  74. @Expose
  75. private Long Conns;
  76. /**
  77. * 实例mongodb版本信息
  78. */
  79. @SerializedName("MongoVersionCode")
  80. @Expose
  81. private String MongoVersionCode;
  82. /**
  83. * 实例mongodb版本号
  84. */
  85. @SerializedName("MongoVersionValue")
  86. @Expose
  87. private Long MongoVersionValue;
  88. /**
  89. * 实例mongodb版本号(短)
  90. */
  91. @SerializedName("Version")
  92. @Expose
  93. private String Version;
  94. /**
  95. * 存储引擎
  96. */
  97. @SerializedName("EngineName")
  98. @Expose
  99. private String EngineName;
  100. /**
  101. * 集群类型,取值:1-分片集群,0-副本集集群
  102. */
  103. @SerializedName("ClusterType")
  104. @Expose
  105. private Long ClusterType;
  106. /**
  107. * 最小副本集从节点数
  108. */
  109. @SerializedName("MinNodeNum")
  110. @Expose
  111. private Long MinNodeNum;
  112. /**
  113. * 最大副本集从节点数
  114. */
  115. @SerializedName("MaxNodeNum")
  116. @Expose
  117. private Long MaxNodeNum;
  118. /**
  119. * 最小分片数
  120. */
  121. @SerializedName("MinReplicateSetNum")
  122. @Expose
  123. private Long MinReplicateSetNum;
  124. /**
  125. * 最大分片数
  126. */
  127. @SerializedName("MaxReplicateSetNum")
  128. @Expose
  129. private Long MaxReplicateSetNum;
  130. /**
  131. * 最小分片从节点数
  132. */
  133. @SerializedName("MinReplicateSetNodeNum")
  134. @Expose
  135. private Long MinReplicateSetNodeNum;
  136. /**
  137. * 最大分片从节点数
  138. */
  139. @SerializedName("MaxReplicateSetNodeNum")
  140. @Expose
  141. private Long MaxReplicateSetNodeNum;
  142. /**
  143. * 机器类型,取值:0-HIO,4-HIO10G
  144. */
  145. @SerializedName("MachineType")
  146. @Expose
  147. private String MachineType;
  148. /**
  149. * Get 规格信息标识
  150. * @return SpecCode 规格信息标识
  151. */
  152. public String getSpecCode() {
  153. return this.SpecCode;
  154. }
  155. /**
  156. * Set 规格信息标识
  157. * @param SpecCode 规格信息标识
  158. */
  159. public void setSpecCode(String SpecCode) {
  160. this.SpecCode = SpecCode;
  161. }
  162. /**
  163. * Get 规格有效标志,取值:0-停止售卖,1-开放售卖
  164. * @return Status 规格有效标志,取值:0-停止售卖,1-开放售卖
  165. */
  166. public Long getStatus() {
  167. return this.Status;
  168. }
  169. /**
  170. * Set 规格有效标志,取值:0-停止售卖,1-开放售卖
  171. * @param Status 规格有效标志,取值:0-停止售卖,1-开放售卖
  172. */
  173. public void setStatus(Long Status) {
  174. this.Status = Status;
  175. }
  176. /**
  177. * Get 规格有效标志,取值:0-停止售卖,1-开放售卖
  178. * @return Cpu 规格有效标志,取值:0-停止售卖,1-开放售卖
  179. */
  180. public Long getCpu() {
  181. return this.Cpu;
  182. }
  183. /**
  184. * Set 规格有效标志,取值:0-停止售卖,1-开放售卖
  185. * @param Cpu 规格有效标志,取值:0-停止售卖,1-开放售卖
  186. */
  187. public void setCpu(Long Cpu) {
  188. this.Cpu = Cpu;
  189. }
  190. /**
  191. * Get 内存规格,单位为MB
  192. * @return Memory 内存规格,单位为MB
  193. */
  194. public Long getMemory() {
  195. return this.Memory;
  196. }
  197. /**
  198. * Set 内存规格,单位为MB
  199. * @param Memory 内存规格,单位为MB
  200. */
  201. public void setMemory(Long Memory) {
  202. this.Memory = Memory;
  203. }
  204. /**
  205. * Get 默认磁盘规格,单位MB
  206. * @return DefaultStorage 默认磁盘规格,单位MB
  207. */
  208. public Long getDefaultStorage() {
  209. return this.DefaultStorage;
  210. }
  211. /**
  212. * Set 默认磁盘规格,单位MB
  213. * @param DefaultStorage 默认磁盘规格,单位MB
  214. */
  215. public void setDefaultStorage(Long DefaultStorage) {
  216. this.DefaultStorage = DefaultStorage;
  217. }
  218. /**
  219. * Get 最大磁盘规格,单位MB
  220. * @return MaxStorage 最大磁盘规格,单位MB
  221. */
  222. public Long getMaxStorage() {
  223. return this.MaxStorage;
  224. }
  225. /**
  226. * Set 最大磁盘规格,单位MB
  227. * @param MaxStorage 最大磁盘规格,单位MB
  228. */
  229. public void setMaxStorage(Long MaxStorage) {
  230. this.MaxStorage = MaxStorage;
  231. }
  232. /**
  233. * Get 最小磁盘规格,单位MB
  234. * @return MinStorage 最小磁盘规格,单位MB
  235. */
  236. public Long getMinStorage() {
  237. return this.MinStorage;
  238. }
  239. /**
  240. * Set 最小磁盘规格,单位MB
  241. * @param MinStorage 最小磁盘规格,单位MB
  242. */
  243. public void setMinStorage(Long MinStorage) {
  244. this.MinStorage = MinStorage;
  245. }
  246. /**
  247. * Get 可承载qps信息
  248. * @return Qps 可承载qps信息
  249. */
  250. public Long getQps() {
  251. return this.Qps;
  252. }
  253. /**
  254. * Set 可承载qps信息
  255. * @param Qps 可承载qps信息
  256. */
  257. public void setQps(Long Qps) {
  258. this.Qps = Qps;
  259. }
  260. /**
  261. * Get 连接数限制
  262. * @return Conns 连接数限制
  263. */
  264. public Long getConns() {
  265. return this.Conns;
  266. }
  267. /**
  268. * Set 连接数限制
  269. * @param Conns 连接数限制
  270. */
  271. public void setConns(Long Conns) {
  272. this.Conns = Conns;
  273. }
  274. /**
  275. * Get 实例mongodb版本信息
  276. * @return MongoVersionCode 实例mongodb版本信息
  277. */
  278. public String getMongoVersionCode() {
  279. return this.MongoVersionCode;
  280. }
  281. /**
  282. * Set 实例mongodb版本信息
  283. * @param MongoVersionCode 实例mongodb版本信息
  284. */
  285. public void setMongoVersionCode(String MongoVersionCode) {
  286. this.MongoVersionCode = MongoVersionCode;
  287. }
  288. /**
  289. * Get 实例mongodb版本号
  290. * @return MongoVersionValue 实例mongodb版本号
  291. */
  292. public Long getMongoVersionValue() {
  293. return this.MongoVersionValue;
  294. }
  295. /**
  296. * Set 实例mongodb版本号
  297. * @param MongoVersionValue 实例mongodb版本号
  298. */
  299. public void setMongoVersionValue(Long MongoVersionValue) {
  300. this.MongoVersionValue = MongoVersionValue;
  301. }
  302. /**
  303. * Get 实例mongodb版本号(短)
  304. * @return Version 实例mongodb版本号(短)
  305. */
  306. public String getVersion() {
  307. return this.Version;
  308. }
  309. /**
  310. * Set 实例mongodb版本号(短)
  311. * @param Version 实例mongodb版本号(短)
  312. */
  313. public void setVersion(String Version) {
  314. this.Version = Version;
  315. }
  316. /**
  317. * Get 存储引擎
  318. * @return EngineName 存储引擎
  319. */
  320. public String getEngineName() {
  321. return this.EngineName;
  322. }
  323. /**
  324. * Set 存储引擎
  325. * @param EngineName 存储引擎
  326. */
  327. public void setEngineName(String EngineName) {
  328. this.EngineName = EngineName;
  329. }
  330. /**
  331. * Get 集群类型,取值:1-分片集群,0-副本集集群
  332. * @return ClusterType 集群类型,取值:1-分片集群,0-副本集集群
  333. */
  334. public Long getClusterType() {
  335. return this.ClusterType;
  336. }
  337. /**
  338. * Set 集群类型,取值:1-分片集群,0-副本集集群
  339. * @param ClusterType 集群类型,取值:1-分片集群,0-副本集集群
  340. */
  341. public void setClusterType(Long ClusterType) {
  342. this.ClusterType = ClusterType;
  343. }
  344. /**
  345. * Get 最小副本集从节点数
  346. * @return MinNodeNum 最小副本集从节点数
  347. */
  348. public Long getMinNodeNum() {
  349. return this.MinNodeNum;
  350. }
  351. /**
  352. * Set 最小副本集从节点数
  353. * @param MinNodeNum 最小副本集从节点数
  354. */
  355. public void setMinNodeNum(Long MinNodeNum) {
  356. this.MinNodeNum = MinNodeNum;
  357. }
  358. /**
  359. * Get 最大副本集从节点数
  360. * @return MaxNodeNum 最大副本集从节点数
  361. */
  362. public Long getMaxNodeNum() {
  363. return this.MaxNodeNum;
  364. }
  365. /**
  366. * Set 最大副本集从节点数
  367. * @param MaxNodeNum 最大副本集从节点数
  368. */
  369. public void setMaxNodeNum(Long MaxNodeNum) {
  370. this.MaxNodeNum = MaxNodeNum;
  371. }
  372. /**
  373. * Get 最小分片数
  374. * @return MinReplicateSetNum 最小分片数
  375. */
  376. public Long getMinReplicateSetNum() {
  377. return this.MinReplicateSetNum;
  378. }
  379. /**
  380. * Set 最小分片数
  381. * @param MinReplicateSetNum 最小分片数
  382. */
  383. public void setMinReplicateSetNum(Long MinReplicateSetNum) {
  384. this.MinReplicateSetNum = MinReplicateSetNum;
  385. }
  386. /**
  387. * Get 最大分片数
  388. * @return MaxReplicateSetNum 最大分片数
  389. */
  390. public Long getMaxReplicateSetNum() {
  391. return this.MaxReplicateSetNum;
  392. }
  393. /**
  394. * Set 最大分片数
  395. * @param MaxReplicateSetNum 最大分片数
  396. */
  397. public void setMaxReplicateSetNum(Long MaxReplicateSetNum) {
  398. this.MaxReplicateSetNum = MaxReplicateSetNum;
  399. }
  400. /**
  401. * Get 最小分片从节点数
  402. * @return MinReplicateSetNodeNum 最小分片从节点数
  403. */
  404. public Long getMinReplicateSetNodeNum() {
  405. return this.MinReplicateSetNodeNum;
  406. }
  407. /**
  408. * Set 最小分片从节点数
  409. * @param MinReplicateSetNodeNum 最小分片从节点数
  410. */
  411. public void setMinReplicateSetNodeNum(Long MinReplicateSetNodeNum) {
  412. this.MinReplicateSetNodeNum = MinReplicateSetNodeNum;
  413. }
  414. /**
  415. * Get 最大分片从节点数
  416. * @return MaxReplicateSetNodeNum 最大分片从节点数
  417. */
  418. public Long getMaxReplicateSetNodeNum() {
  419. return this.MaxReplicateSetNodeNum;
  420. }
  421. /**
  422. * Set 最大分片从节点数
  423. * @param MaxReplicateSetNodeNum 最大分片从节点数
  424. */
  425. public void setMaxReplicateSetNodeNum(Long MaxReplicateSetNodeNum) {
  426. this.MaxReplicateSetNodeNum = MaxReplicateSetNodeNum;
  427. }
  428. /**
  429. * Get 机器类型,取值:0-HIO,4-HIO10G
  430. * @return MachineType 机器类型,取值:0-HIO,4-HIO10G
  431. */
  432. public String getMachineType() {
  433. return this.MachineType;
  434. }
  435. /**
  436. * Set 机器类型,取值:0-HIO,4-HIO10G
  437. * @param MachineType 机器类型,取值:0-HIO,4-HIO10G
  438. */
  439. public void setMachineType(String MachineType) {
  440. this.MachineType = MachineType;
  441. }
  442. /**
  443. * Internal implementation, normal users should not use it.
  444. */
  445. public void toMap(HashMap<String, String> map, String prefix) {
  446. this.setParamSimple(map, prefix + "SpecCode", this.SpecCode);
  447. this.setParamSimple(map, prefix + "Status", this.Status);
  448. this.setParamSimple(map, prefix + "Cpu", this.Cpu);
  449. this.setParamSimple(map, prefix + "Memory", this.Memory);
  450. this.setParamSimple(map, prefix + "DefaultStorage", this.DefaultStorage);
  451. this.setParamSimple(map, prefix + "MaxStorage", this.MaxStorage);
  452. this.setParamSimple(map, prefix + "MinStorage", this.MinStorage);
  453. this.setParamSimple(map, prefix + "Qps", this.Qps);
  454. this.setParamSimple(map, prefix + "Conns", this.Conns);
  455. this.setParamSimple(map, prefix + "MongoVersionCode", this.MongoVersionCode);
  456. this.setParamSimple(map, prefix + "MongoVersionValue", this.MongoVersionValue);
  457. this.setParamSimple(map, prefix + "Version", this.Version);
  458. this.setParamSimple(map, prefix + "EngineName", this.EngineName);
  459. this.setParamSimple(map, prefix + "ClusterType", this.ClusterType);
  460. this.setParamSimple(map, prefix + "MinNodeNum", this.MinNodeNum);
  461. this.setParamSimple(map, prefix + "MaxNodeNum", this.MaxNodeNum);
  462. this.setParamSimple(map, prefix + "MinReplicateSetNum", this.MinReplicateSetNum);
  463. this.setParamSimple(map, prefix + "MaxReplicateSetNum", this.MaxReplicateSetNum);
  464. this.setParamSimple(map, prefix + "MinReplicateSetNodeNum", this.MinReplicateSetNodeNum);
  465. this.setParamSimple(map, prefix + "MaxReplicateSetNodeNum", this.MaxReplicateSetNodeNum);
  466. this.setParamSimple(map, prefix + "MachineType", this.MachineType);
  467. }
  468. }