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

https://github.com/TencentCloud/tencentcloud-sdk-java · Java · 224 lines · 89 code · 29 blank · 106 comment · 0 complexity · 5a2adb8c4c5c4b095aadceb6c1f7fee4 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 MongodbShardInfo extends AbstractModel{
  22. /**
  23. * 分片已使用容量
  24. */
  25. @SerializedName("UsedVolume")
  26. @Expose
  27. private Float UsedVolume;
  28. /**
  29. * 分片ID
  30. */
  31. @SerializedName("ReplicaSetId")
  32. @Expose
  33. private String ReplicaSetId;
  34. /**
  35. * 分片名
  36. */
  37. @SerializedName("ReplicaSetName")
  38. @Expose
  39. private String ReplicaSetName;
  40. /**
  41. * 分片内存规格,单位为MB
  42. */
  43. @SerializedName("Memory")
  44. @Expose
  45. private Long Memory;
  46. /**
  47. * 分片磁盘规格,单位为MB
  48. */
  49. @SerializedName("Volume")
  50. @Expose
  51. private Long Volume;
  52. /**
  53. * 分片Oplog大小,单位为MB
  54. */
  55. @SerializedName("OplogSize")
  56. @Expose
  57. private Long OplogSize;
  58. /**
  59. * 分片从节点数
  60. */
  61. @SerializedName("SecondaryNum")
  62. @Expose
  63. private Long SecondaryNum;
  64. /**
  65. * 分片物理ID
  66. */
  67. @SerializedName("RealReplicaSetId")
  68. @Expose
  69. private String RealReplicaSetId;
  70. /**
  71. * Get 分片已使用容量
  72. * @return UsedVolume 分片已使用容量
  73. */
  74. public Float getUsedVolume() {
  75. return this.UsedVolume;
  76. }
  77. /**
  78. * Set 分片已使用容量
  79. * @param UsedVolume 分片已使用容量
  80. */
  81. public void setUsedVolume(Float UsedVolume) {
  82. this.UsedVolume = UsedVolume;
  83. }
  84. /**
  85. * Get 分片ID
  86. * @return ReplicaSetId 分片ID
  87. */
  88. public String getReplicaSetId() {
  89. return this.ReplicaSetId;
  90. }
  91. /**
  92. * Set 分片ID
  93. * @param ReplicaSetId 分片ID
  94. */
  95. public void setReplicaSetId(String ReplicaSetId) {
  96. this.ReplicaSetId = ReplicaSetId;
  97. }
  98. /**
  99. * Get 分片名
  100. * @return ReplicaSetName 分片名
  101. */
  102. public String getReplicaSetName() {
  103. return this.ReplicaSetName;
  104. }
  105. /**
  106. * Set 分片名
  107. * @param ReplicaSetName 分片名
  108. */
  109. public void setReplicaSetName(String ReplicaSetName) {
  110. this.ReplicaSetName = ReplicaSetName;
  111. }
  112. /**
  113. * Get 分片内存规格,单位为MB
  114. * @return Memory 分片内存规格,单位为MB
  115. */
  116. public Long getMemory() {
  117. return this.Memory;
  118. }
  119. /**
  120. * Set 分片内存规格,单位为MB
  121. * @param Memory 分片内存规格,单位为MB
  122. */
  123. public void setMemory(Long Memory) {
  124. this.Memory = Memory;
  125. }
  126. /**
  127. * Get 分片磁盘规格,单位为MB
  128. * @return Volume 分片磁盘规格,单位为MB
  129. */
  130. public Long getVolume() {
  131. return this.Volume;
  132. }
  133. /**
  134. * Set 分片磁盘规格,单位为MB
  135. * @param Volume 分片磁盘规格,单位为MB
  136. */
  137. public void setVolume(Long Volume) {
  138. this.Volume = Volume;
  139. }
  140. /**
  141. * Get 分片Oplog大小,单位为MB
  142. * @return OplogSize 分片Oplog大小,单位为MB
  143. */
  144. public Long getOplogSize() {
  145. return this.OplogSize;
  146. }
  147. /**
  148. * Set 分片Oplog大小,单位为MB
  149. * @param OplogSize 分片Oplog大小,单位为MB
  150. */
  151. public void setOplogSize(Long OplogSize) {
  152. this.OplogSize = OplogSize;
  153. }
  154. /**
  155. * Get 分片从节点数
  156. * @return SecondaryNum 分片从节点数
  157. */
  158. public Long getSecondaryNum() {
  159. return this.SecondaryNum;
  160. }
  161. /**
  162. * Set 分片从节点数
  163. * @param SecondaryNum 分片从节点数
  164. */
  165. public void setSecondaryNum(Long SecondaryNum) {
  166. this.SecondaryNum = SecondaryNum;
  167. }
  168. /**
  169. * Get 分片物理ID
  170. * @return RealReplicaSetId 分片物理ID
  171. */
  172. public String getRealReplicaSetId() {
  173. return this.RealReplicaSetId;
  174. }
  175. /**
  176. * Set 分片物理ID
  177. * @param RealReplicaSetId 分片物理ID
  178. */
  179. public void setRealReplicaSetId(String RealReplicaSetId) {
  180. this.RealReplicaSetId = RealReplicaSetId;
  181. }
  182. /**
  183. * Internal implementation, normal users should not use it.
  184. */
  185. public void toMap(HashMap<String, String> map, String prefix) {
  186. this.setParamSimple(map, prefix + "UsedVolume", this.UsedVolume);
  187. this.setParamSimple(map, prefix + "ReplicaSetId", this.ReplicaSetId);
  188. this.setParamSimple(map, prefix + "ReplicaSetName", this.ReplicaSetName);
  189. this.setParamSimple(map, prefix + "Memory", this.Memory);
  190. this.setParamSimple(map, prefix + "Volume", this.Volume);
  191. this.setParamSimple(map, prefix + "OplogSize", this.OplogSize);
  192. this.setParamSimple(map, prefix + "SecondaryNum", this.SecondaryNum);
  193. this.setParamSimple(map, prefix + "RealReplicaSetId", this.RealReplicaSetId);
  194. }
  195. }