/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
- /*
- * 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.v20190725.models;
- import com.tencentcloudapi.common.AbstractModel;
- import com.google.gson.annotations.SerializedName;
- import com.google.gson.annotations.Expose;
- import java.util.HashMap;
- public class SpecItem extends AbstractModel{
- /**
- * 规格信息标识
- */
- @SerializedName("SpecCode")
- @Expose
- private String SpecCode;
- /**
- * 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- @SerializedName("Status")
- @Expose
- private Long Status;
- /**
- * 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- @SerializedName("Cpu")
- @Expose
- private Long Cpu;
- /**
- * 内存规格,单位为MB
- */
- @SerializedName("Memory")
- @Expose
- private Long Memory;
- /**
- * 默认磁盘规格,单位MB
- */
- @SerializedName("DefaultStorage")
- @Expose
- private Long DefaultStorage;
- /**
- * 最大磁盘规格,单位MB
- */
- @SerializedName("MaxStorage")
- @Expose
- private Long MaxStorage;
- /**
- * 最小磁盘规格,单位MB
- */
- @SerializedName("MinStorage")
- @Expose
- private Long MinStorage;
- /**
- * 可承载qps信息
- */
- @SerializedName("Qps")
- @Expose
- private Long Qps;
- /**
- * 连接数限制
- */
- @SerializedName("Conns")
- @Expose
- private Long Conns;
- /**
- * 实例mongodb版本信息
- */
- @SerializedName("MongoVersionCode")
- @Expose
- private String MongoVersionCode;
- /**
- * 实例mongodb版本号
- */
- @SerializedName("MongoVersionValue")
- @Expose
- private Long MongoVersionValue;
- /**
- * 实例mongodb版本号(短)
- */
- @SerializedName("Version")
- @Expose
- private String Version;
- /**
- * 存储引擎
- */
- @SerializedName("EngineName")
- @Expose
- private String EngineName;
- /**
- * 集群类型,取值:1-分片集群,0-副本集集群
- */
- @SerializedName("ClusterType")
- @Expose
- private Long ClusterType;
- /**
- * 最小副本集从节点数
- */
- @SerializedName("MinNodeNum")
- @Expose
- private Long MinNodeNum;
- /**
- * 最大副本集从节点数
- */
- @SerializedName("MaxNodeNum")
- @Expose
- private Long MaxNodeNum;
- /**
- * 最小分片数
- */
- @SerializedName("MinReplicateSetNum")
- @Expose
- private Long MinReplicateSetNum;
- /**
- * 最大分片数
- */
- @SerializedName("MaxReplicateSetNum")
- @Expose
- private Long MaxReplicateSetNum;
- /**
- * 最小分片从节点数
- */
- @SerializedName("MinReplicateSetNodeNum")
- @Expose
- private Long MinReplicateSetNodeNum;
- /**
- * 最大分片从节点数
- */
- @SerializedName("MaxReplicateSetNodeNum")
- @Expose
- private Long MaxReplicateSetNodeNum;
- /**
- * 机器类型,取值:0-HIO,4-HIO10G
- */
- @SerializedName("MachineType")
- @Expose
- private String MachineType;
- /**
- * Get 规格信息标识
- * @return SpecCode 规格信息标识
- */
- public String getSpecCode() {
- return this.SpecCode;
- }
- /**
- * Set 规格信息标识
- * @param SpecCode 规格信息标识
- */
- public void setSpecCode(String SpecCode) {
- this.SpecCode = SpecCode;
- }
- /**
- * Get 规格有效标志,取值:0-停止售卖,1-开放售卖
- * @return Status 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- public Long getStatus() {
- return this.Status;
- }
- /**
- * Set 规格有效标志,取值:0-停止售卖,1-开放售卖
- * @param Status 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- public void setStatus(Long Status) {
- this.Status = Status;
- }
- /**
- * Get 规格有效标志,取值:0-停止售卖,1-开放售卖
- * @return Cpu 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- public Long getCpu() {
- return this.Cpu;
- }
- /**
- * Set 规格有效标志,取值:0-停止售卖,1-开放售卖
- * @param Cpu 规格有效标志,取值:0-停止售卖,1-开放售卖
- */
- public void setCpu(Long Cpu) {
- this.Cpu = Cpu;
- }
- /**
- * 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 DefaultStorage 默认磁盘规格,单位MB
- */
- public Long getDefaultStorage() {
- return this.DefaultStorage;
- }
- /**
- * Set 默认磁盘规格,单位MB
- * @param DefaultStorage 默认磁盘规格,单位MB
- */
- public void setDefaultStorage(Long DefaultStorage) {
- this.DefaultStorage = DefaultStorage;
- }
- /**
- * Get 最大磁盘规格,单位MB
- * @return MaxStorage 最大磁盘规格,单位MB
- */
- public Long getMaxStorage() {
- return this.MaxStorage;
- }
- /**
- * Set 最大磁盘规格,单位MB
- * @param MaxStorage 最大磁盘规格,单位MB
- */
- public void setMaxStorage(Long MaxStorage) {
- this.MaxStorage = MaxStorage;
- }
- /**
- * Get 最小磁盘规格,单位MB
- * @return MinStorage 最小磁盘规格,单位MB
- */
- public Long getMinStorage() {
- return this.MinStorage;
- }
- /**
- * Set 最小磁盘规格,单位MB
- * @param MinStorage 最小磁盘规格,单位MB
- */
- public void setMinStorage(Long MinStorage) {
- this.MinStorage = MinStorage;
- }
- /**
- * Get 可承载qps信息
- * @return Qps 可承载qps信息
- */
- public Long getQps() {
- return this.Qps;
- }
- /**
- * Set 可承载qps信息
- * @param Qps 可承载qps信息
- */
- public void setQps(Long Qps) {
- this.Qps = Qps;
- }
- /**
- * Get 连接数限制
- * @return Conns 连接数限制
- */
- public Long getConns() {
- return this.Conns;
- }
- /**
- * Set 连接数限制
- * @param Conns 连接数限制
- */
- public void setConns(Long Conns) {
- this.Conns = Conns;
- }
- /**
- * Get 实例mongodb版本信息
- * @return MongoVersionCode 实例mongodb版本信息
- */
- public String getMongoVersionCode() {
- return this.MongoVersionCode;
- }
- /**
- * Set 实例mongodb版本信息
- * @param MongoVersionCode 实例mongodb版本信息
- */
- public void setMongoVersionCode(String MongoVersionCode) {
- this.MongoVersionCode = MongoVersionCode;
- }
- /**
- * Get 实例mongodb版本号
- * @return MongoVersionValue 实例mongodb版本号
- */
- public Long getMongoVersionValue() {
- return this.MongoVersionValue;
- }
- /**
- * Set 实例mongodb版本号
- * @param MongoVersionValue 实例mongodb版本号
- */
- public void setMongoVersionValue(Long MongoVersionValue) {
- this.MongoVersionValue = MongoVersionValue;
- }
- /**
- * Get 实例mongodb版本号(短)
- * @return Version 实例mongodb版本号(短)
- */
- public String getVersion() {
- return this.Version;
- }
- /**
- * Set 实例mongodb版本号(短)
- * @param Version 实例mongodb版本号(短)
- */
- public void setVersion(String Version) {
- this.Version = Version;
- }
- /**
- * Get 存储引擎
- * @return EngineName 存储引擎
- */
- public String getEngineName() {
- return this.EngineName;
- }
- /**
- * Set 存储引擎
- * @param EngineName 存储引擎
- */
- public void setEngineName(String EngineName) {
- this.EngineName = EngineName;
- }
- /**
- * Get 集群类型,取值:1-分片集群,0-副本集集群
- * @return ClusterType 集群类型,取值:1-分片集群,0-副本集集群
- */
- public Long getClusterType() {
- return this.ClusterType;
- }
- /**
- * Set 集群类型,取值:1-分片集群,0-副本集集群
- * @param ClusterType 集群类型,取值:1-分片集群,0-副本集集群
- */
- public void setClusterType(Long ClusterType) {
- this.ClusterType = ClusterType;
- }
- /**
- * Get 最小副本集从节点数
- * @return MinNodeNum 最小副本集从节点数
- */
- public Long getMinNodeNum() {
- return this.MinNodeNum;
- }
- /**
- * Set 最小副本集从节点数
- * @param MinNodeNum 最小副本集从节点数
- */
- public void setMinNodeNum(Long MinNodeNum) {
- this.MinNodeNum = MinNodeNum;
- }
- /**
- * Get 最大副本集从节点数
- * @return MaxNodeNum 最大副本集从节点数
- */
- public Long getMaxNodeNum() {
- return this.MaxNodeNum;
- }
- /**
- * Set 最大副本集从节点数
- * @param MaxNodeNum 最大副本集从节点数
- */
- public void setMaxNodeNum(Long MaxNodeNum) {
- this.MaxNodeNum = MaxNodeNum;
- }
- /**
- * Get 最小分片数
- * @return MinReplicateSetNum 最小分片数
- */
- public Long getMinReplicateSetNum() {
- return this.MinReplicateSetNum;
- }
- /**
- * Set 最小分片数
- * @param MinReplicateSetNum 最小分片数
- */
- public void setMinReplicateSetNum(Long MinReplicateSetNum) {
- this.MinReplicateSetNum = MinReplicateSetNum;
- }
- /**
- * Get 最大分片数
- * @return MaxReplicateSetNum 最大分片数
- */
- public Long getMaxReplicateSetNum() {
- return this.MaxReplicateSetNum;
- }
- /**
- * Set 最大分片数
- * @param MaxReplicateSetNum 最大分片数
- */
- public void setMaxReplicateSetNum(Long MaxReplicateSetNum) {
- this.MaxReplicateSetNum = MaxReplicateSetNum;
- }
- /**
- * Get 最小分片从节点数
- * @return MinReplicateSetNodeNum 最小分片从节点数
- */
- public Long getMinReplicateSetNodeNum() {
- return this.MinReplicateSetNodeNum;
- }
- /**
- * Set 最小分片从节点数
- * @param MinReplicateSetNodeNum 最小分片从节点数
- */
- public void setMinReplicateSetNodeNum(Long MinReplicateSetNodeNum) {
- this.MinReplicateSetNodeNum = MinReplicateSetNodeNum;
- }
- /**
- * Get 最大分片从节点数
- * @return MaxReplicateSetNodeNum 最大分片从节点数
- */
- public Long getMaxReplicateSetNodeNum() {
- return this.MaxReplicateSetNodeNum;
- }
- /**
- * Set 最大分片从节点数
- * @param MaxReplicateSetNodeNum 最大分片从节点数
- */
- public void setMaxReplicateSetNodeNum(Long MaxReplicateSetNodeNum) {
- this.MaxReplicateSetNodeNum = MaxReplicateSetNodeNum;
- }
- /**
- * Get 机器类型,取值:0-HIO,4-HIO10G
- * @return MachineType 机器类型,取值:0-HIO,4-HIO10G
- */
- public String getMachineType() {
- return this.MachineType;
- }
- /**
- * Set 机器类型,取值:0-HIO,4-HIO10G
- * @param MachineType 机器类型,取值:0-HIO,4-HIO10G
- */
- public void setMachineType(String MachineType) {
- this.MachineType = MachineType;
- }
- /**
- * Internal implementation, normal users should not use it.
- */
- public void toMap(HashMap<String, String> map, String prefix) {
- this.setParamSimple(map, prefix + "SpecCode", this.SpecCode);
- this.setParamSimple(map, prefix + "Status", this.Status);
- this.setParamSimple(map, prefix + "Cpu", this.Cpu);
- this.setParamSimple(map, prefix + "Memory", this.Memory);
- this.setParamSimple(map, prefix + "DefaultStorage", this.DefaultStorage);
- this.setParamSimple(map, prefix + "MaxStorage", this.MaxStorage);
- this.setParamSimple(map, prefix + "MinStorage", this.MinStorage);
- this.setParamSimple(map, prefix + "Qps", this.Qps);
- this.setParamSimple(map, prefix + "Conns", this.Conns);
- this.setParamSimple(map, prefix + "MongoVersionCode", this.MongoVersionCode);
- this.setParamSimple(map, prefix + "MongoVersionValue", this.MongoVersionValue);
- this.setParamSimple(map, prefix + "Version", this.Version);
- this.setParamSimple(map, prefix + "EngineName", this.EngineName);
- this.setParamSimple(map, prefix + "ClusterType", this.ClusterType);
- this.setParamSimple(map, prefix + "MinNodeNum", this.MinNodeNum);
- this.setParamSimple(map, prefix + "MaxNodeNum", this.MaxNodeNum);
- this.setParamSimple(map, prefix + "MinReplicateSetNum", this.MinReplicateSetNum);
- this.setParamSimple(map, prefix + "MaxReplicateSetNum", this.MaxReplicateSetNum);
- this.setParamSimple(map, prefix + "MinReplicateSetNodeNum", this.MinReplicateSetNodeNum);
- this.setParamSimple(map, prefix + "MaxReplicateSetNodeNum", this.MaxReplicateSetNodeNum);
- this.setParamSimple(map, prefix + "MachineType", this.MachineType);
- }
- }