/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
- /*
- * 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.mongodb.v20180408.models;
- import com.tencentcloudapi.common.AbstractModel;
- import com.google.gson.annotations.SerializedName;
- import com.google.gson.annotations.Expose;
- import java.util.HashMap;
- public class MongodbShardInfo extends AbstractModel{
- /**
- * 分片已使用容量
- */
- @SerializedName("UsedVolume")
- @Expose
- private Float UsedVolume;
- /**
- * 分片ID
- */
- @SerializedName("ReplicaSetId")
- @Expose
- private String ReplicaSetId;
- /**
- * 分片名
- */
- @SerializedName("ReplicaSetName")
- @Expose
- private String ReplicaSetName;
- /**
- * 分片内存规格,单位为MB
- */
- @SerializedName("Memory")
- @Expose
- private Long Memory;
- /**
- * 分片磁盘规格,单位为MB
- */
- @SerializedName("Volume")
- @Expose
- private Long Volume;
- /**
- * 分片Oplog大小,单位为MB
- */
- @SerializedName("OplogSize")
- @Expose
- private Long OplogSize;
- /**
- * 分片从节点数
- */
- @SerializedName("SecondaryNum")
- @Expose
- private Long SecondaryNum;
- /**
- * 分片物理ID
- */
- @SerializedName("RealReplicaSetId")
- @Expose
- private String RealReplicaSetId;
- /**
- * Get 分片已使用容量
- * @return UsedVolume 分片已使用容量
- */
- public Float getUsedVolume() {
- return this.UsedVolume;
- }
- /**
- * Set 分片已使用容量
- * @param UsedVolume 分片已使用容量
- */
- public void setUsedVolume(Float UsedVolume) {
- this.UsedVolume = UsedVolume;
- }
- /**
- * Get 分片ID
- * @return ReplicaSetId 分片ID
- */
- public String getReplicaSetId() {
- return this.ReplicaSetId;
- }
- /**
- * Set 分片ID
- * @param ReplicaSetId 分片ID
- */
- public void setReplicaSetId(String ReplicaSetId) {
- this.ReplicaSetId = ReplicaSetId;
- }
- /**
- * Get 分片名
- * @return ReplicaSetName 分片名
- */
- public String getReplicaSetName() {
- return this.ReplicaSetName;
- }
- /**
- * Set 分片名
- * @param ReplicaSetName 分片名
- */
- public void setReplicaSetName(String ReplicaSetName) {
- this.ReplicaSetName = ReplicaSetName;
- }
- /**
- * Get 分片内存规格,单位为MB
- * @return Memory 分片内存规格,单位为MB
- */
- public Long getMemory() {
- return this.Memory;
- }
- /**
- * Set 分片内存规格,单位为MB
- * @param Memory 分片内存规格,单位为MB
- */
- public void setMemory(Long Memory) {
- this.Memory = Memory;
- }
- /**
- * Get 分片磁盘规格,单位为MB
- * @return Volume 分片磁盘规格,单位为MB
- */
- public Long getVolume() {
- return this.Volume;
- }
- /**
- * Set 分片磁盘规格,单位为MB
- * @param Volume 分片磁盘规格,单位为MB
- */
- public void setVolume(Long Volume) {
- this.Volume = Volume;
- }
- /**
- * Get 分片Oplog大小,单位为MB
- * @return OplogSize 分片Oplog大小,单位为MB
- */
- public Long getOplogSize() {
- return this.OplogSize;
- }
- /**
- * Set 分片Oplog大小,单位为MB
- * @param OplogSize 分片Oplog大小,单位为MB
- */
- public void setOplogSize(Long OplogSize) {
- this.OplogSize = OplogSize;
- }
- /**
- * Get 分片从节点数
- * @return SecondaryNum 分片从节点数
- */
- public Long getSecondaryNum() {
- return this.SecondaryNum;
- }
- /**
- * Set 分片从节点数
- * @param SecondaryNum 分片从节点数
- */
- public void setSecondaryNum(Long SecondaryNum) {
- this.SecondaryNum = SecondaryNum;
- }
- /**
- * Get 分片物理ID
- * @return RealReplicaSetId 分片物理ID
- */
- public String getRealReplicaSetId() {
- return this.RealReplicaSetId;
- }
- /**
- * Set 分片物理ID
- * @param RealReplicaSetId 分片物理ID
- */
- public void setRealReplicaSetId(String RealReplicaSetId) {
- this.RealReplicaSetId = RealReplicaSetId;
- }
- /**
- * Internal implementation, normal users should not use it.
- */
- public void toMap(HashMap<String, String> map, String prefix) {
- this.setParamSimple(map, prefix + "UsedVolume", this.UsedVolume);
- this.setParamSimple(map, prefix + "ReplicaSetId", this.ReplicaSetId);
- this.setParamSimple(map, prefix + "ReplicaSetName", this.ReplicaSetName);
- this.setParamSimple(map, prefix + "Memory", this.Memory);
- this.setParamSimple(map, prefix + "Volume", this.Volume);
- this.setParamSimple(map, prefix + "OplogSize", this.OplogSize);
- this.setParamSimple(map, prefix + "SecondaryNum", this.SecondaryNum);
- this.setParamSimple(map, prefix + "RealReplicaSetId", this.RealReplicaSetId);
- }
- }