com.aliyun.sas20181203.models.PublicCreateImageScanTaskResponseBody Maven / Gradle / Ivy
Show all versions of sas20181203 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sas20181203.models;
import com.aliyun.tea.*;
public class PublicCreateImageScanTaskResponseBody extends TeaModel {
/**
* The data returned if the call is successful.
*/
@NameInMap("Data")
public PublicCreateImageScanTaskResponseBodyData data;
/**
* The ID of the request, which is used to locate and troubleshoot issues.
*
* example:
* F9353221-40F4-5F98-B73C-2803DC804033
*/
@NameInMap("RequestId")
public String requestId;
public static PublicCreateImageScanTaskResponseBody build(java.util.Map map) throws Exception {
PublicCreateImageScanTaskResponseBody self = new PublicCreateImageScanTaskResponseBody();
return TeaModel.build(map, self);
}
public PublicCreateImageScanTaskResponseBody setData(PublicCreateImageScanTaskResponseBodyData data) {
this.data = data;
return this;
}
public PublicCreateImageScanTaskResponseBodyData getData() {
return this.data;
}
public PublicCreateImageScanTaskResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class PublicCreateImageScanTaskResponseBodyData extends TeaModel {
/**
* Indicates whether you can create more image scan tasks. Valid values:
*
* - true: yes
* - false: no
*
*
* By default, a maximum of 10 image scan tasks can be running at the same time. If 10 image scan tasks are running, you cannot create an image scan task by calling this operation. You must wait for at least one of the 10 existing image scan tasks to complete before you can create an image scan task.
*
*
* example:
* true
*/
@NameInMap("CanCreate")
public Boolean canCreate;
/**
* The timestamp when the image information was collected. Unit: milliseconds.
*
* example:
* 1644286364150
*/
@NameInMap("CollectTime")
public Long collectTime;
/**
* The timestamp when the image scan task started to run. Unit: milliseconds.
*
* example:
* 1644286364150
*/
@NameInMap("ExecTime")
public Long execTime;
/**
* The number of images that have been scanned.
*
* example:
* 5
*/
@NameInMap("FinishCount")
public Integer finishCount;
/**
* The progress of the image scan task in percentage.
*
* example:
* 100
*/
@NameInMap("Progress")
public Integer progress;
/**
* The result of the image scan task. Valid values:
*
* - SUCCESS: The task is successful.
* - TASK_NOT_SUPPORT_REGION: The images are deployed in a region that is not supported by container image scan.
*
*
* For more information about the regions supported by container image scan, see the "Regions supported by container image scan" section in this topic.
*
*
* example:
* SUCCESS
*/
@NameInMap("Result")
public String result;
/**
* The status of the image scan task. Valid values:
*
* - INIT: The task is being initialized.
* - PRE_ANALYZER: The task is being pre-processed.
* - SUCCESS: The task is successful.
* - FAIL: The task fails.
*
*
* example:
* SUCCESS
*/
@NameInMap("Status")
public String status;
/**
* The ID of the image scan task.
*
* example:
* a410bb3e68c217a3368bc0238c66886d
*/
@NameInMap("TaskId")
public String taskId;
/**
* The total number of images to scan.
*
* example:
* 5
*/
@NameInMap("TotalCount")
public Integer totalCount;
public static PublicCreateImageScanTaskResponseBodyData build(java.util.Map map) throws Exception {
PublicCreateImageScanTaskResponseBodyData self = new PublicCreateImageScanTaskResponseBodyData();
return TeaModel.build(map, self);
}
public PublicCreateImageScanTaskResponseBodyData setCanCreate(Boolean canCreate) {
this.canCreate = canCreate;
return this;
}
public Boolean getCanCreate() {
return this.canCreate;
}
public PublicCreateImageScanTaskResponseBodyData setCollectTime(Long collectTime) {
this.collectTime = collectTime;
return this;
}
public Long getCollectTime() {
return this.collectTime;
}
public PublicCreateImageScanTaskResponseBodyData setExecTime(Long execTime) {
this.execTime = execTime;
return this;
}
public Long getExecTime() {
return this.execTime;
}
public PublicCreateImageScanTaskResponseBodyData setFinishCount(Integer finishCount) {
this.finishCount = finishCount;
return this;
}
public Integer getFinishCount() {
return this.finishCount;
}
public PublicCreateImageScanTaskResponseBodyData setProgress(Integer progress) {
this.progress = progress;
return this;
}
public Integer getProgress() {
return this.progress;
}
public PublicCreateImageScanTaskResponseBodyData setResult(String result) {
this.result = result;
return this;
}
public String getResult() {
return this.result;
}
public PublicCreateImageScanTaskResponseBodyData setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public PublicCreateImageScanTaskResponseBodyData setTaskId(String taskId) {
this.taskId = taskId;
return this;
}
public String getTaskId() {
return this.taskId;
}
public PublicCreateImageScanTaskResponseBodyData setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Integer getTotalCount() {
return this.totalCount;
}
}
}