
com.tencentcloudapi.tcss.v20201101.models.VirusTaskInfo 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 VirusTaskInfo extends AbstractModel{
/**
* 容器名称
*/
@SerializedName("ContainerName")
@Expose
private String ContainerName;
/**
* 容器id
*/
@SerializedName("ContainerId")
@Expose
private String ContainerId;
/**
* 镜像名称
*/
@SerializedName("ImageName")
@Expose
private String ImageName;
/**
* 镜像Id
*/
@SerializedName("ImageId")
@Expose
private String ImageId;
/**
* 主机名称
*/
@SerializedName("HostName")
@Expose
private String HostName;
/**
* 主机ip
*/
@SerializedName("HostIp")
@Expose
private String HostIp;
/**
* 扫描状态:
WAIT: 等待扫描
FAILED: 失败
SCANNING: 扫描中
FINISHED: 结束
CANCELING: 取消中
CANCELED: 已取消
CANCEL_FAILED: 取消失败
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 检测开始时间
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* 检测结束时间
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* 风险个数
*/
@SerializedName("RiskCnt")
@Expose
private Long RiskCnt;
/**
* 事件id
*/
@SerializedName("Id")
@Expose
private String Id;
/**
* 错误原因:
SEND_SUCCESSED: 下发成功
SCAN_WAIT: agent排队扫描等待中
OFFLINE: 离线
SEND_FAILED:下发失败
TIMEOUT: 超时
LOW_AGENT_VERSION: 客户端版本过低
AGENT_NOT_FOUND: 镜像所属客户端版不存在
TOO_MANY: 任务过多
VALIDATION: 参数非法
INTERNAL: 服务内部错误
MISC: 其他错误
UNAUTH: 所在镜像未授权
SEND_CANCEL_SUCCESSED:下发成功
*/
@SerializedName("ErrorMsg")
@Expose
private String ErrorMsg;
/**
* Get 容器名称
* @return ContainerName 容器名称
*/
public String getContainerName() {
return this.ContainerName;
}
/**
* Set 容器名称
* @param ContainerName 容器名称
*/
public void setContainerName(String ContainerName) {
this.ContainerName = ContainerName;
}
/**
* Get 容器id
* @return ContainerId 容器id
*/
public String getContainerId() {
return this.ContainerId;
}
/**
* Set 容器id
* @param ContainerId 容器id
*/
public void setContainerId(String ContainerId) {
this.ContainerId = ContainerId;
}
/**
* Get 镜像名称
* @return ImageName 镜像名称
*/
public String getImageName() {
return this.ImageName;
}
/**
* Set 镜像名称
* @param ImageName 镜像名称
*/
public void setImageName(String ImageName) {
this.ImageName = ImageName;
}
/**
* Get 镜像Id
* @return ImageId 镜像Id
*/
public String getImageId() {
return this.ImageId;
}
/**
* Set 镜像Id
* @param ImageId 镜像Id
*/
public void setImageId(String ImageId) {
this.ImageId = ImageId;
}
/**
* Get 主机名称
* @return HostName 主机名称
*/
public String getHostName() {
return this.HostName;
}
/**
* Set 主机名称
* @param HostName 主机名称
*/
public void setHostName(String HostName) {
this.HostName = HostName;
}
/**
* Get 主机ip
* @return HostIp 主机ip
*/
public String getHostIp() {
return this.HostIp;
}
/**
* Set 主机ip
* @param HostIp 主机ip
*/
public void setHostIp(String HostIp) {
this.HostIp = HostIp;
}
/**
* Get 扫描状态:
WAIT: 等待扫描
FAILED: 失败
SCANNING: 扫描中
FINISHED: 结束
CANCELING: 取消中
CANCELED: 已取消
CANCEL_FAILED: 取消失败
* @return Status 扫描状态:
WAIT: 等待扫描
FAILED: 失败
SCANNING: 扫描中
FINISHED: 结束
CANCELING: 取消中
CANCELED: 已取消
CANCEL_FAILED: 取消失败
*/
public String getStatus() {
return this.Status;
}
/**
* Set 扫描状态:
WAIT: 等待扫描
FAILED: 失败
SCANNING: 扫描中
FINISHED: 结束
CANCELING: 取消中
CANCELED: 已取消
CANCEL_FAILED: 取消失败
* @param Status 扫描状态:
WAIT: 等待扫描
FAILED: 失败
SCANNING: 扫描中
FINISHED: 结束
CANCELING: 取消中
CANCELED: 已取消
CANCEL_FAILED: 取消失败
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 检测开始时间
* @return StartTime 检测开始时间
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set 检测开始时间
* @param StartTime 检测开始时间
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get 检测结束时间
* @return EndTime 检测结束时间
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set 检测结束时间
* @param EndTime 检测结束时间
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get 风险个数
* @return RiskCnt 风险个数
*/
public Long getRiskCnt() {
return this.RiskCnt;
}
/**
* Set 风险个数
* @param RiskCnt 风险个数
*/
public void setRiskCnt(Long RiskCnt) {
this.RiskCnt = RiskCnt;
}
/**
* Get 事件id
* @return Id 事件id
*/
public String getId() {
return this.Id;
}
/**
* Set 事件id
* @param Id 事件id
*/
public void setId(String Id) {
this.Id = Id;
}
/**
* Get 错误原因:
SEND_SUCCESSED: 下发成功
SCAN_WAIT: agent排队扫描等待中
OFFLINE: 离线
SEND_FAILED:下发失败
TIMEOUT: 超时
LOW_AGENT_VERSION: 客户端版本过低
AGENT_NOT_FOUND: 镜像所属客户端版不存在
TOO_MANY: 任务过多
VALIDATION: 参数非法
INTERNAL: 服务内部错误
MISC: 其他错误
UNAUTH: 所在镜像未授权
SEND_CANCEL_SUCCESSED:下发成功
* @return ErrorMsg 错误原因:
SEND_SUCCESSED: 下发成功
SCAN_WAIT: agent排队扫描等待中
OFFLINE: 离线
SEND_FAILED:下发失败
TIMEOUT: 超时
LOW_AGENT_VERSION: 客户端版本过低
AGENT_NOT_FOUND: 镜像所属客户端版不存在
TOO_MANY: 任务过多
VALIDATION: 参数非法
INTERNAL: 服务内部错误
MISC: 其他错误
UNAUTH: 所在镜像未授权
SEND_CANCEL_SUCCESSED:下发成功
*/
public String getErrorMsg() {
return this.ErrorMsg;
}
/**
* Set 错误原因:
SEND_SUCCESSED: 下发成功
SCAN_WAIT: agent排队扫描等待中
OFFLINE: 离线
SEND_FAILED:下发失败
TIMEOUT: 超时
LOW_AGENT_VERSION: 客户端版本过低
AGENT_NOT_FOUND: 镜像所属客户端版不存在
TOO_MANY: 任务过多
VALIDATION: 参数非法
INTERNAL: 服务内部错误
MISC: 其他错误
UNAUTH: 所在镜像未授权
SEND_CANCEL_SUCCESSED:下发成功
* @param ErrorMsg 错误原因:
SEND_SUCCESSED: 下发成功
SCAN_WAIT: agent排队扫描等待中
OFFLINE: 离线
SEND_FAILED:下发失败
TIMEOUT: 超时
LOW_AGENT_VERSION: 客户端版本过低
AGENT_NOT_FOUND: 镜像所属客户端版不存在
TOO_MANY: 任务过多
VALIDATION: 参数非法
INTERNAL: 服务内部错误
MISC: 其他错误
UNAUTH: 所在镜像未授权
SEND_CANCEL_SUCCESSED:下发成功
*/
public void setErrorMsg(String ErrorMsg) {
this.ErrorMsg = ErrorMsg;
}
public VirusTaskInfo() {
}
/**
* 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 VirusTaskInfo(VirusTaskInfo source) {
if (source.ContainerName != null) {
this.ContainerName = new String(source.ContainerName);
}
if (source.ContainerId != null) {
this.ContainerId = new String(source.ContainerId);
}
if (source.ImageName != null) {
this.ImageName = new String(source.ImageName);
}
if (source.ImageId != null) {
this.ImageId = new String(source.ImageId);
}
if (source.HostName != null) {
this.HostName = new String(source.HostName);
}
if (source.HostIp != null) {
this.HostIp = new String(source.HostIp);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.RiskCnt != null) {
this.RiskCnt = new Long(source.RiskCnt);
}
if (source.Id != null) {
this.Id = new String(source.Id);
}
if (source.ErrorMsg != null) {
this.ErrorMsg = new String(source.ErrorMsg);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ContainerName", this.ContainerName);
this.setParamSimple(map, prefix + "ContainerId", this.ContainerId);
this.setParamSimple(map, prefix + "ImageName", this.ImageName);
this.setParamSimple(map, prefix + "ImageId", this.ImageId);
this.setParamSimple(map, prefix + "HostName", this.HostName);
this.setParamSimple(map, prefix + "HostIp", this.HostIp);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamSimple(map, prefix + "RiskCnt", this.RiskCnt);
this.setParamSimple(map, prefix + "Id", this.Id);
this.setParamSimple(map, prefix + "ErrorMsg", this.ErrorMsg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy