com.tencentcloudapi.postgres.v20170312.models.SpecItemInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-postgres Show documentation
Show all versions of tencentcloud-sdk-java-postgres Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.postgres.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SpecItemInfo extends AbstractModel{
/**
* 规格ID
*/
@SerializedName("SpecCode")
@Expose
private String SpecCode;
/**
* PostgreSQL的版本编号
*/
@SerializedName("Version")
@Expose
private String Version;
/**
* 内核编号对应的完整版本名称
*/
@SerializedName("VersionName")
@Expose
private String VersionName;
/**
* CPU核数
*/
@SerializedName("Cpu")
@Expose
private Long Cpu;
/**
* 内存大小,单位:MB
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 该规格所支持最大存储容量,单位:GB
*/
@SerializedName("MaxStorage")
@Expose
private Long MaxStorage;
/**
* 该规格所支持最小存储容量,单位:GB
*/
@SerializedName("MinStorage")
@Expose
private Long MinStorage;
/**
* 该规格的预估QPS
*/
@SerializedName("Qps")
@Expose
private Long Qps;
/**
* 该规格对应的计费ID
*/
@SerializedName("Pid")
@Expose
private Long Pid;
/**
* 机器类型
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* PostgreSQL的主要版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("MajorVersion")
@Expose
private String MajorVersion;
/**
* PostgreSQL的内核版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("KernelVersion")
@Expose
private String KernelVersion;
/**
* 是否支持TDE数据加密功能,0-不支持,1-支持
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("IsSupportTDE")
@Expose
private Long IsSupportTDE;
/**
* Get 规格ID
* @return SpecCode 规格ID
*/
public String getSpecCode() {
return this.SpecCode;
}
/**
* Set 规格ID
* @param SpecCode 规格ID
*/
public void setSpecCode(String SpecCode) {
this.SpecCode = SpecCode;
}
/**
* Get PostgreSQL的版本编号
* @return Version PostgreSQL的版本编号
*/
public String getVersion() {
return this.Version;
}
/**
* Set PostgreSQL的版本编号
* @param Version PostgreSQL的版本编号
*/
public void setVersion(String Version) {
this.Version = Version;
}
/**
* Get 内核编号对应的完整版本名称
* @return VersionName 内核编号对应的完整版本名称
*/
public String getVersionName() {
return this.VersionName;
}
/**
* Set 内核编号对应的完整版本名称
* @param VersionName 内核编号对应的完整版本名称
*/
public void setVersionName(String VersionName) {
this.VersionName = VersionName;
}
/**
* Get CPU核数
* @return Cpu CPU核数
*/
public Long getCpu() {
return this.Cpu;
}
/**
* Set CPU核数
* @param Cpu CPU核数
*/
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 该规格所支持最大存储容量,单位:GB
* @return MaxStorage 该规格所支持最大存储容量,单位:GB
*/
public Long getMaxStorage() {
return this.MaxStorage;
}
/**
* Set 该规格所支持最大存储容量,单位:GB
* @param MaxStorage 该规格所支持最大存储容量,单位:GB
*/
public void setMaxStorage(Long MaxStorage) {
this.MaxStorage = MaxStorage;
}
/**
* Get 该规格所支持最小存储容量,单位:GB
* @return MinStorage 该规格所支持最小存储容量,单位:GB
*/
public Long getMinStorage() {
return this.MinStorage;
}
/**
* Set 该规格所支持最小存储容量,单位:GB
* @param MinStorage 该规格所支持最小存储容量,单位:GB
*/
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 该规格对应的计费ID
* @return Pid 该规格对应的计费ID
*/
public Long getPid() {
return this.Pid;
}
/**
* Set 该规格对应的计费ID
* @param Pid 该规格对应的计费ID
*/
public void setPid(Long Pid) {
this.Pid = Pid;
}
/**
* Get 机器类型
* @return Type 机器类型
*/
public String getType() {
return this.Type;
}
/**
* Set 机器类型
* @param Type 机器类型
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get PostgreSQL的主要版本编号
注意:此字段可能返回 null,表示取不到有效值。
* @return MajorVersion PostgreSQL的主要版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getMajorVersion() {
return this.MajorVersion;
}
/**
* Set PostgreSQL的主要版本编号
注意:此字段可能返回 null,表示取不到有效值。
* @param MajorVersion PostgreSQL的主要版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setMajorVersion(String MajorVersion) {
this.MajorVersion = MajorVersion;
}
/**
* Get PostgreSQL的内核版本编号
注意:此字段可能返回 null,表示取不到有效值。
* @return KernelVersion PostgreSQL的内核版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getKernelVersion() {
return this.KernelVersion;
}
/**
* Set PostgreSQL的内核版本编号
注意:此字段可能返回 null,表示取不到有效值。
* @param KernelVersion PostgreSQL的内核版本编号
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setKernelVersion(String KernelVersion) {
this.KernelVersion = KernelVersion;
}
/**
* Get 是否支持TDE数据加密功能,0-不支持,1-支持
注意:此字段可能返回 null,表示取不到有效值。
* @return IsSupportTDE 是否支持TDE数据加密功能,0-不支持,1-支持
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getIsSupportTDE() {
return this.IsSupportTDE;
}
/**
* Set 是否支持TDE数据加密功能,0-不支持,1-支持
注意:此字段可能返回 null,表示取不到有效值。
* @param IsSupportTDE 是否支持TDE数据加密功能,0-不支持,1-支持
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setIsSupportTDE(Long IsSupportTDE) {
this.IsSupportTDE = IsSupportTDE;
}
public SpecItemInfo() {
}
/**
* 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 SpecItemInfo(SpecItemInfo source) {
if (source.SpecCode != null) {
this.SpecCode = new String(source.SpecCode);
}
if (source.Version != null) {
this.Version = new String(source.Version);
}
if (source.VersionName != null) {
this.VersionName = new String(source.VersionName);
}
if (source.Cpu != null) {
this.Cpu = new Long(source.Cpu);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.MaxStorage != null) {
this.MaxStorage = new Long(source.MaxStorage);
}
if (source.MinStorage != null) {
this.MinStorage = new Long(source.MinStorage);
}
if (source.Qps != null) {
this.Qps = new Long(source.Qps);
}
if (source.Pid != null) {
this.Pid = new Long(source.Pid);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.MajorVersion != null) {
this.MajorVersion = new String(source.MajorVersion);
}
if (source.KernelVersion != null) {
this.KernelVersion = new String(source.KernelVersion);
}
if (source.IsSupportTDE != null) {
this.IsSupportTDE = new Long(source.IsSupportTDE);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SpecCode", this.SpecCode);
this.setParamSimple(map, prefix + "Version", this.Version);
this.setParamSimple(map, prefix + "VersionName", this.VersionName);
this.setParamSimple(map, prefix + "Cpu", this.Cpu);
this.setParamSimple(map, prefix + "Memory", this.Memory);
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 + "Pid", this.Pid);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "MajorVersion", this.MajorVersion);
this.setParamSimple(map, prefix + "KernelVersion", this.KernelVersion);
this.setParamSimple(map, prefix + "IsSupportTDE", this.IsSupportTDE);
}
}