com.tencentcloudapi.iecp.v20210914.models.ContainerStatus 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.iecp.v20210914.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ContainerStatus extends AbstractModel{
/**
* 容器名
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 容器ID
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ID")
@Expose
private String ID;
/**
* 镜像
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Image")
@Expose
private String Image;
/**
* 重启次数
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RestartCount")
@Expose
private Long RestartCount;
/**
* 状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* Get 容器名
注意:此字段可能返回 null,表示取不到有效值。
* @return Name 容器名
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getName() {
return this.Name;
}
/**
* Set 容器名
注意:此字段可能返回 null,表示取不到有效值。
* @param Name 容器名
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 容器ID
注意:此字段可能返回 null,表示取不到有效值。
* @return ID 容器ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getID() {
return this.ID;
}
/**
* Set 容器ID
注意:此字段可能返回 null,表示取不到有效值。
* @param ID 容器ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setID(String ID) {
this.ID = ID;
}
/**
* Get 镜像
注意:此字段可能返回 null,表示取不到有效值。
* @return Image 镜像
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getImage() {
return this.Image;
}
/**
* Set 镜像
注意:此字段可能返回 null,表示取不到有效值。
* @param Image 镜像
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setImage(String Image) {
this.Image = Image;
}
/**
* Get 重启次数
注意:此字段可能返回 null,表示取不到有效值。
* @return RestartCount 重启次数
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getRestartCount() {
return this.RestartCount;
}
/**
* Set 重启次数
注意:此字段可能返回 null,表示取不到有效值。
* @param RestartCount 重启次数
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRestartCount(Long RestartCount) {
this.RestartCount = RestartCount;
}
/**
* Get 状态
* @return Status 状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set 状态
* @param Status 状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
public ContainerStatus() {
}
/**
* 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 ContainerStatus(ContainerStatus source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.ID != null) {
this.ID = new String(source.ID);
}
if (source.Image != null) {
this.Image = new String(source.Image);
}
if (source.RestartCount != null) {
this.RestartCount = new Long(source.RestartCount);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "ID", this.ID);
this.setParamSimple(map, prefix + "Image", this.Image);
this.setParamSimple(map, prefix + "RestartCount", this.RestartCount);
this.setParamSimple(map, prefix + "Status", this.Status);
}
}