
com.tencentcloudapi.rum.v20210622.models.RumInstanceInfo 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.rum.v20210622.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RumInstanceInfo extends AbstractModel{
/**
* 实例状态(1=创建中,2=运行中,3=异常,4=重启中,5=停止中,6=已停止,7=已删除)
*/
@SerializedName("InstanceStatus")
@Expose
private Long InstanceStatus;
/**
* 片区Id
*/
@SerializedName("AreaId")
@Expose
private Long AreaId;
/**
* 标签列表
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* 实例Id
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 集群Id
*/
@SerializedName("ClusterId")
@Expose
private Long ClusterId;
/**
* 实例描述
*/
@SerializedName("InstanceDesc")
@Expose
private String InstanceDesc;
/**
* 计费状态(1=使用中,2=已过期,3=已销毁,4=分配中,5=分配失败)
*/
@SerializedName("ChargeStatus")
@Expose
private Long ChargeStatus;
/**
* 计费类型(1=免费版,2=预付费,3=后付费)
*/
@SerializedName("ChargeType")
@Expose
private Long ChargeType;
/**
* 更新时间
*/
@SerializedName("UpdatedAt")
@Expose
private String UpdatedAt;
/**
* 数据保留时间(天)
*/
@SerializedName("DataRetentionDays")
@Expose
private Long DataRetentionDays;
/**
* 实例名称
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 创建时间
*/
@SerializedName("CreatedAt")
@Expose
private String CreatedAt;
/**
* Get 实例状态(1=创建中,2=运行中,3=异常,4=重启中,5=停止中,6=已停止,7=已删除)
* @return InstanceStatus 实例状态(1=创建中,2=运行中,3=异常,4=重启中,5=停止中,6=已停止,7=已删除)
*/
public Long getInstanceStatus() {
return this.InstanceStatus;
}
/**
* Set 实例状态(1=创建中,2=运行中,3=异常,4=重启中,5=停止中,6=已停止,7=已删除)
* @param InstanceStatus 实例状态(1=创建中,2=运行中,3=异常,4=重启中,5=停止中,6=已停止,7=已删除)
*/
public void setInstanceStatus(Long InstanceStatus) {
this.InstanceStatus = InstanceStatus;
}
/**
* Get 片区Id
* @return AreaId 片区Id
*/
public Long getAreaId() {
return this.AreaId;
}
/**
* Set 片区Id
* @param AreaId 片区Id
*/
public void setAreaId(Long AreaId) {
this.AreaId = AreaId;
}
/**
* Get 标签列表
* @return Tags 标签列表
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 标签列表
* @param Tags 标签列表
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* 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 ClusterId 集群Id
*/
public Long getClusterId() {
return this.ClusterId;
}
/**
* Set 集群Id
* @param ClusterId 集群Id
*/
public void setClusterId(Long ClusterId) {
this.ClusterId = ClusterId;
}
/**
* Get 实例描述
* @return InstanceDesc 实例描述
*/
public String getInstanceDesc() {
return this.InstanceDesc;
}
/**
* Set 实例描述
* @param InstanceDesc 实例描述
*/
public void setInstanceDesc(String InstanceDesc) {
this.InstanceDesc = InstanceDesc;
}
/**
* Get 计费状态(1=使用中,2=已过期,3=已销毁,4=分配中,5=分配失败)
* @return ChargeStatus 计费状态(1=使用中,2=已过期,3=已销毁,4=分配中,5=分配失败)
*/
public Long getChargeStatus() {
return this.ChargeStatus;
}
/**
* Set 计费状态(1=使用中,2=已过期,3=已销毁,4=分配中,5=分配失败)
* @param ChargeStatus 计费状态(1=使用中,2=已过期,3=已销毁,4=分配中,5=分配失败)
*/
public void setChargeStatus(Long ChargeStatus) {
this.ChargeStatus = ChargeStatus;
}
/**
* Get 计费类型(1=免费版,2=预付费,3=后付费)
* @return ChargeType 计费类型(1=免费版,2=预付费,3=后付费)
*/
public Long getChargeType() {
return this.ChargeType;
}
/**
* Set 计费类型(1=免费版,2=预付费,3=后付费)
* @param ChargeType 计费类型(1=免费版,2=预付费,3=后付费)
*/
public void setChargeType(Long ChargeType) {
this.ChargeType = ChargeType;
}
/**
* Get 更新时间
* @return UpdatedAt 更新时间
*/
public String getUpdatedAt() {
return this.UpdatedAt;
}
/**
* Set 更新时间
* @param UpdatedAt 更新时间
*/
public void setUpdatedAt(String UpdatedAt) {
this.UpdatedAt = UpdatedAt;
}
/**
* Get 数据保留时间(天)
* @return DataRetentionDays 数据保留时间(天)
*/
public Long getDataRetentionDays() {
return this.DataRetentionDays;
}
/**
* Set 数据保留时间(天)
* @param DataRetentionDays 数据保留时间(天)
*/
public void setDataRetentionDays(Long DataRetentionDays) {
this.DataRetentionDays = DataRetentionDays;
}
/**
* Get 实例名称
* @return InstanceName 实例名称
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 实例名称
* @param InstanceName 实例名称
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 创建时间
* @return CreatedAt 创建时间
*/
public String getCreatedAt() {
return this.CreatedAt;
}
/**
* Set 创建时间
* @param CreatedAt 创建时间
*/
public void setCreatedAt(String CreatedAt) {
this.CreatedAt = CreatedAt;
}
public RumInstanceInfo() {
}
/**
* 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 RumInstanceInfo(RumInstanceInfo source) {
if (source.InstanceStatus != null) {
this.InstanceStatus = new Long(source.InstanceStatus);
}
if (source.AreaId != null) {
this.AreaId = new Long(source.AreaId);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.ClusterId != null) {
this.ClusterId = new Long(source.ClusterId);
}
if (source.InstanceDesc != null) {
this.InstanceDesc = new String(source.InstanceDesc);
}
if (source.ChargeStatus != null) {
this.ChargeStatus = new Long(source.ChargeStatus);
}
if (source.ChargeType != null) {
this.ChargeType = new Long(source.ChargeType);
}
if (source.UpdatedAt != null) {
this.UpdatedAt = new String(source.UpdatedAt);
}
if (source.DataRetentionDays != null) {
this.DataRetentionDays = new Long(source.DataRetentionDays);
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.CreatedAt != null) {
this.CreatedAt = new String(source.CreatedAt);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceStatus", this.InstanceStatus);
this.setParamSimple(map, prefix + "AreaId", this.AreaId);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
this.setParamSimple(map, prefix + "InstanceDesc", this.InstanceDesc);
this.setParamSimple(map, prefix + "ChargeStatus", this.ChargeStatus);
this.setParamSimple(map, prefix + "ChargeType", this.ChargeType);
this.setParamSimple(map, prefix + "UpdatedAt", this.UpdatedAt);
this.setParamSimple(map, prefix + "DataRetentionDays", this.DataRetentionDays);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "CreatedAt", this.CreatedAt);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy