
com.tencentcloudapi.redis.v20180412.models.ProductConf Maven / Gradle / Ivy
/*
* 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.redis.v20180412.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ProductConf extends AbstractModel{
/**
* 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis
*/
@SerializedName("Type")
@Expose
private Long Type;
/**
* 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis
*/
@SerializedName("TypeName")
@Expose
private String TypeName;
/**
* 购买时的最小数量
*/
@SerializedName("MinBuyNum")
@Expose
private Long MinBuyNum;
/**
* 购买时的最大数量
*/
@SerializedName("MaxBuyNum")
@Expose
private Long MaxBuyNum;
/**
* 产品是否售罄
*/
@SerializedName("Saleout")
@Expose
private Boolean Saleout;
/**
* 产品引擎,腾讯云CKV或者社区版Redis
*/
@SerializedName("Engine")
@Expose
private String Engine;
/**
* 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0
*/
@SerializedName("Version")
@Expose
private String Version;
/**
* 规格总大小,单位G
*/
@SerializedName("TotalSize")
@Expose
private String [] TotalSize;
/**
* 每个分片大小,单位G
*/
@SerializedName("ShardSize")
@Expose
private String [] ShardSize;
/**
* 副本数量
*/
@SerializedName("ReplicaNum")
@Expose
private String [] ReplicaNum;
/**
* 分片数量
*/
@SerializedName("ShardNum")
@Expose
private String [] ShardNum;
/**
* 支持的计费模式,1-包年包月,0-按量计费
*/
@SerializedName("PayMode")
@Expose
private String PayMode;
/**
* 是否支持副本只读
*/
@SerializedName("EnableRepicaReadOnly")
@Expose
private Boolean EnableRepicaReadOnly;
/**
* Get 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis
* @return Type 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis
*/
public Long getType() {
return this.Type;
}
/**
* Set 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis
* @param Type 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis
*/
public void setType(Long Type) {
this.Type = Type;
}
/**
* Get 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis
* @return TypeName 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis
*/
public String getTypeName() {
return this.TypeName;
}
/**
* Set 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis
* @param TypeName 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis
*/
public void setTypeName(String TypeName) {
this.TypeName = TypeName;
}
/**
* Get 购买时的最小数量
* @return MinBuyNum 购买时的最小数量
*/
public Long getMinBuyNum() {
return this.MinBuyNum;
}
/**
* Set 购买时的最小数量
* @param MinBuyNum 购买时的最小数量
*/
public void setMinBuyNum(Long MinBuyNum) {
this.MinBuyNum = MinBuyNum;
}
/**
* Get 购买时的最大数量
* @return MaxBuyNum 购买时的最大数量
*/
public Long getMaxBuyNum() {
return this.MaxBuyNum;
}
/**
* Set 购买时的最大数量
* @param MaxBuyNum 购买时的最大数量
*/
public void setMaxBuyNum(Long MaxBuyNum) {
this.MaxBuyNum = MaxBuyNum;
}
/**
* Get 产品是否售罄
* @return Saleout 产品是否售罄
*/
public Boolean getSaleout() {
return this.Saleout;
}
/**
* Set 产品是否售罄
* @param Saleout 产品是否售罄
*/
public void setSaleout(Boolean Saleout) {
this.Saleout = Saleout;
}
/**
* Get 产品引擎,腾讯云CKV或者社区版Redis
* @return Engine 产品引擎,腾讯云CKV或者社区版Redis
*/
public String getEngine() {
return this.Engine;
}
/**
* Set 产品引擎,腾讯云CKV或者社区版Redis
* @param Engine 产品引擎,腾讯云CKV或者社区版Redis
*/
public void setEngine(String Engine) {
this.Engine = Engine;
}
/**
* Get 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0
* @return Version 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0
*/
public String getVersion() {
return this.Version;
}
/**
* Set 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0
* @param Version 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0
*/
public void setVersion(String Version) {
this.Version = Version;
}
/**
* Get 规格总大小,单位G
* @return TotalSize 规格总大小,单位G
*/
public String [] getTotalSize() {
return this.TotalSize;
}
/**
* Set 规格总大小,单位G
* @param TotalSize 规格总大小,单位G
*/
public void setTotalSize(String [] TotalSize) {
this.TotalSize = TotalSize;
}
/**
* Get 每个分片大小,单位G
* @return ShardSize 每个分片大小,单位G
*/
public String [] getShardSize() {
return this.ShardSize;
}
/**
* Set 每个分片大小,单位G
* @param ShardSize 每个分片大小,单位G
*/
public void setShardSize(String [] ShardSize) {
this.ShardSize = ShardSize;
}
/**
* Get 副本数量
* @return ReplicaNum 副本数量
*/
public String [] getReplicaNum() {
return this.ReplicaNum;
}
/**
* Set 副本数量
* @param ReplicaNum 副本数量
*/
public void setReplicaNum(String [] ReplicaNum) {
this.ReplicaNum = ReplicaNum;
}
/**
* Get 分片数量
* @return ShardNum 分片数量
*/
public String [] getShardNum() {
return this.ShardNum;
}
/**
* Set 分片数量
* @param ShardNum 分片数量
*/
public void setShardNum(String [] ShardNum) {
this.ShardNum = ShardNum;
}
/**
* Get 支持的计费模式,1-包年包月,0-按量计费
* @return PayMode 支持的计费模式,1-包年包月,0-按量计费
*/
public String getPayMode() {
return this.PayMode;
}
/**
* Set 支持的计费模式,1-包年包月,0-按量计费
* @param PayMode 支持的计费模式,1-包年包月,0-按量计费
*/
public void setPayMode(String PayMode) {
this.PayMode = PayMode;
}
/**
* Get 是否支持副本只读
* @return EnableRepicaReadOnly 是否支持副本只读
*/
public Boolean getEnableRepicaReadOnly() {
return this.EnableRepicaReadOnly;
}
/**
* Set 是否支持副本只读
* @param EnableRepicaReadOnly 是否支持副本只读
*/
public void setEnableRepicaReadOnly(Boolean EnableRepicaReadOnly) {
this.EnableRepicaReadOnly = EnableRepicaReadOnly;
}
public ProductConf() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ProductConf(ProductConf source) {
if (source.Type != null) {
this.Type = new Long(source.Type);
}
if (source.TypeName != null) {
this.TypeName = new String(source.TypeName);
}
if (source.MinBuyNum != null) {
this.MinBuyNum = new Long(source.MinBuyNum);
}
if (source.MaxBuyNum != null) {
this.MaxBuyNum = new Long(source.MaxBuyNum);
}
if (source.Saleout != null) {
this.Saleout = new Boolean(source.Saleout);
}
if (source.Engine != null) {
this.Engine = new String(source.Engine);
}
if (source.Version != null) {
this.Version = new String(source.Version);
}
if (source.TotalSize != null) {
this.TotalSize = new String[source.TotalSize.length];
for (int i = 0; i < source.TotalSize.length; i++) {
this.TotalSize[i] = new String(source.TotalSize[i]);
}
}
if (source.ShardSize != null) {
this.ShardSize = new String[source.ShardSize.length];
for (int i = 0; i < source.ShardSize.length; i++) {
this.ShardSize[i] = new String(source.ShardSize[i]);
}
}
if (source.ReplicaNum != null) {
this.ReplicaNum = new String[source.ReplicaNum.length];
for (int i = 0; i < source.ReplicaNum.length; i++) {
this.ReplicaNum[i] = new String(source.ReplicaNum[i]);
}
}
if (source.ShardNum != null) {
this.ShardNum = new String[source.ShardNum.length];
for (int i = 0; i < source.ShardNum.length; i++) {
this.ShardNum[i] = new String(source.ShardNum[i]);
}
}
if (source.PayMode != null) {
this.PayMode = new String(source.PayMode);
}
if (source.EnableRepicaReadOnly != null) {
this.EnableRepicaReadOnly = new Boolean(source.EnableRepicaReadOnly);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "TypeName", this.TypeName);
this.setParamSimple(map, prefix + "MinBuyNum", this.MinBuyNum);
this.setParamSimple(map, prefix + "MaxBuyNum", this.MaxBuyNum);
this.setParamSimple(map, prefix + "Saleout", this.Saleout);
this.setParamSimple(map, prefix + "Engine", this.Engine);
this.setParamSimple(map, prefix + "Version", this.Version);
this.setParamArraySimple(map, prefix + "TotalSize.", this.TotalSize);
this.setParamArraySimple(map, prefix + "ShardSize.", this.ShardSize);
this.setParamArraySimple(map, prefix + "ReplicaNum.", this.ReplicaNum);
this.setParamArraySimple(map, prefix + "ShardNum.", this.ShardNum);
this.setParamSimple(map, prefix + "PayMode", this.PayMode);
this.setParamSimple(map, prefix + "EnableRepicaReadOnly", this.EnableRepicaReadOnly);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy