
com.tencentcloudapi.tdcpg.v20211118.models.Instance 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.tdcpg.v20211118.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Instance extends AbstractModel{
/**
* 实例ID,集群下唯一
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 实例名字,默认和实例ID一致
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 集群ID
*/
@SerializedName("ClusterId")
@Expose
private String ClusterId;
/**
* 实例所在的访问点ID
*/
@SerializedName("EndpointId")
@Expose
private String EndpointId;
/**
* 地域
*/
@SerializedName("Region")
@Expose
private String Region;
/**
* 可用区
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* 数据库版本
*/
@SerializedName("DBVersion")
@Expose
private String DBVersion;
/**
* 实例状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 实例状态中文含义
*/
@SerializedName("StatusDesc")
@Expose
private String StatusDesc;
/**
* 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 付费模式:
- PREPAID : 预付费
- POSTPAID_BY_HOUR : 按小时结算后付费
同一集群下付费模式需要保持一致。
*/
@SerializedName("PayMode")
@Expose
private String PayMode;
/**
* 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
@SerializedName("PayPeriodEndTime")
@Expose
private String PayPeriodEndTime;
/**
* CPU核数
*/
@SerializedName("CPU")
@Expose
private Long CPU;
/**
* 内存大小,单位GiB
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 实例类型
- RW:读写实例
- RO:只读实例
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* TDSQL-C PostgreSQL 合入的社区主要版本号
*/
@SerializedName("DBMajorVersion")
@Expose
private String DBMajorVersion;
/**
* TDSQL-C PostgreSQL 内核版本号
*/
@SerializedName("DBKernelVersion")
@Expose
private String DBKernelVersion;
/**
* Get 实例ID,集群下唯一
* @return InstanceId 实例ID,集群下唯一
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID,集群下唯一
* @param InstanceId 实例ID,集群下唯一
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 实例名字,默认和实例ID一致
* @return InstanceName 实例名字,默认和实例ID一致
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 实例名字,默认和实例ID一致
* @param InstanceName 实例名字,默认和实例ID一致
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 集群ID
* @return ClusterId 集群ID
*/
public String getClusterId() {
return this.ClusterId;
}
/**
* Set 集群ID
* @param ClusterId 集群ID
*/
public void setClusterId(String ClusterId) {
this.ClusterId = ClusterId;
}
/**
* Get 实例所在的访问点ID
* @return EndpointId 实例所在的访问点ID
*/
public String getEndpointId() {
return this.EndpointId;
}
/**
* Set 实例所在的访问点ID
* @param EndpointId 实例所在的访问点ID
*/
public void setEndpointId(String EndpointId) {
this.EndpointId = EndpointId;
}
/**
* Get 地域
* @return Region 地域
*/
public String getRegion() {
return this.Region;
}
/**
* Set 地域
* @param Region 地域
*/
public void setRegion(String Region) {
this.Region = Region;
}
/**
* Get 可用区
* @return Zone 可用区
*/
public String getZone() {
return this.Zone;
}
/**
* Set 可用区
* @param Zone 可用区
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get 数据库版本
* @return DBVersion 数据库版本
*/
public String getDBVersion() {
return this.DBVersion;
}
/**
* Set 数据库版本
* @param DBVersion 数据库版本
*/
public void setDBVersion(String DBVersion) {
this.DBVersion = DBVersion;
}
/**
* Get 实例状态
* @return Status 实例状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set 实例状态
* @param Status 实例状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 实例状态中文含义
* @return StatusDesc 实例状态中文含义
*/
public String getStatusDesc() {
return this.StatusDesc;
}
/**
* Set 实例状态中文含义
* @param StatusDesc 实例状态中文含义
*/
public void setStatusDesc(String StatusDesc) {
this.StatusDesc = StatusDesc;
}
/**
* Get 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
* @return CreateTime 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
* @param CreateTime 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 付费模式:
- PREPAID : 预付费
- POSTPAID_BY_HOUR : 按小时结算后付费
同一集群下付费模式需要保持一致。
* @return PayMode 付费模式:
- PREPAID : 预付费
- POSTPAID_BY_HOUR : 按小时结算后付费
同一集群下付费模式需要保持一致。
*/
public String getPayMode() {
return this.PayMode;
}
/**
* Set 付费模式:
- PREPAID : 预付费
- POSTPAID_BY_HOUR : 按小时结算后付费
同一集群下付费模式需要保持一致。
* @param PayMode 付费模式:
- PREPAID : 预付费
- POSTPAID_BY_HOUR : 按小时结算后付费
同一集群下付费模式需要保持一致。
*/
public void setPayMode(String PayMode) {
this.PayMode = PayMode;
}
/**
* Get 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
* @return PayPeriodEndTime 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
public String getPayPeriodEndTime() {
return this.PayPeriodEndTime;
}
/**
* Set 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
* @param PayPeriodEndTime 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
*/
public void setPayPeriodEndTime(String PayPeriodEndTime) {
this.PayPeriodEndTime = PayPeriodEndTime;
}
/**
* 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 内存大小,单位GiB
* @return Memory 内存大小,单位GiB
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set 内存大小,单位GiB
* @param Memory 内存大小,单位GiB
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get 实例类型
- RW:读写实例
- RO:只读实例
* @return InstanceType 实例类型
- RW:读写实例
- RO:只读实例
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set 实例类型
- RW:读写实例
- RO:只读实例
* @param InstanceType 实例类型
- RW:读写实例
- RO:只读实例
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get TDSQL-C PostgreSQL 合入的社区主要版本号
* @return DBMajorVersion TDSQL-C PostgreSQL 合入的社区主要版本号
*/
public String getDBMajorVersion() {
return this.DBMajorVersion;
}
/**
* Set TDSQL-C PostgreSQL 合入的社区主要版本号
* @param DBMajorVersion TDSQL-C PostgreSQL 合入的社区主要版本号
*/
public void setDBMajorVersion(String DBMajorVersion) {
this.DBMajorVersion = DBMajorVersion;
}
/**
* Get TDSQL-C PostgreSQL 内核版本号
* @return DBKernelVersion TDSQL-C PostgreSQL 内核版本号
*/
public String getDBKernelVersion() {
return this.DBKernelVersion;
}
/**
* Set TDSQL-C PostgreSQL 内核版本号
* @param DBKernelVersion TDSQL-C PostgreSQL 内核版本号
*/
public void setDBKernelVersion(String DBKernelVersion) {
this.DBKernelVersion = DBKernelVersion;
}
public Instance() {
}
/**
* 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 Instance(Instance source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.ClusterId != null) {
this.ClusterId = new String(source.ClusterId);
}
if (source.EndpointId != null) {
this.EndpointId = new String(source.EndpointId);
}
if (source.Region != null) {
this.Region = new String(source.Region);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.DBVersion != null) {
this.DBVersion = new String(source.DBVersion);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.StatusDesc != null) {
this.StatusDesc = new String(source.StatusDesc);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.PayMode != null) {
this.PayMode = new String(source.PayMode);
}
if (source.PayPeriodEndTime != null) {
this.PayPeriodEndTime = new String(source.PayPeriodEndTime);
}
if (source.CPU != null) {
this.CPU = new Long(source.CPU);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
if (source.DBMajorVersion != null) {
this.DBMajorVersion = new String(source.DBMajorVersion);
}
if (source.DBKernelVersion != null) {
this.DBKernelVersion = new String(source.DBKernelVersion);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
this.setParamSimple(map, prefix + "EndpointId", this.EndpointId);
this.setParamSimple(map, prefix + "Region", this.Region);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "DBVersion", this.DBVersion);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "StatusDesc", this.StatusDesc);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "PayMode", this.PayMode);
this.setParamSimple(map, prefix + "PayPeriodEndTime", this.PayPeriodEndTime);
this.setParamSimple(map, prefix + "CPU", this.CPU);
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.setParamSimple(map, prefix + "DBMajorVersion", this.DBMajorVersion);
this.setParamSimple(map, prefix + "DBKernelVersion", this.DBKernelVersion);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy