
com.tencentcloudapi.tcss.v20201101.models.HostInfo 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.tcss.v20201101.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class HostInfo extends AbstractModel{
/**
* 主机id
*/
@SerializedName("HostID")
@Expose
private String HostID;
/**
* 主机ip即内网ip
*/
@SerializedName("HostIP")
@Expose
private String HostIP;
/**
* 主机名称
*/
@SerializedName("HostName")
@Expose
private String HostName;
/**
* 业务组
*/
@SerializedName("Group")
@Expose
private String Group;
/**
* docker 版本
*/
@SerializedName("DockerVersion")
@Expose
private String DockerVersion;
/**
* docker 文件系统类型
*/
@SerializedName("DockerFileSystemDriver")
@Expose
private String DockerFileSystemDriver;
/**
* 镜像个数
*/
@SerializedName("ImageCnt")
@Expose
private Long ImageCnt;
/**
* 容器个数
*/
@SerializedName("ContainerCnt")
@Expose
private Long ContainerCnt;
/**
* agent运行状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 是否是Containerd
*/
@SerializedName("IsContainerd")
@Expose
private Boolean IsContainerd;
/**
* 主机来源:["CVM", "ECM", "LH", "BM"] 中的之一为腾讯云服务器;["Other"]之一非腾讯云服务器;
*/
@SerializedName("MachineType")
@Expose
private String MachineType;
/**
* 外网ip
*/
@SerializedName("PublicIp")
@Expose
private String PublicIp;
/**
* 主机uuid
*/
@SerializedName("Uuid")
@Expose
private String Uuid;
/**
* 主机实例ID
*/
@SerializedName("InstanceID")
@Expose
private String InstanceID;
/**
* 地域ID
*/
@SerializedName("RegionID")
@Expose
private Long RegionID;
/**
* 所属项目
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Project")
@Expose
private ProjectInfo Project;
/**
* 标签
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Tags")
@Expose
private TagInfo [] Tags;
/**
* Get 主机id
* @return HostID 主机id
*/
public String getHostID() {
return this.HostID;
}
/**
* Set 主机id
* @param HostID 主机id
*/
public void setHostID(String HostID) {
this.HostID = HostID;
}
/**
* Get 主机ip即内网ip
* @return HostIP 主机ip即内网ip
*/
public String getHostIP() {
return this.HostIP;
}
/**
* Set 主机ip即内网ip
* @param HostIP 主机ip即内网ip
*/
public void setHostIP(String HostIP) {
this.HostIP = HostIP;
}
/**
* Get 主机名称
* @return HostName 主机名称
*/
public String getHostName() {
return this.HostName;
}
/**
* Set 主机名称
* @param HostName 主机名称
*/
public void setHostName(String HostName) {
this.HostName = HostName;
}
/**
* Get 业务组
* @return Group 业务组
*/
public String getGroup() {
return this.Group;
}
/**
* Set 业务组
* @param Group 业务组
*/
public void setGroup(String Group) {
this.Group = Group;
}
/**
* Get docker 版本
* @return DockerVersion docker 版本
*/
public String getDockerVersion() {
return this.DockerVersion;
}
/**
* Set docker 版本
* @param DockerVersion docker 版本
*/
public void setDockerVersion(String DockerVersion) {
this.DockerVersion = DockerVersion;
}
/**
* Get docker 文件系统类型
* @return DockerFileSystemDriver docker 文件系统类型
*/
public String getDockerFileSystemDriver() {
return this.DockerFileSystemDriver;
}
/**
* Set docker 文件系统类型
* @param DockerFileSystemDriver docker 文件系统类型
*/
public void setDockerFileSystemDriver(String DockerFileSystemDriver) {
this.DockerFileSystemDriver = DockerFileSystemDriver;
}
/**
* Get 镜像个数
* @return ImageCnt 镜像个数
*/
public Long getImageCnt() {
return this.ImageCnt;
}
/**
* Set 镜像个数
* @param ImageCnt 镜像个数
*/
public void setImageCnt(Long ImageCnt) {
this.ImageCnt = ImageCnt;
}
/**
* Get 容器个数
* @return ContainerCnt 容器个数
*/
public Long getContainerCnt() {
return this.ContainerCnt;
}
/**
* Set 容器个数
* @param ContainerCnt 容器个数
*/
public void setContainerCnt(Long ContainerCnt) {
this.ContainerCnt = ContainerCnt;
}
/**
* Get agent运行状态
* @return Status agent运行状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set agent运行状态
* @param Status agent运行状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 是否是Containerd
* @return IsContainerd 是否是Containerd
*/
public Boolean getIsContainerd() {
return this.IsContainerd;
}
/**
* Set 是否是Containerd
* @param IsContainerd 是否是Containerd
*/
public void setIsContainerd(Boolean IsContainerd) {
this.IsContainerd = IsContainerd;
}
/**
* Get 主机来源:["CVM", "ECM", "LH", "BM"] 中的之一为腾讯云服务器;["Other"]之一非腾讯云服务器;
* @return MachineType 主机来源:["CVM", "ECM", "LH", "BM"] 中的之一为腾讯云服务器;["Other"]之一非腾讯云服务器;
*/
public String getMachineType() {
return this.MachineType;
}
/**
* Set 主机来源:["CVM", "ECM", "LH", "BM"] 中的之一为腾讯云服务器;["Other"]之一非腾讯云服务器;
* @param MachineType 主机来源:["CVM", "ECM", "LH", "BM"] 中的之一为腾讯云服务器;["Other"]之一非腾讯云服务器;
*/
public void setMachineType(String MachineType) {
this.MachineType = MachineType;
}
/**
* Get 外网ip
* @return PublicIp 外网ip
*/
public String getPublicIp() {
return this.PublicIp;
}
/**
* Set 外网ip
* @param PublicIp 外网ip
*/
public void setPublicIp(String PublicIp) {
this.PublicIp = PublicIp;
}
/**
* Get 主机uuid
* @return Uuid 主机uuid
*/
public String getUuid() {
return this.Uuid;
}
/**
* Set 主机uuid
* @param Uuid 主机uuid
*/
public void setUuid(String Uuid) {
this.Uuid = Uuid;
}
/**
* 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 RegionID 地域ID
*/
public Long getRegionID() {
return this.RegionID;
}
/**
* Set 地域ID
* @param RegionID 地域ID
*/
public void setRegionID(Long RegionID) {
this.RegionID = RegionID;
}
/**
* Get 所属项目
注意:此字段可能返回 null,表示取不到有效值。
* @return Project 所属项目
注意:此字段可能返回 null,表示取不到有效值。
*/
public ProjectInfo getProject() {
return this.Project;
}
/**
* Set 所属项目
注意:此字段可能返回 null,表示取不到有效值。
* @param Project 所属项目
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setProject(ProjectInfo Project) {
this.Project = Project;
}
/**
* Get 标签
注意:此字段可能返回 null,表示取不到有效值。
* @return Tags 标签
注意:此字段可能返回 null,表示取不到有效值。
*/
public TagInfo [] getTags() {
return this.Tags;
}
/**
* Set 标签
注意:此字段可能返回 null,表示取不到有效值。
* @param Tags 标签
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTags(TagInfo [] Tags) {
this.Tags = Tags;
}
public HostInfo() {
}
/**
* 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 HostInfo(HostInfo source) {
if (source.HostID != null) {
this.HostID = new String(source.HostID);
}
if (source.HostIP != null) {
this.HostIP = new String(source.HostIP);
}
if (source.HostName != null) {
this.HostName = new String(source.HostName);
}
if (source.Group != null) {
this.Group = new String(source.Group);
}
if (source.DockerVersion != null) {
this.DockerVersion = new String(source.DockerVersion);
}
if (source.DockerFileSystemDriver != null) {
this.DockerFileSystemDriver = new String(source.DockerFileSystemDriver);
}
if (source.ImageCnt != null) {
this.ImageCnt = new Long(source.ImageCnt);
}
if (source.ContainerCnt != null) {
this.ContainerCnt = new Long(source.ContainerCnt);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.IsContainerd != null) {
this.IsContainerd = new Boolean(source.IsContainerd);
}
if (source.MachineType != null) {
this.MachineType = new String(source.MachineType);
}
if (source.PublicIp != null) {
this.PublicIp = new String(source.PublicIp);
}
if (source.Uuid != null) {
this.Uuid = new String(source.Uuid);
}
if (source.InstanceID != null) {
this.InstanceID = new String(source.InstanceID);
}
if (source.RegionID != null) {
this.RegionID = new Long(source.RegionID);
}
if (source.Project != null) {
this.Project = new ProjectInfo(source.Project);
}
if (source.Tags != null) {
this.Tags = new TagInfo[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new TagInfo(source.Tags[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "HostID", this.HostID);
this.setParamSimple(map, prefix + "HostIP", this.HostIP);
this.setParamSimple(map, prefix + "HostName", this.HostName);
this.setParamSimple(map, prefix + "Group", this.Group);
this.setParamSimple(map, prefix + "DockerVersion", this.DockerVersion);
this.setParamSimple(map, prefix + "DockerFileSystemDriver", this.DockerFileSystemDriver);
this.setParamSimple(map, prefix + "ImageCnt", this.ImageCnt);
this.setParamSimple(map, prefix + "ContainerCnt", this.ContainerCnt);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "IsContainerd", this.IsContainerd);
this.setParamSimple(map, prefix + "MachineType", this.MachineType);
this.setParamSimple(map, prefix + "PublicIp", this.PublicIp);
this.setParamSimple(map, prefix + "Uuid", this.Uuid);
this.setParamSimple(map, prefix + "InstanceID", this.InstanceID);
this.setParamSimple(map, prefix + "RegionID", this.RegionID);
this.setParamObj(map, prefix + "Project.", this.Project);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy