index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeIdcProbeScanResultListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeIdcProbeScanResultListResponse} extends {@link TeaModel} * * <p>DescribeIdcProbeScanResultListResponse</p> */ public class DescribeIdcProbeScanResultListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeIdcProbeScanResultListResponseBody body; private DescribeIdcProbeScanResultListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeIdcProbeScanResultListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeIdcProbeScanResultListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeIdcProbeScanResultListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeIdcProbeScanResultListResponseBody body); @Override DescribeIdcProbeScanResultListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeIdcProbeScanResultListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeIdcProbeScanResultListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeIdcProbeScanResultListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeIdcProbeScanResultListResponseBody body) { this.body = body; return this; } @Override public DescribeIdcProbeScanResultListResponse build() { return new DescribeIdcProbeScanResultListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeIdcProbeScanResultListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeIdcProbeScanResultListResponseBody} extends {@link TeaModel} * * <p>DescribeIdcProbeScanResultListResponseBody</p> */ public class DescribeIdcProbeScanResultListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Instances") private java.util.List<Instances> instances; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeIdcProbeScanResultListResponseBody(Builder builder) { this.instances = builder.instances; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeIdcProbeScanResultListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instances */ public java.util.List<Instances> getInstances() { return this.instances; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Instances> instances; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeIdcProbeScanResultListResponseBody model) { this.instances = model.instances; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The instances.</p> */ public Builder instances(java.util.List<Instances> instances) { this.instances = instances; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A3D7C47D-3F11-57BB-90E8-E5C20C61****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeIdcProbeScanResultListResponseBody build() { return new DescribeIdcProbeScanResultListResponseBody(this); } } /** * * {@link DescribeIdcProbeScanResultListResponseBody} extends {@link TeaModel} * * <p>DescribeIdcProbeScanResultListResponseBody</p> */ public static class Instances extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientStatus") private String clientStatus; @com.aliyun.core.annotation.NameInMap("IdcName") private String idcName; @com.aliyun.core.annotation.NameInMap("IpSegment") private String ipSegment; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("Os") private String os; @com.aliyun.core.annotation.NameInMap("ProbeInternetIp") private String probeInternetIp; @com.aliyun.core.annotation.NameInMap("ProbeIntranetIp") private String probeIntranetIp; @com.aliyun.core.annotation.NameInMap("ProbeMachineName") private String probeMachineName; @com.aliyun.core.annotation.NameInMap("ProbeUuid") private String probeUuid; @com.aliyun.core.annotation.NameInMap("ScanResultId") private Long scanResultId; @com.aliyun.core.annotation.NameInMap("ScannedIp") private String scannedIp; @com.aliyun.core.annotation.NameInMap("ValidPort") private String validPort; private Instances(Builder builder) { this.clientStatus = builder.clientStatus; this.idcName = builder.idcName; this.ipSegment = builder.ipSegment; this.lastScanTime = builder.lastScanTime; this.os = builder.os; this.probeInternetIp = builder.probeInternetIp; this.probeIntranetIp = builder.probeIntranetIp; this.probeMachineName = builder.probeMachineName; this.probeUuid = builder.probeUuid; this.scanResultId = builder.scanResultId; this.scannedIp = builder.scannedIp; this.validPort = builder.validPort; } public static Builder builder() { return new Builder(); } public static Instances create() { return builder().build(); } /** * @return clientStatus */ public String getClientStatus() { return this.clientStatus; } /** * @return idcName */ public String getIdcName() { return this.idcName; } /** * @return ipSegment */ public String getIpSegment() { return this.ipSegment; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return os */ public String getOs() { return this.os; } /** * @return probeInternetIp */ public String getProbeInternetIp() { return this.probeInternetIp; } /** * @return probeIntranetIp */ public String getProbeIntranetIp() { return this.probeIntranetIp; } /** * @return probeMachineName */ public String getProbeMachineName() { return this.probeMachineName; } /** * @return probeUuid */ public String getProbeUuid() { return this.probeUuid; } /** * @return scanResultId */ public Long getScanResultId() { return this.scanResultId; } /** * @return scannedIp */ public String getScannedIp() { return this.scannedIp; } /** * @return validPort */ public String getValidPort() { return this.validPort; } public static final class Builder { private String clientStatus; private String idcName; private String ipSegment; private Long lastScanTime; private String os; private String probeInternetIp; private String probeIntranetIp; private String probeMachineName; private String probeUuid; private Long scanResultId; private String scannedIp; private String validPort; private Builder() { } private Builder(Instances model) { this.clientStatus = model.clientStatus; this.idcName = model.idcName; this.ipSegment = model.ipSegment; this.lastScanTime = model.lastScanTime; this.os = model.os; this.probeInternetIp = model.probeInternetIp; this.probeIntranetIp = model.probeIntranetIp; this.probeMachineName = model.probeMachineName; this.probeUuid = model.probeUuid; this.scanResultId = model.scanResultId; this.scannedIp = model.scannedIp; this.validPort = model.validPort; } /** * <p>The status of the client of the instance on which the probe is installed. Valid values:</p> * <ul> * <li><strong>online</strong>: The Security Center agent on the asset is <strong>enabled</strong>.</li> * <li><strong>offline</strong>: The Security Center agent on the asset is <strong>disabled</strong>.</li> * </ul> * * <strong>example:</strong> * <p>online</p> */ public Builder clientStatus(String clientStatus) { this.clientStatus = clientStatus; return this; } /** * <p>The name of the IDC.</p> * * <strong>example:</strong> * <p>Test</p> */ public Builder idcName(String idcName) { this.idcName = idcName; return this; } /** * <p>The CIDR blocks.</p> * * <strong>example:</strong> * <p>192.168.2.0/24</p> */ public Builder ipSegment(String ipSegment) { this.ipSegment = ipSegment; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1720006818000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The operating system type of the asset. Valid values:</p> * <ul> * <li><strong>windows</strong></li> * <li><strong>linux</strong></li> * </ul> * * <strong>example:</strong> * <p>Linux</p> */ public Builder os(String os) { this.os = os; return this; } /** * <p>The private IP address of the associated instance.</p> * * <strong>example:</strong> * <p>42.121.<em>.</em></p> */ public Builder probeInternetIp(String probeInternetIp) { this.probeInternetIp = probeInternetIp; return this; } /** * <p>The private IP address of the associated instance.</p> * * <strong>example:</strong> * <p>192.168.<em>.</em></p> */ public Builder probeIntranetIp(String probeIntranetIp) { this.probeIntranetIp = probeIntranetIp; return this; } /** * <p>The name of the associated instance.</p> * * <strong>example:</strong> * <p>i-xxxx</p> */ public Builder probeMachineName(String probeMachineName) { this.probeMachineName = probeMachineName; return this; } /** * <p>The UUID of the associated instance.</p> * * <strong>example:</strong> * <p>11C96623-E106-59C9-866D-A6C82911****</p> */ public Builder probeUuid(String probeUuid) { this.probeUuid = probeUuid; return this; } /** * <p>The ID of the scan result.</p> * * <strong>example:</strong> * <p>1231</p> */ public Builder scanResultId(Long scanResultId) { this.scanResultId = scanResultId; return this; } /** * <p>The IP address that is scanned.</p> * * <strong>example:</strong> * <p>192.168.<em>.</em></p> */ public Builder scannedIp(String scannedIp) { this.scannedIp = scannedIp; return this; } /** * <p>The port that is scanned.</p> * * <strong>example:</strong> * <p>22</p> */ public Builder validPort(String validPort) { this.validPort = validPort; return this; } public Instances build() { return new Instances(this); } } } /** * * {@link DescribeIdcProbeScanResultListResponseBody} extends {@link TeaModel} * * <p>DescribeIdcProbeScanResultListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>69</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckResultRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckResultRequest} extends {@link RequestModel} * * <p>DescribeImageBaselineCheckResultRequest</p> */ public class DescribeImageBaselineCheckResultRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CriteriaType") private String criteriaType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") @com.aliyun.core.annotation.Validation(required = true) private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; private DescribeImageBaselineCheckResultRequest(Builder builder) { super(builder); this.criteria = builder.criteria; this.criteriaType = builder.criteriaType; this.currentPage = builder.currentPage; this.imageUuid = builder.imageUuid; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskLevel = builder.riskLevel; this.scanRange = builder.scanRange; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineCheckResultRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return criteriaType */ public String getCriteriaType() { return this.criteriaType; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } public static final class Builder extends Request.Builder<DescribeImageBaselineCheckResultRequest, Builder> { private String criteria; private String criteriaType; private Integer currentPage; private String imageUuid; private String lang; private Integer pageSize; private String riskLevel; private java.util.List<String> scanRange; private Builder() { super(); } private Builder(DescribeImageBaselineCheckResultRequest request) { super(request); this.criteria = request.criteria; this.criteriaType = request.criteriaType; this.currentPage = request.currentPage; this.imageUuid = request.imageUuid; this.lang = request.lang; this.pageSize = request.pageSize; this.riskLevel = request.riskLevel; this.scanRange = request.scanRange; } /** * <p>The search condition for the image baseline.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The type of the search condition. Valid values:</p> * <ul> * <li><strong>BaselineNameAlias</strong>: baseline name</li> * <li><strong>BaselineClassAlias</strong>: baseline category</li> * </ul> * * <strong>example:</strong> * <p>BaselineNameAlias</p> */ public Builder criteriaType(String criteriaType) { this.putQueryParameter("CriteriaType", criteriaType); this.criteriaType = criteriaType; return this; } /** * <p>The number of the page to return. Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The UUID of the image.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>a910053dd4710173ecc9e9d8931f****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The severity of the image baseline that you want to query. Separate multiple severities with commas (,). By default, all valid values are used. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high,medium,low</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * <p>The types of the assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } @Override public DescribeImageBaselineCheckResultRequest build() { return new DescribeImageBaselineCheckResultRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckResultResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckResultResponse} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckResultResponse</p> */ public class DescribeImageBaselineCheckResultResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBaselineCheckResultResponseBody body; private DescribeImageBaselineCheckResultResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBaselineCheckResultResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBaselineCheckResultResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBaselineCheckResultResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBaselineCheckResultResponseBody body); @Override DescribeImageBaselineCheckResultResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBaselineCheckResultResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBaselineCheckResultResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBaselineCheckResultResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBaselineCheckResultResponseBody body) { this.body = body; return this; } @Override public DescribeImageBaselineCheckResultResponse build() { return new DescribeImageBaselineCheckResultResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckResultResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckResultResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckResultResponseBody</p> */ public class DescribeImageBaselineCheckResultResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineResult") private java.util.List<BaselineResult> baselineResult; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageBaselineCheckResultResponseBody(Builder builder) { this.baselineResult = builder.baselineResult; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineCheckResultResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return baselineResult */ public java.util.List<BaselineResult> getBaselineResult() { return this.baselineResult; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<BaselineResult> baselineResult; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageBaselineCheckResultResponseBody model) { this.baselineResult = model.baselineResult; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>An array that consists of the check results of image baselines.</p> */ public Builder baselineResult(java.util.List<BaselineResult> baselineResult) { this.baselineResult = baselineResult; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-E3322413****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageBaselineCheckResultResponseBody build() { return new DescribeImageBaselineCheckResultResponseBody(this); } } /** * * {@link DescribeImageBaselineCheckResultResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckResultResponseBody</p> */ public static class BaselineResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineClassAlias") private String baselineClassAlias; @com.aliyun.core.annotation.NameInMap("BaselineItemCount") private Integer baselineItemCount; @com.aliyun.core.annotation.NameInMap("BaselineNameAlias") private String baselineNameAlias; @com.aliyun.core.annotation.NameInMap("BaselineNameKey") private String baselineNameKey; @com.aliyun.core.annotation.NameInMap("BaselineNameLevel") private String baselineNameLevel; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("HighRiskItemCount") private Integer highRiskItemCount; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("LowRiskItemCount") private Integer lowRiskItemCount; @com.aliyun.core.annotation.NameInMap("MiddleRiskItemCount") private Integer middleRiskItemCount; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; private BaselineResult(Builder builder) { this.baselineClassAlias = builder.baselineClassAlias; this.baselineItemCount = builder.baselineItemCount; this.baselineNameAlias = builder.baselineNameAlias; this.baselineNameKey = builder.baselineNameKey; this.baselineNameLevel = builder.baselineNameLevel; this.firstScanTime = builder.firstScanTime; this.highRiskItemCount = builder.highRiskItemCount; this.lastScanTime = builder.lastScanTime; this.lowRiskItemCount = builder.lowRiskItemCount; this.middleRiskItemCount = builder.middleRiskItemCount; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static BaselineResult create() { return builder().build(); } /** * @return baselineClassAlias */ public String getBaselineClassAlias() { return this.baselineClassAlias; } /** * @return baselineItemCount */ public Integer getBaselineItemCount() { return this.baselineItemCount; } /** * @return baselineNameAlias */ public String getBaselineNameAlias() { return this.baselineNameAlias; } /** * @return baselineNameKey */ public String getBaselineNameKey() { return this.baselineNameKey; } /** * @return baselineNameLevel */ public String getBaselineNameLevel() { return this.baselineNameLevel; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return highRiskItemCount */ public Integer getHighRiskItemCount() { return this.highRiskItemCount; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return lowRiskItemCount */ public Integer getLowRiskItemCount() { return this.lowRiskItemCount; } /** * @return middleRiskItemCount */ public Integer getMiddleRiskItemCount() { return this.middleRiskItemCount; } /** * @return status */ public Integer getStatus() { return this.status; } public static final class Builder { private String baselineClassAlias; private Integer baselineItemCount; private String baselineNameAlias; private String baselineNameKey; private String baselineNameLevel; private Long firstScanTime; private Integer highRiskItemCount; private Long lastScanTime; private Integer lowRiskItemCount; private Integer middleRiskItemCount; private Integer status; private Builder() { } private Builder(BaselineResult model) { this.baselineClassAlias = model.baselineClassAlias; this.baselineItemCount = model.baselineItemCount; this.baselineNameAlias = model.baselineNameAlias; this.baselineNameKey = model.baselineNameKey; this.baselineNameLevel = model.baselineNameLevel; this.firstScanTime = model.firstScanTime; this.highRiskItemCount = model.highRiskItemCount; this.lastScanTime = model.lastScanTime; this.lowRiskItemCount = model.lowRiskItemCount; this.middleRiskItemCount = model.middleRiskItemCount; this.status = model.status; } /** * <p>The key of the image baseline type.</p> * * <strong>example:</strong> * <p>identification</p> */ public Builder baselineClassAlias(String baselineClassAlias) { this.baselineClassAlias = baselineClassAlias; return this; } /** * <p>The number of baseline check items.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder baselineItemCount(Integer baselineItemCount) { this.baselineItemCount = baselineItemCount; return this; } /** * <p>The alias of the image baseline.</p> * * <strong>example:</strong> * <p>Identity authentication</p> */ public Builder baselineNameAlias(String baselineNameAlias) { this.baselineNameAlias = baselineNameAlias; return this; } /** * <p>The key of the image baseline.</p> * * <strong>example:</strong> * <p>identification</p> */ public Builder baselineNameKey(String baselineNameKey) { this.baselineNameKey = baselineNameKey; return this; } /** * <p>The severity of the image baseline. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder baselineNameLevel(String baselineNameLevel) { this.baselineNameLevel = baselineNameLevel; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1610304058366</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The number of high-risk images that are affected.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder highRiskItemCount(Integer highRiskItemCount) { this.highRiskItemCount = highRiskItemCount; return this; } /** * <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1610304058301</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The number of low-risk images that are affected.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder lowRiskItemCount(Integer lowRiskItemCount) { this.lowRiskItemCount = lowRiskItemCount; return this; } /** * <p>The number of medium-risk images that are affected.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder middleRiskItemCount(Integer middleRiskItemCount) { this.middleRiskItemCount = middleRiskItemCount; return this; } /** * <p>The status of the baseline risks. Valid values:</p> * <ul> * <li><strong>0</strong>: unfixed</li> * <li><strong>1</strong>: fixed</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.status = status; return this; } public BaselineResult build() { return new BaselineResult(this); } } } /** * * {@link DescribeImageBaselineCheckResultResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckResultResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckSummaryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckSummaryRequest} extends {@link RequestModel} * * <p>DescribeImageBaselineCheckSummaryRequest</p> */ public class DescribeImageBaselineCheckSummaryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CriteriaType") private String criteriaType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; private DescribeImageBaselineCheckSummaryRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.criteria = builder.criteria; this.criteriaType = builder.criteriaType; this.currentPage = builder.currentPage; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskLevel = builder.riskLevel; this.scanRange = builder.scanRange; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineCheckSummaryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return criteriaType */ public String getCriteriaType() { return this.criteriaType; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } public static final class Builder extends Request.Builder<DescribeImageBaselineCheckSummaryRequest, Builder> { private String clusterId; private String criteria; private String criteriaType; private Integer currentPage; private String lang; private Integer pageSize; private String riskLevel; private java.util.List<String> scanRange; private Builder() { super(); } private Builder(DescribeImageBaselineCheckSummaryRequest request) { super(request); this.clusterId = request.clusterId; this.criteria = request.criteria; this.criteriaType = request.criteriaType; this.currentPage = request.currentPage; this.lang = request.lang; this.pageSize = request.pageSize; this.riskLevel = request.riskLevel; this.scanRange = request.scanRange; } /** * <p>The ID of the specified container cluster.</p> * <blockquote> * <p>You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the ID of the container cluster.</p> * </blockquote> * * <strong>example:</strong> * <p>c60b77fe62093480db6164a3c2fa5****</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The search condition for the image baseline.</p> * * <strong>example:</strong> * <p>Unauthorized access</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The type of the search condition. Valid values:</p> * <ul> * <li><strong>BaselineNameAlias</strong>: baseline name</li> * <li><strong>BaselineClassAlias</strong>: baseline category</li> * </ul> * * <strong>example:</strong> * <p>BaselineNameAlias</p> */ public Builder criteriaType(String criteriaType) { this.putQueryParameter("CriteriaType", criteriaType); this.criteriaType = criteriaType; return this; } /** * <p>The number of the page to return. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The severity of the image baseline that you want to query. Separate multiple severities with commas (,). Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * <p>The types of the assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } @Override public DescribeImageBaselineCheckSummaryRequest build() { return new DescribeImageBaselineCheckSummaryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckSummaryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckSummaryResponse} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckSummaryResponse</p> */ public class DescribeImageBaselineCheckSummaryResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBaselineCheckSummaryResponseBody body; private DescribeImageBaselineCheckSummaryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBaselineCheckSummaryResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBaselineCheckSummaryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBaselineCheckSummaryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBaselineCheckSummaryResponseBody body); @Override DescribeImageBaselineCheckSummaryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBaselineCheckSummaryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBaselineCheckSummaryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBaselineCheckSummaryResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBaselineCheckSummaryResponseBody body) { this.body = body; return this; } @Override public DescribeImageBaselineCheckSummaryResponse build() { return new DescribeImageBaselineCheckSummaryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineCheckSummaryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineCheckSummaryResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckSummaryResponseBody</p> */ public class DescribeImageBaselineCheckSummaryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineResultSummary") private java.util.List<BaselineResultSummary> baselineResultSummary; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageBaselineCheckSummaryResponseBody(Builder builder) { this.baselineResultSummary = builder.baselineResultSummary; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineCheckSummaryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return baselineResultSummary */ public java.util.List<BaselineResultSummary> getBaselineResultSummary() { return this.baselineResultSummary; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<BaselineResultSummary> baselineResultSummary; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageBaselineCheckSummaryResponseBody model) { this.baselineResultSummary = model.baselineResultSummary; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>An array that consists of the check results of image baselines.</p> */ public Builder baselineResultSummary(java.util.List<BaselineResultSummary> baselineResultSummary) { this.baselineResultSummary = baselineResultSummary; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>5BD95679-D63A-4151-97D0-188432F4A57</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageBaselineCheckSummaryResponseBody build() { return new DescribeImageBaselineCheckSummaryResponseBody(this); } } /** * * {@link DescribeImageBaselineCheckSummaryResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckSummaryResponseBody</p> */ public static class BaselineResultSummary extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineClassAlias") private String baselineClassAlias; @com.aliyun.core.annotation.NameInMap("BaselineClassKey") private String baselineClassKey; @com.aliyun.core.annotation.NameInMap("BaselineNameAlias") private String baselineNameAlias; @com.aliyun.core.annotation.NameInMap("BaselineNameKey") private String baselineNameKey; @com.aliyun.core.annotation.NameInMap("BaselineNameLevel") private String baselineNameLevel; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("HighRiskImage") private Integer highRiskImage; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("LowRiskImage") private Integer lowRiskImage; @com.aliyun.core.annotation.NameInMap("MiddleRiskImage") private Integer middleRiskImage; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; private BaselineResultSummary(Builder builder) { this.baselineClassAlias = builder.baselineClassAlias; this.baselineClassKey = builder.baselineClassKey; this.baselineNameAlias = builder.baselineNameAlias; this.baselineNameKey = builder.baselineNameKey; this.baselineNameLevel = builder.baselineNameLevel; this.firstScanTime = builder.firstScanTime; this.highRiskImage = builder.highRiskImage; this.lastScanTime = builder.lastScanTime; this.lowRiskImage = builder.lowRiskImage; this.middleRiskImage = builder.middleRiskImage; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static BaselineResultSummary create() { return builder().build(); } /** * @return baselineClassAlias */ public String getBaselineClassAlias() { return this.baselineClassAlias; } /** * @return baselineClassKey */ public String getBaselineClassKey() { return this.baselineClassKey; } /** * @return baselineNameAlias */ public String getBaselineNameAlias() { return this.baselineNameAlias; } /** * @return baselineNameKey */ public String getBaselineNameKey() { return this.baselineNameKey; } /** * @return baselineNameLevel */ public String getBaselineNameLevel() { return this.baselineNameLevel; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return highRiskImage */ public Integer getHighRiskImage() { return this.highRiskImage; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return lowRiskImage */ public Integer getLowRiskImage() { return this.lowRiskImage; } /** * @return middleRiskImage */ public Integer getMiddleRiskImage() { return this.middleRiskImage; } /** * @return status */ public Integer getStatus() { return this.status; } public static final class Builder { private String baselineClassAlias; private String baselineClassKey; private String baselineNameAlias; private String baselineNameKey; private String baselineNameLevel; private Long firstScanTime; private Integer highRiskImage; private Long lastScanTime; private Integer lowRiskImage; private Integer middleRiskImage; private Integer status; private Builder() { } private Builder(BaselineResultSummary model) { this.baselineClassAlias = model.baselineClassAlias; this.baselineClassKey = model.baselineClassKey; this.baselineNameAlias = model.baselineNameAlias; this.baselineNameKey = model.baselineNameKey; this.baselineNameLevel = model.baselineNameLevel; this.firstScanTime = model.firstScanTime; this.highRiskImage = model.highRiskImage; this.lastScanTime = model.lastScanTime; this.lowRiskImage = model.lowRiskImage; this.middleRiskImage = model.middleRiskImage; this.status = model.status; } /** * <p>The category of the baseline.</p> * * <strong>example:</strong> * <p>Unauthorized access</p> */ public Builder baselineClassAlias(String baselineClassAlias) { this.baselineClassAlias = baselineClassAlias; return this; } /** * <p>The keyword of the baseline category.</p> * * <strong>example:</strong> * <p>hc_image_exploit</p> */ public Builder baselineClassKey(String baselineClassKey) { this.baselineClassKey = baselineClassKey; return this; } /** * <p>The name of the baseline.</p> * * <strong>example:</strong> * <p>Unauthorized access</p> */ public Builder baselineNameAlias(String baselineNameAlias) { this.baselineNameAlias = baselineNameAlias; return this; } /** * <p>The keyword of the baseline name.</p> * * <strong>example:</strong> * <p>hc_image_exploit</p> */ public Builder baselineNameKey(String baselineNameKey) { this.baselineNameKey = baselineNameKey; return this; } /** * <p>The severity of the image baseline. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder baselineNameLevel(String baselineNameLevel) { this.baselineNameLevel = baselineNameLevel; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1626628760000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The number of images on which <strong>high</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>15</p> */ public Builder highRiskImage(Integer highRiskImage) { this.highRiskImage = highRiskImage; return this; } /** * <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1626628760000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The number of images on which <strong>low</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder lowRiskImage(Integer lowRiskImage) { this.lowRiskImage = lowRiskImage; return this; } /** * <p>The number of images on which <strong>medium</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder middleRiskImage(Integer middleRiskImage) { this.middleRiskImage = middleRiskImage; return this; } /** * <p>The status of the baseline risks. Valid values:</p> * <ul> * <li><strong>0</strong>: unfixed</li> * <li><strong>1</strong>: fixed</li> * <li><strong>2</strong>: pending verification</li> * <li><strong>3</strong>: fixing failed</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(Integer status) { this.status = status; return this; } public BaselineResultSummary build() { return new BaselineResultSummary(this); } } } /** * * {@link DescribeImageBaselineCheckSummaryResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineCheckSummaryResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineDetailRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineDetailRequest} extends {@link RequestModel} * * <p>DescribeImageBaselineDetailRequest</p> */ public class DescribeImageBaselineDetailRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BaselineItemKey") private String baselineItemKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeImageBaselineDetailRequest(Builder builder) { super(builder); this.baselineItemKey = builder.baselineItemKey; this.imageUuid = builder.imageUuid; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return baselineItemKey */ public String getBaselineItemKey() { return this.baselineItemKey; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeImageBaselineDetailRequest, Builder> { private String baselineItemKey; private String imageUuid; private String lang; private Builder() { super(); } private Builder(DescribeImageBaselineDetailRequest request) { super(request); this.baselineItemKey = request.baselineItemKey; this.imageUuid = request.imageUuid; this.lang = request.lang; } /** * <p>The information about the baseline.</p> * * <strong>example:</strong> * <p>Valid values include but are not limited to ak_leak, duplicate_uid, duplicate_pwd_hash, and non_pwd_user.</p> */ public Builder baselineItemKey(String baselineItemKey) { this.putQueryParameter("BaselineItemKey", baselineItemKey); this.baselineItemKey = baselineItemKey; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>06293273b67d19516cfcc712194f****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeImageBaselineDetailRequest build() { return new DescribeImageBaselineDetailRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineDetailResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineDetailResponse} extends {@link TeaModel} * * <p>DescribeImageBaselineDetailResponse</p> */ public class DescribeImageBaselineDetailResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBaselineDetailResponseBody body; private DescribeImageBaselineDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBaselineDetailResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBaselineDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBaselineDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBaselineDetailResponseBody body); @Override DescribeImageBaselineDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBaselineDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBaselineDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBaselineDetailResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBaselineDetailResponseBody body) { this.body = body; return this; } @Override public DescribeImageBaselineDetailResponse build() { return new DescribeImageBaselineDetailResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineDetailResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineDetailResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineDetailResponseBody</p> */ public class DescribeImageBaselineDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineDetail") private BaselineDetail baselineDetail; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageBaselineDetailResponseBody(Builder builder) { this.baselineDetail = builder.baselineDetail; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return baselineDetail */ public BaselineDetail getBaselineDetail() { return this.baselineDetail; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private BaselineDetail baselineDetail; private String requestId; private Builder() { } private Builder(DescribeImageBaselineDetailResponseBody model) { this.baselineDetail = model.baselineDetail; this.requestId = model.requestId; } /** * <p>The details about the image baseline.</p> */ public Builder baselineDetail(BaselineDetail baselineDetail) { this.baselineDetail = baselineDetail; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageBaselineDetailResponseBody build() { return new DescribeImageBaselineDetailResponseBody(this); } } /** * * {@link DescribeImageBaselineDetailResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineDetailResponseBody</p> */ public static class BaselineDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("Advice") private String advice; @com.aliyun.core.annotation.NameInMap("BaselineClassAlias") private String baselineClassAlias; @com.aliyun.core.annotation.NameInMap("BaselineItemAlias") private String baselineItemAlias; @com.aliyun.core.annotation.NameInMap("BaselineItemKey") private String baselineItemKey; @com.aliyun.core.annotation.NameInMap("BaselineNameAlias") private String baselineNameAlias; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Level") private String level; @com.aliyun.core.annotation.NameInMap("Prompt") private String prompt; @com.aliyun.core.annotation.NameInMap("ResultId") private String resultId; private BaselineDetail(Builder builder) { this.advice = builder.advice; this.baselineClassAlias = builder.baselineClassAlias; this.baselineItemAlias = builder.baselineItemAlias; this.baselineItemKey = builder.baselineItemKey; this.baselineNameAlias = builder.baselineNameAlias; this.description = builder.description; this.level = builder.level; this.prompt = builder.prompt; this.resultId = builder.resultId; } public static Builder builder() { return new Builder(); } public static BaselineDetail create() { return builder().build(); } /** * @return advice */ public String getAdvice() { return this.advice; } /** * @return baselineClassAlias */ public String getBaselineClassAlias() { return this.baselineClassAlias; } /** * @return baselineItemAlias */ public String getBaselineItemAlias() { return this.baselineItemAlias; } /** * @return baselineItemKey */ public String getBaselineItemKey() { return this.baselineItemKey; } /** * @return baselineNameAlias */ public String getBaselineNameAlias() { return this.baselineNameAlias; } /** * @return description */ public String getDescription() { return this.description; } /** * @return level */ public String getLevel() { return this.level; } /** * @return prompt */ public String getPrompt() { return this.prompt; } /** * @return resultId */ public String getResultId() { return this.resultId; } public static final class Builder { private String advice; private String baselineClassAlias; private String baselineItemAlias; private String baselineItemKey; private String baselineNameAlias; private String description; private String level; private String prompt; private String resultId; private Builder() { } private Builder(BaselineDetail model) { this.advice = model.advice; this.baselineClassAlias = model.baselineClassAlias; this.baselineItemAlias = model.baselineItemAlias; this.baselineItemKey = model.baselineItemKey; this.baselineNameAlias = model.baselineNameAlias; this.description = model.description; this.level = model.level; this.prompt = model.prompt; this.resultId = model.resultId; } /** * <p>The suggestion for the management of the risk item.</p> * * <strong>example:</strong> * <p>Delete the leaked AccessKey pairs.</p> */ public Builder advice(String advice) { this.advice = advice; return this; } /** * <p>The alias of the baseline type.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineClassAlias(String baselineClassAlias) { this.baselineClassAlias = baselineClassAlias; return this; } /** * <p>The alias of the baseline check item.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineItemAlias(String baselineItemAlias) { this.baselineItemAlias = baselineItemAlias; return this; } /** * <p>The key of the baseline check item.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineItemKey(String baselineItemKey) { this.baselineItemKey = baselineItemKey; return this; } /** * <p>The alias of the baseline.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineNameAlias(String baselineNameAlias) { this.baselineNameAlias = baselineNameAlias; return this; } /** * <p>The description of the risk item.</p> * * <strong>example:</strong> * <p>If an AccessKey pair is leaked, the AccessKey pair may be fraudulently used.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The risk level of the baseline check item. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder level(String level) { this.level = level; return this; } /** * <p>The issue that is detected by using the baseline.</p> * * <strong>example:</strong> * <p>/usr/aksk.txt:yourAccessKeyID</p> */ public Builder prompt(String prompt) { this.prompt = prompt; return this; } /** * <p>The ID of the asynchronous request.</p> * * <strong>example:</strong> * <p>async__c6f3b0b54613383b40bdce593ffe****</p> */ public Builder resultId(String resultId) { this.resultId = resultId; return this; } public BaselineDetail build() { return new BaselineDetail(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineItemListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineItemListRequest} extends {@link RequestModel} * * <p>DescribeImageBaselineItemListRequest</p> */ public class DescribeImageBaselineItemListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BaselineClassKey") private String baselineClassKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BaselineNameKey") private String baselineNameKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") @com.aliyun.core.annotation.Validation(required = true) private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") private java.util.List<String> uuids; private DescribeImageBaselineItemListRequest(Builder builder) { super(builder); this.baselineClassKey = builder.baselineClassKey; this.baselineNameKey = builder.baselineNameKey; this.currentPage = builder.currentPage; this.imageUuid = builder.imageUuid; this.lang = builder.lang; this.pageSize = builder.pageSize; this.scanRange = builder.scanRange; this.status = builder.status; this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineItemListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return baselineClassKey */ public String getBaselineClassKey() { return this.baselineClassKey; } /** * @return baselineNameKey */ public String getBaselineNameKey() { return this.baselineNameKey; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return status */ public String getStatus() { return this.status; } /** * @return uuids */ public java.util.List<String> getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeImageBaselineItemListRequest, Builder> { private String baselineClassKey; private String baselineNameKey; private Integer currentPage; private String imageUuid; private String lang; private Integer pageSize; private java.util.List<String> scanRange; private String status; private java.util.List<String> uuids; private Builder() { super(); } private Builder(DescribeImageBaselineItemListRequest request) { super(request); this.baselineClassKey = request.baselineClassKey; this.baselineNameKey = request.baselineNameKey; this.currentPage = request.currentPage; this.imageUuid = request.imageUuid; this.lang = request.lang; this.pageSize = request.pageSize; this.scanRange = request.scanRange; this.status = request.status; this.uuids = request.uuids; } /** * <p>The key of the baseline type.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineClassKey(String baselineClassKey) { this.putQueryParameter("BaselineClassKey", baselineClassKey); this.baselineClassKey = baselineClassKey; return this; } /** * <p>The key of the baseline name.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineNameKey(String baselineNameKey) { this.putQueryParameter("BaselineNameKey", baselineNameKey); this.baselineNameKey = baselineNameKey; return this; } /** * <p>The number of the page to return.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The UUID of the image.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>0b5c7193300da2070220038718ad****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The types of the assets that are scanned.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } /** * <p>The status of the baseline risk item. Valid values:</p> * <ul> * <li><strong>0</strong>: unfixed</li> * <li><strong>1</strong>: fixed</li> * <li><strong>2</strong>: pending verification</li> * <li><strong>3</strong>: fixing failed</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The UUIDs of images.</p> */ public Builder uuids(java.util.List<String> uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeImageBaselineItemListRequest build() { return new DescribeImageBaselineItemListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineItemListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineItemListResponse} extends {@link TeaModel} * * <p>DescribeImageBaselineItemListResponse</p> */ public class DescribeImageBaselineItemListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBaselineItemListResponseBody body; private DescribeImageBaselineItemListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBaselineItemListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBaselineItemListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBaselineItemListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBaselineItemListResponseBody body); @Override DescribeImageBaselineItemListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBaselineItemListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBaselineItemListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBaselineItemListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBaselineItemListResponseBody body) { this.body = body; return this; } @Override public DescribeImageBaselineItemListResponse build() { return new DescribeImageBaselineItemListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineItemListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineItemListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineItemListResponseBody</p> */ public class DescribeImageBaselineItemListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineItemInfos") private java.util.List<BaselineItemInfos> baselineItemInfos; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageBaselineItemListResponseBody(Builder builder) { this.baselineItemInfos = builder.baselineItemInfos; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineItemListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return baselineItemInfos */ public java.util.List<BaselineItemInfos> getBaselineItemInfos() { return this.baselineItemInfos; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<BaselineItemInfos> baselineItemInfos; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageBaselineItemListResponseBody model) { this.baselineItemInfos = model.baselineItemInfos; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>An array that consists of baseline check items.</p> */ public Builder baselineItemInfos(java.util.List<BaselineItemInfos> baselineItemInfos) { this.baselineItemInfos = baselineItemInfos; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-E3322413****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageBaselineItemListResponseBody build() { return new DescribeImageBaselineItemListResponseBody(this); } } /** * * {@link DescribeImageBaselineItemListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineItemListResponseBody</p> */ public static class BaselineItemInfos extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineClassAlias") private String baselineClassAlias; @com.aliyun.core.annotation.NameInMap("BaselineClassKey") private String baselineClassKey; @com.aliyun.core.annotation.NameInMap("BaselineItemAlias") private String baselineItemAlias; @com.aliyun.core.annotation.NameInMap("BaselineItemKey") private String baselineItemKey; @com.aliyun.core.annotation.NameInMap("BaselineNameAlias") private String baselineNameAlias; @com.aliyun.core.annotation.NameInMap("BaselineNameKey") private String baselineNameKey; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("WhiteList") private Integer whiteList; private BaselineItemInfos(Builder builder) { this.baselineClassAlias = builder.baselineClassAlias; this.baselineClassKey = builder.baselineClassKey; this.baselineItemAlias = builder.baselineItemAlias; this.baselineItemKey = builder.baselineItemKey; this.baselineNameAlias = builder.baselineNameAlias; this.baselineNameKey = builder.baselineNameKey; this.status = builder.status; this.whiteList = builder.whiteList; } public static Builder builder() { return new Builder(); } public static BaselineItemInfos create() { return builder().build(); } /** * @return baselineClassAlias */ public String getBaselineClassAlias() { return this.baselineClassAlias; } /** * @return baselineClassKey */ public String getBaselineClassKey() { return this.baselineClassKey; } /** * @return baselineItemAlias */ public String getBaselineItemAlias() { return this.baselineItemAlias; } /** * @return baselineItemKey */ public String getBaselineItemKey() { return this.baselineItemKey; } /** * @return baselineNameAlias */ public String getBaselineNameAlias() { return this.baselineNameAlias; } /** * @return baselineNameKey */ public String getBaselineNameKey() { return this.baselineNameKey; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return whiteList */ public Integer getWhiteList() { return this.whiteList; } public static final class Builder { private String baselineClassAlias; private String baselineClassKey; private String baselineItemAlias; private String baselineItemKey; private String baselineNameAlias; private String baselineNameKey; private Integer status; private Integer whiteList; private Builder() { } private Builder(BaselineItemInfos model) { this.baselineClassAlias = model.baselineClassAlias; this.baselineClassKey = model.baselineClassKey; this.baselineItemAlias = model.baselineItemAlias; this.baselineItemKey = model.baselineItemKey; this.baselineNameAlias = model.baselineNameAlias; this.baselineNameKey = model.baselineNameKey; this.status = model.status; this.whiteList = model.whiteList; } /** * <p>The alias of the baseline type.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineClassAlias(String baselineClassAlias) { this.baselineClassAlias = baselineClassAlias; return this; } /** * <p>The key of the baseline type.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineClassKey(String baselineClassKey) { this.baselineClassKey = baselineClassKey; return this; } /** * <p>The alias of the baseline check item.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineItemAlias(String baselineItemAlias) { this.baselineItemAlias = baselineItemAlias; return this; } /** * <p>The key of the baseline check item.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineItemKey(String baselineItemKey) { this.baselineItemKey = baselineItemKey; return this; } /** * <p>The alias of the baseline.</p> * * <strong>example:</strong> * <p>AccessKey pair leak</p> */ public Builder baselineNameAlias(String baselineNameAlias) { this.baselineNameAlias = baselineNameAlias; return this; } /** * <p>The key of the baseline name.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineNameKey(String baselineNameKey) { this.baselineNameKey = baselineNameKey; return this; } /** * <p>The status of the baseline risks. Valid values:</p> * <ul> * <li><strong>0</strong>: unfixed</li> * <li><strong>1</strong>: fixed</li> * <li><strong>2</strong>: pending verification</li> * <li><strong>3</strong>: fixing failed</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>Indicates whether the baseline check item is added to the whitelist. Valid values:</p> * <ul> * <li><strong>0</strong>: The baseline check item is not added to the whitelist.</li> * <li><strong>1</strong>: The baseline check item is added to the whitelist.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder whiteList(Integer whiteList) { this.whiteList = whiteList; return this; } public BaselineItemInfos build() { return new BaselineItemInfos(this); } } } /** * * {@link DescribeImageBaselineItemListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineItemListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>253</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineStrategyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineStrategyRequest} extends {@link RequestModel} * * <p>DescribeImageBaselineStrategyRequest</p> */ public class DescribeImageBaselineStrategyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StrategyId") private Long strategyId; private DescribeImageBaselineStrategyRequest(Builder builder) { super(builder); this.lang = builder.lang; this.source = builder.source; this.strategyId = builder.strategyId; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineStrategyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return lang */ public String getLang() { return this.lang; } /** * @return source */ public String getSource() { return this.source; } /** * @return strategyId */ public Long getStrategyId() { return this.strategyId; } public static final class Builder extends Request.Builder<DescribeImageBaselineStrategyRequest, Builder> { private String lang; private String source; private Long strategyId; private Builder() { super(); } private Builder(DescribeImageBaselineStrategyRequest request) { super(request); this.lang = request.lang; this.source = request.source; this.strategyId = request.strategyId; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The data source. Default value: default. Valid values:</p> * <ul> * <li><strong>default</strong>: queries the information about a baseline check policy for images.</li> * <li><strong>agentless</strong>: queries the information about a baseline check policy for agentless detection.</li> * </ul> * * <strong>example:</strong> * <p>agentless</p> */ public Builder source(String source) { this.putQueryParameter("Source", source); this.source = source; return this; } /** * <p>The ID of the baseline check policy.</p> * * <strong>example:</strong> * <p>8037</p> */ public Builder strategyId(Long strategyId) { this.putQueryParameter("StrategyId", strategyId); this.strategyId = strategyId; return this; } @Override public DescribeImageBaselineStrategyRequest build() { return new DescribeImageBaselineStrategyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineStrategyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineStrategyResponse} extends {@link TeaModel} * * <p>DescribeImageBaselineStrategyResponse</p> */ public class DescribeImageBaselineStrategyResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBaselineStrategyResponseBody body; private DescribeImageBaselineStrategyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBaselineStrategyResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBaselineStrategyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBaselineStrategyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBaselineStrategyResponseBody body); @Override DescribeImageBaselineStrategyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBaselineStrategyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBaselineStrategyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBaselineStrategyResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBaselineStrategyResponseBody body) { this.body = body; return this; } @Override public DescribeImageBaselineStrategyResponse build() { return new DescribeImageBaselineStrategyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBaselineStrategyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBaselineStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineStrategyResponseBody</p> */ public class DescribeImageBaselineStrategyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Strategy") private Strategy strategy; private DescribeImageBaselineStrategyResponseBody(Builder builder) { this.requestId = builder.requestId; this.strategy = builder.strategy; } public static Builder builder() { return new Builder(); } public static DescribeImageBaselineStrategyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return strategy */ public Strategy getStrategy() { return this.strategy; } public static final class Builder { private String requestId; private Strategy strategy; private Builder() { } private Builder(DescribeImageBaselineStrategyResponseBody model) { this.requestId = model.requestId; this.strategy = model.strategy; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>9F85AC10-A1FE-54D7-935A-F28D5256****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the baseline check policy.</p> */ public Builder strategy(Strategy strategy) { this.strategy = strategy; return this; } public DescribeImageBaselineStrategyResponseBody build() { return new DescribeImageBaselineStrategyResponseBody(this); } } /** * * {@link DescribeImageBaselineStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineStrategyResponseBody</p> */ public static class BaselineItemList extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClassKey") private String classKey; @com.aliyun.core.annotation.NameInMap("ItemKey") private String itemKey; @com.aliyun.core.annotation.NameInMap("NameKey") private String nameKey; private BaselineItemList(Builder builder) { this.classKey = builder.classKey; this.itemKey = builder.itemKey; this.nameKey = builder.nameKey; } public static Builder builder() { return new Builder(); } public static BaselineItemList create() { return builder().build(); } /** * @return classKey */ public String getClassKey() { return this.classKey; } /** * @return itemKey */ public String getItemKey() { return this.itemKey; } /** * @return nameKey */ public String getNameKey() { return this.nameKey; } public static final class Builder { private String classKey; private String itemKey; private String nameKey; private Builder() { } private Builder(BaselineItemList model) { this.classKey = model.classKey; this.itemKey = model.itemKey; this.nameKey = model.nameKey; } /** * <p>The key of the baseline type.</p> * * <strong>example:</strong> * <p>identification</p> */ public Builder classKey(String classKey) { this.classKey = classKey; return this; } /** * <p>The key of the baseline check item.</p> * * <strong>example:</strong> * <p>duplicate_pwd_hash</p> */ public Builder itemKey(String itemKey) { this.itemKey = itemKey; return this; } /** * <p>The key of the name for the baseline.</p> * * <strong>example:</strong> * <p>identification</p> */ public Builder nameKey(String nameKey) { this.nameKey = nameKey; return this; } public BaselineItemList build() { return new BaselineItemList(this); } } } /** * * {@link DescribeImageBaselineStrategyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBaselineStrategyResponseBody</p> */ public static class Strategy extends TeaModel { @com.aliyun.core.annotation.NameInMap("BaselineItem") private String baselineItem; @com.aliyun.core.annotation.NameInMap("BaselineItemList") private java.util.List<BaselineItemList> baselineItemList; @com.aliyun.core.annotation.NameInMap("SelectedItemCount") private Integer selectedItemCount; @com.aliyun.core.annotation.NameInMap("StrategyId") private Long strategyId; @com.aliyun.core.annotation.NameInMap("StrategyName") private String strategyName; @com.aliyun.core.annotation.NameInMap("TotalItemCount") private Integer totalItemCount; @com.aliyun.core.annotation.NameInMap("Type") private String type; private Strategy(Builder builder) { this.baselineItem = builder.baselineItem; this.baselineItemList = builder.baselineItemList; this.selectedItemCount = builder.selectedItemCount; this.strategyId = builder.strategyId; this.strategyName = builder.strategyName; this.totalItemCount = builder.totalItemCount; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static Strategy create() { return builder().build(); } /** * @return baselineItem */ public String getBaselineItem() { return this.baselineItem; } /** * @return baselineItemList */ public java.util.List<BaselineItemList> getBaselineItemList() { return this.baselineItemList; } /** * @return selectedItemCount */ public Integer getSelectedItemCount() { return this.selectedItemCount; } /** * @return strategyId */ public Long getStrategyId() { return this.strategyId; } /** * @return strategyName */ public String getStrategyName() { return this.strategyName; } /** * @return totalItemCount */ public Integer getTotalItemCount() { return this.totalItemCount; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String baselineItem; private java.util.List<BaselineItemList> baselineItemList; private Integer selectedItemCount; private Long strategyId; private String strategyName; private Integer totalItemCount; private String type; private Builder() { } private Builder(Strategy model) { this.baselineItem = model.baselineItem; this.baselineItemList = model.baselineItemList; this.selectedItemCount = model.selectedItemCount; this.strategyId = model.strategyId; this.strategyName = model.strategyName; this.totalItemCount = model.totalItemCount; this.type = model.type; } /** * <p>The baseline check policy for agentless detection.</p> * * <strong>example:</strong> * <p>hc_win2008_cis_rules</p> */ public Builder baselineItem(String baselineItem) { this.baselineItem = baselineItem; return this; } /** * <p>An array that contains the baselines.</p> */ public Builder baselineItemList(java.util.List<BaselineItemList> baselineItemList) { this.baselineItemList = baselineItemList; return this; } /** * <p>The number of selected baseline check items.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder selectedItemCount(Integer selectedItemCount) { this.selectedItemCount = selectedItemCount; return this; } /** * <p>The ID of the baseline check policy.</p> * * <strong>example:</strong> * <p>8257</p> */ public Builder strategyId(Long strategyId) { this.strategyId = strategyId; return this; } /** * <p>The name of the baseline check policy.</p> * * <strong>example:</strong> * <p>default</p> */ public Builder strategyName(String strategyName) { this.strategyName = strategyName; return this; } /** * <p>The total number of baseline check items.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalItemCount(Integer totalItemCount) { this.totalItemCount = totalItemCount; return this; } /** * <p>The type of the baseline check policy. Valid values:</p> * <ul> * <li><strong>default</strong>: the default policy</li> * <li><strong>full</strong>: a policy that uses all baselines</li> * <li><strong>normal</strong>: a policy that uses general baselines</li> * </ul> * * <strong>example:</strong> * <p>default</p> */ public Builder type(String type) { this.type = type; return this; } public Strategy build() { return new Strategy(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskByKeyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskByKeyRequest} extends {@link RequestModel} * * <p>DescribeImageBuildRiskByKeyRequest</p> */ public class DescribeImageBuildRiskByKeyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskKey") private String riskKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private Integer status; private DescribeImageBuildRiskByKeyRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.imageUuid = builder.imageUuid; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskKey = builder.riskKey; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeImageBuildRiskByKeyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskKey */ public String getRiskKey() { return this.riskKey; } /** * @return status */ public Integer getStatus() { return this.status; } public static final class Builder extends Request.Builder<DescribeImageBuildRiskByKeyRequest, Builder> { private Integer currentPage; private String imageUuid; private String lang; private Integer pageSize; private String riskKey; private Integer status; private Builder() { super(); } private Builder(DescribeImageBuildRiskByKeyRequest request) { super(request); this.currentPage = request.currentPage; this.imageUuid = request.imageUuid; this.lang = request.lang; this.pageSize = request.pageSize; this.riskKey = request.riskKey; this.status = request.status; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>a910053dd4710173ecc9e9d8931f****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The key of the risk rule. </p> * <blockquote> * <p>You can call the <a href="~~DescribeImageBuildRiskList~~">DescribeImageBuildRiskList</a> operation to obtain the value of <strong>RiskKey</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKey(String riskKey) { this.putQueryParameter("RiskKey", riskKey); this.riskKey = riskKey; return this; } /** * <p>The status of the alert event. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled.</li> * <li><strong>1</strong>: ignored.</li> * <li><strong>2</strong>: false positive.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public DescribeImageBuildRiskByKeyRequest build() { return new DescribeImageBuildRiskByKeyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskByKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskByKeyResponse} extends {@link TeaModel} * * <p>DescribeImageBuildRiskByKeyResponse</p> */ public class DescribeImageBuildRiskByKeyResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBuildRiskByKeyResponseBody body; private DescribeImageBuildRiskByKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBuildRiskByKeyResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBuildRiskByKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBuildRiskByKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBuildRiskByKeyResponseBody body); @Override DescribeImageBuildRiskByKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBuildRiskByKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBuildRiskByKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBuildRiskByKeyResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBuildRiskByKeyResponseBody body) { this.body = body; return this; } @Override public DescribeImageBuildRiskByKeyResponse build() { return new DescribeImageBuildRiskByKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskByKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskByKeyResponseBody</p> */ public class DescribeImageBuildRiskByKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageBuildRiskByKeyResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageBuildRiskByKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageBuildRiskByKeyResponseBody model) { this.code = model.code; this.data = model.data; this.message = model.message; this.requestId = model.requestId; this.success = model.success; } /** * <p>The response code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The returned data.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The returned message.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>52870893-48A7-5A9E-9E05-6253E5B6****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageBuildRiskByKeyResponseBody build() { return new DescribeImageBuildRiskByKeyResponseBody(this); } } /** * * {@link DescribeImageBuildRiskByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskByKeyResponseBody</p> */ public static class List extends TeaModel { @com.aliyun.core.annotation.NameInMap("Advice") private String advice; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("LayerCmd") private String layerCmd; @com.aliyun.core.annotation.NameInMap("LayerDigest") private String layerDigest; @com.aliyun.core.annotation.NameInMap("Promt") private String promt; @com.aliyun.core.annotation.NameInMap("RiskClass") private String riskClass; @com.aliyun.core.annotation.NameInMap("RiskClassName") private String riskClassName; @com.aliyun.core.annotation.NameInMap("RiskKey") private String riskKey; @com.aliyun.core.annotation.NameInMap("RiskKeyName") private String riskKeyName; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; private List(Builder builder) { this.advice = builder.advice; this.description = builder.description; this.layerCmd = builder.layerCmd; this.layerDigest = builder.layerDigest; this.promt = builder.promt; this.riskClass = builder.riskClass; this.riskClassName = builder.riskClassName; this.riskKey = builder.riskKey; this.riskKeyName = builder.riskKeyName; this.riskLevel = builder.riskLevel; } public static Builder builder() { return new Builder(); } public static List create() { return builder().build(); } /** * @return advice */ public String getAdvice() { return this.advice; } /** * @return description */ public String getDescription() { return this.description; } /** * @return layerCmd */ public String getLayerCmd() { return this.layerCmd; } /** * @return layerDigest */ public String getLayerDigest() { return this.layerDigest; } /** * @return promt */ public String getPromt() { return this.promt; } /** * @return riskClass */ public String getRiskClass() { return this.riskClass; } /** * @return riskClassName */ public String getRiskClassName() { return this.riskClassName; } /** * @return riskKey */ public String getRiskKey() { return this.riskKey; } /** * @return riskKeyName */ public String getRiskKeyName() { return this.riskKeyName; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } public static final class Builder { private String advice; private String description; private String layerCmd; private String layerDigest; private String promt; private String riskClass; private String riskClassName; private String riskKey; private String riskKeyName; private String riskLevel; private Builder() { } private Builder(List model) { this.advice = model.advice; this.description = model.description; this.layerCmd = model.layerCmd; this.layerDigest = model.layerDigest; this.promt = model.promt; this.riskClass = model.riskClass; this.riskClassName = model.riskClassName; this.riskKey = model.riskKey; this.riskKeyName = model.riskKeyName; this.riskLevel = model.riskLevel; } /** * <p>The suggestion on how to handle the risk.</p> * * <strong>example:</strong> * <p>do not use root user</p> */ public Builder advice(String advice) { this.advice = advice; return this; } /** * <p>The description of the suggestion on how to handle the risk.</p> * * <strong>example:</strong> * <p>the root user has excessive permissions</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The image build command.</p> * * <strong>example:</strong> * <p>user root</p> */ public Builder layerCmd(String layerCmd) { this.layerCmd = layerCmd; return this; } /** * <p>The digest of the image.</p> * * <strong>example:</strong> * <p>6ec898e6274f942e0e4a053eff1c3119026a6704e56cff206b2cec71f636****</p> */ public Builder layerDigest(String layerDigest) { this.layerDigest = layerDigest; return this; } /** * <p>The prompt message on the risk.</p> * * <strong>example:</strong> * <p>the root user has excessive permissions</p> */ public Builder promt(String promt) { this.promt = promt; return this; } /** * <p>The type key of the risk rule.</p> * * <strong>example:</strong> * <p>other</p> */ public Builder riskClass(String riskClass) { this.riskClass = riskClass; return this; } /** * <p>The type name of the risk rule.</p> * * <strong>example:</strong> * <p>other</p> */ public Builder riskClassName(String riskClassName) { this.riskClassName = riskClassName; return this; } /** * <p>The key of the risk rule.</p> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKey(String riskKey) { this.riskKey = riskKey; return this; } /** * <p>The name of the risk rule.</p> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKeyName(String riskKeyName) { this.riskKeyName = riskKeyName; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>medium</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } public List build() { return new List(this); } } } /** * * {@link DescribeImageBuildRiskByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskByKeyResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>109</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageBuildRiskByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskByKeyResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("List") private java.util.List<List> list; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; private Data(Builder builder) { this.list = builder.list; this.pageInfo = builder.pageInfo; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return list */ public java.util.List<List> getList() { return this.list; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } public static final class Builder { private java.util.List<List> list; private PageInfo pageInfo; private Builder() { } private Builder(Data model) { this.list = model.list; this.pageInfo = model.pageInfo; } /** * <p>The risks.</p> */ public Builder list(java.util.List<List> list) { this.list = list; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskListRequest} extends {@link RequestModel} * * <p>DescribeImageBuildRiskListRequest</p> */ public class DescribeImageBuildRiskListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CriteriaType") private String criteriaType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; private DescribeImageBuildRiskListRequest(Builder builder) { super(builder); this.criteria = builder.criteria; this.criteriaType = builder.criteriaType; this.currentPage = builder.currentPage; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskLevel = builder.riskLevel; } public static Builder builder() { return new Builder(); } public static DescribeImageBuildRiskListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return criteriaType */ public String getCriteriaType() { return this.criteriaType; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } public static final class Builder extends Request.Builder<DescribeImageBuildRiskListRequest, Builder> { private String criteria; private String criteriaType; private Integer currentPage; private String lang; private Integer pageSize; private String riskLevel; private Builder() { super(); } private Builder(DescribeImageBuildRiskListRequest request) { super(request); this.criteria = request.criteria; this.criteriaType = request.criteriaType; this.currentPage = request.currentPage; this.lang = request.lang; this.pageSize = request.pageSize; this.riskLevel = request.riskLevel; } /** * <p>The <strong>rule name</strong> or <strong>type name</strong> of the risk. You can call the <a href="~~~~">DescribeImageBuildRiskList</a> operation to obtain the name. Optional parameters:</p> * <ul> * <li>If <strong>CriteriaType</strong> is set to <strong>RiskKeyName</strong>, you must specify a <strong>rule name</strong> for this parameter.</li> * <li>If <strong>CriteriaType</strong> is set to<strong>RiskClassName</strong>, you must specify a <strong>type name</strong> for this parameter.</li> * </ul> * * <strong>example:</strong> * <p>no_user</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The query type.of the risk. Valid values:</p> * <ul> * <li><strong>RiskKeyName</strong>: the rule name of the risk</li> * <li><strong>RiskClassName</strong>: the type name of the risk</li> * </ul> * * <strong>example:</strong> * <p>RiskKeyName</p> */ public Builder criteriaType(String criteriaType) { this.putQueryParameter("CriteriaType", criteriaType); this.criteriaType = criteriaType; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>medium</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } @Override public DescribeImageBuildRiskListRequest build() { return new DescribeImageBuildRiskListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskListResponse} extends {@link TeaModel} * * <p>DescribeImageBuildRiskListResponse</p> */ public class DescribeImageBuildRiskListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageBuildRiskListResponseBody body; private DescribeImageBuildRiskListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageBuildRiskListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageBuildRiskListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageBuildRiskListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageBuildRiskListResponseBody body); @Override DescribeImageBuildRiskListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageBuildRiskListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageBuildRiskListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageBuildRiskListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageBuildRiskListResponseBody body) { this.body = body; return this; } @Override public DescribeImageBuildRiskListResponse build() { return new DescribeImageBuildRiskListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageBuildRiskListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageBuildRiskListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskListResponseBody</p> */ public class DescribeImageBuildRiskListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageBuildRiskListResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageBuildRiskListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageBuildRiskListResponseBody model) { this.code = model.code; this.data = model.data; this.message = model.message; this.requestId = model.requestId; this.success = model.success; } /** * <p>The response code. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The returned data.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The returned message.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BE120DAB-F4E7-4C53-ADC3-A97578AB****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageBuildRiskListResponseBody build() { return new DescribeImageBuildRiskListResponseBody(this); } } /** * * {@link DescribeImageBuildRiskListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskListResponseBody</p> */ public static class List extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("RiskClass") private String riskClass; @com.aliyun.core.annotation.NameInMap("RiskClassName") private String riskClassName; @com.aliyun.core.annotation.NameInMap("RiskKey") private String riskKey; @com.aliyun.core.annotation.NameInMap("RiskKeyName") private String riskKeyName; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("UnprocessedNum") private Integer unprocessedNum; private List(Builder builder) { this.count = builder.count; this.firstScanTime = builder.firstScanTime; this.lastScanTime = builder.lastScanTime; this.riskClass = builder.riskClass; this.riskClassName = builder.riskClassName; this.riskKey = builder.riskKey; this.riskKeyName = builder.riskKeyName; this.riskLevel = builder.riskLevel; this.unprocessedNum = builder.unprocessedNum; } public static Builder builder() { return new Builder(); } public static List create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return riskClass */ public String getRiskClass() { return this.riskClass; } /** * @return riskClassName */ public String getRiskClassName() { return this.riskClassName; } /** * @return riskKey */ public String getRiskKey() { return this.riskKey; } /** * @return riskKeyName */ public String getRiskKeyName() { return this.riskKeyName; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return unprocessedNum */ public Integer getUnprocessedNum() { return this.unprocessedNum; } public static final class Builder { private Integer count; private Long firstScanTime; private Long lastScanTime; private String riskClass; private String riskClassName; private String riskKey; private String riskKeyName; private String riskLevel; private Integer unprocessedNum; private Builder() { } private Builder(List model) { this.count = model.count; this.firstScanTime = model.firstScanTime; this.lastScanTime = model.lastScanTime; this.riskClass = model.riskClass; this.riskClassName = model.riskClassName; this.riskKey = model.riskKey; this.riskKeyName = model.riskKeyName; this.riskLevel = model.riskLevel; this.unprocessedNum = model.unprocessedNum; } /** * <p>The number of affected images.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1723710827000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1723710827999</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The type key of the risk.</p> * * <strong>example:</strong> * <p>other</p> */ public Builder riskClass(String riskClass) { this.riskClass = riskClass; return this; } /** * <p>The type name of the risk.</p> * * <strong>example:</strong> * <p>other</p> */ public Builder riskClassName(String riskClassName) { this.riskClassName = riskClassName; return this; } /** * <p>The key of the risk. You can call the <a href="~~~~">DescribeImageBuildRiskList</a> operation to obtain the value of <strong>RiskKey</strong>.</p> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKey(String riskKey) { this.riskKey = riskKey; return this; } /** * <p>The rule name of the risk.</p> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKeyName(String riskKeyName) { this.riskKeyName = riskKeyName; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>medium</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * <p>The number of unprocessed images.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder unprocessedNum(Integer unprocessedNum) { this.unprocessedNum = unprocessedNum; return this; } public List build() { return new List(this); } } } /** * * {@link DescribeImageBuildRiskListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>109</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageBuildRiskListResponseBody} extends {@link TeaModel} * * <p>DescribeImageBuildRiskListResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("List") private java.util.List<List> list; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; private Data(Builder builder) { this.list = builder.list; this.pageInfo = builder.pageInfo; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return list */ public java.util.List<List> getList() { return this.list; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } public static final class Builder { private java.util.List<List> list; private PageInfo pageInfo; private Builder() { } private Builder(Data model) { this.list = model.list; this.pageInfo = model.pageInfo; } /** * <p>The risks.</p> */ public Builder list(java.util.List<List> list) { this.list = list; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageCriteriaRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageCriteriaRequest} extends {@link RequestModel} * * <p>DescribeImageCriteriaRequest</p> */ public class DescribeImageCriteriaRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Value") private String value; private DescribeImageCriteriaRequest(Builder builder) { super(builder); this.value = builder.value; } public static Builder builder() { return new Builder(); } public static DescribeImageCriteriaRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return value */ public String getValue() { return this.value; } public static final class Builder extends Request.Builder<DescribeImageCriteriaRequest, Builder> { private String value; private Builder() { super(); } private Builder(DescribeImageCriteriaRequest request) { super(request); this.value = request.value; } /** * <p>The keyword that you specify for fuzzy search when you query the image.</p> * <blockquote> * <p>The value of this parameter can be an image ID, image tag, image instance ID, image repository name, image repository ID, image repository namespace, image region, image digest, or image repository type.</p> * </blockquote> * * <strong>example:</strong> * <p>525</p> */ public Builder value(String value) { this.putQueryParameter("Value", value); this.value = value; return this; } @Override public DescribeImageCriteriaRequest build() { return new DescribeImageCriteriaRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageCriteriaResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageCriteriaResponse} extends {@link TeaModel} * * <p>DescribeImageCriteriaResponse</p> */ public class DescribeImageCriteriaResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageCriteriaResponseBody body; private DescribeImageCriteriaResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageCriteriaResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageCriteriaResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageCriteriaResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageCriteriaResponseBody body); @Override DescribeImageCriteriaResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageCriteriaResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageCriteriaResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageCriteriaResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageCriteriaResponseBody body) { this.body = body; return this; } @Override public DescribeImageCriteriaResponse build() { return new DescribeImageCriteriaResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageCriteriaResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageCriteriaResponseBody} extends {@link TeaModel} * * <p>DescribeImageCriteriaResponseBody</p> */ public class DescribeImageCriteriaResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CriteriaList") private java.util.List<CriteriaList> criteriaList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageCriteriaResponseBody(Builder builder) { this.criteriaList = builder.criteriaList; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageCriteriaResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return criteriaList */ public java.util.List<CriteriaList> getCriteriaList() { return this.criteriaList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<CriteriaList> criteriaList; private String requestId; private Builder() { } private Builder(DescribeImageCriteriaResponseBody model) { this.criteriaList = model.criteriaList; this.requestId = model.requestId; } /** * <p>The list of the search conditions.</p> */ public Builder criteriaList(java.util.List<CriteriaList> criteriaList) { this.criteriaList = criteriaList; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageCriteriaResponseBody build() { return new DescribeImageCriteriaResponseBody(this); } } /** * * {@link DescribeImageCriteriaResponseBody} extends {@link TeaModel} * * <p>DescribeImageCriteriaResponseBody</p> */ public static class CriteriaList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Values") private String values; private CriteriaList(Builder builder) { this.name = builder.name; this.type = builder.type; this.values = builder.values; } public static Builder builder() { return new Builder(); } public static CriteriaList create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return type */ public String getType() { return this.type; } /** * @return values */ public String getValues() { return this.values; } public static final class Builder { private String name; private String type; private String values; private Builder() { } private Builder(CriteriaList model) { this.name = model.name; this.type = model.type; this.values = model.values; } /** * <p>The name of the search condition.</p> * <ul> * <li><strong>tag</strong>: the tag of the image</li> * <li><strong>digest</strong>: the digest of the image</li> * <li><strong>vulStatus</strong>: the status of the vulnerability</li> * <li><strong>alarmStatus</strong>: the status of the alert</li> * <li><strong>riskStatus</strong>: the status of the risk</li> * <li><strong>registryType</strong>: the type of the image repository</li> * </ul> * * <strong>example:</strong> * <p>vulStatus</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The type of the search condition. Valid values:</p> * <ul> * <li><strong>input</strong>: The search condition needs to be specified.</li> * <li><strong>select</strong>: The search condition is an option that can be selected from the drop-down list.</li> * </ul> * * <strong>example:</strong> * <p>input</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The values of the search condition. This parameter is returned only if the value of Type is select.</p> * <blockquote> * <p>If the value of <strong>Type</strong> is <strong>input</strong>, the value of this parameter is an empty string.</p> * </blockquote> * * <strong>example:</strong> * <p>NO,YES</p> */ public Builder values(String values) { this.values = values; return this; } public CriteriaList build() { return new CriteriaList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationConditionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationConditionRequest} extends {@link RequestModel} * * <p>DescribeImageEventOperationConditionRequest</p> */ public class DescribeImageEventOperationConditionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; private DescribeImageEventOperationConditionRequest(Builder builder) { super(builder); this.eventType = builder.eventType; this.lang = builder.lang; } public static Builder builder() { return new Builder(); } public static DescribeImageEventOperationConditionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return lang */ public String getLang() { return this.lang; } public static final class Builder extends Request.Builder<DescribeImageEventOperationConditionRequest, Builder> { private String eventType; private String lang; private Builder() { super(); } private Builder(DescribeImageEventOperationConditionRequest request) { super(request); this.eventType = request.eventType; this.lang = request.lang; } /** * <p>The alert type.</p> * <ul> * <li>Set the value to <strong>sensitiveFile</strong>.</li> * </ul> * * <strong>example:</strong> * <p>sensitiveFile</p> */ public Builder eventType(String eventType) { this.putQueryParameter("EventType", eventType); this.eventType = eventType; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese.</li> * <li><strong>en</strong>: English.</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } @Override public DescribeImageEventOperationConditionRequest build() { return new DescribeImageEventOperationConditionRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationConditionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationConditionResponse} extends {@link TeaModel} * * <p>DescribeImageEventOperationConditionResponse</p> */ public class DescribeImageEventOperationConditionResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageEventOperationConditionResponseBody body; private DescribeImageEventOperationConditionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageEventOperationConditionResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageEventOperationConditionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageEventOperationConditionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageEventOperationConditionResponseBody body); @Override DescribeImageEventOperationConditionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageEventOperationConditionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageEventOperationConditionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageEventOperationConditionResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageEventOperationConditionResponseBody body) { this.body = body; return this; } @Override public DescribeImageEventOperationConditionResponse build() { return new DescribeImageEventOperationConditionResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationConditionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationConditionResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationConditionResponseBody</p> */ public class DescribeImageEventOperationConditionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageEventOperationConditionResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageEventOperationConditionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageEventOperationConditionResponseBody model) { this.code = model.code; this.data = model.data; this.message = model.message; this.requestId = model.requestId; this.success = model.success; } /** * <p>The response code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The returned data.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The returned message.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>ADE57832-9666-511C-9A80-B87DE2E8****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageEventOperationConditionResponseBody build() { return new DescribeImageEventOperationConditionResponseBody(this); } } /** * * {@link DescribeImageEventOperationConditionResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationConditionResponseBody</p> */ public static class Conditions extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConditionKey") private String conditionKey; @com.aliyun.core.annotation.NameInMap("ConditionName") private String conditionName; @com.aliyun.core.annotation.NameInMap("SupportedMisType") private java.util.List<String> supportedMisType; private Conditions(Builder builder) { this.conditionKey = builder.conditionKey; this.conditionName = builder.conditionName; this.supportedMisType = builder.supportedMisType; } public static Builder builder() { return new Builder(); } public static Conditions create() { return builder().build(); } /** * @return conditionKey */ public String getConditionKey() { return this.conditionKey; } /** * @return conditionName */ public String getConditionName() { return this.conditionName; } /** * @return supportedMisType */ public java.util.List<String> getSupportedMisType() { return this.supportedMisType; } public static final class Builder { private String conditionKey; private String conditionName; private java.util.List<String> supportedMisType; private Builder() { } private Builder(Conditions model) { this.conditionKey = model.conditionKey; this.conditionName = model.conditionName; this.supportedMisType = model.supportedMisType; } /** * <p>The keyword of the condition. Valid values:</p> * <ul> * <li><strong>MD5</strong></li> * <li><strong>PATH</strong></li> * </ul> * * <strong>example:</strong> * <p>MD5</p> */ public Builder conditionKey(String conditionKey) { this.conditionKey = conditionKey; return this; } /** * <p>The name of the condition.</p> * * <strong>example:</strong> * <p>MD5</p> */ public Builder conditionName(String conditionName) { this.conditionName = conditionName; return this; } /** * <p>The matching types.</p> */ public Builder supportedMisType(java.util.List<String> supportedMisType) { this.supportedMisType = supportedMisType; return this; } public Conditions build() { return new Conditions(this); } } } /** * * {@link DescribeImageEventOperationConditionResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationConditionResponseBody</p> */ public static class Operations extends TeaModel { @com.aliyun.core.annotation.NameInMap("Conditions") private java.util.List<Conditions> conditions; @com.aliyun.core.annotation.NameInMap("OperationCode") private String operationCode; @com.aliyun.core.annotation.NameInMap("OperationName") private String operationName; private Operations(Builder builder) { this.conditions = builder.conditions; this.operationCode = builder.operationCode; this.operationName = builder.operationName; } public static Builder builder() { return new Builder(); } public static Operations create() { return builder().build(); } /** * @return conditions */ public java.util.List<Conditions> getConditions() { return this.conditions; } /** * @return operationCode */ public String getOperationCode() { return this.operationCode; } /** * @return operationName */ public String getOperationName() { return this.operationName; } public static final class Builder { private java.util.List<Conditions> conditions; private String operationCode; private String operationName; private Builder() { } private Builder(Operations model) { this.conditions = model.conditions; this.operationCode = model.operationCode; this.operationName = model.operationName; } /** * <p>The rule conditions.</p> */ public Builder conditions(java.util.List<Conditions> conditions) { this.conditions = conditions; return this; } /** * <p>The operation code.</p> * <ul> * <li>Only <strong>whitelist</strong> may be returned, which indicates that the alert event is added to the whitelist.</li> * </ul> * * <strong>example:</strong> * <p>whitelist</p> */ public Builder operationCode(String operationCode) { this.operationCode = operationCode; return this; } /** * <p>The name of the operation.</p> * * <strong>example:</strong> * <p>whitelist</p> */ public Builder operationName(String operationName) { this.operationName = operationName; return this; } public Operations build() { return new Operations(this); } } } /** * * {@link DescribeImageEventOperationConditionResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationConditionResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.NameInMap("Operations") private java.util.List<Operations> operations; @com.aliyun.core.annotation.NameInMap("Scenarios") private java.util.List<String> scenarios; private Data(Builder builder) { this.eventType = builder.eventType; this.operations = builder.operations; this.scenarios = builder.scenarios; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return operations */ public java.util.List<Operations> getOperations() { return this.operations; } /** * @return scenarios */ public java.util.List<String> getScenarios() { return this.scenarios; } public static final class Builder { private String eventType; private java.util.List<Operations> operations; private java.util.List<String> scenarios; private Builder() { } private Builder(Data model) { this.eventType = model.eventType; this.operations = model.operations; this.scenarios = model.scenarios; } /** * <p>The alert type.</p> * <ul> * <li>Only <strong>sensitiveFile</strong> may be returned.</li> * </ul> * * <strong>example:</strong> * <p>sensitiveFile</p> */ public Builder eventType(String eventType) { this.eventType = eventType; return this; } /** * <p>The operations.</p> */ public Builder operations(java.util.List<Operations> operations) { this.operations = operations; return this; } /** * <p>The application scopes of the rules.</p> */ public Builder scenarios(java.util.List<String> scenarios) { this.scenarios = scenarios; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationPageRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationPageRequest} extends {@link RequestModel} * * <p>DescribeImageEventOperationPageRequest</p> */ public class DescribeImageEventOperationPageRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventKey") private String eventKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Source") private String source; private DescribeImageEventOperationPageRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.eventKey = builder.eventKey; this.eventName = builder.eventName; this.eventType = builder.eventType; this.id = builder.id; this.lang = builder.lang; this.pageSize = builder.pageSize; this.source = builder.source; } public static Builder builder() { return new Builder(); } public static DescribeImageEventOperationPageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return eventKey */ public String getEventKey() { return this.eventKey; } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return id */ public Long getId() { return this.id; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return source */ public String getSource() { return this.source; } public static final class Builder extends Request.Builder<DescribeImageEventOperationPageRequest, Builder> { private Integer currentPage; private String eventKey; private String eventName; private String eventType; private Long id; private String lang; private Integer pageSize; private String source; private Builder() { super(); } private Builder(DescribeImageEventOperationPageRequest request) { super(request); this.currentPage = request.currentPage; this.eventKey = request.eventKey; this.eventName = request.eventName; this.eventType = request.eventType; this.id = request.id; this.lang = request.lang; this.pageSize = request.pageSize; this.source = request.source; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The keyword of the alert item.</p> * * <strong>example:</strong> * <p>PEM</p> */ public Builder eventKey(String eventKey) { this.putQueryParameter("EventKey", eventKey); this.eventKey = eventKey; return this; } /** * <p>The name of the alert item.</p> * * <strong>example:</strong> * <p>PEM</p> */ public Builder eventName(String eventName) { this.putQueryParameter("EventName", eventName); this.eventName = eventName; return this; } /** * <p>The alert type.</p> * <ul> * <li>Set the value to <strong>sensitiveFile</strong>.</li> * </ul> * * <strong>example:</strong> * <p>sensitiveFile</p> */ public Builder eventType(String eventType) { this.putQueryParameter("EventType", eventType); this.eventType = eventType; return this; } /** * <p>The ID of the alert handling rule.</p> * * <strong>example:</strong> * <p>49616</p> */ public Builder id(Long id) { this.putQueryParameter("Id", id); this.id = id; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese.</li> * <li><strong>en</strong>: English.</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The source of the alert handling rule. Valid values:</p> * <ul> * <li><strong>default</strong>: image.</li> * <li><strong>agentless</strong>: agentless detection.</li> * </ul> * * <strong>example:</strong> * <p>agentless</p> */ public Builder source(String source) { this.putQueryParameter("Source", source); this.source = source; return this; } @Override public DescribeImageEventOperationPageRequest build() { return new DescribeImageEventOperationPageRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationPageResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationPageResponse} extends {@link TeaModel} * * <p>DescribeImageEventOperationPageResponse</p> */ public class DescribeImageEventOperationPageResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageEventOperationPageResponseBody body; private DescribeImageEventOperationPageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageEventOperationPageResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageEventOperationPageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageEventOperationPageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageEventOperationPageResponseBody body); @Override DescribeImageEventOperationPageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageEventOperationPageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageEventOperationPageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageEventOperationPageResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageEventOperationPageResponseBody body) { this.body = body; return this; } @Override public DescribeImageEventOperationPageResponse build() { return new DescribeImageEventOperationPageResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageEventOperationPageResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageEventOperationPageResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationPageResponseBody</p> */ public class DescribeImageEventOperationPageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageEventOperationPageResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageEventOperationPageResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageEventOperationPageResponseBody model) { this.code = model.code; this.data = model.data; this.message = model.message; this.requestId = model.requestId; this.success = model.success; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The data returned.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The returned message.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A3D7C47D-3F11-57BB-90E8-E5C20C61****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageEventOperationPageResponseBody build() { return new DescribeImageEventOperationPageResponseBody(this); } } /** * * {@link DescribeImageEventOperationPageResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationPageResponseBody</p> */ public static class List extends TeaModel { @com.aliyun.core.annotation.NameInMap("Conditions") private String conditions; @com.aliyun.core.annotation.NameInMap("EventKey") private String eventKey; @com.aliyun.core.annotation.NameInMap("EventName") private String eventName; @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("OperationCode") private String operationCode; @com.aliyun.core.annotation.NameInMap("Scenarios") private String scenarios; @com.aliyun.core.annotation.NameInMap("Source") private String source; private List(Builder builder) { this.conditions = builder.conditions; this.eventKey = builder.eventKey; this.eventName = builder.eventName; this.eventType = builder.eventType; this.id = builder.id; this.note = builder.note; this.operationCode = builder.operationCode; this.scenarios = builder.scenarios; this.source = builder.source; } public static Builder builder() { return new Builder(); } public static List create() { return builder().build(); } /** * @return conditions */ public String getConditions() { return this.conditions; } /** * @return eventKey */ public String getEventKey() { return this.eventKey; } /** * @return eventName */ public String getEventName() { return this.eventName; } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return id */ public Long getId() { return this.id; } /** * @return note */ public String getNote() { return this.note; } /** * @return operationCode */ public String getOperationCode() { return this.operationCode; } /** * @return scenarios */ public String getScenarios() { return this.scenarios; } /** * @return source */ public String getSource() { return this.source; } public static final class Builder { private String conditions; private String eventKey; private String eventName; private String eventType; private Long id; private String note; private String operationCode; private String scenarios; private String source; private Builder() { } private Builder(List model) { this.conditions = model.conditions; this.eventKey = model.eventKey; this.eventName = model.eventName; this.eventType = model.eventType; this.id = model.id; this.note = model.note; this.operationCode = model.operationCode; this.scenarios = model.scenarios; this.source = model.source; } /** * <p>The rule conditions. The value is in the JSON format. Valid values of keys:</p> * <ul> * <li><strong>condition</strong>: the matching condition.</li> * <li><strong>type</strong>: the matching type.</li> * <li><strong>value</strong>: the matching value.</li> * </ul> * * <strong>example:</strong> * <p>[{&quot;condition&quot;: &quot;MD5&quot;, &quot;type&quot;: &quot;equals&quot;, &quot;value&quot;: &quot;0083a31cc0083a31ccf7c10367a6e783e&quot;}]</p> */ public Builder conditions(String conditions) { this.conditions = conditions; return this; } /** * <p>The keyword of the alert item.</p> * * <strong>example:</strong> * <p>PEM</p> */ public Builder eventKey(String eventKey) { this.eventKey = eventKey; return this; } /** * <p>The name of the alert item.</p> * * <strong>example:</strong> * <p>PEM</p> */ public Builder eventName(String eventName) { this.eventName = eventName; return this; } /** * <p>The alert type.</p> * <ul> * <li>Only <strong>sensitiveFile</strong> may be returned.</li> * </ul> * * <strong>example:</strong> * <p>sensitiveFile</p> */ public Builder eventType(String eventType) { this.eventType = eventType; return this; } /** * <p>The primary key of the alert handling rule.</p> * * <strong>example:</strong> * <p>2646624</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>xxx</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The operation code.</p> * <ul> * <li>Only <strong>whitelist</strong> may be returned, which means that the alert item is added to the whitelist.</li> * </ul> * * <strong>example:</strong> * <p>whitelist</p> */ public Builder operationCode(String operationCode) { this.operationCode = operationCode; return this; } /** * <p>The application scope of the rule. The value is in the JSON format. Valid values of keys:</p> * <ul> * <li><strong>type</strong></li> * <li><strong>value</strong></li> * </ul> * * <strong>example:</strong> * <p>{&quot;type&quot;: &quot;repo&quot;, &quot;value&quot;: &quot;test-aaa/shenzhen-repo-01&quot;}</p> */ public Builder scenarios(String scenarios) { this.scenarios = scenarios; return this; } /** * <p>The source of the whitelist. Valid values:</p> * <ul> * <li><strong>image</strong>: image.</li> * <li><strong>agentless</strong>: agentless detection.</li> * </ul> * * <strong>example:</strong> * <p>agentless</p> */ public Builder source(String source) { this.source = source; return this; } public List build() { return new List(this); } } } /** * * {@link DescribeImageEventOperationPageResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationPageResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>109</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageEventOperationPageResponseBody} extends {@link TeaModel} * * <p>DescribeImageEventOperationPageResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("List") private java.util.List<List> list; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; private Data(Builder builder) { this.list = builder.list; this.pageInfo = builder.pageInfo; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return list */ public java.util.List<List> getList() { return this.list; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } public static final class Builder { private java.util.List<List> list; private PageInfo pageInfo; private Builder() { } private Builder(Data model) { this.list = model.list; this.pageInfo = model.pageInfo; } /** * <p>The alert handling rules.</p> */ public Builder list(java.util.List<List> list) { this.list = list; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixCycleConfigRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixCycleConfigRequest} extends {@link RequestModel} * * <p>DescribeImageFixCycleConfigRequest</p> */ public class DescribeImageFixCycleConfigRequest extends Request { private DescribeImageFixCycleConfigRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeImageFixCycleConfigRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeImageFixCycleConfigRequest, Builder> { private Builder() { super(); } private Builder(DescribeImageFixCycleConfigRequest request) { super(request); } @Override public DescribeImageFixCycleConfigRequest build() { return new DescribeImageFixCycleConfigRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixCycleConfigResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixCycleConfigResponse} extends {@link TeaModel} * * <p>DescribeImageFixCycleConfigResponse</p> */ public class DescribeImageFixCycleConfigResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageFixCycleConfigResponseBody body; private DescribeImageFixCycleConfigResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageFixCycleConfigResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageFixCycleConfigResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageFixCycleConfigResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageFixCycleConfigResponseBody body); @Override DescribeImageFixCycleConfigResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageFixCycleConfigResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageFixCycleConfigResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageFixCycleConfigResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageFixCycleConfigResponseBody body) { this.body = body; return this; } @Override public DescribeImageFixCycleConfigResponse build() { return new DescribeImageFixCycleConfigResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixCycleConfigResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixCycleConfigResponseBody} extends {@link TeaModel} * * <p>DescribeImageFixCycleConfigResponseBody</p> */ public class DescribeImageFixCycleConfigResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageFixCycleConfigResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageFixCycleConfigResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private String requestId; private Builder() { } private Builder(DescribeImageFixCycleConfigResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The response parameters.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D65AADFC-1D20-5A6A-8F6A-9FA53C0D****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageFixCycleConfigResponseBody build() { return new DescribeImageFixCycleConfigResponseBody(this); } } /** * * {@link DescribeImageFixCycleConfigResponseBody} extends {@link TeaModel} * * <p>DescribeImageFixCycleConfigResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageFixCycle") private Integer imageFixCycle; @com.aliyun.core.annotation.NameInMap("ImageFixSwitch") private String imageFixSwitch; @com.aliyun.core.annotation.NameInMap("ImageFixTarget") private String imageFixTarget; @com.aliyun.core.annotation.NameInMap("ImageTimeRange") private Integer imageTimeRange; private Data(Builder builder) { this.imageFixCycle = builder.imageFixCycle; this.imageFixSwitch = builder.imageFixSwitch; this.imageFixTarget = builder.imageFixTarget; this.imageTimeRange = builder.imageTimeRange; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return imageFixCycle */ public Integer getImageFixCycle() { return this.imageFixCycle; } /** * @return imageFixSwitch */ public String getImageFixSwitch() { return this.imageFixSwitch; } /** * @return imageFixTarget */ public String getImageFixTarget() { return this.imageFixTarget; } /** * @return imageTimeRange */ public Integer getImageTimeRange() { return this.imageTimeRange; } public static final class Builder { private Integer imageFixCycle; private String imageFixSwitch; private String imageFixTarget; private Integer imageTimeRange; private Builder() { } private Builder(Data model) { this.imageFixCycle = model.imageFixCycle; this.imageFixSwitch = model.imageFixSwitch; this.imageFixTarget = model.imageFixTarget; this.imageTimeRange = model.imageTimeRange; } /** * <p>The cycle of the scheduled fix. Unit: day.</p> * * <strong>example:</strong> * <p>7</p> */ public Builder imageFixCycle(Integer imageFixCycle) { this.imageFixCycle = imageFixCycle; return this; } /** * <p>Indicates whether the scheduled fix of image risks is enabled.</p> * <ul> * <li><strong>on</strong>: enabled</li> * <li><strong>off</strong>: disabled</li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder imageFixSwitch(String imageFixSwitch) { this.imageFixSwitch = imageFixSwitch; return this; } /** * <p>The range of the scheduled fix. The value of this parameter is in the JSON format and contains the following fields:</p> * <ul> * <li><strong>type</strong>: The type of the image risk. The value is fixed to repo.</li> * <li><strong>target</strong>: The content of the image risk. The value is in the format of Namespace/Image repository.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;type&quot;:&quot;repo&quot;,&quot;target&quot;:[&quot;qa-dac/yyuan9&quot;,&quot;cdp-uat/zentao&quot;,&quot;cafdms-qa/xxl-job-admin&quot;,&quot;cafdms-qa/utils/jdk&quot;,&quot;cafmfbi/ui&quot;,&quot;cdp-uat/tradingdesk-webapp&quot;]}</p> */ public Builder imageFixTarget(String imageFixTarget) { this.imageFixTarget = imageFixTarget; return this; } /** * <p>The time range during which the image was modified. Unit: day.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder imageTimeRange(Integer imageTimeRange) { this.imageTimeRange = imageTimeRange; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixTaskRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixTaskRequest} extends {@link RequestModel} * * <p>DescribeImageFixTaskRequest</p> */ public class DescribeImageFixTaskRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") @com.aliyun.core.annotation.Validation(required = true) private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; private DescribeImageFixTaskRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.endTime = builder.endTime; this.pageSize = builder.pageSize; this.startTime = builder.startTime; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeImageFixTaskRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<DescribeImageFixTaskRequest, Builder> { private Integer currentPage; private Long endTime; private Integer pageSize; private Long startTime; private String status; private Builder() { super(); } private Builder(DescribeImageFixTaskRequest request) { super(request); this.currentPage = request.currentPage; this.endTime = request.endTime; this.pageSize = request.pageSize; this.startTime = request.startTime; this.status = request.status; } /** * <p>The number of the page to return. Default value: <strong>1</strong></p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The timestamp when the task ends. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1635575219000</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>20</strong></p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The timestamp when the task starts. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1634725571000</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The status of the task. Valid values:</p> * <ul> * <li><strong>1</strong>: The task is running.</li> * <li><strong>2</strong>: The task is successful.</li> * <li><strong>3</strong>: The task failed.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public DescribeImageFixTaskRequest build() { return new DescribeImageFixTaskRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixTaskResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixTaskResponse} extends {@link TeaModel} * * <p>DescribeImageFixTaskResponse</p> */ public class DescribeImageFixTaskResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageFixTaskResponseBody body; private DescribeImageFixTaskResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageFixTaskResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageFixTaskResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageFixTaskResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageFixTaskResponseBody body); @Override DescribeImageFixTaskResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageFixTaskResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageFixTaskResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageFixTaskResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageFixTaskResponseBody body) { this.body = body; return this; } @Override public DescribeImageFixTaskResponse build() { return new DescribeImageFixTaskResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageFixTaskResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageFixTaskResponseBody} extends {@link TeaModel} * * <p>DescribeImageFixTaskResponseBody</p> */ public class DescribeImageFixTaskResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BuildTasks") private java.util.List<BuildTasks> buildTasks; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageFixTaskResponseBody(Builder builder) { this.buildTasks = builder.buildTasks; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageFixTaskResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return buildTasks */ public java.util.List<BuildTasks> getBuildTasks() { return this.buildTasks; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<BuildTasks> buildTasks; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageFixTaskResponseBody model) { this.buildTasks = model.buildTasks; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The tasks returned.</p> */ public Builder buildTasks(java.util.List<BuildTasks> buildTasks) { this.buildTasks = buildTasks; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8AC52BBA-85D3-5F64-9B48-D08437CAF916</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageFixTaskResponseBody build() { return new DescribeImageFixTaskResponseBody(this); } } /** * * {@link DescribeImageFixTaskResponseBody} extends {@link TeaModel} * * <p>DescribeImageFixTaskResponseBody</p> */ public static class BuildTasks extends TeaModel { @com.aliyun.core.annotation.NameInMap("BuildTaskId") private String buildTaskId; @com.aliyun.core.annotation.NameInMap("FinishTime") private String finishTime; @com.aliyun.core.annotation.NameInMap("FixTime") private String fixTime; @com.aliyun.core.annotation.NameInMap("NewTag") private String newTag; @com.aliyun.core.annotation.NameInMap("NewUuid") private String newUuid; @com.aliyun.core.annotation.NameInMap("OldTag") private String oldTag; @com.aliyun.core.annotation.NameInMap("OldUuid") private String oldUuid; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; @com.aliyun.core.annotation.NameInMap("VulAlias") private String vulAlias; private BuildTasks(Builder builder) { this.buildTaskId = builder.buildTaskId; this.finishTime = builder.finishTime; this.fixTime = builder.fixTime; this.newTag = builder.newTag; this.newUuid = builder.newUuid; this.oldTag = builder.oldTag; this.oldUuid = builder.oldUuid; this.regionId = builder.regionId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.status = builder.status; this.taskType = builder.taskType; this.vulAlias = builder.vulAlias; } public static Builder builder() { return new Builder(); } public static BuildTasks create() { return builder().build(); } /** * @return buildTaskId */ public String getBuildTaskId() { return this.buildTaskId; } /** * @return finishTime */ public String getFinishTime() { return this.finishTime; } /** * @return fixTime */ public String getFixTime() { return this.fixTime; } /** * @return newTag */ public String getNewTag() { return this.newTag; } /** * @return newUuid */ public String getNewUuid() { return this.newUuid; } /** * @return oldTag */ public String getOldTag() { return this.oldTag; } /** * @return oldUuid */ public String getOldUuid() { return this.oldUuid; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return taskType */ public String getTaskType() { return this.taskType; } /** * @return vulAlias */ public String getVulAlias() { return this.vulAlias; } public static final class Builder { private String buildTaskId; private String finishTime; private String fixTime; private String newTag; private String newUuid; private String oldTag; private String oldUuid; private String regionId; private String repoName; private String repoNamespace; private Integer status; private String taskType; private String vulAlias; private Builder() { } private Builder(BuildTasks model) { this.buildTaskId = model.buildTaskId; this.finishTime = model.finishTime; this.fixTime = model.fixTime; this.newTag = model.newTag; this.newUuid = model.newUuid; this.oldTag = model.oldTag; this.oldUuid = model.oldUuid; this.regionId = model.regionId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.status = model.status; this.taskType = model.taskType; this.vulAlias = model.vulAlias; } /** * <p>The ID of the task.</p> * * <strong>example:</strong> * <p>ivf-939536b5-c3ca-427b-8183-91007756</p> */ public Builder buildTaskId(String buildTaskId) { this.buildTaskId = buildTaskId; return this; } /** * <p>The timestamp when the task starts. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>2021-10-14 20:34:07</p> */ public Builder finishTime(String finishTime) { this.finishTime = finishTime; return this; } /** * <p>The timestamp when the task ends. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>2021-10-14 20:32:05</p> */ public Builder fixTime(String fixTime) { this.fixTime = fixTime; return this; } /** * <p>The version of the image after image risks are fixed.</p> * * <strong>example:</strong> * <p>redhat8-vault</p> */ public Builder newTag(String newTag) { this.newTag = newTag; return this; } /** * <p>The UUID of the image after image risks are fixed.</p> * * <strong>example:</strong> * <p>2fa731681911ae8d1b5f11893ace****</p> */ public Builder newUuid(String newUuid) { this.newUuid = newUuid; return this; } /** * <p>The version of the image.</p> * * <strong>example:</strong> * <p>centos8.1-ja</p> */ public Builder oldTag(String oldTag) { this.oldTag = oldTag; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>2fa731681911ae8d1b5f11893ace****</p> */ public Builder oldUuid(String oldUuid) { this.oldUuid = oldUuid; return this; } /** * <p>The region of the image.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>test-redhat</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace of the image.</p> * * <strong>example:</strong> * <p>name-002</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The status of the task. Valid values:</p> * <ul> * <li><strong>1</strong>: The task is running.</li> * <li><strong>2</strong>: The task is successful.</li> * <li><strong>3</strong>: The task failed.</li> * </ul> * * <strong>example:</strong> * <p>2</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>The type of the task. The value is fixed as IMAGE_REPAIR. The value indicates a task that fixes image risks.</p> * * <strong>example:</strong> * <p>IMAGE_REPAIR</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } /** * <p>The alias of the fixed vulnerability.</p> * * <strong>example:</strong> * <p>CVE-2007-5686:rpath_linux Information Disclosure</p> */ public Builder vulAlias(String vulAlias) { this.vulAlias = vulAlias; return this; } public BuildTasks build() { return new BuildTasks(this); } } } /** * * {@link DescribeImageFixTaskResponseBody} extends {@link TeaModel} * * <p>DescribeImageFixTaskResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of tasks returned on the current page.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page. Default value: <strong>1</strong></p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page. Default value: <strong>20</strong></p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of tasks returned.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageGroupedVulListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageGroupedVulListRequest} extends {@link RequestModel} * * <p>DescribeImageGroupedVulListRequest</p> */ public class DescribeImageGroupedVulListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CveId") private String cveId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupId") private String groupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageDigest") private String imageDigest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageLayer") private String imageLayer; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageTag") private String imageTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsLatest") private Integer isLatest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Necessity") private String necessity; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PatchId") private Long patchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoInstanceId") private String repoInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoRegionId") private String repoRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleTag") private String ruleTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") private String uuids; private DescribeImageGroupedVulListRequest(Builder builder) { super(builder); this.aliasName = builder.aliasName; this.clusterId = builder.clusterId; this.currentPage = builder.currentPage; this.cveId = builder.cveId; this.groupId = builder.groupId; this.imageDigest = builder.imageDigest; this.imageLayer = builder.imageLayer; this.imageTag = builder.imageTag; this.isLatest = builder.isLatest; this.lang = builder.lang; this.name = builder.name; this.necessity = builder.necessity; this.pageSize = builder.pageSize; this.patchId = builder.patchId; this.repoId = builder.repoId; this.repoInstanceId = builder.repoInstanceId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.repoRegionId = builder.repoRegionId; this.ruleTag = builder.ruleTag; this.scanRange = builder.scanRange; this.type = builder.type; this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeImageGroupedVulListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return cveId */ public String getCveId() { return this.cveId; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return imageDigest */ public String getImageDigest() { return this.imageDigest; } /** * @return imageLayer */ public String getImageLayer() { return this.imageLayer; } /** * @return imageTag */ public String getImageTag() { return this.imageTag; } /** * @return isLatest */ public Integer getIsLatest() { return this.isLatest; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return name */ public String getName() { return this.name; } /** * @return necessity */ public String getNecessity() { return this.necessity; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return patchId */ public Long getPatchId() { return this.patchId; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoInstanceId */ public String getRepoInstanceId() { return this.repoInstanceId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return repoRegionId */ public String getRepoRegionId() { return this.repoRegionId; } /** * @return ruleTag */ public String getRuleTag() { return this.ruleTag; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return type */ public String getType() { return this.type; } /** * @return uuids */ public String getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeImageGroupedVulListRequest, Builder> { private String aliasName; private String clusterId; private Integer currentPage; private String cveId; private String groupId; private String imageDigest; private String imageLayer; private String imageTag; private Integer isLatest; private String lang; private String name; private String necessity; private Integer pageSize; private Long patchId; private String repoId; private String repoInstanceId; private String repoName; private String repoNamespace; private String repoRegionId; private String ruleTag; private java.util.List<String> scanRange; private String type; private String uuids; private Builder() { super(); } private Builder(DescribeImageGroupedVulListRequest request) { super(request); this.aliasName = request.aliasName; this.clusterId = request.clusterId; this.currentPage = request.currentPage; this.cveId = request.cveId; this.groupId = request.groupId; this.imageDigest = request.imageDigest; this.imageLayer = request.imageLayer; this.imageTag = request.imageTag; this.isLatest = request.isLatest; this.lang = request.lang; this.name = request.name; this.necessity = request.necessity; this.pageSize = request.pageSize; this.patchId = request.patchId; this.repoId = request.repoId; this.repoInstanceId = request.repoInstanceId; this.repoName = request.repoName; this.repoNamespace = request.repoNamespace; this.repoRegionId = request.repoRegionId; this.ruleTag = request.ruleTag; this.scanRange = request.scanRange; this.type = request.type; this.uuids = request.uuids; } /** * <p>The alias of the vulnerability.</p> * * <strong>example:</strong> * <p>High severity vulnerability that affects org.eclipse.jetty:jetty-server</p> */ public Builder aliasName(String aliasName) { this.putQueryParameter("AliasName", aliasName); this.aliasName = aliasName; return this; } /** * <p>The ID of the container cluster.</p> * <blockquote> * <p>You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the ID of the container cluster.</p> * </blockquote> * * <strong>example:</strong> * <p>c60b77fe62093480db6164a3c2fa5****</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The Common Vulnerabilities and Exposures (CVE) ID of the vulnerability.</p> * * <strong>example:</strong> * <p>CVE-2017-15420</p> */ public Builder cveId(String cveId) { this.putQueryParameter("CveId", cveId); this.cveId = cveId; return this; } /** * <p>The ID of the asset group.</p> * * <strong>example:</strong> * <p>1311</p> */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * <p>The SHA-256 value of the image digest.</p> * * <strong>example:</strong> * <p>w213412341dfsfasdfafadfasfasf</p> */ public Builder imageDigest(String imageDigest) { this.putQueryParameter("ImageDigest", imageDigest); this.imageDigest = imageDigest; return this; } /** * <p>The layer of the image.</p> * * <strong>example:</strong> * <p>b1f5b9420803ad0657cf21566e3e20acc08581e7f22991249ef3aa80b8b1c587</p> */ public Builder imageLayer(String imageLayer) { this.putQueryParameter("ImageLayer", imageLayer); this.imageLayer = imageLayer; return this; } /** * <p>The tag of the image.</p> * * <strong>example:</strong> * <p>oval</p> */ public Builder imageTag(String imageTag) { this.putQueryParameter("ImageTag", imageTag); this.imageTag = imageTag; return this; } /** * <p>Specifies whether to query the vulnerabilities in the latest images. If you do not specify this parameter, the vulnerabilities in all images are queried. Valid values:</p> * <ul> * <li><strong>0</strong>: does not query the vulnerabilities in the latest images.</li> * <li><strong>1</strong>: queries the vulnerabilities in the latest images.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder isLatest(Integer isLatest) { this.putQueryParameter("IsLatest", isLatest); this.isLatest = isLatest; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The name of the vulnerability.</p> * * <strong>example:</strong> * <p>debian:10:CVE-2019-9893</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The priority to fix the vulnerability. Valid values:</p> * <ul> * <li><strong>asap</strong>: high. You must fix the vulnerability at the earliest opportunity.</li> * <li><strong>later</strong>: medium. You can fix the vulnerability based on your business requirements.</li> * <li><strong>nntf</strong>: low. You can ignore the vulnerability.</li> * </ul> * * <strong>example:</strong> * <p>asap</p> */ public Builder necessity(String necessity) { this.putQueryParameter("Necessity", necessity); this.necessity = necessity; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The ID of the patch that is used to fix the vulnerability.</p> * * <strong>example:</strong> * <p>1341512412</p> */ public Builder patchId(Long patchId) { this.putQueryParameter("PatchId", patchId); this.patchId = patchId; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>qew****</p> */ public Builder repoId(String repoId) { this.putQueryParameter("RepoId", repoId); this.repoId = repoId; return this; } /** * <p>The instance ID of the image repository.</p> * * <strong>example:</strong> * <p>i-qewqrqcsadf****</p> */ public Builder repoInstanceId(String repoInstanceId) { this.putQueryParameter("RepoInstanceId", repoInstanceId); this.repoInstanceId = repoInstanceId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoName(String repoName) { this.putQueryParameter("RepoName", repoName); this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.putQueryParameter("RepoNamespace", repoNamespace); this.repoNamespace = repoNamespace; return this; } /** * <p>The region ID of the image repository.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder repoRegionId(String repoRegionId) { this.putQueryParameter("RepoRegionId", repoRegionId); this.repoRegionId = repoRegionId; return this; } /** * <p>The tag of this vulnerability. Valid values:</p> * <ul> * <li><strong>AI</strong>: AI-related components.</li> * </ul> * * <strong>example:</strong> * <p>AI</p> */ public Builder ruleTag(String ruleTag) { this.putQueryParameter("RuleTag", ruleTag); this.ruleTag = ruleTag; return this; } /** * <p>An array consisting of the types of the assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } /** * <p>The type of the vulnerability that you want to query. Valid values:</p> * <ul> * <li><strong>cve</strong>: image system vulnerability</li> * <li><strong>sca</strong>: image application vulnerability</li> * </ul> * * <strong>example:</strong> * <p>cve</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * <p>The UUID of the asset. Separate multiple UUIDs with commas (,).</p> * * <strong>example:</strong> * <p>uuid-13134124****</p> */ public Builder uuids(String uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeImageGroupedVulListRequest build() { return new DescribeImageGroupedVulListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageGroupedVulListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageGroupedVulListResponse} extends {@link TeaModel} * * <p>DescribeImageGroupedVulListResponse</p> */ public class DescribeImageGroupedVulListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageGroupedVulListResponseBody body; private DescribeImageGroupedVulListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageGroupedVulListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageGroupedVulListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageGroupedVulListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageGroupedVulListResponseBody body); @Override DescribeImageGroupedVulListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageGroupedVulListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageGroupedVulListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageGroupedVulListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageGroupedVulListResponseBody body) { this.body = body; return this; } @Override public DescribeImageGroupedVulListResponse build() { return new DescribeImageGroupedVulListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageGroupedVulListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageGroupedVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageGroupedVulListResponseBody</p> */ public class DescribeImageGroupedVulListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("GroupedVulItems") private java.util.List<GroupedVulItems> groupedVulItems; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeImageGroupedVulListResponseBody(Builder builder) { this.currentPage = builder.currentPage; this.groupedVulItems = builder.groupedVulItems; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeImageGroupedVulListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return groupedVulItems */ public java.util.List<GroupedVulItems> getGroupedVulItems() { return this.groupedVulItems; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer currentPage; private java.util.List<GroupedVulItems> groupedVulItems; private Integer pageSize; private String requestId; private Integer totalCount; private Builder() { } private Builder(DescribeImageGroupedVulListResponseBody model) { this.currentPage = model.currentPage; this.groupedVulItems = model.groupedVulItems; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>An array that consists of the image vulnerabilities.</p> */ public Builder groupedVulItems(java.util.List<GroupedVulItems> groupedVulItems) { this.groupedVulItems = groupedVulItems; return this; } /** * <p>The number of entries returned per page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>5E244439-UJND-8BF7-26F36E21B9AA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of image system vulnerabilities.</p> * * <strong>example:</strong> * <p>21</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeImageGroupedVulListResponseBody build() { return new DescribeImageGroupedVulListResponseBody(this); } } /** * * {@link DescribeImageGroupedVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageGroupedVulListResponseBody</p> */ public static class GroupedVulItems extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.NameInMap("AsapCount") private Integer asapCount; @com.aliyun.core.annotation.NameInMap("CanFix") private String canFix; @com.aliyun.core.annotation.NameInMap("GmtLast") private Long gmtLast; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("LaterCount") private Integer laterCount; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NntfCount") private Integer nntfCount; @com.aliyun.core.annotation.NameInMap("RuleTag") private String ruleTag; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("Tags") private String tags; @com.aliyun.core.annotation.NameInMap("Type") private String type; private GroupedVulItems(Builder builder) { this.aliasName = builder.aliasName; this.asapCount = builder.asapCount; this.canFix = builder.canFix; this.gmtLast = builder.gmtLast; this.lastScanTime = builder.lastScanTime; this.laterCount = builder.laterCount; this.name = builder.name; this.nntfCount = builder.nntfCount; this.ruleTag = builder.ruleTag; this.status = builder.status; this.tags = builder.tags; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static GroupedVulItems create() { return builder().build(); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return asapCount */ public Integer getAsapCount() { return this.asapCount; } /** * @return canFix */ public String getCanFix() { return this.canFix; } /** * @return gmtLast */ public Long getGmtLast() { return this.gmtLast; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return laterCount */ public Integer getLaterCount() { return this.laterCount; } /** * @return name */ public String getName() { return this.name; } /** * @return nntfCount */ public Integer getNntfCount() { return this.nntfCount; } /** * @return ruleTag */ public String getRuleTag() { return this.ruleTag; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return tags */ public String getTags() { return this.tags; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String aliasName; private Integer asapCount; private String canFix; private Long gmtLast; private Long lastScanTime; private Integer laterCount; private String name; private Integer nntfCount; private String ruleTag; private Integer status; private String tags; private String type; private Builder() { } private Builder(GroupedVulItems model) { this.aliasName = model.aliasName; this.asapCount = model.asapCount; this.canFix = model.canFix; this.gmtLast = model.gmtLast; this.lastScanTime = model.lastScanTime; this.laterCount = model.laterCount; this.name = model.name; this.nntfCount = model.nntfCount; this.ruleTag = model.ruleTag; this.status = model.status; this.tags = model.tags; this.type = model.type; } /** * <p>The alias of the vulnerability.</p> * * <strong>example:</strong> * <p>RHSA-2017:3075-Important: wget security update</p> */ public Builder aliasName(String aliasName) { this.aliasName = aliasName; return this; } /** * <p>The number of vulnerabilities that have the high priority.</p> * * <strong>example:</strong> * <p>26</p> */ public Builder asapCount(Integer asapCount) { this.asapCount = asapCount; return this; } /** * <p>Indicates whether the vulnerability can be fixed in the Security Center console. Valid values:</p> * <ul> * <li><strong>yes</strong></li> * <li><strong>no</strong></li> * </ul> * * <strong>example:</strong> * <p>yes</p> */ public Builder canFix(String canFix) { this.canFix = canFix; return this; } /** * <p>The timestamp when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1611201274000</p> */ public Builder gmtLast(Long gmtLast) { this.gmtLast = gmtLast; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1611201274000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The number of vulnerabilities that have the medium priority.</p> * * <strong>example:</strong> * <p>26</p> */ public Builder laterCount(Integer laterCount) { this.laterCount = laterCount; return this; } /** * <p>The name of the vulnerability.</p> * * <strong>example:</strong> * <p>debian:9:CVE-2019-3858</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The number of vulnerabilities that have the low priority.</p> * * <strong>example:</strong> * <p>29</p> */ public Builder nntfCount(Integer nntfCount) { this.nntfCount = nntfCount; return this; } /** * <p>The tag of this vulnerability. Valid values:</p> * <ul> * <li><strong>AI</strong>: AI-related components.</li> * </ul> * * <strong>example:</strong> * <p>AI</p> */ public Builder ruleTag(String ruleTag) { this.ruleTag = ruleTag; return this; } /** * <p>The status of the vulnerability. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled</li> * <li><strong>1</strong>: handled</li> * <li><strong>2</strong>: verifying</li> * <li><strong>3</strong>: added to the whitelist</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>The tag of the vulnerability. Valid values:</p> * <ul> * <li>Restart required</li> * <li>Remote exploitation</li> * <li>Exploit exists</li> * <li>Exploitable</li> * <li>Privilege escalation</li> * <li>Code execution</li> * </ul> * * <strong>example:</strong> * <p>EXP exists</p> */ public Builder tags(String tags) { this.tags = tags; return this; } /** * <p>The type of the vulnerability. Valid values:</p> * <ul> * <li><strong>cve</strong>: image system vulnerability</li> * <li><strong>sca</strong>: image application vulnerability</li> * </ul> * * <strong>example:</strong> * <p>cve</p> */ public Builder type(String type) { this.type = type; return this; } public GroupedVulItems build() { return new GroupedVulItems(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInfoListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInfoListRequest} extends {@link RequestModel} * * <p>DescribeImageInfoListRequest</p> */ public class DescribeImageInfoListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") @com.aliyun.core.annotation.Validation(required = true) private String uuids; private DescribeImageInfoListRequest(Builder builder) { super(builder); this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeImageInfoListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return uuids */ public String getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeImageInfoListRequest, Builder> { private String uuids; private Builder() { super(); } private Builder(DescribeImageInfoListRequest request) { super(request); this.uuids = request.uuids; } /** * <p>The UUID of the server. Separate multiple UUIDs with commas (,).</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/141932.html">DescribeCloudCenterInstances</a> operation to query the UUIDs of servers.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>391abd09184cbd3743d7f5ec125d****, * e6aeb2a5b6004479398b0bcd1160****</p> */ public Builder uuids(String uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeImageInfoListRequest build() { return new DescribeImageInfoListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInfoListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInfoListResponse} extends {@link TeaModel} * * <p>DescribeImageInfoListResponse</p> */ public class DescribeImageInfoListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageInfoListResponseBody body; private DescribeImageInfoListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageInfoListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageInfoListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageInfoListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageInfoListResponseBody body); @Override DescribeImageInfoListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageInfoListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageInfoListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageInfoListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageInfoListResponseBody body) { this.body = body; return this; } @Override public DescribeImageInfoListResponse build() { return new DescribeImageInfoListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInfoListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInfoListResponseBody} extends {@link TeaModel} * * <p>DescribeImageInfoListResponseBody</p> */ public class DescribeImageInfoListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageInfos") private java.util.List<ImageInfos> imageInfos; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageInfoListResponseBody(Builder builder) { this.imageInfos = builder.imageInfos; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageInfoListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageInfos */ public java.util.List<ImageInfos> getImageInfos() { return this.imageInfos; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ImageInfos> imageInfos; private String requestId; private Builder() { } private Builder(DescribeImageInfoListResponseBody model) { this.imageInfos = model.imageInfos; this.requestId = model.requestId; } /** * <p>An array that consists of the information about images.</p> */ public Builder imageInfos(java.util.List<ImageInfos> imageInfos) { this.imageInfos = imageInfos; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>BC3B0DAE-CC0E-59E9-9383-6F060F22****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageInfoListResponseBody build() { return new DescribeImageInfoListResponseBody(this); } } /** * * {@link DescribeImageInfoListResponseBody} extends {@link TeaModel} * * <p>DescribeImageInfoListResponseBody</p> */ public static class ImageInfos extends TeaModel { @com.aliyun.core.annotation.NameInMap("AlarmCount") private Integer alarmCount; @com.aliyun.core.annotation.NameInMap("AlarmStatus") private String alarmStatus; @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.NameInMap("Endpoints") private String endpoints; @com.aliyun.core.annotation.NameInMap("ImageCreate") private Long imageCreate; @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("ImageSize") private Long imageSize; @com.aliyun.core.annotation.NameInMap("ImageUpdate") private Long imageUpdate; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RegistryType") private String registryType; @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RepoType") private String repoType; @com.aliyun.core.annotation.NameInMap("RiskStatus") private String riskStatus; @com.aliyun.core.annotation.NameInMap("SourceBizTag") private String sourceBizTag; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("TagImmutable") private Integer tagImmutable; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; @com.aliyun.core.annotation.NameInMap("VulCount") private Integer vulCount; @com.aliyun.core.annotation.NameInMap("VulStatus") private String vulStatus; private ImageInfos(Builder builder) { this.alarmCount = builder.alarmCount; this.alarmStatus = builder.alarmStatus; this.digest = builder.digest; this.endpoints = builder.endpoints; this.imageCreate = builder.imageCreate; this.imageId = builder.imageId; this.imageSize = builder.imageSize; this.imageUpdate = builder.imageUpdate; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.registryType = builder.registryType; this.repoId = builder.repoId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.repoType = builder.repoType; this.riskStatus = builder.riskStatus; this.sourceBizTag = builder.sourceBizTag; this.status = builder.status; this.tag = builder.tag; this.tagImmutable = builder.tagImmutable; this.uuid = builder.uuid; this.vulCount = builder.vulCount; this.vulStatus = builder.vulStatus; } public static Builder builder() { return new Builder(); } public static ImageInfos create() { return builder().build(); } /** * @return alarmCount */ public Integer getAlarmCount() { return this.alarmCount; } /** * @return alarmStatus */ public String getAlarmStatus() { return this.alarmStatus; } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return endpoints */ public String getEndpoints() { return this.endpoints; } /** * @return imageCreate */ public Long getImageCreate() { return this.imageCreate; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return imageSize */ public Long getImageSize() { return this.imageSize; } /** * @return imageUpdate */ public Long getImageUpdate() { return this.imageUpdate; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return registryType */ public String getRegistryType() { return this.registryType; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return repoType */ public String getRepoType() { return this.repoType; } /** * @return riskStatus */ public String getRiskStatus() { return this.riskStatus; } /** * @return sourceBizTag */ public String getSourceBizTag() { return this.sourceBizTag; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return tagImmutable */ public Integer getTagImmutable() { return this.tagImmutable; } /** * @return uuid */ public String getUuid() { return this.uuid; } /** * @return vulCount */ public Integer getVulCount() { return this.vulCount; } /** * @return vulStatus */ public String getVulStatus() { return this.vulStatus; } public static final class Builder { private Integer alarmCount; private String alarmStatus; private String digest; private String endpoints; private Long imageCreate; private String imageId; private Long imageSize; private Long imageUpdate; private String instanceId; private String regionId; private String registryType; private String repoId; private String repoName; private String repoNamespace; private String repoType; private String riskStatus; private String sourceBizTag; private String status; private String tag; private Integer tagImmutable; private String uuid; private Integer vulCount; private String vulStatus; private Builder() { } private Builder(ImageInfos model) { this.alarmCount = model.alarmCount; this.alarmStatus = model.alarmStatus; this.digest = model.digest; this.endpoints = model.endpoints; this.imageCreate = model.imageCreate; this.imageId = model.imageId; this.imageSize = model.imageSize; this.imageUpdate = model.imageUpdate; this.instanceId = model.instanceId; this.regionId = model.regionId; this.registryType = model.registryType; this.repoId = model.repoId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.repoType = model.repoType; this.riskStatus = model.riskStatus; this.sourceBizTag = model.sourceBizTag; this.status = model.status; this.tag = model.tag; this.tagImmutable = model.tagImmutable; this.uuid = model.uuid; this.vulCount = model.vulCount; this.vulStatus = model.vulStatus; } /** * <p>The number of alerts that are generated on the current pod, application, namespace, or cluster.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder alarmCount(Integer alarmCount) { this.alarmCount = alarmCount; return this; } /** * <p>Indicates whether alerts are generated on the asset. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>YES</p> */ public Builder alarmStatus(String alarmStatus) { this.alarmStatus = alarmStatus; return this; } /** * <p>The digest value of the image.</p> * * <strong>example:</strong> * <p>a3521b04dfdd1361a24be6263f2983cf12ba910989f4d9f7324da7e1e89f****</p> */ public Builder digest(String digest) { this.digest = digest; return this; } /** * <p>The endpoint of Container Registry.</p> * * <strong>example:</strong> * <p>cn-hangzhou-x7</p> */ public Builder endpoints(String endpoints) { this.endpoints = endpoints; return this; } /** * <p>The time when the image was created.</p> * * <strong>example:</strong> * <p>1636962328000</p> */ public Builder imageCreate(Long imageCreate) { this.imageCreate = imageCreate; return this; } /** * <p>The ID of the image.</p> * * <strong>example:</strong> * <p>bb0175afea16138815a8900adeeb0315d88a83a2376eeffa14db1d693a15****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The size of the image.</p> * * <strong>example:</strong> * <p>157408623</p> */ public Builder imageSize(Long imageSize) { this.imageSize = imageSize; return this; } /** * <p>The time when the image was updated.</p> * * <strong>example:</strong> * <p>1636974116000</p> */ public Builder imageUpdate(Long imageUpdate) { this.imageUpdate = imageUpdate; return this; } /** * <p>The ID of the image instance.</p> * * <strong>example:</strong> * <p>i-wz95abw6pa7y79ve****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The region ID of the image instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The type of the registration.</p> * * <strong>example:</strong> * <p>harbor</p> */ public Builder registryType(String registryType) { this.registryType = registryType; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>crr-5qk9v2rdt0s****</p> */ public Builder repoId(String repoId) { this.repoId = repoId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>opa-test</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The type of the image repository. Valid values:</p> * <ul> * <li><code>PUBLIC</code></li> * <li><code>PRIVATE</code></li> * </ul> * * <strong>example:</strong> * <p>PUBLIC</p> */ public Builder repoType(String repoType) { this.repoType = repoType; return this; } /** * <p>Indicates whether the image is at risk. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>YES</p> */ public Builder riskStatus(String riskStatus) { this.riskStatus = riskStatus; return this; } /** * <p>The usage label of the image.</p> * * <strong>example:</strong> * <p>PAI</p> */ public Builder sourceBizTag(String sourceBizTag) { this.sourceBizTag = sourceBizTag; return this; } /** * <p>The status of the image.</p> * * <strong>example:</strong> * <p>NORMAL</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag that is added to the image.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The tag immutability.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder tagImmutable(Integer tagImmutable) { this.tagImmutable = tagImmutable; return this; } /** * <p>The UUID of the server.</p> * * <strong>example:</strong> * <p>ff9ca084-7faa-4ab2-8728-69024755****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } /** * <p>The total number of vulnerabilities in your assets.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder vulCount(Integer vulCount) { this.vulCount = vulCount; return this; } /** * <p>Indicates whether vulnerabilities are detected on the asset. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>YES</p> */ public Builder vulStatus(String vulStatus) { this.vulStatus = vulStatus; return this; } public ImageInfos build() { return new ImageInfos(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInstancesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInstancesRequest} extends {@link RequestModel} * * <p>DescribeImageInstancesRequest</p> */ public class DescribeImageInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogicalExp") private String logicalExp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Scanned") private Boolean scanned; private DescribeImageInstancesRequest(Builder builder) { super(builder); this.criteria = builder.criteria; this.currentPage = builder.currentPage; this.logicalExp = builder.logicalExp; this.pageSize = builder.pageSize; this.scanned = builder.scanned; } public static Builder builder() { return new Builder(); } public static DescribeImageInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return logicalExp */ public String getLogicalExp() { return this.logicalExp; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return scanned */ public Boolean getScanned() { return this.scanned; } public static final class Builder extends Request.Builder<DescribeImageInstancesRequest, Builder> { private String criteria; private Integer currentPage; private String logicalExp; private Integer pageSize; private Boolean scanned; private Builder() { super(); } private Builder(DescribeImageInstancesRequest request) { super(request); this.criteria = request.criteria; this.currentPage = request.currentPage; this.logicalExp = request.logicalExp; this.pageSize = request.pageSize; this.scanned = request.scanned; } /** * <p>The search condition that is used to filter the server. The value of this parameter is in the JSON format and contains the following fields:</p> * <ul> * <li><p><strong>name</strong>: the search condition</p> * </li> * <li><p><strong>name</strong>: the value of the search condition</p> * </li> * <li><p><strong>logicalExp</strong>: the logical relation for multiple search conditions Valid values:</p> * <ul> * <li><strong>OR</strong>: The search conditions use a logical <strong>OR</strong>.</li> * <li><strong>AND</strong>: The search conditions use a logical <strong>AND</strong>.</li> * </ul> * </li> * </ul> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/471822.html">DescribeImageCriteria</a> operation to query the supported search conditions.</p> * </blockquote> * * <strong>example:</strong> * <p>[{&quot;name&quot;:&quot;instanceId&quot;,&quot;value&quot;:&quot;390100182&quot;,&quot;logicalExp&quot;:&quot;AND&quot;}]</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The number of the page to return. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The logical relationship that you want to use to evaluate multiple search conditions. Valid values:</p> * <ul> * <li><strong>OR</strong>: The search conditions are evaluated by using a logical <strong>OR</strong>.</li> * <li><strong>AND</strong>: The search conditions are evaluated by using a logical <strong>AND</strong>.</li> * </ul> * * <strong>example:</strong> * <p>OR</p> */ public Builder logicalExp(String logicalExp) { this.putQueryParameter("LogicalExp", logicalExp); this.logicalExp = logicalExp; return this; } /** * <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p>: We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>Specifies whether the image is scanned. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder scanned(Boolean scanned) { this.putQueryParameter("Scanned", scanned); this.scanned = scanned; return this; } @Override public DescribeImageInstancesRequest build() { return new DescribeImageInstancesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInstancesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInstancesResponse} extends {@link TeaModel} * * <p>DescribeImageInstancesResponse</p> */ public class DescribeImageInstancesResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageInstancesResponseBody body; private DescribeImageInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageInstancesResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageInstancesResponseBody body); @Override DescribeImageInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageInstancesResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageInstancesResponseBody body) { this.body = body; return this; } @Override public DescribeImageInstancesResponse build() { return new DescribeImageInstancesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageInstancesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeImageInstancesResponseBody</p> */ public class DescribeImageInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageInstanceList") private java.util.List<ImageInstanceList> imageInstanceList; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageInstancesResponseBody(Builder builder) { this.imageInstanceList = builder.imageInstanceList; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageInstancesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageInstanceList */ public java.util.List<ImageInstanceList> getImageInstanceList() { return this.imageInstanceList; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ImageInstanceList> imageInstanceList; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageInstancesResponseBody model) { this.imageInstanceList = model.imageInstanceList; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The information about the images.</p> */ public Builder imageInstanceList(java.util.List<ImageInstanceList> imageInstanceList) { this.imageInstanceList = imageInstanceList; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>BE120DAB-F4E7-4C53-ADC3-A97578ABF384</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageInstancesResponseBody build() { return new DescribeImageInstancesResponseBody(this); } } /** * * {@link DescribeImageInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeImageInstancesResponseBody</p> */ public static class ImageInstanceList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AlarmCount") private Integer alarmCount; @com.aliyun.core.annotation.NameInMap("AlarmStatus") private String alarmStatus; @com.aliyun.core.annotation.NameInMap("Deployed") private Integer deployed; @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.NameInMap("Endpoints") private String endpoints; @com.aliyun.core.annotation.NameInMap("HcCount") private Integer hcCount; @com.aliyun.core.annotation.NameInMap("HcStatus") private String hcStatus; @com.aliyun.core.annotation.NameInMap("ImageCreate") private String imageCreate; @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("ImageSize") private String imageSize; @com.aliyun.core.annotation.NameInMap("ImageUpdate") private String imageUpdate; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RegistryType") private String registryType; @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RepoType") private String repoType; @com.aliyun.core.annotation.NameInMap("RiskStatus") private String riskStatus; @com.aliyun.core.annotation.NameInMap("ScaProgress") private Integer scaProgress; @com.aliyun.core.annotation.NameInMap("ScaResult") private String scaResult; @com.aliyun.core.annotation.NameInMap("ScaStatus") private String scaStatus; @com.aliyun.core.annotation.NameInMap("SourceBizTag") private String sourceBizTag; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; @com.aliyun.core.annotation.NameInMap("VulCount") private Integer vulCount; @com.aliyun.core.annotation.NameInMap("VulStatus") private String vulStatus; private ImageInstanceList(Builder builder) { this.alarmCount = builder.alarmCount; this.alarmStatus = builder.alarmStatus; this.deployed = builder.deployed; this.digest = builder.digest; this.endpoints = builder.endpoints; this.hcCount = builder.hcCount; this.hcStatus = builder.hcStatus; this.imageCreate = builder.imageCreate; this.imageId = builder.imageId; this.imageSize = builder.imageSize; this.imageUpdate = builder.imageUpdate; this.instanceId = builder.instanceId; this.lastScanTime = builder.lastScanTime; this.regionId = builder.regionId; this.registryType = builder.registryType; this.repoId = builder.repoId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.repoType = builder.repoType; this.riskStatus = builder.riskStatus; this.scaProgress = builder.scaProgress; this.scaResult = builder.scaResult; this.scaStatus = builder.scaStatus; this.sourceBizTag = builder.sourceBizTag; this.status = builder.status; this.tag = builder.tag; this.uuid = builder.uuid; this.vulCount = builder.vulCount; this.vulStatus = builder.vulStatus; } public static Builder builder() { return new Builder(); } public static ImageInstanceList create() { return builder().build(); } /** * @return alarmCount */ public Integer getAlarmCount() { return this.alarmCount; } /** * @return alarmStatus */ public String getAlarmStatus() { return this.alarmStatus; } /** * @return deployed */ public Integer getDeployed() { return this.deployed; } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return endpoints */ public String getEndpoints() { return this.endpoints; } /** * @return hcCount */ public Integer getHcCount() { return this.hcCount; } /** * @return hcStatus */ public String getHcStatus() { return this.hcStatus; } /** * @return imageCreate */ public String getImageCreate() { return this.imageCreate; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return imageSize */ public String getImageSize() { return this.imageSize; } /** * @return imageUpdate */ public String getImageUpdate() { return this.imageUpdate; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return registryType */ public String getRegistryType() { return this.registryType; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return repoType */ public String getRepoType() { return this.repoType; } /** * @return riskStatus */ public String getRiskStatus() { return this.riskStatus; } /** * @return scaProgress */ public Integer getScaProgress() { return this.scaProgress; } /** * @return scaResult */ public String getScaResult() { return this.scaResult; } /** * @return scaStatus */ public String getScaStatus() { return this.scaStatus; } /** * @return sourceBizTag */ public String getSourceBizTag() { return this.sourceBizTag; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return uuid */ public String getUuid() { return this.uuid; } /** * @return vulCount */ public Integer getVulCount() { return this.vulCount; } /** * @return vulStatus */ public String getVulStatus() { return this.vulStatus; } public static final class Builder { private Integer alarmCount; private String alarmStatus; private Integer deployed; private String digest; private String endpoints; private Integer hcCount; private String hcStatus; private String imageCreate; private String imageId; private String imageSize; private String imageUpdate; private String instanceId; private Long lastScanTime; private String regionId; private String registryType; private String repoId; private String repoName; private String repoNamespace; private String repoType; private String riskStatus; private Integer scaProgress; private String scaResult; private String scaStatus; private String sourceBizTag; private String status; private String tag; private String uuid; private Integer vulCount; private String vulStatus; private Builder() { } private Builder(ImageInstanceList model) { this.alarmCount = model.alarmCount; this.alarmStatus = model.alarmStatus; this.deployed = model.deployed; this.digest = model.digest; this.endpoints = model.endpoints; this.hcCount = model.hcCount; this.hcStatus = model.hcStatus; this.imageCreate = model.imageCreate; this.imageId = model.imageId; this.imageSize = model.imageSize; this.imageUpdate = model.imageUpdate; this.instanceId = model.instanceId; this.lastScanTime = model.lastScanTime; this.regionId = model.regionId; this.registryType = model.registryType; this.repoId = model.repoId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.repoType = model.repoType; this.riskStatus = model.riskStatus; this.scaProgress = model.scaProgress; this.scaResult = model.scaResult; this.scaStatus = model.scaStatus; this.sourceBizTag = model.sourceBizTag; this.status = model.status; this.tag = model.tag; this.uuid = model.uuid; this.vulCount = model.vulCount; this.vulStatus = model.vulStatus; } /** * <p>The number of alerts that are generated for the image.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder alarmCount(Integer alarmCount) { this.alarmCount = alarmCount; return this; } /** * <p>Indicates whether alerts are generated for the image. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder alarmStatus(String alarmStatus) { this.alarmStatus = alarmStatus; return this; } /** * <p>Indicates whether the image was deployed. Valid values:</p> * <ul> * <li><strong>0</strong>: The image was not deployed.</li> * <li><strong>1</strong>: The image was deployed.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder deployed(Integer deployed) { this.deployed = deployed; return this; } /** * <p>The digest value of the image.</p> * * <strong>example:</strong> * <p>a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b****</p> */ public Builder digest(String digest) { this.digest = digest; return this; } /** * <p>The address of the image.</p> * * <strong>example:</strong> * <p>[]</p> */ public Builder endpoints(String endpoints) { this.endpoints = endpoints; return this; } /** * <p>The number of baseline risks.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder hcCount(Integer hcCount) { this.hcCount = hcCount; return this; } /** * <p>Indicates whether baseline risks exist. Valid values:</p> * <ul> * <li><strong>NO</strong></li> * <li><strong>YES</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder hcStatus(String hcStatus) { this.hcStatus = hcStatus; return this; } /** * <p>The timestamp generated when the image was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1600069948849</p> */ public Builder imageCreate(String imageCreate) { this.imageCreate = imageCreate; return this; } /** * <p>The ID of the image.</p> * * <strong>example:</strong> * <p>c20987f18b130f9d144c9828df630417e2a9523148930dc3963e9d0dab30****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The size of the image. Unit: MB.</p> * * <strong>example:</strong> * <p>1604487690</p> */ public Builder imageSize(String imageSize) { this.imageSize = imageSize; return this; } /** * <p>The timestamp generated when the image was updated. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1600069948849</p> */ public Builder imageUpdate(String imageUpdate) { this.imageUpdate = imageUpdate; return this; } /** * <p>The instance ID of the image.</p> * * <strong>example:</strong> * <p>39010****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1721363159000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The region ID of the image.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The type of the image. Valid values:</p> * <ul> * <li><strong>acr</strong></li> * <li><strong>harbor</strong></li> * <li><strong>quay</strong></li> * <li><strong>CI/CD</strong></li> * </ul> * * <strong>example:</strong> * <p>acr</p> */ public Builder registryType(String registryType) { this.registryType = registryType; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>f2b86d20bf0855af6aa268ce90fd****</p> */ public Builder repoId(String repoId) { this.repoId = repoId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>sas-script-test</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>N/A</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The type of the repository. Valid values:</p> * <ul> * <li><strong>private</strong></li> * <li><strong>public</strong></li> * </ul> * * <strong>example:</strong> * <p>private</p> */ public Builder repoType(String repoType) { this.repoType = repoType; return this; } /** * <p>Indicates whether risks exist. Valid values:</p> * <ul> * <li><strong>NO</strong></li> * <li><strong>YES</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder riskStatus(String riskStatus) { this.riskStatus = riskStatus; return this; } /** * <p>The scan progress of the image. Valid values: 0 to 100.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder scaProgress(Integer scaProgress) { this.scaProgress = scaProgress; return this; } /** * <p>The error code of the image scan result. Valid values:</p> * <ul> * <li><strong>TASK_NOT_EXISTS</strong>: The image scan task does not exist.</li> * <li><strong>TASK_NOT_SUPPORT_REGION</strong>: The image scan task cannot be performed in the current region.</li> * <li><strong>forbid_create_repeat_task</strong>: The image scan task already exists.</li> * </ul> * * <strong>example:</strong> * <p>TASK_NOT_SUPPORT_REGION</p> */ public Builder scaResult(String scaResult) { this.scaResult = scaResult; return this; } /** * <p>The scan status of the image. Valid values:</p> * <ul> * <li><strong>INIT</strong>: The image scan task is pending startup.</li> * <li><strong>START</strong>: The image scan task is started.</li> * <li><strong>MESSAGE_SEND</strong>: The message about the image scan task is sent.</li> * <li><strong>START_RUN</strong>: The image analysis task is started.</li> * <li><strong>DOWNLOAD</strong>: The image scan result is downloaded.</li> * <li><strong>PRE_ANALYZER</strong>: The image pre-analysis is started.</li> * <li><strong>WEB_SHELL_ANALYZER</strong>: The WebShell analysis of the image is complete.</li> * <li><strong>CVE_ANALYZER</strong>: The Common Vulnerabilities and Exposures (CVE) analysis of the image is complete.</li> * <li><strong>BIN_ANALYZER</strong>: The binary analysis of the image is complete.</li> * <li><strong>OTHER_ANALYZER</strong>: The extended analysis of the image is complete.</li> * <li><strong>SUCCESS</strong>: The image scan task is complete.</li> * <li><strong>PRE_ANALYZER_SUCCESS</strong>: The image pre-analysis is complete.</li> * <li><strong>FAIL</strong>: The image scan task failed.</li> * <li><strong>TIMEOUT</strong>: The image scan task timed out.</li> * </ul> * * <strong>example:</strong> * <p>SUCCESS</p> */ public Builder scaStatus(String scaStatus) { this.scaStatus = scaStatus; return this; } /** * <p>The usage label of the image.</p> * * <strong>example:</strong> * <p>PAI</p> */ public Builder sourceBizTag(String sourceBizTag) { this.sourceBizTag = sourceBizTag; return this; } /** * <p>The status of the image. Valid values:</p> * <ul> * <li><strong>NORMAL</strong></li> * </ul> * * <strong>example:</strong> * <p>NORMAL</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag of the image.</p> * * <strong>example:</strong> * <p>mysql_5.7</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The UUID of the server.</p> * * <strong>example:</strong> * <p>12f80307-60aa-4efa-863a-56d72fb****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } /** * <p>The number of vulnerabilities in the image.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulCount(Integer vulCount) { this.vulCount = vulCount; return this; } /** * <p>Indicates whether vulnerabilities exist in the image. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder vulStatus(String vulStatus) { this.vulStatus = vulStatus; return this; } public ImageInstanceList build() { return new ImageInstanceList(this); } } } /** * * {@link DescribeImageInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeImageInstancesResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of images returned on the current page.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of returned entries.</p> * * <strong>example:</strong> * <p>69</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageLatestScanTaskRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageLatestScanTaskRequest} extends {@link RequestModel} * * <p>DescribeImageLatestScanTaskRequest</p> */ public class DescribeImageLatestScanTaskRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Digest") @com.aliyun.core.annotation.Validation(required = true) private String digest; private DescribeImageLatestScanTaskRequest(Builder builder) { super(builder); this.digest = builder.digest; } public static Builder builder() { return new Builder(); } public static DescribeImageLatestScanTaskRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return digest */ public String getDigest() { return this.digest; } public static final class Builder extends Request.Builder<DescribeImageLatestScanTaskRequest, Builder> { private String digest; private Builder() { super(); } private Builder(DescribeImageLatestScanTaskRequest request) { super(request); this.digest = request.digest; } /** * <p>The digest value of the image.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>8f0fbdb41d3d1ade4ffdf21558443f4c03342010563bb8c43ccc09594d50****</p> */ public Builder digest(String digest) { this.putQueryParameter("Digest", digest); this.digest = digest; return this; } @Override public DescribeImageLatestScanTaskRequest build() { return new DescribeImageLatestScanTaskRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageLatestScanTaskResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageLatestScanTaskResponse} extends {@link TeaModel} * * <p>DescribeImageLatestScanTaskResponse</p> */ public class DescribeImageLatestScanTaskResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageLatestScanTaskResponseBody body; private DescribeImageLatestScanTaskResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageLatestScanTaskResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageLatestScanTaskResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageLatestScanTaskResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageLatestScanTaskResponseBody body); @Override DescribeImageLatestScanTaskResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageLatestScanTaskResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageLatestScanTaskResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageLatestScanTaskResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageLatestScanTaskResponseBody body) { this.body = body; return this; } @Override public DescribeImageLatestScanTaskResponse build() { return new DescribeImageLatestScanTaskResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageLatestScanTaskResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageLatestScanTaskResponseBody} extends {@link TeaModel} * * <p>DescribeImageLatestScanTaskResponseBody</p> */ public class DescribeImageLatestScanTaskResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Task") private java.util.List<Task> task; private DescribeImageLatestScanTaskResponseBody(Builder builder) { this.requestId = builder.requestId; this.task = builder.task; } public static Builder builder() { return new Builder(); } public static DescribeImageLatestScanTaskResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return task */ public java.util.List<Task> getTask() { return this.task; } public static final class Builder { private String requestId; private java.util.List<Task> task; private Builder() { } private Builder(DescribeImageLatestScanTaskResponseBody model) { this.requestId = model.requestId; this.task = model.task; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>An array that consists of the information about the task.</p> */ public Builder task(java.util.List<Task> task) { this.task = task; return this; } public DescribeImageLatestScanTaskResponseBody build() { return new DescribeImageLatestScanTaskResponseBody(this); } } /** * * {@link DescribeImageLatestScanTaskResponseBody} extends {@link TeaModel} * * <p>DescribeImageLatestScanTaskResponseBody</p> */ public static class Task extends TeaModel { @com.aliyun.core.annotation.NameInMap("Create") private String create; @com.aliyun.core.annotation.NameInMap("Finish") private Integer finish; @com.aliyun.core.annotation.NameInMap("FinishTime") private Long finishTime; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Modified") private String modified; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Target") private String target; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.NameInMap("TaskType") private String taskType; private Task(Builder builder) { this.create = builder.create; this.finish = builder.finish; this.finishTime = builder.finishTime; this.id = builder.id; this.modified = builder.modified; this.name = builder.name; this.source = builder.source; this.startTime = builder.startTime; this.status = builder.status; this.target = builder.target; this.targetType = builder.targetType; this.taskId = builder.taskId; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static Task create() { return builder().build(); } /** * @return create */ public String getCreate() { return this.create; } /** * @return finish */ public Integer getFinish() { return this.finish; } /** * @return finishTime */ public Long getFinishTime() { return this.finishTime; } /** * @return id */ public Long getId() { return this.id; } /** * @return modified */ public String getModified() { return this.modified; } /** * @return name */ public String getName() { return this.name; } /** * @return source */ public String getSource() { return this.source; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return status */ public String getStatus() { return this.status; } /** * @return target */ public String getTarget() { return this.target; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder { private String create; private Integer finish; private Long finishTime; private Long id; private String modified; private String name; private String source; private Long startTime; private String status; private String target; private String targetType; private String taskId; private String taskType; private Builder() { } private Builder(Task model) { this.create = model.create; this.finish = model.finish; this.finishTime = model.finishTime; this.id = model.id; this.modified = model.modified; this.name = model.name; this.source = model.source; this.startTime = model.startTime; this.status = model.status; this.target = model.target; this.targetType = model.targetType; this.taskId = model.taskId; this.taskType = model.taskType; } /** * <p>The time when the task was created. The time is in the yyyy-MM-dd HH:mm:ss format.</p> * * <strong>example:</strong> * <p>2022-12-20 11:59:05</p> */ public Builder create(String create) { this.create = create; return this; } /** * <p>The number of images that are scanned.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder finish(Integer finish) { this.finish = finish; return this; } /** * <p>The end time of the task. A value is returned only when the task is in the Finished state. Otherwise, the returned value is empty.</p> * * <strong>example:</strong> * <p>1669693430977</p> */ public Builder finishTime(Long finishTime) { this.finishTime = finishTime; return this; } /** * <p>The task ID.</p> * * <strong>example:</strong> * <p>9755662</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The time when the task was last modified. The time is in the yyyy-MM-dd HH:mm:ss format.</p> * * <strong>example:</strong> * <p>2022-12-20 12:00:05</p> */ public Builder modified(String modified) { this.modified = modified; return this; } /** * <p>The name of the task.</p> * * <strong>example:</strong> * <p>IMAGE_SCAN</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The method in which the task was created. A task can be created in the Security Center console or by calling an API operation. Valid values:</p> * <ul> * <li><strong>console_batch</strong>: The task was created in the Security Center console.</li> * <li><strong>openapi</strong>: The task was created by calling an API operation.</li> * </ul> * * <strong>example:</strong> * <p>console_batch</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The start time of the task.</p> * * <strong>example:</strong> * <p>1668614400000</p> */ public Builder startTime(Long startTime) { this.startTime = startTime; return this; } /** * <p>The status of the task. Valid value:</p> * <ul> * <li><strong>PROCESSING</strong>: The task is running.</li> * <li><strong>START</strong>: The task is being started.</li> * <li><strong>MESSAGE_SEND</strong>: The scan task is sent.</li> * <li><strong>PRE_ANALYZER</strong>: The image is in precheck.</li> * <li><strong>SUCCESS</strong>: The task was successful.</li> * <li><strong>FAIL</strong>: The task failed.</li> * <li><strong>TIMOUT</strong>: The task timed out.</li> * </ul> * * <strong>example:</strong> * <p>SUCCESS</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The digest value of the image.</p> * * <strong>example:</strong> * <p>8f0fbdb41d3d1ade4ffdf21558443f4c03342010563bb8c43ccc09594d50****</p> */ public Builder target(String target) { this.target = target; return this; } /** * <p>The type of the scanned asset. Valid value:</p> * <ul> * <li><strong>IMAGE</strong></li> * </ul> * * <strong>example:</strong> * <p>IMAGE</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } /** * <p>The ID of the scan task.</p> * * <strong>example:</strong> * <p>0a960b9a48b788a8689154b032bf****</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * <p>The type of the task. Valid value:</p> * <ul> * <li><strong>IMAGE_SCAN</strong></li> * </ul> * * <strong>example:</strong> * <p>IMAGE_SCAN</p> */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } public Task build() { return new Task(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListByBuildRiskRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListByBuildRiskRequest} extends {@link RequestModel} * * <p>DescribeImageListByBuildRiskRequest</p> */ public class DescribeImageListByBuildRiskRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskKey") private String riskKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private Integer status; private DescribeImageListByBuildRiskRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskKey = builder.riskKey; this.riskLevel = builder.riskLevel; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeImageListByBuildRiskRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskKey */ public String getRiskKey() { return this.riskKey; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return status */ public Integer getStatus() { return this.status; } public static final class Builder extends Request.Builder<DescribeImageListByBuildRiskRequest, Builder> { private Integer currentPage; private String lang; private Integer pageSize; private String riskKey; private String riskLevel; private Integer status; private Builder() { super(); } private Builder(DescribeImageListByBuildRiskRequest request) { super(request); this.currentPage = request.currentPage; this.lang = request.lang; this.pageSize = request.pageSize; this.riskKey = request.riskKey; this.riskLevel = request.riskLevel; this.status = request.status; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The language of the content within the request and response. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The key of the risk. You can call the <a href="~~~~">DescribeImageBuildRiskList</a> operation to obtain the value of RiskKey.</p> * * <strong>example:</strong> * <p>no_user</p> */ public Builder riskKey(String riskKey) { this.putQueryParameter("RiskKey", riskKey); this.riskKey = riskKey; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>medium</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * <p>The status of the alert event. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled.</li> * <li><strong>1</strong>: ignored.</li> * <li><strong>2</strong>: false positive.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public DescribeImageListByBuildRiskRequest build() { return new DescribeImageListByBuildRiskRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListByBuildRiskResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListByBuildRiskResponse} extends {@link TeaModel} * * <p>DescribeImageListByBuildRiskResponse</p> */ public class DescribeImageListByBuildRiskResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageListByBuildRiskResponseBody body; private DescribeImageListByBuildRiskResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageListByBuildRiskResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageListByBuildRiskResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageListByBuildRiskResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageListByBuildRiskResponseBody body); @Override DescribeImageListByBuildRiskResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageListByBuildRiskResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageListByBuildRiskResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageListByBuildRiskResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageListByBuildRiskResponseBody body) { this.body = body; return this; } @Override public DescribeImageListByBuildRiskResponse build() { return new DescribeImageListByBuildRiskResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListByBuildRiskResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListByBuildRiskResponseBody} extends {@link TeaModel} * * <p>DescribeImageListByBuildRiskResponseBody</p> */ public class DescribeImageListByBuildRiskResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageListByBuildRiskResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageListByBuildRiskResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageListByBuildRiskResponseBody model) { this.code = model.code; this.data = model.data; this.message = model.message; this.requestId = model.requestId; this.success = model.success; } /** * <p>The response code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The returned data.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The returned message.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>52870893-48A7-5A9E-9E05-6253E5B6****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageListByBuildRiskResponseBody build() { return new DescribeImageListByBuildRiskResponseBody(this); } } /** * * {@link DescribeImageListByBuildRiskResponseBody} extends {@link TeaModel} * * <p>DescribeImageListByBuildRiskResponseBody</p> */ public static class List extends TeaModel { @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private List(Builder builder) { this.digest = builder.digest; this.firstScanTime = builder.firstScanTime; this.instanceId = builder.instanceId; this.lastScanTime = builder.lastScanTime; this.regionId = builder.regionId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.riskLevel = builder.riskLevel; this.status = builder.status; this.tag = builder.tag; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static List create() { return builder().build(); } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String digest; private Long firstScanTime; private String instanceId; private Long lastScanTime; private String regionId; private String repoName; private String repoNamespace; private String riskLevel; private Integer status; private String tag; private String uuid; private Builder() { } private Builder(List model) { this.digest = model.digest; this.firstScanTime = model.firstScanTime; this.instanceId = model.instanceId; this.lastScanTime = model.lastScanTime; this.regionId = model.regionId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.riskLevel = model.riskLevel; this.status = model.status; this.tag = model.tag; this.uuid = model.uuid; } /** * <p>The digest value of the image.</p> * * <strong>example:</strong> * <p>a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b****</p> */ public Builder digest(String digest) { this.digest = digest; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1723710827000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The instance ID of the image repository.</p> * * <strong>example:</strong> * <p>39010****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1723710827999</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The ID of the region.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>test-tepo</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>namespace</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>medium</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * <p>The status of the alert event. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled.</li> * <li><strong>1</strong>: ignored.</li> * <li><strong>2</strong>: false positive.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>The tag of the image.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>6ec898e6274f942e0e4a053eff1c****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public List build() { return new List(this); } } } /** * * {@link DescribeImageListByBuildRiskResponseBody} extends {@link TeaModel} * * <p>DescribeImageListByBuildRiskResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>109</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageListByBuildRiskResponseBody} extends {@link TeaModel} * * <p>DescribeImageListByBuildRiskResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("List") private java.util.List<List> list; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; private Data(Builder builder) { this.list = builder.list; this.pageInfo = builder.pageInfo; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return list */ public java.util.List<List> getList() { return this.list; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } public static final class Builder { private java.util.List<List> list; private PageInfo pageInfo; private Builder() { } private Builder(Data model) { this.list = model.list; this.pageInfo = model.pageInfo; } /** * <p>The images.</p> */ public Builder list(java.util.List<List> list) { this.list = list; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListBySensitiveFileRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListBySensitiveFileRequest} extends {@link RequestModel} * * <p>DescribeImageListBySensitiveFileRequest</p> */ public class DescribeImageListBySensitiveFileRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageDigest") private String imageDigest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoInstanceId") private String repoInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SensitiveFileKey") private String sensitiveFileKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; private DescribeImageListBySensitiveFileRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.imageDigest = builder.imageDigest; this.lang = builder.lang; this.pageSize = builder.pageSize; this.repoInstanceId = builder.repoInstanceId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.riskLevel = builder.riskLevel; this.scanRange = builder.scanRange; this.sensitiveFileKey = builder.sensitiveFileKey; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeImageListBySensitiveFileRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageDigest */ public String getImageDigest() { return this.imageDigest; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return repoInstanceId */ public String getRepoInstanceId() { return this.repoInstanceId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return sensitiveFileKey */ public String getSensitiveFileKey() { return this.sensitiveFileKey; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<DescribeImageListBySensitiveFileRequest, Builder> { private Integer currentPage; private String imageDigest; private String lang; private Integer pageSize; private String repoInstanceId; private String repoName; private String repoNamespace; private String riskLevel; private java.util.List<String> scanRange; private String sensitiveFileKey; private String status; private Builder() { super(); } private Builder(DescribeImageListBySensitiveFileRequest request) { super(request); this.currentPage = request.currentPage; this.imageDigest = request.imageDigest; this.lang = request.lang; this.pageSize = request.pageSize; this.repoInstanceId = request.repoInstanceId; this.repoName = request.repoName; this.repoNamespace = request.repoNamespace; this.riskLevel = request.riskLevel; this.scanRange = request.scanRange; this.sensitiveFileKey = request.sensitiveFileKey; this.status = request.status; } /** * <p>The number of the page to return. Pages start from page 1. Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The image digest.</p> * <blockquote> * <p>Fuzzy match is supported.</p> * </blockquote> * * <strong>example:</strong> * <p>v005</p> */ public Builder imageDigest(String imageDigest) { this.putQueryParameter("ImageDigest", imageDigest); this.imageDigest = imageDigest; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The ID of the specified container image.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/451339.html">ListRepository</a> operation to obtain the IDs of container images from the value of the <strong>InstanceId</strong> response parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>i-qewqrqcsadf****</p> */ public Builder repoInstanceId(String repoInstanceId) { this.putQueryParameter("RepoInstanceId", repoInstanceId); this.repoInstanceId = repoInstanceId; return this; } /** * <p>The name of the image repository.</p> * <blockquote> * <p>Fuzzy match is supported.</p> * </blockquote> * * <strong>example:</strong> * <p>harbor-image-v001</p> */ public Builder repoName(String repoName) { this.putQueryParameter("RepoName", repoName); this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * <blockquote> * <p>Fuzzy match is supported.</p> * </blockquote> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.putQueryParameter("RepoNamespace", repoNamespace); this.repoNamespace = repoNamespace; return this; } /** * <p>The risk level of the file. Separate multiple levels with commas (,). Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * <p>An array consisting of the types of the assets that you want to scan. Valid values:</p> * <ul> * <li><strong>image</strong></li> * <li><strong>container</strong></li> * </ul> */ public Builder scanRange(java.util.List<String> scanRange) { String scanRangeShrink = shrink(scanRange, "ScanRange", "json"); this.putQueryParameter("ScanRange", scanRangeShrink); this.scanRange = scanRange; return this; } /** * <p>The type of the alert for the sensitive file. Valid values:</p> * <ul> * <li><strong>npm_token</strong>: npm access token.</li> * <li><strong>ftp_cfg</strong>: FTP configuration.</li> * <li><strong>google_oauth_key</strong>: Google OAuth key.</li> * <li><strong>planetscale_passwd</strong>: PlanetScale password.</li> * <li><strong>github_ssh_key</strong>: Github SSH key.</li> * <li><strong>msbuild_publish_profile</strong>: MSBuild publish profile.</li> * <li><strong>fastly_cdn_token</strong>: Fastly CDN token.</li> * <li><strong>ssh_private_key</strong>: SSH private key.</li> * <li><strong>aws_cli</strong>: Amazon Web Services (AWS) CLI credential.</li> * <li><strong>cpanel_proftpd</strong>: cPanel ProFTPD credential.</li> * <li><strong>postgresql_passwd</strong>: PostgreSQL password file.</li> * <li><strong>discord_client_cred</strong>: Discord client credential.</li> * <li><strong>rails_database</strong>: Rails database configuration.</li> * <li><strong>aws_access_key</strong>: AWS access key.</li> * <li><strong>esmtp_cfg</strong>: configuration of mail server over Extended Simple Mail Transfer Protocol (ESMTP).</li> * <li><strong>docker_registry_cfg</strong>: configuration of a Docker image repository.</li> * <li><strong>pem</strong>: Privacy-Enhanced Mail (PEM).</li> * <li><strong>common_cred</strong>: common credential.</li> * <li><strong>sftp_cfg</strong>: configuration of connection over Secure File Transfer Protocol (SFTP).</li> * <li><strong>grafana_token</strong>: Grafana token.</li> * <li><strong>slack_token</strong>: Slack token.</li> * <li><strong>ec_private_key</strong>: Elliptic Curve (EC) private key.</li> * <li><strong>pypi_token</strong>: Python Package Index (PyPI) token.</li> * <li><strong>finicity_token</strong>: Finicity token.</li> * <li><strong>k8s_client_key</strong>: private key for the Kubernetes client.</li> * <li><strong>git_cfg</strong>: Git configuration.</li> * <li><strong>django_key</strong>: Django key.</li> * <li><strong>jenkins_ssh</strong>: SSH configuration file for Jenkins.</li> * <li><strong>openssh_private_key</strong>: OpenSSH private key.</li> * <li><strong>square_oauth</strong>: Square OAuth credential.</li> * <li><strong>typeform_token</strong>: Typeform token.</li> * <li><strong>common_database_cfg</strong>: configuration of general database connection.</li> * <li><strong>wordpress_database_cfg</strong>: WordPress database configuration.</li> * <li><strong>googlecloud_api_key</strong>: API key for Google Cloud.</li> * <li><strong>vscode_sftp</strong>: VSCode SFTP configuration.</li> * <li><strong>apache_htpasswd</strong>: Apache htpasswd.</li> * <li><strong>planetscale_token</strong>: PlanetScale token.</li> * <li><strong>contentful_preview_token</strong>: preview token for Contentful.</li> * <li><strong>php_database_cfg</strong>: database password for a PHP application.</li> * <li><strong>atom_remote_sync</strong>: Atom remote synchronization configuration.</li> * <li><strong>aws_session_token</strong>: AWS session token.</li> * <li><strong>atom_sftp_cfg</strong>: Atom SFTP configuration.</li> * <li><strong>asana_client_private_key</strong>: private key for the Asana client.</li> * <li><strong>tencentcloud_ak</strong>: secret ID of a third-party cloud.</li> * <li><strong>rsa_private_key</strong>: Rivest-Shamir-Adleman (RSA) private key.</li> * <li><strong>github_personal_token</strong>: personal access token for GitHub.</li> * <li><strong>pgp</strong>: Pretty Good Privacy (PGP) encrypted file.</li> * <li><strong>stripe_skpk</strong>: Stripe secret key.</li> * <li><strong>square_token</strong>: Square access token.</li> * <li><strong>rails_carrierwave</strong>: Rails Carrierwave credential.</li> * <li><strong>dbeaver_database_cfg</strong>: DBeaver database configuration.</li> * <li><strong>robomongo_cred</strong>: RoboMongo credential.</li> * <li><strong>github_oauth_token</strong>: OAuth access token for GitHub.</li> * <li><strong>pulumi_token</strong>: Pulumi token.</li> * <li><strong>ventrilo_voip</strong>: configuration of a Ventrilo VoIP server.</li> * <li><strong>macos_keychain</strong>: macOS keychain.</li> * <li><strong>amazon_mws_token</strong>: Amazon MWS token.</li> * <li><strong>dynatrace_token</strong>: Dynatrace token.</li> * <li><strong>java_keystore</strong>: Java KeyStore (JKS).</li> * <li><strong>microsoft_sdf</strong>: Microsoft SQL Server Compact Edition (CE) database.</li> * <li><strong>kubernetes_dashboard_cred</strong>: user credential for Kubernetes Dashboard.</li> * <li><strong>atlassian_token</strong>: Atlassian token.</li> * <li><strong>rdp</strong>: remote desktop protocol (RDP).</li> * <li><strong>mailgun_key</strong>: Mailgun webhook signing key.</li> * <li><strong>mailchimp_api_key</strong>: API key for Mailchimp.</li> * <li><strong>netrc_cfg</strong>: .netrc configuration file.</li> * <li><strong>openvpn_cfg</strong>: configuration of the OpenVPN client.</li> * <li><strong>github_refresh_token</strong>: GitHub refresh token.</li> * <li><strong>salesforce</strong>: Salesforce credential.</li> * <li><strong>salesforce</strong>: Sendinblue token.</li> * <li><strong>pkcs_private_key</strong>: PKCS#12 private key.</li> * <li><strong>rubyonrails_passwd</strong>: Ruby on Rails password file.</li> * <li><strong>filezilla_ftp</strong>: FileZilla FTP configuration.</li> * <li><strong>databricks_token</strong>: Databricks token.</li> * <li><strong>gitLab_personal_toke</strong>: personal access token for GitLab.</li> * <li><strong>rails_master_key</strong>: Rails master key.</li> * <li><strong>sqlite</strong>: SQLite3 or SQLite database.</li> * <li><strong>firefox_logins</strong>: Firefox logon configuration.</li> * <li><strong>mailgun_private_token</strong>: Mailgun private token.</li> * <li><strong>joomla_cfg</strong>: Joomla configuration.</li> * <li><strong>hashicorp_terraform_token</strong>: HashiCorp Terraform token.</li> * <li><strong>jetbrains_ides</strong>: JetBrains IDEs configuration.</li> * <li><strong>heroku_api_key</strong>: API key for Heroku.</li> * <li><strong>messagebird_token</strong>: MessageBird token.</li> * <li><strong>github_app_token</strong>: Github app token.</li> * <li><strong>hashicorp_vault_token</strong>: HashiCorp Vault token.</li> * <li><strong>pgp_private_key</strong>: PGP private key.</li> * <li><strong>sshpasswd</strong>: SSH password.</li> * <li><strong>huaweicloud_ak</strong>: secret access key of a third-party cloud.</li> * <li><strong>aws_s3cmd</strong>: AWS S3cmd configuration.</li> * <li><strong>php_config</strong>: PHP configuration.</li> * <li><strong>common_private_key</strong>: common private key.</li> * <li><strong>microsoft_mdf</strong>: Microsoft SQL Server database.</li> * <li><strong>mediawiki_cfg</strong>: MediaWiki configuration.</li> * <li><strong>jenkins_cred</strong>: Jenkins credential.</li> * <li><strong>rubygems_cred</strong>: RubyGems credential.</li> * <li><strong>clojars_token</strong>: Clojars token.</li> * <li><strong>phoenix_web_passwd</strong>: Phoenix web credential.</li> * <li><strong>puttygen_private_key</strong>: PuTTYgen private key.</li> * <li><strong>google_oauth_token</strong>: Google OAuth access token.</li> * <li><strong>rubyonrails_cfg</strong>: Ruby On Rails database configuration.</li> * <li><strong>lob_api_key</strong>: Lob API key for Lob.</li> * <li><strong>pkcs_cred</strong>: PKCS#12 certificate.</li> * <li><strong>otr_private_key</strong>: Off-the-Record Messaging (OTR) private key.</li> * <li><strong>contentful_delivery_token</strong>: Contentful delivery token.</li> * <li><strong>digital_ocean_tugboat</strong>: DigitalOcean Tugboat configuration.</li> * <li><strong>dsa_private_key</strong>: Digital Signature Algorithm (DSA) private key.</li> * <li><strong>rails_app_token</strong>: app token for Rails.</li> * <li><strong>git_cred</strong>: user credential for Git.</li> * <li><strong>newrelic_api_key</strong>: User API key for New Relic.</li> * <li><strong>github_hub</strong>: hub configuration for storing GitHub tokens.</li> * <li><strong>rubygem</strong>: RubyGem token.</li> * </ul> * * <strong>example:</strong> * <p>sshpasswd</p> */ public Builder sensitiveFileKey(String sensitiveFileKey) { this.putQueryParameter("SensitiveFileKey", sensitiveFileKey); this.sensitiveFileKey = sensitiveFileKey; return this; } /** * <p>The sensitive file status. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled</li> * <li><strong>1</strong>: ignored</li> * <li><strong>2</strong>: false positive</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public DescribeImageListBySensitiveFileRequest build() { return new DescribeImageListBySensitiveFileRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListBySensitiveFileResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListBySensitiveFileResponse} extends {@link TeaModel} * * <p>DescribeImageListBySensitiveFileResponse</p> */ public class DescribeImageListBySensitiveFileResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageListBySensitiveFileResponseBody body; private DescribeImageListBySensitiveFileResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageListBySensitiveFileResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageListBySensitiveFileResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageListBySensitiveFileResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageListBySensitiveFileResponseBody body); @Override DescribeImageListBySensitiveFileResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageListBySensitiveFileResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageListBySensitiveFileResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageListBySensitiveFileResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageListBySensitiveFileResponseBody body) { this.body = body; return this; } @Override public DescribeImageListBySensitiveFileResponse build() { return new DescribeImageListBySensitiveFileResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListBySensitiveFileResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListBySensitiveFileResponseBody} extends {@link TeaModel} * * <p>DescribeImageListBySensitiveFileResponseBody</p> */ public class DescribeImageListBySensitiveFileResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("ImageInfos") private java.util.List<ImageInfos> imageInfos; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageListBySensitiveFileResponseBody(Builder builder) { this.code = builder.code; this.httpStatusCode = builder.httpStatusCode; this.imageInfos = builder.imageInfos; this.message = builder.message; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageListBySensitiveFileResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return imageInfos */ public java.util.List<ImageInfos> getImageInfos() { return this.imageInfos; } /** * @return message */ public String getMessage() { return this.message; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Integer httpStatusCode; private java.util.List<ImageInfos> imageInfos; private String message; private PageInfo pageInfo; private String requestId; private Boolean success; private Builder() { } private Builder(DescribeImageListBySensitiveFileResponseBody model) { this.code = model.code; this.httpStatusCode = model.httpStatusCode; this.imageInfos = model.imageInfos; this.message = model.message; this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.success = model.success; } /** * <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The information about the images.</p> */ public Builder imageInfos(java.util.List<ImageInfos> imageInfos) { this.imageInfos = imageInfos; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>E0C5C07F-1576-509A-AE44-1C36B8445B37</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong>: The request was successful.</li> * <li><strong>false</strong>: The request failed.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageListBySensitiveFileResponseBody build() { return new DescribeImageListBySensitiveFileResponseBody(this); } } /** * * {@link DescribeImageListBySensitiveFileResponseBody} extends {@link TeaModel} * * <p>DescribeImageListBySensitiveFileResponseBody</p> */ public static class ImageInfos extends TeaModel { @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private ImageInfos(Builder builder) { this.digest = builder.digest; this.firstScanTime = builder.firstScanTime; this.instanceId = builder.instanceId; this.lastScanTime = builder.lastScanTime; this.regionId = builder.regionId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.riskLevel = builder.riskLevel; this.status = builder.status; this.tag = builder.tag; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static ImageInfos create() { return builder().build(); } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String digest; private Long firstScanTime; private String instanceId; private Long lastScanTime; private String regionId; private String repoName; private String repoNamespace; private String riskLevel; private String status; private String tag; private String uuid; private Builder() { } private Builder(ImageInfos model) { this.digest = model.digest; this.firstScanTime = model.firstScanTime; this.instanceId = model.instanceId; this.lastScanTime = model.lastScanTime; this.regionId = model.regionId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.riskLevel = model.riskLevel; this.status = model.status; this.tag = model.tag; this.uuid = model.uuid; } /** * <p>The image digest.</p> * * <strong>example:</strong> * <p>v005</p> */ public Builder digest(String digest) { this.digest = digest; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1649814050000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The image instance ID.</p> * * <strong>example:</strong> * <p>cri-a595qp31knh9****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1649814050000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The ID of the region in which the image instance resides.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The image repository name.</p> * * <strong>example:</strong> * <p>opa-test</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>low</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * <p>The sensitive file status. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled</li> * <li><strong>1</strong>: ignored</li> * <li><strong>2</strong>: false positive</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag that is added to the image.</p> * * <strong>example:</strong> * <p>nuxeo6</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The image UUID.</p> * * <strong>example:</strong> * <p>f58681174f944623345379e23b7b****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public ImageInfos build() { return new ImageInfos(this); } } } /** * * {@link DescribeImageListBySensitiveFileResponseBody} extends {@link TeaModel} * * <p>DescribeImageListBySensitiveFileResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("LastRowKey") private String lastRowKey; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.lastRowKey = builder.lastRowKey; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lastRowKey */ public String getLastRowKey() { return this.lastRowKey; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private String lastRowKey; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.lastRowKey = model.lastRowKey; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The key of the last data entry.</p> * * <strong>example:</strong> * <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=</p> */ public Builder lastRowKey(String lastRowKey) { this.lastRowKey = lastRowKey; return this; } /** * <p>The number of entries returned per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>83</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListWithBaselineNameRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListWithBaselineNameRequest} extends {@link RequestModel} * * <p>DescribeImageListWithBaselineNameRequest</p> */ public class DescribeImageListWithBaselineNameRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BaselineNameKey") @com.aliyun.core.annotation.Validation(required = true) private String baselineNameKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterName") private String clusterName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContainerId") private String containerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CriteriaType") private String criteriaType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Image") private String image; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageDigest") private String imageDigest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Pod") private String pod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoInstanceId") private String repoInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; private DescribeImageListWithBaselineNameRequest(Builder builder) { super(builder); this.baselineNameKey = builder.baselineNameKey; this.clusterId = builder.clusterId; this.clusterName = builder.clusterName; this.containerId = builder.containerId; this.criteria = builder.criteria; this.criteriaType = builder.criteriaType; this.currentPage = builder.currentPage; this.image = builder.image; this.imageDigest = builder.imageDigest; this.lang = builder.lang; this.namespace = builder.namespace; this.pageSize = builder.pageSize; this.pod = builder.pod; this.repoInstanceId = builder.repoInstanceId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.scanRange = builder.scanRange; } public static Builder builder() { return new Builder(); } public static DescribeImageListWithBaselineNameRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return baselineNameKey */ public String getBaselineNameKey() { return this.baselineNameKey; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterName */ public String getClusterName() { return this.clusterName; } /** * @return containerId */ public String getContainerId() { return this.containerId; } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return criteriaType */ public String getCriteriaType() { return this.criteriaType; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return image */ public String getImage() { return this.image; } /** * @return imageDigest */ public String getImageDigest() { return this.imageDigest; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return pod */ public String getPod() { return this.pod; } /** * @return repoInstanceId */ public String getRepoInstanceId() { return this.repoInstanceId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } public static final class Builder extends Request.Builder<DescribeImageListWithBaselineNameRequest, Builder> { private String baselineNameKey; private String clusterId; private String clusterName; private String containerId; private String criteria; private String criteriaType; private Integer currentPage; private String image; private String imageDigest; private String lang; private String namespace; private Integer pageSize; private String pod; private String repoInstanceId; private String repoName; private String repoNamespace; private java.util.List<String> scanRange; private Builder() { super(); } private Builder(DescribeImageListWithBaselineNameRequest request) { super(request); this.baselineNameKey = request.baselineNameKey; this.clusterId = request.clusterId; this.clusterName = request.clusterName; this.containerId = request.containerId; this.criteria = request.criteria; this.criteriaType = request.criteriaType; this.currentPage = request.currentPage; this.image = request.image; this.imageDigest = request.imageDigest; this.lang = request.lang; this.namespace = request.namespace; this.pageSize = request.pageSize; this.pod = request.pod; this.repoInstanceId = request.repoInstanceId; this.repoName = request.repoName; this.repoNamespace = request.repoNamespace; this.scanRange = request.scanRange; } /** * <p>The name of the image baseline.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ak_leak</p> */ public Builder baselineNameKey(String baselineNameKey) { this.putQueryParameter("BaselineNameKey", baselineNameKey); this.baselineNameKey = baselineNameKey; return this; } /** * <p>The ID of the container cluster.</p> * <blockquote> * <p> You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the IDs of container clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>cc20a1024011c44b6a8710d6f8b****</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The name of the cluster.</p> * * <strong>example:</strong> * <p>docker-law</p> */ public Builder clusterName(String clusterName) { this.putQueryParameter("ClusterName", clusterName); this.clusterName = clusterName; return this; } /** * <p>The ID of the container.</p> * * <strong>example:</strong> * <p>c08d5fc1a329a4b88950a253d082f****</p> */ public Builder containerId(String containerId) { this.putQueryParameter("ContainerId", containerId); this.containerId = containerId; return this; } /** * <p>The search condition for the image baseline.</p> * * <strong>example:</strong> * <p>Unauthorized access</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The type of the search condition. Valid values:</p> * <ul> * <li><strong>BaselineNameAlias</strong>: baseline name</li> * <li><strong>BaselineClassAlias</strong>: baseline category</li> * </ul> * * <strong>example:</strong> * <p>BaselineNameAlias</p> */ public Builder criteriaType(String criteriaType) { this.putQueryParameter("CriteriaType", criteriaType); this.criteriaType = criteriaType; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The name of the image to which the container belongs.</p> * * <strong>example:</strong> * <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-****</p> */ public Builder image(String image) { this.putQueryParameter("Image", image); this.image = image; return this; } /** * <p>The SHA-256 value of the image digest.</p> * * <strong>example:</strong> * <p>2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423</p> */ public Builder imageDigest(String imageDigest) { this.putQueryParameter("ImageDigest", imageDigest); this.imageDigest = imageDigest; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The namespace.</p> * * <strong>example:</strong> * <p>test-002</p> */ public Builder namespace(String namespace) { this.putQueryParameter("Namespace", namespace); this.namespace = namespace; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The pod.</p> * * <strong>example:</strong> * <p>22222-7xsqq</p> */ public Builder pod(String pod) { this.putQueryParameter("Pod", pod); this.pod = pod; return this; } /** * <p>The instance ID of the image repository.</p> * * <strong>example:</strong> * <p>i-qewqrqcsadf****</p> */ public Builder repoInstanceId(String repoInstanceId) { this.putQueryParameter("RepoInstanceId", repoInstanceId); this.repoInstanceId = repoInstanceId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoName(String repoName) { this.putQueryParameter("RepoName", repoName); this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.putQueryParameter("RepoNamespace", repoNamespace); this.repoNamespace = repoNamespace; return this; } /** * <p>The types of the assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } @Override public DescribeImageListWithBaselineNameRequest build() { return new DescribeImageListWithBaselineNameRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListWithBaselineNameResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListWithBaselineNameResponse} extends {@link TeaModel} * * <p>DescribeImageListWithBaselineNameResponse</p> */ public class DescribeImageListWithBaselineNameResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageListWithBaselineNameResponseBody body; private DescribeImageListWithBaselineNameResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageListWithBaselineNameResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageListWithBaselineNameResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageListWithBaselineNameResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageListWithBaselineNameResponseBody body); @Override DescribeImageListWithBaselineNameResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageListWithBaselineNameResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageListWithBaselineNameResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageListWithBaselineNameResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageListWithBaselineNameResponseBody body) { this.body = body; return this; } @Override public DescribeImageListWithBaselineNameResponse build() { return new DescribeImageListWithBaselineNameResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageListWithBaselineNameResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageListWithBaselineNameResponseBody} extends {@link TeaModel} * * <p>DescribeImageListWithBaselineNameResponseBody</p> */ public class DescribeImageListWithBaselineNameResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageInfos") private java.util.List<ImageInfos> imageInfos; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageListWithBaselineNameResponseBody(Builder builder) { this.imageInfos = builder.imageInfos; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageListWithBaselineNameResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageInfos */ public java.util.List<ImageInfos> getImageInfos() { return this.imageInfos; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ImageInfos> imageInfos; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageListWithBaselineNameResponseBody model) { this.imageInfos = model.imageInfos; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The information about the images.</p> */ public Builder imageInfos(java.util.List<ImageInfos> imageInfos) { this.imageInfos = imageInfos; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>5B8C2156-2DB9-5A42-99E7-F2ED5AE9EA1F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageListWithBaselineNameResponseBody build() { return new DescribeImageListWithBaselineNameResponseBody(this); } } /** * * {@link DescribeImageListWithBaselineNameResponseBody} extends {@link TeaModel} * * <p>DescribeImageListWithBaselineNameResponseBody</p> */ public static class ImageInfos extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.NameInMap("ClusterName") private String clusterName; @com.aliyun.core.annotation.NameInMap("ContainerId") private String containerId; @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("HighRiskImage") private Integer highRiskImage; @com.aliyun.core.annotation.NameInMap("Image") private String image; @com.aliyun.core.annotation.NameInMap("ImageCreate") private Long imageCreate; @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("ImageSize") private Integer imageSize; @com.aliyun.core.annotation.NameInMap("ImageUpdate") private Long imageUpdate; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IntranetIp") private String intranetIp; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("LowRiskImage") private Integer lowRiskImage; @com.aliyun.core.annotation.NameInMap("MiddleRiskImage") private Integer middleRiskImage; @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.NameInMap("NoRiskImage") private Integer noRiskImage; @com.aliyun.core.annotation.NameInMap("Pod") private String pod; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RepoType") private String repoType; @com.aliyun.core.annotation.NameInMap("RiskStatus") private String riskStatus; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("TargetId") private String targetId; @com.aliyun.core.annotation.NameInMap("TargetName") private String targetName; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.NameInMap("TotalItemCount") private Integer totalItemCount; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private ImageInfos(Builder builder) { this.clusterId = builder.clusterId; this.clusterName = builder.clusterName; this.containerId = builder.containerId; this.digest = builder.digest; this.firstScanTime = builder.firstScanTime; this.highRiskImage = builder.highRiskImage; this.image = builder.image; this.imageCreate = builder.imageCreate; this.imageId = builder.imageId; this.imageSize = builder.imageSize; this.imageUpdate = builder.imageUpdate; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.lastScanTime = builder.lastScanTime; this.lowRiskImage = builder.lowRiskImage; this.middleRiskImage = builder.middleRiskImage; this.namespace = builder.namespace; this.noRiskImage = builder.noRiskImage; this.pod = builder.pod; this.regionId = builder.regionId; this.repoId = builder.repoId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.repoType = builder.repoType; this.riskStatus = builder.riskStatus; this.tag = builder.tag; this.targetId = builder.targetId; this.targetName = builder.targetName; this.targetType = builder.targetType; this.totalItemCount = builder.totalItemCount; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static ImageInfos create() { return builder().build(); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterName */ public String getClusterName() { return this.clusterName; } /** * @return containerId */ public String getContainerId() { return this.containerId; } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return highRiskImage */ public Integer getHighRiskImage() { return this.highRiskImage; } /** * @return image */ public String getImage() { return this.image; } /** * @return imageCreate */ public Long getImageCreate() { return this.imageCreate; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return imageSize */ public Integer getImageSize() { return this.imageSize; } /** * @return imageUpdate */ public Long getImageUpdate() { return this.imageUpdate; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return intranetIp */ public String getIntranetIp() { return this.intranetIp; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return lowRiskImage */ public Integer getLowRiskImage() { return this.lowRiskImage; } /** * @return middleRiskImage */ public Integer getMiddleRiskImage() { return this.middleRiskImage; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return noRiskImage */ public Integer getNoRiskImage() { return this.noRiskImage; } /** * @return pod */ public String getPod() { return this.pod; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return repoType */ public String getRepoType() { return this.repoType; } /** * @return riskStatus */ public String getRiskStatus() { return this.riskStatus; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return targetId */ public String getTargetId() { return this.targetId; } /** * @return targetName */ public String getTargetName() { return this.targetName; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return totalItemCount */ public Integer getTotalItemCount() { return this.totalItemCount; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String clusterId; private String clusterName; private String containerId; private String digest; private Long firstScanTime; private Integer highRiskImage; private String image; private Long imageCreate; private String imageId; private Integer imageSize; private Long imageUpdate; private String instanceId; private String instanceName; private String internetIp; private String intranetIp; private Long lastScanTime; private Integer lowRiskImage; private Integer middleRiskImage; private String namespace; private Integer noRiskImage; private String pod; private String regionId; private String repoId; private String repoName; private String repoNamespace; private String repoType; private String riskStatus; private String tag; private String targetId; private String targetName; private String targetType; private Integer totalItemCount; private String uuid; private Builder() { } private Builder(ImageInfos model) { this.clusterId = model.clusterId; this.clusterName = model.clusterName; this.containerId = model.containerId; this.digest = model.digest; this.firstScanTime = model.firstScanTime; this.highRiskImage = model.highRiskImage; this.image = model.image; this.imageCreate = model.imageCreate; this.imageId = model.imageId; this.imageSize = model.imageSize; this.imageUpdate = model.imageUpdate; this.instanceId = model.instanceId; this.instanceName = model.instanceName; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.lastScanTime = model.lastScanTime; this.lowRiskImage = model.lowRiskImage; this.middleRiskImage = model.middleRiskImage; this.namespace = model.namespace; this.noRiskImage = model.noRiskImage; this.pod = model.pod; this.regionId = model.regionId; this.repoId = model.repoId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.repoType = model.repoType; this.riskStatus = model.riskStatus; this.tag = model.tag; this.targetId = model.targetId; this.targetName = model.targetName; this.targetType = model.targetType; this.totalItemCount = model.totalItemCount; this.uuid = model.uuid; } /** * <p>The ID of the cluster.</p> * * <strong>example:</strong> * <p>c08d5fc1a329a4b88950a253d082f1****</p> */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } /** * <p>The name of the cluster.</p> * * <strong>example:</strong> * <p>docker-law</p> */ public Builder clusterName(String clusterName) { this.clusterName = clusterName; return this; } /** * <p>The ID of the container.</p> * * <strong>example:</strong> * <p>04d20e98c8e2c93b7b864372084320a15a58c8671e53c972ce3a71d9c163****</p> */ public Builder containerId(String containerId) { this.containerId = containerId; return this; } /** * <p>The SHA-256 value of the image digest.</p> * * <strong>example:</strong> * <p>2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423</p> */ public Builder digest(String digest) { this.digest = digest; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1649814050000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The number of images on which <strong>high</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder highRiskImage(Integer highRiskImage) { this.highRiskImage = highRiskImage; return this; } /** * <p>The name of the image.</p> * * <strong>example:</strong> * <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-conta****</p> */ public Builder image(String image) { this.image = image; return this; } /** * <p>The timestamp when the image was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1636962328000</p> */ public Builder imageCreate(Long imageCreate) { this.imageCreate = imageCreate; return this; } /** * <p>The ID of the image.</p> * * <strong>example:</strong> * <p>cddb5fd33b34a1fabb358d0a19497cdfe362fe624821cb250947af0ea5cc****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The size of the image.</p> * * <strong>example:</strong> * <p>157408623</p> */ public Builder imageSize(Integer imageSize) { this.imageSize = imageSize; return this; } /** * <p>The timestamp when the image was updated. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1636974116000</p> */ public Builder imageUpdate(Long imageUpdate) { this.imageUpdate = imageUpdate; return this; } /** * <p>The ID of the image instance.</p> * * <strong>example:</strong> * <p>cri-a595qp31knh9****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The instance name of the server.</p> * * <strong>example:</strong> * <p>pre.mongo-196</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The public IP address of the server.</p> * * <strong>example:</strong> * <p>47.96.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address of the server.</p> * * <strong>example:</strong> * <p>172.16.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The timestamp when the last baseline check was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1649814050000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The number of images on which <strong>low</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder lowRiskImage(Integer lowRiskImage) { this.lowRiskImage = lowRiskImage; return this; } /** * <p>The number of images on which <strong>medium</strong> baseline risks are detected.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder middleRiskImage(Integer middleRiskImage) { this.middleRiskImage = middleRiskImage; return this; } /** * <p>The namespace.</p> * * <strong>example:</strong> * <p>test-002</p> */ public Builder namespace(String namespace) { this.namespace = namespace; return this; } /** * <p>The number of images that do not have baseline risks.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder noRiskImage(Integer noRiskImage) { this.noRiskImage = noRiskImage; return this; } /** * <p>The pod.</p> * * <strong>example:</strong> * <p>22222-7xsqq</p> */ public Builder pod(String pod) { this.pod = pod; return this; } /** * <p>The region ID of the image instance.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>crr-1lt6q7167yh6****</p> */ public Builder repoId(String repoId) { this.repoId = repoId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>scanner</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The type of the image repository.</p> * * <strong>example:</strong> * <p>PRIVATE</p> */ public Builder repoType(String repoType) { this.repoType = repoType; return this; } /** * <p>Indicates whether the image is at risk. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>YES</p> */ public Builder riskStatus(String riskStatus) { this.riskStatus = riskStatus; return this; } /** * <p>The version of the image.</p> * * <strong>example:</strong> * <p>v1</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The ID of the asset on which the baseline check is performed.</p> * * <strong>example:</strong> * <p>m-bp17m0pc0xprzbwo****</p> */ public Builder targetId(String targetId) { this.targetId = targetId; return this; } /** * <p>The name of the asset on which the baseline check is performed.</p> * * <strong>example:</strong> * <p>spod</p> */ public Builder targetName(String targetName) { this.targetName = targetName; return this; } /** * <p>The type of the asset on which the baseline check is performed. Valid values:</p> * <ul> * <li>ECS_IMAGE</li> * <li>ECS_SNAPSHOT</li> * </ul> * * <strong>example:</strong> * <p>ECS_IMAGE</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } /** * <p>The total number of risk items that are detected on the image by using the baseline.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder totalItemCount(Integer totalItemCount) { this.totalItemCount = totalItemCount; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>f58681174f944623345379e23b7b****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public ImageInfos build() { return new ImageInfos(this); } } } /** * * {@link DescribeImageListWithBaselineNameResponseBody} extends {@link TeaModel} * * <p>DescribeImageListWithBaselineNameResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of the images returned on the current page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of images on which baseline risks are detected.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoCriteriaRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoCriteriaRequest} extends {@link RequestModel} * * <p>DescribeImageRepoCriteriaRequest</p> */ public class DescribeImageRepoCriteriaRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Value") private String value; private DescribeImageRepoCriteriaRequest(Builder builder) { super(builder); this.value = builder.value; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoCriteriaRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return value */ public String getValue() { return this.value; } public static final class Builder extends Request.Builder<DescribeImageRepoCriteriaRequest, Builder> { private String value; private Builder() { super(); } private Builder(DescribeImageRepoCriteriaRequest request) { super(request); this.value = request.value; } /** * <p>The value of the filter condition.</p> * <blockquote> * <p>You can perform fuzzy search based on the image ID, image tag, image instance ID, image repository name, image repository namespace, image repository ID, image repository region, image digest, and image repository type.</p> * </blockquote> * * <strong>example:</strong> * <p>2.0.2</p> */ public Builder value(String value) { this.putQueryParameter("Value", value); this.value = value; return this; } @Override public DescribeImageRepoCriteriaRequest build() { return new DescribeImageRepoCriteriaRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoCriteriaResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoCriteriaResponse} extends {@link TeaModel} * * <p>DescribeImageRepoCriteriaResponse</p> */ public class DescribeImageRepoCriteriaResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageRepoCriteriaResponseBody body; private DescribeImageRepoCriteriaResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageRepoCriteriaResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageRepoCriteriaResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageRepoCriteriaResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageRepoCriteriaResponseBody body); @Override DescribeImageRepoCriteriaResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageRepoCriteriaResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageRepoCriteriaResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageRepoCriteriaResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageRepoCriteriaResponseBody body) { this.body = body; return this; } @Override public DescribeImageRepoCriteriaResponse build() { return new DescribeImageRepoCriteriaResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoCriteriaResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoCriteriaResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoCriteriaResponseBody</p> */ public class DescribeImageRepoCriteriaResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CriteriaList") private java.util.List<CriteriaList> criteriaList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageRepoCriteriaResponseBody(Builder builder) { this.criteriaList = builder.criteriaList; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoCriteriaResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return criteriaList */ public java.util.List<CriteriaList> getCriteriaList() { return this.criteriaList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<CriteriaList> criteriaList; private String requestId; private Builder() { } private Builder(DescribeImageRepoCriteriaResponseBody model) { this.criteriaList = model.criteriaList; this.requestId = model.requestId; } /** * <p>An array consisting of the filter conditions that are supported by the image repository.</p> */ public Builder criteriaList(java.util.List<CriteriaList> criteriaList) { this.criteriaList = criteriaList; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>F35F45B0-5D6B-4238-BE02-A62D0760E840</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageRepoCriteriaResponseBody build() { return new DescribeImageRepoCriteriaResponseBody(this); } } /** * * {@link DescribeImageRepoCriteriaResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoCriteriaResponseBody</p> */ public static class CriteriaList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Values") private String values; private CriteriaList(Builder builder) { this.name = builder.name; this.type = builder.type; this.values = builder.values; } public static Builder builder() { return new Builder(); } public static CriteriaList create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return type */ public String getType() { return this.type; } /** * @return values */ public String getValues() { return this.values; } public static final class Builder { private String name; private String type; private String values; private Builder() { } private Builder(CriteriaList model) { this.name = model.name; this.type = model.type; this.values = model.values; } /** * <p>The name of the search condition. Valid values:</p> * <ul> * <li><strong>instanceId</strong>: the ID of the image instance.</li> * <li><strong>repoName</strong>: the name of the image repository.</li> * <li><strong>repoId</strong>: the ID of the image repository.</li> * <li><strong>repoNamespace</strong>: the namespace of the image repository.</li> * <li><strong>regionId</strong>: the region in which the image resides.</li> * <li><strong>vulStatus</strong>: indicates whether vulnerabilities exist.</li> * <li><strong>alarmStatus</strong>: indicates whether security alerts exist.</li> * <li><strong>hcStatus</strong>: indicates whether baseline risks exist.</li> * <li><strong>riskStatus</strong>: indicates whether risks exist.</li> * <li><strong>registryType</strong>: the type of the image repository.</li> * <li><strong>ImageId</strong>: the image ID.</li> * <li><strong>tag</strong>: the image tag.</li> * </ul> * * <strong>example:</strong> * <p>vulStatus</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The type of the search condition. Valid values:</p> * <ul> * <li><strong>input</strong>: The search condition needs to be specified.</li> * <li><strong>select</strong>: The search condition is an option that can be selected from the drop-down list.</li> * </ul> * * <strong>example:</strong> * <p>select</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The values of the search condition. This parameter is returned only if the value of <strong>Type</strong> is set to <strong>select</strong>.</p> * <blockquote> * <p>If the value of <strong>Type</strong> is set to <strong>input</strong>, the return value of this parameter is empty.</p> * </blockquote> * * <strong>example:</strong> * <p>NO,YES</p> */ public Builder values(String values) { this.values = values; return this; } public CriteriaList build() { return new CriteriaList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoDetailListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoDetailListRequest} extends {@link RequestModel} * * <p>DescribeImageRepoDetailListRequest</p> */ public class DescribeImageRepoDetailListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogicalExp") private String logicalExp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; private DescribeImageRepoDetailListRequest(Builder builder) { super(builder); this.criteria = builder.criteria; this.currentPage = builder.currentPage; this.logicalExp = builder.logicalExp; this.pageSize = builder.pageSize; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoDetailListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return logicalExp */ public String getLogicalExp() { return this.logicalExp; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } public static final class Builder extends Request.Builder<DescribeImageRepoDetailListRequest, Builder> { private String criteria; private Integer currentPage; private String logicalExp; private Integer pageSize; private Builder() { super(); } private Builder(DescribeImageRepoDetailListRequest request) { super(request); this.criteria = request.criteria; this.currentPage = request.currentPage; this.logicalExp = request.logicalExp; this.pageSize = request.pageSize; } /** * <p>The search conditions for assets. The value of this parameter is in the JSON format and contains the following fields:</p> * <ul> * <li><p><strong>name</strong>: the search condition.</p> * </li> * <li><p><strong>name</strong>: the value of the search condition.</p> * </li> * <li><p><strong>logicalExp</strong>: the logical relation for multiple search conditions. Valid values:</p> * <ul> * <li><strong>OR</strong>: The search conditions use a logical <strong>OR</strong>.</li> * <li><strong>AND</strong>: The search conditions use a logical <strong>AND</strong>.</li> * </ul> * </li> * </ul> * <blockquote> * <p>You can call the <a href="~~DescribeImageRepoCriteria~~">DescribeImageRepoCriteria</a> operation to query the supported search conditions.</p> * </blockquote> * * <strong>example:</strong> * <p>[{&quot;name&quot;:&quot;vulStatus&quot;,&quot;value&quot;:&quot;YES&quot;,&quot;logicalExp&quot;:&quot;AND&quot;}]</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The logical relationship that you want to use to evaluate multiple search conditions. Valid values:</p> * <ul> * <li><strong>OR</strong>: Search conditions are evaluated by using a logical <strong>OR</strong>.</li> * <li><strong>AND</strong>: Search conditions are evaluated by using a logical <strong>AND</strong>.</li> * </ul> * * <strong>example:</strong> * <p>OR</p> */ public Builder logicalExp(String logicalExp) { this.putQueryParameter("LogicalExp", logicalExp); this.logicalExp = logicalExp; return this; } /** * <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p>We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } @Override public DescribeImageRepoDetailListRequest build() { return new DescribeImageRepoDetailListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoDetailListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoDetailListResponse} extends {@link TeaModel} * * <p>DescribeImageRepoDetailListResponse</p> */ public class DescribeImageRepoDetailListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageRepoDetailListResponseBody body; private DescribeImageRepoDetailListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageRepoDetailListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageRepoDetailListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageRepoDetailListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageRepoDetailListResponseBody body); @Override DescribeImageRepoDetailListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageRepoDetailListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageRepoDetailListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageRepoDetailListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageRepoDetailListResponseBody body) { this.body = body; return this; } @Override public DescribeImageRepoDetailListResponse build() { return new DescribeImageRepoDetailListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoDetailListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoDetailListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoDetailListResponseBody</p> */ public class DescribeImageRepoDetailListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageRepoResponses") private java.util.List<ImageRepoResponses> imageRepoResponses; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageRepoDetailListResponseBody(Builder builder) { this.imageRepoResponses = builder.imageRepoResponses; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoDetailListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageRepoResponses */ public java.util.List<ImageRepoResponses> getImageRepoResponses() { return this.imageRepoResponses; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ImageRepoResponses> imageRepoResponses; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageRepoDetailListResponseBody model) { this.imageRepoResponses = model.imageRepoResponses; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The information about image repositories.</p> */ public Builder imageRepoResponses(java.util.List<ImageRepoResponses> imageRepoResponses) { this.imageRepoResponses = imageRepoResponses; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>0B48AB3C-84FC-424D-A01D-B9270EF46038</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageRepoDetailListResponseBody build() { return new DescribeImageRepoDetailListResponseBody(this); } } /** * * {@link DescribeImageRepoDetailListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoDetailListResponseBody</p> */ public static class ImageRepoResponses extends TeaModel { @com.aliyun.core.annotation.NameInMap("AlarmCount") private Integer alarmCount; @com.aliyun.core.annotation.NameInMap("AlarmStatus") private String alarmStatus; @com.aliyun.core.annotation.NameInMap("Endpoints") private String endpoints; @com.aliyun.core.annotation.NameInMap("HasRiskImageCount") private Integer hasRiskImageCount; @com.aliyun.core.annotation.NameInMap("HcCount") private Integer hcCount; @com.aliyun.core.annotation.NameInMap("HcStatus") private String hcStatus; @com.aliyun.core.annotation.NameInMap("ImageCount") private Integer imageCount; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RegistryType") private String registryType; @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RiskStatus") private String riskStatus; @com.aliyun.core.annotation.NameInMap("SourceBizTag") private String sourceBizTag; @com.aliyun.core.annotation.NameInMap("VulCount") private Integer vulCount; @com.aliyun.core.annotation.NameInMap("VulStatus") private String vulStatus; private ImageRepoResponses(Builder builder) { this.alarmCount = builder.alarmCount; this.alarmStatus = builder.alarmStatus; this.endpoints = builder.endpoints; this.hasRiskImageCount = builder.hasRiskImageCount; this.hcCount = builder.hcCount; this.hcStatus = builder.hcStatus; this.imageCount = builder.imageCount; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.registryType = builder.registryType; this.repoId = builder.repoId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.riskStatus = builder.riskStatus; this.sourceBizTag = builder.sourceBizTag; this.vulCount = builder.vulCount; this.vulStatus = builder.vulStatus; } public static Builder builder() { return new Builder(); } public static ImageRepoResponses create() { return builder().build(); } /** * @return alarmCount */ public Integer getAlarmCount() { return this.alarmCount; } /** * @return alarmStatus */ public String getAlarmStatus() { return this.alarmStatus; } /** * @return endpoints */ public String getEndpoints() { return this.endpoints; } /** * @return hasRiskImageCount */ public Integer getHasRiskImageCount() { return this.hasRiskImageCount; } /** * @return hcCount */ public Integer getHcCount() { return this.hcCount; } /** * @return hcStatus */ public String getHcStatus() { return this.hcStatus; } /** * @return imageCount */ public Integer getImageCount() { return this.imageCount; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return registryType */ public String getRegistryType() { return this.registryType; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return riskStatus */ public String getRiskStatus() { return this.riskStatus; } /** * @return sourceBizTag */ public String getSourceBizTag() { return this.sourceBizTag; } /** * @return vulCount */ public Integer getVulCount() { return this.vulCount; } /** * @return vulStatus */ public String getVulStatus() { return this.vulStatus; } public static final class Builder { private Integer alarmCount; private String alarmStatus; private String endpoints; private Integer hasRiskImageCount; private Integer hcCount; private String hcStatus; private Integer imageCount; private String instanceId; private String regionId; private String registryType; private String repoId; private String repoName; private String repoNamespace; private String riskStatus; private String sourceBizTag; private Integer vulCount; private String vulStatus; private Builder() { } private Builder(ImageRepoResponses model) { this.alarmCount = model.alarmCount; this.alarmStatus = model.alarmStatus; this.endpoints = model.endpoints; this.hasRiskImageCount = model.hasRiskImageCount; this.hcCount = model.hcCount; this.hcStatus = model.hcStatus; this.imageCount = model.imageCount; this.instanceId = model.instanceId; this.regionId = model.regionId; this.registryType = model.registryType; this.repoId = model.repoId; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.riskStatus = model.riskStatus; this.sourceBizTag = model.sourceBizTag; this.vulCount = model.vulCount; this.vulStatus = model.vulStatus; } /** * <p>The number of alerts that are generated for the image repository.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder alarmCount(Integer alarmCount) { this.alarmCount = alarmCount; return this; } /** * <p>Indicates whether alerts are generated for the image repository. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder alarmStatus(String alarmStatus) { this.alarmStatus = alarmStatus; return this; } /** * <p>The address of the image repository.</p> * * <strong>example:</strong> * <p>[ * { * &quot;domains&quot;: [ * &quot;<strong><strong>.cn-shenzhen.cr.aliyuncs.com&quot; * ], * &quot;type&quot;: &quot;internet&quot; * }, * { * &quot;domains&quot;: [ * &quot;</strong></strong>.cn-shenzhen.cr.aliyuncs.com&quot; * ], * &quot;type&quot;: &quot;intranet&quot; * }, * { * &quot;domains&quot;: [ * &quot;****.cn-shenzhen.cr.aliyuncs.com&quot; * ], * &quot;type&quot;: &quot;vpc&quot; * } * ]</p> */ public Builder endpoints(String endpoints) { this.endpoints = endpoints; return this; } /** * <p>The number of the images on which risks are detected.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder hasRiskImageCount(Integer hasRiskImageCount) { this.hasRiskImageCount = hasRiskImageCount; return this; } /** * <p>The number of baseline risk items on the image repository.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder hcCount(Integer hcCount) { this.hcCount = hcCount; return this; } /** * <p>Indicates whether baseline risk items are detected on the image repository. Valid values:</p> * <ul> * <li><strong>NO</strong></li> * <li><strong>YES</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder hcStatus(String hcStatus) { this.hcStatus = hcStatus; return this; } /** * <p>The number of images.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder imageCount(Integer imageCount) { this.imageCount = imageCount; return this; } /** * <p>The ID of the image.</p> * * <strong>example:</strong> * <p>i-uf6fsg6xlmorug5****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The region ID of the image.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The type of the image repository. Valid values:</p> * <ul> * <li><strong>acr</strong></li> * <li><strong>harbor</strong></li> * <li><strong>quay</strong></li> * <li><strong>CI/CD</strong></li> * </ul> * * <strong>example:</strong> * <p>acr</p> */ public Builder registryType(String registryType) { this.registryType = registryType; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>crr-2chlzf47w2rk****</p> */ public Builder repoId(String repoId) { this.repoId = repoId; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>zeus</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>test-dev</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>Indicates whether the image repository is at risk. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder riskStatus(String riskStatus) { this.riskStatus = riskStatus; return this; } /** * <p>The usage label of the image.</p> * * <strong>example:</strong> * <p>PAI</p> */ public Builder sourceBizTag(String sourceBizTag) { this.sourceBizTag = sourceBizTag; return this; } /** * <p>The number of vulnerabilities detected on the image repository.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vulCount(Integer vulCount) { this.vulCount = vulCount; return this; } /** * <p>Indicates whether vulnerabilities are detected on the image repository. Valid values:</p> * <ul> * <li><strong>YES</strong></li> * <li><strong>NO</strong></li> * </ul> * * <strong>example:</strong> * <p>NO</p> */ public Builder vulStatus(String vulStatus) { this.vulStatus = vulStatus; return this; } public ImageRepoResponses build() { return new ImageRepoResponses(this); } } } /** * * {@link DescribeImageRepoDetailListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoDetailListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of image repositories.</p> * * <strong>example:</strong> * <p>19</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoListRequest} extends {@link RequestModel} * * <p>DescribeImageRepoListRequest</p> */ public class DescribeImageRepoListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FieldName") private String fieldName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FieldValue") private String fieldValue; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperateType") private String operateType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetType") @com.aliyun.core.annotation.Validation(required = true) private String targetType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private DescribeImageRepoListRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.fieldName = builder.fieldName; this.fieldValue = builder.fieldValue; this.operateType = builder.operateType; this.pageSize = builder.pageSize; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.targetType = builder.targetType; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return fieldName */ public String getFieldName() { return this.fieldName; } /** * @return fieldValue */ public String getFieldValue() { return this.fieldValue; } /** * @return operateType */ public String getOperateType() { return this.operateType; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeImageRepoListRequest, Builder> { private Integer currentPage; private String fieldName; private String fieldValue; private String operateType; private Integer pageSize; private String repoName; private String repoNamespace; private String targetType; private String type; private Builder() { super(); } private Builder(DescribeImageRepoListRequest request) { super(request); this.currentPage = request.currentPage; this.fieldName = request.fieldName; this.fieldValue = request.fieldValue; this.operateType = request.operateType; this.pageSize = request.pageSize; this.repoName = request.repoName; this.repoNamespace = request.repoNamespace; this.targetType = request.targetType; this.type = request.type; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The name of the field that is used for the query. Valid values:</p> * <ul> * <li><strong>repoName</strong>: the name of the image repository</li> * <li><strong>repoNamespace</strong>: the namespace to which the image repository belongs</li> * </ul> * <blockquote> * <p> This parameter takes effect only when the <strong>OperateType</strong> parameter is set to <strong>other</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>repoName</p> */ public Builder fieldName(String fieldName) { this.putQueryParameter("FieldName", fieldName); this.fieldName = fieldName; return this; } /** * <p>The value of the field that is used for the query.</p> * <blockquote> * <p> This parameter takes effect only when the <strong>OperateType</strong> parameter is set to <strong>other</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>zeus</p> */ public Builder fieldValue(String fieldValue) { this.putQueryParameter("FieldValue", fieldValue); this.fieldValue = fieldValue; return this; } /** * <p>The type of the operation. Valid values:</p> * <ul> * <li><strong>count</strong>: counts statistics</li> * <li><strong>other</strong>: others</li> * </ul> * * <strong>example:</strong> * <p>count</p> */ public Builder operateType(String operateType) { this.putQueryParameter("OperateType", operateType); this.operateType = operateType; return this; } /** * <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p> * <blockquote> * <p> We recommend that you do not leave this parameter empty.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>script7</p> */ public Builder repoName(String repoName) { this.putQueryParameter("RepoName", repoName); this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.putQueryParameter("RepoNamespace", repoNamespace); this.repoNamespace = repoNamespace; return this; } /** * <p>The condition by which the feature is applied. Valid values:</p> * <ul> * <li><strong>image_repo</strong>: the ID of the image repository</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>image_repo</p> */ public Builder targetType(String targetType) { this.putQueryParameter("TargetType", targetType); this.targetType = targetType; return this; } /** * <p>The type of the feature. Valid values:</p> * <ul> * <li><strong>image_repo</strong>: image repository protection</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>image_repo</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeImageRepoListRequest build() { return new DescribeImageRepoListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoListResponse} extends {@link TeaModel} * * <p>DescribeImageRepoListResponse</p> */ public class DescribeImageRepoListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageRepoListResponseBody body; private DescribeImageRepoListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageRepoListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageRepoListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageRepoListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageRepoListResponseBody body); @Override DescribeImageRepoListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageRepoListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageRepoListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageRepoListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageRepoListResponseBody body) { this.body = body; return this; } @Override public DescribeImageRepoListResponse build() { return new DescribeImageRepoListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRepoListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRepoListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoListResponseBody</p> */ public class DescribeImageRepoListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AddTargetCount") private Integer addTargetCount; @com.aliyun.core.annotation.NameInMap("AllTargetCount") private Integer allTargetCount; @com.aliyun.core.annotation.NameInMap("DelTargetCount") private Integer delTargetCount; @com.aliyun.core.annotation.NameInMap("ImageRepoList") private java.util.List<ImageRepoList> imageRepoList; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageRepoListResponseBody(Builder builder) { this.addTargetCount = builder.addTargetCount; this.allTargetCount = builder.allTargetCount; this.delTargetCount = builder.delTargetCount; this.imageRepoList = builder.imageRepoList; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageRepoListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return addTargetCount */ public Integer getAddTargetCount() { return this.addTargetCount; } /** * @return allTargetCount */ public Integer getAllTargetCount() { return this.allTargetCount; } /** * @return delTargetCount */ public Integer getDelTargetCount() { return this.delTargetCount; } /** * @return imageRepoList */ public java.util.List<ImageRepoList> getImageRepoList() { return this.imageRepoList; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Integer addTargetCount; private Integer allTargetCount; private Integer delTargetCount; private java.util.List<ImageRepoList> imageRepoList; private PageInfo pageInfo; private String requestId; private Builder() { } private Builder(DescribeImageRepoListResponseBody model) { this.addTargetCount = model.addTargetCount; this.allTargetCount = model.allTargetCount; this.delTargetCount = model.delTargetCount; this.imageRepoList = model.imageRepoList; this.pageInfo = model.pageInfo; this.requestId = model.requestId; } /** * <p>The number of image repositories that are added to Security Center.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder addTargetCount(Integer addTargetCount) { this.addTargetCount = addTargetCount; return this; } /** * <p>The total number of image repositories.</p> * * <strong>example:</strong> * <p>25</p> */ public Builder allTargetCount(Integer allTargetCount) { this.allTargetCount = allTargetCount; return this; } /** * <p>The number of excluded image repositories.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder delTargetCount(Integer delTargetCount) { this.delTargetCount = delTargetCount; return this; } /** * <p>An array that consists of the information about image repositories.</p> */ public Builder imageRepoList(java.util.List<ImageRepoList> imageRepoList) { this.imageRepoList = imageRepoList; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageRepoListResponseBody build() { return new DescribeImageRepoListResponseBody(this); } } /** * * {@link DescribeImageRepoListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoListResponseBody</p> */ public static class ImageRepoList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Flag") private String flag; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; private ImageRepoList(Builder builder) { this.flag = builder.flag; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; } public static Builder builder() { return new Builder(); } public static ImageRepoList create() { return builder().build(); } /** * @return flag */ public String getFlag() { return this.flag; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } public static final class Builder { private String flag; private String repoName; private String repoNamespace; private Builder() { } private Builder(ImageRepoList model) { this.flag = model.flag; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; } /** * <p>Indicates whether the feature takes effect on the image repository. Valid values:</p> * <ul> * <li><strong>add</strong>: yes</li> * <li><strong>del</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>add</p> */ public Builder flag(String flag) { this.flag = flag; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>zeus</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>sas-script</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } public ImageRepoList build() { return new ImageRepoList(this); } } } /** * * {@link DescribeImageRepoListResponseBody} extends {@link TeaModel} * * <p>DescribeImageRepoListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of image repositories.</p> * * <strong>example:</strong> * <p>83</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRequest} extends {@link RequestModel} * * <p>DescribeImageRequest</p> */ public class DescribeImageRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String imageInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageRegionId") @com.aliyun.core.annotation.Validation(required = true) private String imageRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageRepoId") @com.aliyun.core.annotation.Validation(required = true) private String imageRepoId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageTag") @com.aliyun.core.annotation.Validation(required = true) private String imageTag; private DescribeImageRequest(Builder builder) { super(builder); this.imageInstanceId = builder.imageInstanceId; this.imageRegionId = builder.imageRegionId; this.imageRepoId = builder.imageRepoId; this.imageTag = builder.imageTag; } public static Builder builder() { return new Builder(); } public static DescribeImageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return imageInstanceId */ public String getImageInstanceId() { return this.imageInstanceId; } /** * @return imageRegionId */ public String getImageRegionId() { return this.imageRegionId; } /** * @return imageRepoId */ public String getImageRepoId() { return this.imageRepoId; } /** * @return imageTag */ public String getImageTag() { return this.imageTag; } public static final class Builder extends Request.Builder<DescribeImageRequest, Builder> { private String imageInstanceId; private String imageRegionId; private String imageRepoId; private String imageTag; private Builder() { super(); } private Builder(DescribeImageRequest request) { super(request); this.imageInstanceId = request.imageInstanceId; this.imageRegionId = request.imageRegionId; this.imageRepoId = request.imageRepoId; this.imageTag = request.imageTag; } /** * <p>The instance ID of the image.</p> * <blockquote> * <p> You can call the <a href="~~DescribeImageInstances~~">DescribeImageInstances</a> operation to query the IDs of instances.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cri-hfs6gaawhyu6****</p> */ public Builder imageInstanceId(String imageInstanceId) { this.putQueryParameter("ImageInstanceId", imageInstanceId); this.imageInstanceId = imageInstanceId; return this; } /** * <p>The region ID of the image.</p> * <blockquote> * <p> You can call the <a href="~~DescribeImageInstances~~">DescribeImageInstances</a> operation to query the IDs of regions.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder imageRegionId(String imageRegionId) { this.putQueryParameter("ImageRegionId", imageRegionId); this.imageRegionId = imageRegionId; return this; } /** * <p>The ID of the image repository.</p> * <blockquote> * <p> You can call the <a href="~~DescribeImageInstances~~">DescribeImageInstances</a> operation to query the IDs of image repositories.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>crr-7i88t7lx3fmf****</p> */ public Builder imageRepoId(String imageRepoId) { this.putQueryParameter("ImageRepoId", imageRepoId); this.imageRepoId = imageRepoId; return this; } /** * <p>The tag that is added to the image.</p> * <blockquote> * <p> You can call the <a href="~~DescribeImageInstances~~">DescribeImageInstances</a> operation to query tags.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1.8.0.15</p> */ public Builder imageTag(String imageTag) { this.putQueryParameter("ImageTag", imageTag); this.imageTag = imageTag; return this; } @Override public DescribeImageRequest build() { return new DescribeImageRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageResponse} extends {@link TeaModel} * * <p>DescribeImageResponse</p> */ public class DescribeImageResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageResponseBody body; private DescribeImageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageResponseBody body); @Override DescribeImageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageResponseBody body) { this.body = body; return this; } @Override public DescribeImageResponse build() { return new DescribeImageResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageResponseBody} extends {@link TeaModel} * * <p>DescribeImageResponseBody</p> */ public class DescribeImageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private String requestId; private Builder() { } private Builder(DescribeImageResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The information about the image digest.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>7E0618A9-D5EF-4220-9471-C42B5E92719F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageResponseBody build() { return new DescribeImageResponseBody(this); } } /** * * {@link DescribeImageResponseBody} extends {@link TeaModel} * * <p>DescribeImageResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Digest") private String digest; private Data(Builder builder) { this.digest = builder.digest; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return digest */ public String getDigest() { return this.digest; } public static final class Builder { private String digest; private Builder() { } private Builder(Data model) { this.digest = model.digest; } /** * <p>The digest value of the image.</p> * * <strong>example:</strong> * <p>0afb98d97f1a4030782fcf47e186909e5ad957bcc182d8be70334e0684b2****</p> */ public Builder digest(String digest) { this.digest = digest; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRiskLevelStatisticRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRiskLevelStatisticRequest} extends {@link RequestModel} * * <p>DescribeImageRiskLevelStatisticRequest</p> */ public class DescribeImageRiskLevelStatisticRequest extends Request { private DescribeImageRiskLevelStatisticRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeImageRiskLevelStatisticRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeImageRiskLevelStatisticRequest, Builder> { private Builder() { super(); } private Builder(DescribeImageRiskLevelStatisticRequest request) { super(request); } @Override public DescribeImageRiskLevelStatisticRequest build() { return new DescribeImageRiskLevelStatisticRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRiskLevelStatisticResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRiskLevelStatisticResponse} extends {@link TeaModel} * * <p>DescribeImageRiskLevelStatisticResponse</p> */ public class DescribeImageRiskLevelStatisticResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageRiskLevelStatisticResponseBody body; private DescribeImageRiskLevelStatisticResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageRiskLevelStatisticResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageRiskLevelStatisticResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageRiskLevelStatisticResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageRiskLevelStatisticResponseBody body); @Override DescribeImageRiskLevelStatisticResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageRiskLevelStatisticResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageRiskLevelStatisticResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageRiskLevelStatisticResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageRiskLevelStatisticResponseBody body) { this.body = body; return this; } @Override public DescribeImageRiskLevelStatisticResponse build() { return new DescribeImageRiskLevelStatisticResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageRiskLevelStatisticResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageRiskLevelStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeImageRiskLevelStatisticResponseBody</p> */ public class DescribeImageRiskLevelStatisticResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageRiskLevelList") private java.util.List<ImageRiskLevelList> imageRiskLevelList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageRiskLevelStatisticResponseBody(Builder builder) { this.imageRiskLevelList = builder.imageRiskLevelList; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageRiskLevelStatisticResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageRiskLevelList */ public java.util.List<ImageRiskLevelList> getImageRiskLevelList() { return this.imageRiskLevelList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<ImageRiskLevelList> imageRiskLevelList; private String requestId; private Builder() { } private Builder(DescribeImageRiskLevelStatisticResponseBody model) { this.imageRiskLevelList = model.imageRiskLevelList; this.requestId = model.requestId; } /** * <p>The information about risks at the image level. The risks include vulnerabilities, baselines risks, and malicious file risks.</p> */ public Builder imageRiskLevelList(java.util.List<ImageRiskLevelList> imageRiskLevelList) { this.imageRiskLevelList = imageRiskLevelList; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A60DA4EC-7CD8-577D-AD73-******</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageRiskLevelStatisticResponseBody build() { return new DescribeImageRiskLevelStatisticResponseBody(this); } } /** * * {@link DescribeImageRiskLevelStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeImageRiskLevelStatisticResponseBody</p> */ public static class ImageRiskLevelList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cnt") private Integer cnt; @com.aliyun.core.annotation.NameInMap("ImageRiskLevel") private String imageRiskLevel; private ImageRiskLevelList(Builder builder) { this.cnt = builder.cnt; this.imageRiskLevel = builder.imageRiskLevel; } public static Builder builder() { return new Builder(); } public static ImageRiskLevelList create() { return builder().build(); } /** * @return cnt */ public Integer getCnt() { return this.cnt; } /** * @return imageRiskLevel */ public String getImageRiskLevel() { return this.imageRiskLevel; } public static final class Builder { private Integer cnt; private String imageRiskLevel; private Builder() { } private Builder(ImageRiskLevelList model) { this.cnt = model.cnt; this.imageRiskLevel = model.imageRiskLevel; } /** * <p>The number of images at the risk level.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder cnt(Integer cnt) { this.cnt = cnt; return this; } /** * <p>The risk level of the image. Valid values:</p> * <ul> * <li><strong>3</strong>: high risk.</li> * <li><strong>2</strong>: medium risk.</li> * <li><strong>1</strong>: low risk.</li> * <li><strong>0</strong>: no risk.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder imageRiskLevel(String imageRiskLevel) { this.imageRiskLevel = imageRiskLevel; return this; } public ImageRiskLevelList build() { return new ImageRiskLevelList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageScanAuthCountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageScanAuthCountRequest} extends {@link RequestModel} * * <p>DescribeImageScanAuthCountRequest</p> */ public class DescribeImageScanAuthCountRequest extends Request { private DescribeImageScanAuthCountRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeImageScanAuthCountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeImageScanAuthCountRequest, Builder> { private Builder() { super(); } private Builder(DescribeImageScanAuthCountRequest request) { super(request); } @Override public DescribeImageScanAuthCountRequest build() { return new DescribeImageScanAuthCountRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageScanAuthCountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageScanAuthCountResponse} extends {@link TeaModel} * * <p>DescribeImageScanAuthCountResponse</p> */ public class DescribeImageScanAuthCountResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageScanAuthCountResponseBody body; private DescribeImageScanAuthCountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageScanAuthCountResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageScanAuthCountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageScanAuthCountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageScanAuthCountResponseBody body); @Override DescribeImageScanAuthCountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageScanAuthCountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageScanAuthCountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageScanAuthCountResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageScanAuthCountResponseBody body) { this.body = body; return this; } @Override public DescribeImageScanAuthCountResponse build() { return new DescribeImageScanAuthCountResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageScanAuthCountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageScanAuthCountResponseBody} extends {@link TeaModel} * * <p>DescribeImageScanAuthCountResponseBody</p> */ public class DescribeImageScanAuthCountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageScan") private ImageScan imageScan; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageScanAuthCountResponseBody(Builder builder) { this.imageScan = builder.imageScan; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageScanAuthCountResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return imageScan */ public ImageScan getImageScan() { return this.imageScan; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private ImageScan imageScan; private String requestId; private Builder() { } private Builder(DescribeImageScanAuthCountResponseBody model) { this.imageScan = model.imageScan; this.requestId = model.requestId; } /** * <p>The details about the quota for container image scan.</p> */ public Builder imageScan(ImageScan imageScan) { this.imageScan = imageScan; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>892NYH839-0EDC-4CD0-A2EF-5BD294656C99</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageScanAuthCountResponseBody build() { return new DescribeImageScanAuthCountResponseBody(this); } } /** * * {@link DescribeImageScanAuthCountResponseBody} extends {@link TeaModel} * * <p>DescribeImageScanAuthCountResponseBody</p> */ public static class ImageScan extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageScanCapacity") private Long imageScanCapacity; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("ScanCount") private Long scanCount; private ImageScan(Builder builder) { this.imageScanCapacity = builder.imageScanCapacity; this.instanceId = builder.instanceId; this.scanCount = builder.scanCount; } public static Builder builder() { return new Builder(); } public static ImageScan create() { return builder().build(); } /** * @return imageScanCapacity */ public Long getImageScanCapacity() { return this.imageScanCapacity; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return scanCount */ public Long getScanCount() { return this.scanCount; } public static final class Builder { private Long imageScanCapacity; private String instanceId; private Long scanCount; private Builder() { } private Builder(ImageScan model) { this.imageScanCapacity = model.imageScanCapacity; this.instanceId = model.instanceId; this.scanCount = model.scanCount; } /** * <p>The quota for container image scan.</p> * * <strong>example:</strong> * <p>15340</p> */ public Builder imageScanCapacity(Long imageScanCapacity) { this.imageScanCapacity = imageScanCapacity; return this; } /** * <p>The instance ID of Security Center.</p> * * <strong>example:</strong> * <p>sas-qdl123412****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The consumed quota for container image scan.</p> * * <strong>example:</strong> * <p>5489</p> */ public Builder scanCount(Long scanCount) { this.scanCount = scanCount; return this; } public ImageScan build() { return new ImageScan(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSecurityScanCountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSecurityScanCountRequest} extends {@link RequestModel} * * <p>DescribeImageSecurityScanCountRequest</p> */ public class DescribeImageSecurityScanCountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Dealed") private String dealed; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageDigest") private String imageDigest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageTag") private String imageTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoInstanceId") private String repoInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoRegionId") private String repoRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") private java.util.List<String> uuids; private DescribeImageSecurityScanCountRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.dealed = builder.dealed; this.imageDigest = builder.imageDigest; this.imageTag = builder.imageTag; this.imageUuid = builder.imageUuid; this.repoId = builder.repoId; this.repoInstanceId = builder.repoInstanceId; this.repoRegionId = builder.repoRegionId; this.scanRange = builder.scanRange; this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeImageSecurityScanCountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return dealed */ public String getDealed() { return this.dealed; } /** * @return imageDigest */ public String getImageDigest() { return this.imageDigest; } /** * @return imageTag */ public String getImageTag() { return this.imageTag; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoInstanceId */ public String getRepoInstanceId() { return this.repoInstanceId; } /** * @return repoRegionId */ public String getRepoRegionId() { return this.repoRegionId; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return uuids */ public java.util.List<String> getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeImageSecurityScanCountRequest, Builder> { private String clusterId; private String dealed; private String imageDigest; private String imageTag; private String imageUuid; private String repoId; private String repoInstanceId; private String repoRegionId; private java.util.List<String> scanRange; private java.util.List<String> uuids; private Builder() { super(); } private Builder(DescribeImageSecurityScanCountRequest request) { super(request); this.clusterId = request.clusterId; this.dealed = request.dealed; this.imageDigest = request.imageDigest; this.imageTag = request.imageTag; this.imageUuid = request.imageUuid; this.repoId = request.repoId; this.repoInstanceId = request.repoInstanceId; this.repoRegionId = request.repoRegionId; this.scanRange = request.scanRange; this.uuids = request.uuids; } /** * <p>The ID of the cluster that you want to scan.</p> * * <strong>example:</strong> * <p>cdbbe7aa56cbf4b8f830f83718d26****</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The handling status. Valid values:</p> * <ul> * <li><strong>Y</strong>: handled.</li> * <li><strong>N</strong>: unhandled.</li> * <li><strong>A</strong>: all.</li> * </ul> * * <strong>example:</strong> * <p>N</p> */ public Builder dealed(String dealed) { this.putQueryParameter("Dealed", dealed); this.dealed = dealed; return this; } /** * <p>The SHA-256 value of the image digest.</p> * * <strong>example:</strong> * <p>a7978d51f5eddf7612ab15ae46bd4b4257bf59da77c2aafc9d9d8ab41bb3****</p> */ public Builder imageDigest(String imageDigest) { this.putQueryParameter("ImageDigest", imageDigest); this.imageDigest = imageDigest; return this; } /** * <p>The tag of the image.</p> * * <strong>example:</strong> * <p>c958b80f-prd_default-9bb0****</p> */ public Builder imageTag(String imageTag) { this.putQueryParameter("ImageTag", imageTag); this.imageTag = imageTag; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>325bfa067ae6c678e59e8a1b34cc****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The ID of the Container Registry repository.</p> * * <strong>example:</strong> * <p>3df5b5a1f2339eb7ebc7d474b8d4****</p> */ public Builder repoId(String repoId) { this.putQueryParameter("RepoId", repoId); this.repoId = repoId; return this; } /** * <p>The ID of the Container Registry instance.</p> * <blockquote> * <p> You can call the <a href="~~DescribeImageInstances~~">DescribeImageInstances</a> operation to obtain the ID.</p> * </blockquote> * * <strong>example:</strong> * <p>cri-p2jahwuuwuk7****</p> */ public Builder repoInstanceId(String repoInstanceId) { this.putQueryParameter("RepoInstanceId", repoInstanceId); this.repoInstanceId = repoInstanceId; return this; } /** * <p>The region ID of the Container Registry repository.</p> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder repoRegionId(String repoRegionId) { this.putQueryParameter("RepoRegionId", repoRegionId); this.repoRegionId = repoRegionId; return this; } /** * <p>The assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } /** * <p>The IDs of the instances that you want to scan.</p> */ public Builder uuids(java.util.List<String> uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeImageSecurityScanCountRequest build() { return new DescribeImageSecurityScanCountRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSecurityScanCountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSecurityScanCountResponse} extends {@link TeaModel} * * <p>DescribeImageSecurityScanCountResponse</p> */ public class DescribeImageSecurityScanCountResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageSecurityScanCountResponseBody body; private DescribeImageSecurityScanCountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageSecurityScanCountResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageSecurityScanCountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageSecurityScanCountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageSecurityScanCountResponseBody body); @Override DescribeImageSecurityScanCountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageSecurityScanCountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageSecurityScanCountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageSecurityScanCountResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageSecurityScanCountResponseBody body) { this.body = body; return this; } @Override public DescribeImageSecurityScanCountResponse build() { return new DescribeImageSecurityScanCountResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSecurityScanCountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSecurityScanCountResponseBody} extends {@link TeaModel} * * <p>DescribeImageSecurityScanCountResponseBody</p> */ public class DescribeImageSecurityScanCountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeImageSecurityScanCountResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeImageSecurityScanCountResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private String requestId; private Builder() { } private Builder(DescribeImageSecurityScanCountResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The data returned.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C699E4E4-F2F4-58FC-A949-457FFE59****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeImageSecurityScanCountResponseBody build() { return new DescribeImageSecurityScanCountResponseBody(this); } } /** * * {@link DescribeImageSecurityScanCountResponseBody} extends {@link TeaModel} * * <p>DescribeImageSecurityScanCountResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageBaselineCount") private Integer imageBaselineCount; @com.aliyun.core.annotation.NameInMap("ImageCveVulCount") private Integer imageCveVulCount; @com.aliyun.core.annotation.NameInMap("ImageMaliciousFileCount") private Integer imageMaliciousFileCount; @com.aliyun.core.annotation.NameInMap("ImageScaVulCount") private Integer imageScaVulCount; private Data(Builder builder) { this.imageBaselineCount = builder.imageBaselineCount; this.imageCveVulCount = builder.imageCveVulCount; this.imageMaliciousFileCount = builder.imageMaliciousFileCount; this.imageScaVulCount = builder.imageScaVulCount; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return imageBaselineCount */ public Integer getImageBaselineCount() { return this.imageBaselineCount; } /** * @return imageCveVulCount */ public Integer getImageCveVulCount() { return this.imageCveVulCount; } /** * @return imageMaliciousFileCount */ public Integer getImageMaliciousFileCount() { return this.imageMaliciousFileCount; } /** * @return imageScaVulCount */ public Integer getImageScaVulCount() { return this.imageScaVulCount; } public static final class Builder { private Integer imageBaselineCount; private Integer imageCveVulCount; private Integer imageMaliciousFileCount; private Integer imageScaVulCount; private Builder() { } private Builder(Data model) { this.imageBaselineCount = model.imageBaselineCount; this.imageCveVulCount = model.imageCveVulCount; this.imageMaliciousFileCount = model.imageMaliciousFileCount; this.imageScaVulCount = model.imageScaVulCount; } /** * <p>The number of image baseline risks detected on the current asset.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder imageBaselineCount(Integer imageBaselineCount) { this.imageBaselineCount = imageBaselineCount; return this; } /** * <p>The number of image system vulnerabilities returned on the current page.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder imageCveVulCount(Integer imageCveVulCount) { this.imageCveVulCount = imageCveVulCount; return this; } /** * <p>The number of malicious image samples returned on the current page.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder imageMaliciousFileCount(Integer imageMaliciousFileCount) { this.imageMaliciousFileCount = imageMaliciousFileCount; return this; } /** * <p>The number of image application vulnerabilities returned on the current page.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder imageScaVulCount(Integer imageScaVulCount) { this.imageScaVulCount = imageScaVulCount; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileByKeyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileByKeyRequest} extends {@link RequestModel} * * <p>DescribeImageSensitiveFileByKeyRequest</p> */ public class DescribeImageSensitiveFileByKeyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SensitiveFileKey") private String sensitiveFileKey; private DescribeImageSensitiveFileByKeyRequest(Builder builder) { super(builder); this.currentPage = builder.currentPage; this.imageUuid = builder.imageUuid; this.lang = builder.lang; this.pageSize = builder.pageSize; this.scanRange = builder.scanRange; this.sensitiveFileKey = builder.sensitiveFileKey; } public static Builder builder() { return new Builder(); } public static DescribeImageSensitiveFileByKeyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return sensitiveFileKey */ public String getSensitiveFileKey() { return this.sensitiveFileKey; } public static final class Builder extends Request.Builder<DescribeImageSensitiveFileByKeyRequest, Builder> { private Integer currentPage; private String imageUuid; private String lang; private Integer pageSize; private java.util.List<String> scanRange; private String sensitiveFileKey; private Builder() { super(); } private Builder(DescribeImageSensitiveFileByKeyRequest request) { super(request); this.currentPage = request.currentPage; this.imageUuid = request.imageUuid; this.lang = request.lang; this.pageSize = request.pageSize; this.scanRange = request.scanRange; this.sensitiveFileKey = request.sensitiveFileKey; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The UUID of the image.</p> * * <strong>example:</strong> * <p>0083a31ccf7c10367a6e783e8601****</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The type of the asset that you want to scan. Valid values:</p> * <ul> * <li><strong>image</strong></li> * <li><strong>container</strong></li> * </ul> */ public Builder scanRange(java.util.List<String> scanRange) { String scanRangeShrink = shrink(scanRange, "ScanRange", "json"); this.putQueryParameter("ScanRange", scanRangeShrink); this.scanRange = scanRange; return this; } /** * <p>The type of alerts for the sensitive files. Valid values:</p> * <ul> * <li><strong>npm_token</strong>: Node Package Manager (NPM) access token</li> * <li><strong>ftp_cfg</strong>: FTP configuration</li> * <li><strong>google_oauth_key</strong>: Google OAuth key</li> * <li><strong>planetscale_passwd</strong>: PlanetScale password</li> * <li><strong>github_ssh_key</strong>: Github SSH key</li> * <li><strong>msbuild_publish_profile</strong>: MSBuild publish profile</li> * <li><strong>fastly_cdn_token</strong>: Fastly CDN token</li> * <li><strong>ssh_private_key</strong>: SSH private key</li> * <li><strong>aws_cli</strong>: Amazon Web Services (AWS) CLI credentials</li> * <li><strong>cpanel_proftpd</strong>: cPanel ProFTPD credentials</li> * <li><strong>postgresql_passwd</strong>: PostgreSQL password</li> * <li><strong>discord_client_cred</strong>: Discord client credentials</li> * <li><strong>rails_database</strong>: Rails database configuration</li> * <li><strong>aws_access_key</strong>: AWS Access Key</li> * <li><strong>esmtp_cfg</strong> :Extended Simple Mail Transfer Protocol (ESMTP) configuration</li> * <li><strong>docker_registry_cfg</strong>: Docker image repository configuration</li> * <li><strong>pem</strong>: Privacy-Enhanced Mail (PEM)</li> * <li><strong>common_cred</strong>: common credentials</li> * <li><strong>sftp_cfg</strong>: Secure File Transfer Protocol (SFTP) connection configuration</li> * <li><strong>grafana_token</strong>: Grafana token</li> * <li><strong>slack_token</strong>: Slack token</li> * <li><strong>ec_private_key</strong>: EC private key</li> * <li><strong>pypi_token</strong>: Python Package Index (PyPI) token</li> * <li><strong>finicity_token</strong>: Finicity token</li> * <li><strong>k8s_client_key</strong>: Kubernetes private key</li> * <li><strong>git_cfg</strong>: Git configuration</li> * <li><strong>django_key</strong>: Django key</li> * <li><strong>jenkins_ssh</strong>: Jenkins SSH configuration file</li> * <li><strong>openssh_private_key</strong>: OpenSSL private key</li> * <li><strong>square_oauth</strong>: OAuth credential for Square</li> * <li><strong>typeform_token</strong>: Typeform token</li> * <li><strong>common_database_cfg</strong>: general database connection configuration</li> * <li><strong>wordpress_database_cfg</strong>: WordPress database configuration</li> * <li><strong>googlecloud_api_key</strong>: API key for Google Cloud</li> * <li><strong>vscode_sftp</strong>: VSCode SFTP configuration</li> * <li><strong>apache_htpasswd</strong>: Apache htpasswd</li> * <li><strong>planetscale_token</strong>: PlanetScale token</li> * <li><strong>contentful_preview_token</strong>: preview token for Contentful</li> * <li><strong>php_database_cfg</strong>: database password for a PHP application</li> * <li><strong>atom_remote_sync</strong>: Atom remote synchronization configuration</li> * <li><strong>aws_session_token</strong>: AWS session token</li> * <li><strong>atom_sftp_cfg</strong>: Atom SFTP configuration</li> * <li><strong>asana_client_private_key</strong>: Asana client key</li> * <li><strong>tencentcloud_ak</strong>: secret ID of a third-party cloud</li> * <li><strong>rsa_private_key</strong>: Rivest-Shamir-Adleman (RSA) private key</li> * <li><strong>github_personal_token</strong>: personal access token for GitHub</li> * <li><strong>pgp</strong>: Pretty Good Privacy (PGP) encrypted file</li> * <li><strong>stripe_skpk</strong>: Stripe secret key</li> * <li><strong>square_token</strong>: Square access token</li> * <li><strong>rails_carrierwave</strong>: Rails Carrierwave credential</li> * <li><strong>dbeaver_database_cfg</strong>: DBeaver database configuration</li> * <li><strong>robomongo_cred</strong>: Robomongo credentials</li> * <li><strong>github_oauth_token</strong>: OAuth access token for GitHub</li> * <li><strong>pulumi_token</strong>: Pulumi token</li> * <li><strong>ventrilo_voip</strong>: Ventrilo VoIP server configuration</li> * <li><strong>macos_keychain</strong>: macOS Keychain</li> * <li><strong>amazon_mws_token</strong>: Amazon MWS token</li> * <li><strong>dynatrace_token</strong>: Dynatrace token</li> * <li><strong>java_keystore</strong>: Java KeyStore (JKS)</li> * <li><strong>microsoft_sdf</strong>: Microsoft SQL Server Compact Edition (CE) database</li> * <li><strong>kubernetes_dashboard_cred</strong>: user credentials for Kubernetes Dashboard</li> * <li><strong>atlassian_token</strong>: Atlassian token</li> * <li><strong>rdp</strong>: remote desktop protocol (RDP)</li> * <li><strong>mailgun_key</strong>: Mailgun webhook signing key</li> * <li><strong>mailchimp_api_key</strong>: API key for Mailchimp</li> * <li><strong>netrc_cfg</strong>: .netrc configuration file</li> * <li><strong>openvpn_cfg</strong>: OpenVPN configuration</li> * <li><strong>github_refresh_token</strong>: GitHub refresh token</li> * <li><strong>salesforce</strong>: Salesforce credentials</li> * <li><strong>salesforce</strong>: Sendinblue credentials</li> * <li><strong>pkcs_private_key</strong>: PKCS#12 key</li> * <li><strong>rubyonrails_passwd</strong>: Ruby on Rails password file</li> * <li><strong>filezilla_ftp</strong>: FileZilla FTP configuration</li> * <li><strong>databricks_token</strong>: Databricks token</li> * <li><strong>gitLab_personal_toke</strong>: personal access token for GitLab</li> * <li><strong>rails_master_key</strong>: Rails master key</li> * <li><strong>sqlite</strong>: SQLite3 or SQLite database</li> * <li><strong>firefox_logins</strong>: Firefox logon configuration</li> * <li><strong>mailgun_private_token</strong>: Mailgun private token</li> * <li><strong>joomla_cfg</strong>: Joomla configuration</li> * <li><strong>hashicorp_terraform_token</strong>: HashiCorp Terraform token</li> * <li><strong>jetbrains_ides</strong>: JetBrains IDEs configuration</li> * <li><strong>heroku_api_key</strong>: Heroku API key</li> * <li><strong>messagebird_token</strong>: MessageBird token</li> * <li><strong>messagebird_token</strong>: MessageBird token</li> * <li><strong>hashicorp_vault_token</strong>: HashiCorp Vault token</li> * <li><strong>pgp_private_key</strong>: PGP private key</li> * <li><strong>sshpasswd</strong>: SSH password</li> * <li><strong>huaweicloud_ak</strong>: secret access key of a third-party cloud</li> * <li><strong>aws_s3cmd</strong>: AWS S3cmd configuration</li> * <li><strong>php_config</strong>: PHP configuration</li> * <li><strong>common_private_key</strong>: private key of a common type</li> * <li><strong>microsoft_mdf</strong>: Microsoft SQL Server database</li> * <li><strong>mediawiki_cfg</strong>: MediaWiki configuration</li> * <li><strong>jenkins_cred</strong>: Jenkins credentials</li> * <li><strong>rubygems_cred</strong>: RubyGems credentials</li> * <li><strong>clojars_token</strong>: Clojars token</li> * <li><strong>phoenix_web_passwd</strong>: Phoenix web credentials</li> * <li><strong>puttygen_private_key</strong>: PuTTYgen private key</li> * <li><strong>google_oauth_token</strong>: Google OAuth access token</li> * <li><strong>rubyonrails_cfg</strong>: Ruby On Rails database configuration</li> * <li><strong>lob_api_key</strong>: Lob API key</li> * <li><strong>pkcs_cred</strong>: PKCS#12 certificate</li> * <li><strong>otr_private_key</strong>: Off-the-Record Messaging (OTR) private key</li> * <li><strong>contentful_delivery_token</strong>: delivery token for Contentful</li> * <li><strong>digital_ocean_tugboat</strong>: DigitalOcean Tugboat configuration</li> * <li><strong>dsa_private_key</strong>: Digital Signature Algorithm (DSA) private key</li> * <li><strong>rails_app_token</strong>: Rails app token</li> * <li><strong>git_cred</strong>: Git user credential</li> * <li><strong>newrelic_api_key</strong>: User API key for New Relic</li> * <li><strong>github_hub</strong>: hub configuration for storing GitHub tokens</li> * <li><strong>rubygem</strong>: Rubygem Token</li> * </ul> * * <strong>example:</strong> * <p>google_oauth_key</p> */ public Builder sensitiveFileKey(String sensitiveFileKey) { this.putQueryParameter("SensitiveFileKey", sensitiveFileKey); this.sensitiveFileKey = sensitiveFileKey; return this; } @Override public DescribeImageSensitiveFileByKeyRequest build() { return new DescribeImageSensitiveFileByKeyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileByKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileByKeyResponse} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileByKeyResponse</p> */ public class DescribeImageSensitiveFileByKeyResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageSensitiveFileByKeyResponseBody body; private DescribeImageSensitiveFileByKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageSensitiveFileByKeyResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageSensitiveFileByKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageSensitiveFileByKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageSensitiveFileByKeyResponseBody body); @Override DescribeImageSensitiveFileByKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageSensitiveFileByKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageSensitiveFileByKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageSensitiveFileByKeyResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageSensitiveFileByKeyResponseBody body) { this.body = body; return this; } @Override public DescribeImageSensitiveFileByKeyResponse build() { return new DescribeImageSensitiveFileByKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileByKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileByKeyResponseBody</p> */ public class DescribeImageSensitiveFileByKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SensitiveFileList") private java.util.List<SensitiveFileList> sensitiveFileList; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageSensitiveFileByKeyResponseBody(Builder builder) { this.code = builder.code; this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.sensitiveFileList = builder.sensitiveFileList; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageSensitiveFileByKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sensitiveFileList */ public java.util.List<SensitiveFileList> getSensitiveFileList() { return this.sensitiveFileList; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Integer httpStatusCode; private String message; private PageInfo pageInfo; private String requestId; private java.util.List<SensitiveFileList> sensitiveFileList; private Boolean success; private Builder() { } private Builder(DescribeImageSensitiveFileByKeyResponseBody model) { this.code = model.code; this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.sensitiveFileList = model.sensitiveFileList; this.success = model.success; } /** * <p>The status code returned. If the 200 status code is returned, the request was successful.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The HTTP status code returned.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>CE500770-42D3-442E-9DDD-156E0F9F3B45</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the sensitive files.</p> */ public Builder sensitiveFileList(java.util.List<SensitiveFileList> sensitiveFileList) { this.sensitiveFileList = sensitiveFileList; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong>: The request was successful.</li> * <li><strong>false</strong>: The request failed.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageSensitiveFileByKeyResponseBody build() { return new DescribeImageSensitiveFileByKeyResponseBody(this); } } /** * * {@link DescribeImageSensitiveFileByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileByKeyResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("LastRowKey") private String lastRowKey; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.lastRowKey = builder.lastRowKey; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lastRowKey */ public String getLastRowKey() { return this.lastRowKey; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private String lastRowKey; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.lastRowKey = model.lastRowKey; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The key of the last data entry.</p> * * <strong>example:</strong> * <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=</p> */ public Builder lastRowKey(String lastRowKey) { this.lastRowKey = lastRowKey; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageSensitiveFileByKeyResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileByKeyResponseBody</p> */ public static class SensitiveFileList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Advice") private String advice; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("FilePath") private String filePath; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("LayerDigest") private String layerDigest; @com.aliyun.core.annotation.NameInMap("Md5") private String md5; @com.aliyun.core.annotation.NameInMap("Promt") private String promt; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("SensitiveFileKey") private String sensitiveFileKey; @com.aliyun.core.annotation.NameInMap("SensitiveFileName") private String sensitiveFileName; private SensitiveFileList(Builder builder) { this.advice = builder.advice; this.description = builder.description; this.filePath = builder.filePath; this.firstScanTime = builder.firstScanTime; this.lastScanTime = builder.lastScanTime; this.layerDigest = builder.layerDigest; this.md5 = builder.md5; this.promt = builder.promt; this.riskLevel = builder.riskLevel; this.sensitiveFileKey = builder.sensitiveFileKey; this.sensitiveFileName = builder.sensitiveFileName; } public static Builder builder() { return new Builder(); } public static SensitiveFileList create() { return builder().build(); } /** * @return advice */ public String getAdvice() { return this.advice; } /** * @return description */ public String getDescription() { return this.description; } /** * @return filePath */ public String getFilePath() { return this.filePath; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return layerDigest */ public String getLayerDigest() { return this.layerDigest; } /** * @return md5 */ public String getMd5() { return this.md5; } /** * @return promt */ public String getPromt() { return this.promt; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return sensitiveFileKey */ public String getSensitiveFileKey() { return this.sensitiveFileKey; } /** * @return sensitiveFileName */ public String getSensitiveFileName() { return this.sensitiveFileName; } public static final class Builder { private String advice; private String description; private String filePath; private Long firstScanTime; private Long lastScanTime; private String layerDigest; private String md5; private String promt; private String riskLevel; private String sensitiveFileKey; private String sensitiveFileName; private Builder() { } private Builder(SensitiveFileList model) { this.advice = model.advice; this.description = model.description; this.filePath = model.filePath; this.firstScanTime = model.firstScanTime; this.lastScanTime = model.lastScanTime; this.layerDigest = model.layerDigest; this.md5 = model.md5; this.promt = model.promt; this.riskLevel = model.riskLevel; this.sensitiveFileKey = model.sensitiveFileKey; this.sensitiveFileName = model.sensitiveFileName; } /** * <p>The suggestion.</p> * * <strong>example:</strong> * <p>Assess risks based on business conditions, remove risky content, and rebuild image</p> */ public Builder advice(String advice) { this.advice = advice; return this; } /** * <p>The description of the sensitive file.</p> * * <strong>example:</strong> * <p>Verify the validity of the leaked AK.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The file path.</p> * * <strong>example:</strong> * <p>/usr/lib/abc.txt</p> */ public Builder filePath(String filePath) { this.filePath = filePath; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1663321552000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1663691592000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The digest of the image.</p> * * <strong>example:</strong> * <p>0083a31cc0083a31ccf7c10367a6e783e8601e290f7c10367a6e783e860****</p> */ public Builder layerDigest(String layerDigest) { this.layerDigest = layerDigest; return this; } /** * <p>The MD5 value of the sensitive file.</p> * * <strong>example:</strong> * <p>b484b0dff093f358897486b58266****</p> */ public Builder md5(String md5) { this.md5 = md5; return this; } /** * <p>The sensitive content.</p> * * <strong>example:</strong> * <p>AKPIDteow289f9s************</p> */ public Builder promt(String promt) { this.promt = promt; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>low</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * <p>The type of the alert for the sensitive file. Valid values:</p> * <ul> * <li><strong>npm_token</strong>: NPM access token</li> * <li><strong>ftp_cfg</strong>: FTP configuration</li> * <li><strong>google_oauth_key</strong>: Google OAuth key</li> * <li><strong>planetscale_passwd</strong>: PlanetScale password</li> * <li><strong>github_ssh_key</strong>: Github SSH key</li> * <li><strong>msbuild_publish_profile</strong>: MSBuild publish profile</li> * <li><strong>fastly_cdn_token</strong>: Fastly CDN token</li> * <li><strong>ssh_private_key</strong>: SSH private key</li> * <li><strong>aws_cli</strong>: Amazon Web Services (AWS) CLI credential</li> * <li><strong>cpanel_proftpd</strong>: cPanel ProFTPD credential</li> * <li><strong>postgresql_passwd</strong>: PostgreSQL password file</li> * <li><strong>discord_client_cred</strong>: Discord client credential</li> * <li><strong>rails_database</strong>: Rails database configuration</li> * <li><strong>aws_access_key</strong>: AWS Access Key</li> * <li><strong>esmtp_cfg</strong>: Extended Simple Mail Transfer Protocol (ESMTP) configuration</li> * <li><strong>docker_registry_cfg</strong>: configuration of a Docker image repository</li> * <li><strong>pem</strong>: Privacy-Enhanced Mail (PEM)</li> * <li><strong>common_cred</strong>: common credential</li> * <li><strong>sftp_cfg</strong>: configuration of connection over Secure File Transfer Protocol (SFTP)</li> * <li><strong>grafana_token</strong>: Grafana token</li> * <li><strong>slack_token</strong>: Slack token</li> * <li><strong>ec_private_key</strong>: Elliptic Curve (EC) private key</li> * <li><strong>pypi_token</strong>: Python Package Index (PyPI) token</li> * <li><strong>finicity_token</strong>: Finicity token</li> * <li><strong>k8s_client_key</strong>: private key for the Kubernetes client</li> * <li><strong>git_cfg</strong>: Git configuration</li> * <li><strong>django_key</strong>: Django key</li> * <li><strong>jenkins_ssh</strong>: SSH configuration file for Jenkins</li> * <li><strong>openssh_private_key</strong>: OpenSSH private key</li> * <li><strong>square_oauth</strong>: Square OAuth credential</li> * <li><strong>typeform_token</strong>: Typeform token</li> * <li><strong>common_database_cfg</strong>: configuration of general database connection</li> * <li><strong>wordpress_database_cfg</strong>: WordPress database configuration</li> * <li><strong>googlecloud_api_key</strong>: API key for Google Cloud</li> * <li><strong>vscode_sftp</strong>: VSCode SFTP configuration</li> * <li><strong>apache_htpasswd</strong>: Apache htpasswd</li> * <li><strong>planetscale_token</strong>: PlanetScale token</li> * <li><strong>contentful_preview_token</strong>: preview token for Contentful</li> * <li><strong>php_database_cfg</strong>: database password for a PHP application</li> * <li><strong>atom_remote_sync</strong>: Atom remote synchronization configuration</li> * <li><strong>aws_session_token</strong>: AWS session token</li> * <li><strong>atom_sftp_cfg</strong>: Atom SFTP configuration</li> * <li><strong>asana_client_private_key</strong>: Asana client key</li> * <li><strong>tencentcloud_ak</strong>: secret ID of a third-party cloud</li> * <li><strong>rsa_private_key</strong>: Rivest-Shamir-Adleman (RSA) private key</li> * <li><strong>github_personal_token</strong>: personal access token for GitHub</li> * <li><strong>pgp</strong>: Pretty Good Privacy (PGP) encrypted file</li> * <li><strong>stripe_skpk</strong>: Stripe secret key</li> * <li><strong>square_token</strong>: Square access token</li> * <li><strong>rails_carrierwave</strong>: Rails Carrierwave credential</li> * <li><strong>dbeaver_database_cfg</strong>: DBeaver database configuration</li> * <li><strong>robomongo_cred</strong>: RoboMongo credential</li> * <li><strong>github_oauth_token</strong>: OAuth access token for GitHub</li> * <li><strong>pulumi_token</strong>: Pulumi token</li> * <li><strong>ventrilo_voip</strong>: configuration of a Ventrilo VoIP server</li> * <li><strong>macos_keychain</strong>: macOS Keychain</li> * <li><strong>amazon_mws_token</strong>: Amazon MWS token</li> * <li><strong>dynatrace_token</strong>: Dynatrace token</li> * <li><strong>java_keystore</strong>: Java KeyStore (JKS)</li> * <li><strong>microsoft_sdf</strong>: Microsoft SQL Server Compact Edition (CE) database</li> * <li><strong>kubernetes_dashboard_cred</strong>: user credential for Kubernetes Dashboard</li> * <li><strong>atlassian_token</strong>: Atlassian token</li> * <li><strong>rdp</strong>: remote desktop protocol (RDP)</li> * <li><strong>mailgun_key</strong>: Mailgun webhook signing key</li> * <li><strong>mailchimp_api_key</strong>: API key for Mailchimp</li> * <li><strong>netrc_cfg</strong>: netrc configuration file</li> * <li><strong>openvpn_cfg</strong>: configuration of the OpenVPN client</li> * <li><strong>github_refresh_token</strong>: GitHub refresh token</li> * <li><strong>salesforce</strong>: Salesforce credential</li> * <li><strong>salesforce</strong>: Sendinblue token</li> * <li><strong>pkcs_private_key</strong>: PKCS#12 private key</li> * <li><strong>rubyonrails_passwd</strong>: Ruby on Rails password file</li> * <li><strong>filezilla_ftp</strong>: FileZilla FTP configuration</li> * <li><strong>databricks_token</strong>: Databricks token</li> * <li><strong>gitLab_personal_toke</strong>: personal access token for GitLab</li> * <li><strong>rails_master_key</strong>: Rails master key</li> * <li><strong>sqlite</strong>: SQLite3 or SQLite database</li> * <li><strong>firefox_logins</strong>: Firefox logon configuration</li> * <li><strong>mailgun_private_token</strong>: Mailgun private token</li> * <li><strong>joomla_cfg</strong>: Joomla configuration</li> * <li><strong>hashicorp_terraform_token</strong>: HashiCorp Terraform token</li> * <li><strong>jetbrains_ides</strong>: JetBrains IDEs configuration</li> * <li><strong>heroku_api_key</strong>: API key for Heroku</li> * <li><strong>messagebird_token</strong>: MessageBird token</li> * <li><strong>github_app_token</strong>: Github app token</li> * <li><strong>hashicorp_vault_token</strong>: HashiCorp Vault token</li> * <li><strong>pgp_private_key</strong>: PGP private key</li> * <li><strong>sshpasswd</strong>: SSH password</li> * <li><strong>huaweicloud_ak</strong>: secret access key of a third-party cloud</li> * <li><strong>aws_s3cmd</strong>: AWS S3cmd configuration</li> * <li><strong>php_config</strong>: PHP configuration</li> * <li><strong>common_private_key</strong>: common private key</li> * <li><strong>microsoft_mdf</strong>: Microsoft SQL Server database</li> * <li><strong>mediawiki_cfg</strong>: MediaWiki configuration</li> * <li><strong>jenkins_cred</strong>: Jenkins credential</li> * <li><strong>rubygems_cred</strong>: RubyGems credential</li> * <li><strong>clojars_token</strong>: Clojars token</li> * <li><strong>phoenix_web_passwd</strong>: Phoenix web credential</li> * <li><strong>puttygen_private_key</strong>: PuTTYgen private key</li> * <li><strong>google_oauth_token</strong>: Google OAuth access token</li> * <li><strong>rubyonrails_cfg</strong>: Ruby On Rails database configuration</li> * <li><strong>lob_api_key</strong>: Lob API key for Lob</li> * <li><strong>pkcs_cred</strong>: PKCS#12 certificate</li> * <li><strong>otr_private_key</strong>: Off-the-Record Messaging (OTR) private key</li> * <li><strong>contentful_delivery_token</strong>: Contentful delivery token</li> * <li><strong>digital_ocean_tugboat</strong>: DigitalOcean Tugboat configuration</li> * <li><strong>dsa_private_key</strong>: Digital Signature Algorithm (DSA) private key</li> * <li><strong>rails_app_token</strong>: app token for Rails</li> * <li><strong>git_cred</strong>: Git user credential</li> * <li><strong>newrelic_api_key</strong>: User API key for New Relic</li> * <li><strong>github_hub</strong>: hub configuration for storing GitHub tokens</li> * <li><strong>rubygem</strong>: Rubygem Token</li> * </ul> * * <strong>example:</strong> * <p>google_oauth_key</p> */ public Builder sensitiveFileKey(String sensitiveFileKey) { this.sensitiveFileKey = sensitiveFileKey; return this; } /** * <p>The name of the alert type for the sensitive file.</p> * * <strong>example:</strong> * <p>Google OAuth Key</p> */ public Builder sensitiveFileName(String sensitiveFileName) { this.sensitiveFileName = sensitiveFileName; return this; } public SensitiveFileList build() { return new SensitiveFileList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileListRequest} extends {@link RequestModel} * * <p>DescribeImageSensitiveFileListRequest</p> */ public class DescribeImageSensitiveFileListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Criteria") private String criteria; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CriteriaType") private String criteriaType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageUuid") private String imageUuid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; private DescribeImageSensitiveFileListRequest(Builder builder) { super(builder); this.criteria = builder.criteria; this.criteriaType = builder.criteriaType; this.currentPage = builder.currentPage; this.imageUuid = builder.imageUuid; this.lang = builder.lang; this.pageSize = builder.pageSize; this.riskLevel = builder.riskLevel; this.scanRange = builder.scanRange; } public static Builder builder() { return new Builder(); } public static DescribeImageSensitiveFileListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return criteria */ public String getCriteria() { return this.criteria; } /** * @return criteriaType */ public String getCriteriaType() { return this.criteriaType; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return imageUuid */ public String getImageUuid() { return this.imageUuid; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } public static final class Builder extends Request.Builder<DescribeImageSensitiveFileListRequest, Builder> { private String criteria; private String criteriaType; private Integer currentPage; private String imageUuid; private String lang; private Integer pageSize; private String riskLevel; private java.util.List<String> scanRange; private Builder() { super(); } private Builder(DescribeImageSensitiveFileListRequest request) { super(request); this.criteria = request.criteria; this.criteriaType = request.criteriaType; this.currentPage = request.currentPage; this.imageUuid = request.imageUuid; this.lang = request.lang; this.pageSize = request.pageSize; this.riskLevel = request.riskLevel; this.scanRange = request.scanRange; } /** * <p>The value of the sensitive file type.</p> * * <strong>example:</strong> * <p>Rails Master Key</p> */ public Builder criteria(String criteria) { this.putQueryParameter("Criteria", criteria); this.criteria = criteria; return this; } /** * <p>The type of the sensitive files that you want to query. Valid values:</p> * <ul> * <li><p><strong>SensitiveFileKey</strong>: the type of alerts for sensitive files. Valid values:</p> * <ul> * <li><strong>npm_token</strong>: Node Package Manager (NPM) access token</li> * <li><strong>ftp_cfg</strong>: FTP configuration</li> * <li><strong>google_oauth_key</strong>: Google OAuth key</li> * <li><strong>planetscale_passwd</strong>: PlanetScale password</li> * <li><strong>github_ssh_key</strong>: Github SSH key</li> * <li><strong>msbuild_publish_profile</strong>: MSBuild publish profile</li> * <li><strong>fastly_cdn_token</strong>: Fastly CDN token</li> * <li><strong>ssh_private_key</strong>: SSH private key</li> * <li><strong>aws_cli</strong>: Amazon Web Services (AWS) CLI credentials</li> * <li><strong>cpanel_proftpd</strong>: cPanel ProFTPD credentials</li> * <li><strong>postgresql_passwd</strong>: PostgreSQL password</li> * <li><strong>discord_client_cred</strong>: Discord client credentials</li> * <li><strong>rails_database</strong>: Rails database configuration</li> * <li><strong>aws_access_key</strong>: AWS access key</li> * <li><strong>esmtp_cfg</strong>: Extended Simple Mail Transfer Protocol (ESMTP) configuration</li> * <li><strong>docker_registry_cfg</strong>: Docker image repository configuration</li> * <li><strong>pem</strong>: Privacy-Enhanced Mail (PEM)</li> * <li><strong>common_cred</strong>: common credentials</li> * <li><strong>sftp_cfg</strong>: Secure File Transfer Protocol (SFTP) connection configuration</li> * <li><strong>grafana_token</strong>: Grafana token</li> * <li><strong>slack_token</strong>: Slack token</li> * <li><strong>ec_private_key</strong>: EC private key</li> * <li><strong>pypi_token</strong>: upload token for the Python Package Index (PyPI)</li> * <li><strong>finicity_token</strong>: Finicity token</li> * <li><strong>k8s_client_key</strong>: Kubernetes private key</li> * <li><strong>git_cfg</strong>: Git configuration</li> * <li><strong>django_key</strong>: Django key</li> * <li><strong>jenkins_ssh</strong>: Jenkins SSH configuration file</li> * <li><strong>openssh_private_key</strong>: OpenSSL private key</li> * <li><strong>square_oauth</strong>: OAuth credential for Square</li> * <li><strong>typeform_token</strong>: Typeform token</li> * <li><strong>common_database_cfg</strong>: general database connection configuration</li> * <li><strong>wordpress_database_cfg</strong>: WordPress database configuration</li> * <li><strong>googlecloud_api_key</strong>: API key for Google Cloud</li> * <li><strong>vscode_sftp</strong>: VSCode SFTP configuration</li> * <li><strong>apache_htpasswd</strong>: Apache htpasswd</li> * <li><strong>planetscale_token</strong>: PlanetScale token</li> * <li><strong>contentful_preview_token</strong>: preview token for Contentful</li> * <li><strong>php_database_cfg</strong>: database password for a PHP application</li> * <li><strong>atom_remote_sync</strong>: Atom remote synchronization configuration</li> * <li><strong>aws_session_token</strong>: AWS session token</li> * <li><strong>atom_sftp_cfg</strong>: Atom SFTP configuration</li> * <li><strong>asana_client_private_key</strong>: Asana client key</li> * <li><strong>tencentcloud_ak</strong>: secret ID of a third-party cloud</li> * <li><strong>rsa_private_key</strong>: Rivest-Shamir-Adleman (RSA) private key</li> * <li><strong>github_personal_token</strong>: personal access token for GitHub</li> * <li><strong>pgp</strong>: Pretty Good Privacy (PGP) encrypted file</li> * <li><strong>stripe_skpk</strong>: Stripe secret key</li> * <li><strong>square_token</strong>: Square access token</li> * <li><strong>rails_carrierwave</strong>: file upload credentials for Rails Carrierwave</li> * <li><strong>dbeaver_database_cfg</strong>: DBeaver database configuration</li> * <li><strong>robomongo_cred</strong>: Robomongo credentials</li> * <li><strong>github_oauth_token</strong>: OAuth access token for GitHub</li> * <li><strong>pulumi_token</strong>: Pulumi token</li> * <li><strong>ventrilo_voip</strong>: Ventrilo VoIP server configuration</li> * <li><strong>macos_keychain</strong> :macOS keychain</li> * <li><strong>amazon_mws_token</strong>: Amazon MWS token</li> * <li><strong>dynatrace_token</strong>: Dynatrace token</li> * <li><strong>java_keystore</strong>: Java KeyStore (JKS)</li> * <li><strong>microsoft_sdf</strong>: Microsoft SQL Server Compact Edition (CE) database</li> * <li><strong>kubernetes_dashboard_cred</strong>: user credentials for Kubernetes Dashboard</li> * <li><strong>atlassian_token</strong>: Atlassian token</li> * <li><strong>rdp</strong>: remote desktop protocol (RDP)</li> * <li><strong>mailgun_key</strong>: Mailgun webhook signing key</li> * <li><strong>mailchimp_api_key</strong>: API key for Mailchimp</li> * <li><strong>netrc_cfg</strong>: .netrc configuration file</li> * <li><strong>openvpn_cfg</strong>: OpenVPN configuration</li> * <li><strong>github_refresh_token</strong>: GitHub refresh token</li> * <li><strong>salesforce</strong>: Salesforce credentials</li> * <li><strong>salesforce</strong>: Sendinblue credentials</li> * <li><strong>pkcs_private_key</strong>: PKCS#12 key</li> * <li><strong>rubyonrails_passwd</strong>: Ruby on Rails password file</li> * <li><strong>filezilla_ftp</strong>: FileZilla FTP configuration</li> * <li><strong>databricks_token</strong>: Databricks token</li> * <li><strong>gitLab_personal_toke</strong>: personal access token for GitLab</li> * <li><strong>rails_master_key</strong>: Rails master key</li> * <li><strong>sqlite</strong>: SQLite3 or SQLite database</li> * <li><strong>firefox_logins</strong>: Firefox logon configuration</li> * <li><strong>mailgun_private_token</strong>: Mailgun private token</li> * <li><strong>joomla_cfg</strong>: Joomla configuration</li> * <li><strong>hashicorp_terraform_token</strong>: HashiCorp Terraform token</li> * <li><strong>jetbrains_ides</strong>: JetBrains IDEs configuration</li> * <li><strong>heroku_api_key</strong>: Heroku API key</li> * <li><strong>messagebird_token</strong>: MessageBird token</li> * <li><strong>messagebird_token</strong>: MessageBird token</li> * <li><strong>hashicorp_vault_token</strong>: HashiCorp Vault token</li> * <li><strong>pgp_private_key</strong>: PGP private key</li> * <li><strong>sshpasswd</strong>: SSH password</li> * <li><strong>huaweicloud_ak</strong>: secret access key of a third-party cloud</li> * <li><strong>aws_s3cmd</strong>: AWS S3cmd configuration</li> * <li><strong>php_config</strong>: PHP configuration</li> * <li><strong>common_private_key</strong>: private key of a common type</li> * <li><strong>microsoft_mdf</strong>: Microsoft SQL Server database</li> * <li><strong>mediawiki_cfg</strong>: MediaWiki configuration</li> * <li><strong>jenkins_cred</strong>: Jenkins credentials</li> * <li><strong>rubygems_cred</strong>: RubyGems credentials</li> * <li><strong>clojars_token</strong>: Clojars token</li> * <li><strong>phoenix_web_passwd</strong>: Phoenix web credentials</li> * <li><strong>puttygen_private_key</strong>: PuTTYgen private key</li> * <li><strong>google_oauth_token</strong>: Google OAuth access token</li> * <li><strong>rubyonrails_cfg</strong>: Ruby On Rails database configuration</li> * <li><strong>lob_api_key</strong>: Lob API key</li> * <li><strong>pkcs_cred</strong>: PKCS#12 certificate</li> * <li><strong>otr_private_key</strong>: Off-the-Record Messaging (OTR) private key</li> * <li><strong>contentful_delivery_token</strong>: delivery token for Contentful</li> * <li><strong>digital_ocean_tugboat</strong>: DigitalOcean Tugboat configuration</li> * <li><strong>dsa_private_key</strong>: Digital Signature Algorithm (DSA) private key</li> * <li><strong>rails_app_token</strong>: Rails app token</li> * <li><strong>git_cred</strong>: Git user credential</li> * <li><strong>newrelic_api_key</strong>: User API key for New Relic</li> * <li><strong>github_hub</strong>: hub configuration for storing GitHub tokens</li> * <li><strong>rubygem</strong>: RubyGem token</li> * </ul> * </li> * <li><p><strong>SensitiveFileName</strong>: the name of the alert type for sensitive files.</p> * </li> * </ul> * * <strong>example:</strong> * <p>SensitiveFileKey</p> */ public Builder criteriaType(String criteriaType) { this.putQueryParameter("CriteriaType", criteriaType); this.criteriaType = criteriaType; return this; } /** * <p>The number of the page to return. Pages start from page <strong>1</strong>. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The UUID of the image.</p> * <blockquote> * <p> You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation of Container Registry to query the image UUID from the value of the <strong>ImageUuid</strong> response parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>850613a48999900f48417c7e6e9dcfdd</p> */ public Builder imageUuid(String imageUuid) { this.putQueryParameter("ImageUuid", imageUuid); this.imageUuid = imageUuid; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries to return on each page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>low</p> */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * <p>An array that consists of the types of the assets that you want to scan. Valid values:</p> * <ul> * <li><strong>image</strong></li> * <li><strong>container</strong></li> * </ul> */ public Builder scanRange(java.util.List<String> scanRange) { String scanRangeShrink = shrink(scanRange, "ScanRange", "json"); this.putQueryParameter("ScanRange", scanRangeShrink); this.scanRange = scanRange; return this; } @Override public DescribeImageSensitiveFileListRequest build() { return new DescribeImageSensitiveFileListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileListResponse} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileListResponse</p> */ public class DescribeImageSensitiveFileListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageSensitiveFileListResponseBody body; private DescribeImageSensitiveFileListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageSensitiveFileListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageSensitiveFileListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageSensitiveFileListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageSensitiveFileListResponseBody body); @Override DescribeImageSensitiveFileListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageSensitiveFileListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageSensitiveFileListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageSensitiveFileListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageSensitiveFileListResponseBody body) { this.body = body; return this; } @Override public DescribeImageSensitiveFileListResponse build() { return new DescribeImageSensitiveFileListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageSensitiveFileListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageSensitiveFileListResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileListResponseBody</p> */ public class DescribeImageSensitiveFileListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SensitiveFileList") private java.util.List<SensitiveFileList> sensitiveFileList; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private DescribeImageSensitiveFileListResponseBody(Builder builder) { this.code = builder.code; this.httpStatusCode = builder.httpStatusCode; this.message = builder.message; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.sensitiveFileList = builder.sensitiveFileList; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static DescribeImageSensitiveFileListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return message */ public String getMessage() { return this.message; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sensitiveFileList */ public java.util.List<SensitiveFileList> getSensitiveFileList() { return this.sensitiveFileList; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Integer httpStatusCode; private String message; private PageInfo pageInfo; private String requestId; private java.util.List<SensitiveFileList> sensitiveFileList; private Boolean success; private Builder() { } private Builder(DescribeImageSensitiveFileListResponseBody model) { this.code = model.code; this.httpStatusCode = model.httpStatusCode; this.message = model.message; this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.sensitiveFileList = model.sensitiveFileList; this.success = model.success; } /** * <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>8D19A089-E6BC-5244-800C-7E590D50487F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>An array that consists of the information about the sensitive files.</p> */ public Builder sensitiveFileList(java.util.List<SensitiveFileList> sensitiveFileList) { this.sensitiveFileList = sensitiveFileList; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong>: The request was successful.</li> * <li><strong>false</strong>: The request failed.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public DescribeImageSensitiveFileListResponseBody build() { return new DescribeImageSensitiveFileListResponseBody(this); } } /** * * {@link DescribeImageSensitiveFileListResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("LastRowKey") private String lastRowKey; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.lastRowKey = builder.lastRowKey; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lastRowKey */ public String getLastRowKey() { return this.lastRowKey; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private String lastRowKey; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.lastRowKey = model.lastRowKey; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The key of the last data entry.</p> * * <strong>example:</strong> * <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=</p> */ public Builder lastRowKey(String lastRowKey) { this.lastRowKey = lastRowKey; return this; } /** * <p>The number of entries returned per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>149</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } /** * * {@link DescribeImageSensitiveFileListResponseBody} extends {@link TeaModel} * * <p>DescribeImageSensitiveFileListResponseBody</p> */ public static class SensitiveFileList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Advice") private String advice; @com.aliyun.core.annotation.NameInMap("ClassKey") private String classKey; @com.aliyun.core.annotation.NameInMap("ClassName") private String className; @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("FirstScanTime") private Long firstScanTime; @com.aliyun.core.annotation.NameInMap("LastScanTime") private Long lastScanTime; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("SensitiveFileKey") private String sensitiveFileKey; @com.aliyun.core.annotation.NameInMap("SensitiveFileName") private String sensitiveFileName; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("UnprocessedNum") private Integer unprocessedNum; private SensitiveFileList(Builder builder) { this.advice = builder.advice; this.classKey = builder.classKey; this.className = builder.className; this.count = builder.count; this.description = builder.description; this.firstScanTime = builder.firstScanTime; this.lastScanTime = builder.lastScanTime; this.riskLevel = builder.riskLevel; this.sensitiveFileKey = builder.sensitiveFileKey; this.sensitiveFileName = builder.sensitiveFileName; this.status = builder.status; this.unprocessedNum = builder.unprocessedNum; } public static Builder builder() { return new Builder(); } public static SensitiveFileList create() { return builder().build(); } /** * @return advice */ public String getAdvice() { return this.advice; } /** * @return classKey */ public String getClassKey() { return this.classKey; } /** * @return className */ public String getClassName() { return this.className; } /** * @return count */ public Integer getCount() { return this.count; } /** * @return description */ public String getDescription() { return this.description; } /** * @return firstScanTime */ public Long getFirstScanTime() { return this.firstScanTime; } /** * @return lastScanTime */ public Long getLastScanTime() { return this.lastScanTime; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return sensitiveFileKey */ public String getSensitiveFileKey() { return this.sensitiveFileKey; } /** * @return sensitiveFileName */ public String getSensitiveFileName() { return this.sensitiveFileName; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return unprocessedNum */ public Integer getUnprocessedNum() { return this.unprocessedNum; } public static final class Builder { private String advice; private String classKey; private String className; private Integer count; private String description; private Long firstScanTime; private Long lastScanTime; private String riskLevel; private String sensitiveFileKey; private String sensitiveFileName; private Integer status; private Integer unprocessedNum; private Builder() { } private Builder(SensitiveFileList model) { this.advice = model.advice; this.classKey = model.classKey; this.className = model.className; this.count = model.count; this.description = model.description; this.firstScanTime = model.firstScanTime; this.lastScanTime = model.lastScanTime; this.riskLevel = model.riskLevel; this.sensitiveFileKey = model.sensitiveFileKey; this.sensitiveFileName = model.sensitiveFileName; this.status = model.status; this.unprocessedNum = model.unprocessedNum; } /** * <p>The suggestion.</p> * * <strong>example:</strong> * <p>Assess risks based on business conditions, remove risky content.</p> */ public Builder advice(String advice) { this.advice = advice; return this; } /** * <p>The key of the sensitive file type.</p> * * <strong>example:</strong> * <p>password</p> */ public Builder classKey(String classKey) { this.classKey = classKey; return this; } /** * <p>The name of the sensitive file type.</p> * * <strong>example:</strong> * <p>password</p> */ public Builder className(String className) { this.className = className; return this; } /** * <p>The number of scans that are performed on the sensitive file.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The description of the sensitive file.</p> * * <strong>example:</strong> * <p>Verify the validity of the leaked AK.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The timestamp generated when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1663321552000</p> */ public Builder firstScanTime(Long firstScanTime) { this.firstScanTime = firstScanTime; return this; } /** * <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1663321552000</p> */ public Builder lastScanTime(Long lastScanTime) { this.lastScanTime = lastScanTime; return this; } /** * <p>The risk level. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * <p>The type of the alert for the sensitive file. Valid values:</p> * <ul> * <li><strong>npm_token</strong>: Node Package Manager (NPM) access token.</li> * <li><strong>ftp_cfg</strong>: FTP configuration.</li> * <li><strong>google_oauth_key</strong>: Google OAuth key.</li> * <li><strong>planetscale_passwd</strong>: PlanetScale password.</li> * <li><strong>github_ssh_key</strong>: GitHub SSH key.</li> * <li><strong>msbuild_publish_profile</strong>: MSBuild publish profile.</li> * <li><strong>fastly_cdn_token</strong>: Fastly CDN token.</li> * <li><strong>ssh_private_key</strong>: SSH private key.</li> * <li><strong>aws_cli</strong>: Amazon Web Services (AWS) CLI credential.</li> * <li><strong>cpanel_proftpd</strong>: cPanel ProFTPD credential.</li> * <li><strong>postgresql_passwd</strong>: PostgreSQL password file.</li> * <li><strong>discord_client_cred</strong>: Discord client credential.</li> * <li><strong>rails_database</strong>: Rails database configuration.</li> * <li><strong>aws_access_key</strong>: AWS access key.</li> * <li><strong>esmtp_cfg</strong>: Extended Simple Mail Transfer Protocol (ESMTP) configuration.</li> * <li><strong>docker_registry_cfg</strong>: Docker image repository configuration.</li> * <li><strong>pem</strong>: Privacy-Enhanced Mail (PEM).</li> * <li><strong>common_cred</strong>: common credential.</li> * <li><strong>sftp_cfg</strong>: Secure File Transfer Protocol (SFTP) connection configuration.</li> * <li><strong>grafana_token</strong>: Grafana token.</li> * <li><strong>slack_token</strong>: Slack token.</li> * <li><strong>ec_private_key</strong>: EC private key.</li> * <li><strong>pypi_token</strong>: upload token for the Python Package Index (PyPI).</li> * <li><strong>finicity_token</strong>: Finicity token.</li> * <li><strong>k8s_client_key</strong>: Kubernetes client private key.</li> * <li><strong>git_cfg</strong>: Git configuration.</li> * <li><strong>django_key</strong>: Django key.</li> * <li><strong>jenkins_ssh</strong>: Jenkins SSH configuration file.</li> * <li><strong>openssh_private_key</strong>: OpenSSH private key.</li> * <li><strong>square_oauth</strong>: OAuth credential for Square.</li> * <li><strong>typeform_token</strong>: Typeform token.</li> * <li><strong>common_database_cfg</strong>: general database connection configuration.</li> * <li><strong>wordpress_database_cfg</strong>: WordPress database configuration.</li> * <li><strong>googlecloud_api_key</strong>: API key for Google Cloud.</li> * <li><strong>vscode_sftp</strong>: VS Code SFTP configuration.</li> * <li><strong>apache_htpasswd</strong>: Apache htpasswd.</li> * <li><strong>planetscale_token</strong>: PlanetScale token.</li> * <li><strong>contentful_preview_token</strong>: preview token for Contentful.</li> * <li><strong>php_database_cfg</strong>: database password for a PHP application.</li> * <li><strong>atom_remote_sync</strong>: Atom remote synchronization configuration.</li> * <li><strong>aws_session_token</strong>: AWS session token.</li> * <li><strong>atom_sftp_cfg</strong>: Atom SFTP configuration.</li> * <li><strong>asana_client_private_key</strong>: Asana client key.</li> * <li><strong>tencentcloud_ak</strong>: secret ID of a third-party cloud.</li> * <li><strong>rsa_private_key</strong>: Rivest-Shamir-Adleman (RSA) private key.</li> * <li><strong>github_personal_token</strong>: personal access token for GitHub.</li> * <li><strong>pgp</strong>: Pretty Good Privacy (PGP) encrypted file.</li> * <li><strong>stripe_skpk</strong>: Stripe secret key.</li> * <li><strong>square_token</strong>: Square access token.</li> * <li><strong>rails_carrierwave</strong>: file upload credential for Rails Carrierwave.</li> * <li><strong>dbeaver_database_cfg</strong>: DBeaver database configuration.</li> * <li><strong>robomongo_cred</strong>: Robomongo credential.</li> * <li><strong>github_oauth_token</strong>: OAuth access token for GitHub.</li> * <li><strong>pulumi_token</strong>: Pulumi token.</li> * <li><strong>ventrilo_voip</strong>: Ventrilo VoIP server configuration.</li> * <li><strong>macos_keychain</strong>: macOS keychain.</li> * <li><strong>amazon_mws_token</strong>: Amazon MWS token.</li> * <li><strong>dynatrace_token</strong>: Dynatrace token.</li> * <li><strong>java_keystore</strong>: Java KeyStore (JKS).</li> * <li><strong>microsoft_sdf</strong>: Microsoft SQL Server Compact Edition (CE) database.</li> * <li><strong>kubernetes_dashboard_cred</strong>: user credential for Kubernetes Dashboard.</li> * <li><strong>atlassian_token</strong>: Atlassian token.</li> * <li><strong>rdp</strong>: remote desktop protocol (RDP).</li> * <li><strong>mailgun_key</strong>: Mailgun webhook signing key.</li> * <li><strong>mailchimp_api_key</strong>: API key for Mailchimp.</li> * <li><strong>netrc_cfg</strong>: .netrc configuration file.</li> * <li><strong>openvpn_cfg</strong>: OpenVPN client configuration.</li> * <li><strong>github_refresh_token</strong>: GitHub refresh token.</li> * <li><strong>salesforce</strong>: Salesforce credential.</li> * <li><strong>sendinblue</strong>: Sendinblue token.</li> * <li><strong>pkcs_private_key</strong>: PKCS#12 key.</li> * <li><strong>rubyonrails_passwd</strong>: Ruby on Rails password file.</li> * <li><strong>filezilla_ftp</strong>: FileZilla FTP configuration.</li> * <li><strong>databricks_token</strong>: Databricks token.</li> * <li><strong>gitLab_personal_token</strong>: personal access token for GitLab.</li> * <li><strong>rails_master_key</strong>: Rails master key.</li> * <li><strong>sqlite</strong>: SQLite3 or SQLite database.</li> * <li><strong>firefox_logins</strong>: Firefox logon configuration.</li> * <li><strong>mailgun_private_token</strong>: Mailgun private token.</li> * <li><strong>joomla_cfg</strong>: Joomla configuration.</li> * <li><strong>hashicorp_terraform_token</strong>: HashiCorp Terraform token.</li> * <li><strong>jetbrains_ides</strong>: JetBrains IDEs configuration.</li> * <li><strong>heroku_api_key</strong>: Heroku API key.</li> * <li><strong>messagebird_token</strong>: MessageBird token.</li> * <li><strong>github_app_token</strong>: GitHub app token.</li> * <li><strong>hashicorp_vault_token</strong>: HashiCorp Vault token.</li> * <li><strong>pgp_private_key</strong>: PGP private key.</li> * <li><strong>sshpasswd</strong>: SSH password.</li> * <li><strong>huaweicloud_ak</strong>: secret access key of a third-party cloud.</li> * <li><strong>aws_s3cmd</strong>: AWS S3cmd configuration.</li> * <li><strong>php_config</strong>: PHP configuration.</li> * <li><strong>common_private_key</strong>: private key of a common type.</li> * <li><strong>microsoft_mdf</strong>: Microsoft SQL Server database.</li> * <li><strong>mediawiki_cfg</strong>: MediaWiki configuration.</li> * <li><strong>jenkins_cred</strong>: Jenkins credential.</li> * <li><strong>rubygems_cred</strong>: RubyGems credential.</li> * <li><strong>clojars_token</strong>: Clojars token.</li> * <li><strong>phoenix_web_passwd</strong>: Phoenix web credential.</li> * <li><strong>puttygen_private_key</strong>: PuTTYgen private key.</li> * <li><strong>google_oauth_token</strong>: Google OAuth access token.</li> * <li><strong>rubyonrails_cfg</strong>: Ruby on Rails database configuration.</li> * <li><strong>lob_api_key</strong>: Lob API key.</li> * <li><strong>pkcs_cred</strong>: PKCS#12 certificate.</li> * <li><strong>otr_private_key</strong>: Off-the-Record Messaging (OTR) private key.</li> * <li><strong>contentful_delivery_token</strong>: delivery token for Contentful.</li> * <li><strong>digital_ocean_tugboat</strong>: DigitalOcean Tugboat configuration.</li> * <li><strong>dsa_private_key</strong>: Digital Signature Algorithm (DSA) private key.</li> * <li><strong>rails_app_token</strong>: Rails app token.</li> * <li><strong>git_cred</strong>: Git user credential.</li> * <li><strong>newrelic_api_key</strong>: user API key for New Relic.</li> * <li><strong>github_hub</strong>: hub configuration for storing GitHub tokens.</li> * <li><strong>rubygem</strong>: RubyGems token.</li> * </ul> * * <strong>example:</strong> * <p>google_oauth_key</p> */ public Builder sensitiveFileKey(String sensitiveFileKey) { this.sensitiveFileKey = sensitiveFileKey; return this; } /** * <p>The name of the alert type for the sensitive file.</p> * * <strong>example:</strong> * <p>AccessKeyLeak</p> */ public Builder sensitiveFileName(String sensitiveFileName) { this.sensitiveFileName = sensitiveFileName; return this; } /** * <p>The status of the sensitive file. Valid values:</p> * <ul> * <li><strong>0</strong>: unhandled.</li> * <li><strong>1</strong>: handled.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>The number of unprocessed mirrors.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder unprocessedNum(Integer unprocessedNum) { this.unprocessedNum = unprocessedNum; return this; } public SensitiveFileList build() { return new SensitiveFileList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageStatisticsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageStatisticsRequest} extends {@link RequestModel} * * <p>DescribeImageStatisticsRequest</p> */ public class DescribeImageStatisticsRequest extends Request { private DescribeImageStatisticsRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeImageStatisticsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeImageStatisticsRequest, Builder> { private Builder() { super(); } private Builder(DescribeImageStatisticsRequest request) { super(request); } @Override public DescribeImageStatisticsRequest build() { return new DescribeImageStatisticsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageStatisticsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageStatisticsResponse} extends {@link TeaModel} * * <p>DescribeImageStatisticsResponse</p> */ public class DescribeImageStatisticsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageStatisticsResponseBody body; private DescribeImageStatisticsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageStatisticsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageStatisticsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageStatisticsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageStatisticsResponseBody body); @Override DescribeImageStatisticsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageStatisticsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageStatisticsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageStatisticsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageStatisticsResponseBody body) { this.body = body; return this; } @Override public DescribeImageStatisticsResponse build() { return new DescribeImageStatisticsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageStatisticsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageStatisticsResponseBody} extends {@link TeaModel} * * <p>DescribeImageStatisticsResponseBody</p> */ public class DescribeImageStatisticsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceCount") private Integer instanceCount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RiskInstanceCount") private Integer riskInstanceCount; private DescribeImageStatisticsResponseBody(Builder builder) { this.instanceCount = builder.instanceCount; this.requestId = builder.requestId; this.riskInstanceCount = builder.riskInstanceCount; } public static Builder builder() { return new Builder(); } public static DescribeImageStatisticsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instanceCount */ public Integer getInstanceCount() { return this.instanceCount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return riskInstanceCount */ public Integer getRiskInstanceCount() { return this.riskInstanceCount; } public static final class Builder { private Integer instanceCount; private String requestId; private Integer riskInstanceCount; private Builder() { } private Builder(DescribeImageStatisticsResponseBody model) { this.instanceCount = model.instanceCount; this.requestId = model.requestId; this.riskInstanceCount = model.riskInstanceCount; } /** * <p>The number of container images in your assets. Only Container Registry Enterprise Edition instances are counted.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder instanceCount(Integer instanceCount) { this.instanceCount = instanceCount; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of container images that have security risks. Only Container Registry Enterprise Edition instances are counted.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder riskInstanceCount(Integer riskInstanceCount) { this.riskInstanceCount = riskInstanceCount; return this; } public DescribeImageStatisticsResponseBody build() { return new DescribeImageStatisticsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulListRequest} extends {@link RequestModel} * * <p>DescribeImageVulListRequest</p> */ public class DescribeImageVulListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterName") private String clusterName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContainerId") private String containerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Dealed") private String dealed; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Digest") private String digest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Image") private String image; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Necessity") private String necessity; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Pod") private String pod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoId") private String repoId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoInstanceId") private String repoInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RepoRegionId") private String repoRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleTag") private String ruleTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScanRange") private java.util.List<String> scanRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StatusList") private String statusList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Uuids") private String uuids; private DescribeImageVulListRequest(Builder builder) { super(builder); this.aliasName = builder.aliasName; this.clusterId = builder.clusterId; this.clusterName = builder.clusterName; this.containerId = builder.containerId; this.currentPage = builder.currentPage; this.dealed = builder.dealed; this.digest = builder.digest; this.image = builder.image; this.instanceId = builder.instanceId; this.lang = builder.lang; this.name = builder.name; this.namespace = builder.namespace; this.necessity = builder.necessity; this.pageSize = builder.pageSize; this.pod = builder.pod; this.regionId = builder.regionId; this.repoId = builder.repoId; this.repoInstanceId = builder.repoInstanceId; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.repoRegionId = builder.repoRegionId; this.ruleTag = builder.ruleTag; this.scanRange = builder.scanRange; this.statusList = builder.statusList; this.tag = builder.tag; this.type = builder.type; this.uuids = builder.uuids; } public static Builder builder() { return new Builder(); } public static DescribeImageVulListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterName */ public String getClusterName() { return this.clusterName; } /** * @return containerId */ public String getContainerId() { return this.containerId; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return dealed */ public String getDealed() { return this.dealed; } /** * @return digest */ public String getDigest() { return this.digest; } /** * @return image */ public String getImage() { return this.image; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return name */ public String getName() { return this.name; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return necessity */ public String getNecessity() { return this.necessity; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return pod */ public String getPod() { return this.pod; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return repoId */ public String getRepoId() { return this.repoId; } /** * @return repoInstanceId */ public String getRepoInstanceId() { return this.repoInstanceId; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return repoRegionId */ public String getRepoRegionId() { return this.repoRegionId; } /** * @return ruleTag */ public String getRuleTag() { return this.ruleTag; } /** * @return scanRange */ public java.util.List<String> getScanRange() { return this.scanRange; } /** * @return statusList */ public String getStatusList() { return this.statusList; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return type */ public String getType() { return this.type; } /** * @return uuids */ public String getUuids() { return this.uuids; } public static final class Builder extends Request.Builder<DescribeImageVulListRequest, Builder> { private String aliasName; private String clusterId; private String clusterName; private String containerId; private Integer currentPage; private String dealed; private String digest; private String image; private String instanceId; private String lang; private String name; private String namespace; private String necessity; private Integer pageSize; private String pod; private String regionId; private String repoId; private String repoInstanceId; private String repoName; private String repoNamespace; private String repoRegionId; private String ruleTag; private java.util.List<String> scanRange; private String statusList; private String tag; private String type; private String uuids; private Builder() { super(); } private Builder(DescribeImageVulListRequest request) { super(request); this.aliasName = request.aliasName; this.clusterId = request.clusterId; this.clusterName = request.clusterName; this.containerId = request.containerId; this.currentPage = request.currentPage; this.dealed = request.dealed; this.digest = request.digest; this.image = request.image; this.instanceId = request.instanceId; this.lang = request.lang; this.name = request.name; this.namespace = request.namespace; this.necessity = request.necessity; this.pageSize = request.pageSize; this.pod = request.pod; this.regionId = request.regionId; this.repoId = request.repoId; this.repoInstanceId = request.repoInstanceId; this.repoName = request.repoName; this.repoNamespace = request.repoNamespace; this.repoRegionId = request.repoRegionId; this.ruleTag = request.ruleTag; this.scanRange = request.scanRange; this.statusList = request.statusList; this.tag = request.tag; this.type = request.type; this.uuids = request.uuids; } /** * <p>The alias of the vulnerability.</p> * * <strong>example:</strong> * <p>High severity vulnerability that affects org.eclipse.jetty:jetty-server</p> */ public Builder aliasName(String aliasName) { this.putQueryParameter("AliasName", aliasName); this.aliasName = aliasName; return this; } /** * <p>The ID of the cluster to which the container belongs.</p> * * <strong>example:</strong> * <p>cc20a1024011c44b6a8710d6f8b****</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The name of the cluster.</p> * * <strong>example:</strong> * <p>docker-law</p> */ public Builder clusterName(String clusterName) { this.putQueryParameter("ClusterName", clusterName); this.clusterName = clusterName; return this; } /** * <p>The ID of the container.</p> * * <strong>example:</strong> * <p>c08d5fc1a329a4b88950a253d082f****</p> */ public Builder containerId(String containerId) { this.putQueryParameter("ContainerId", containerId); this.containerId = containerId; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>Specifies whether the vulnerability is handled. Valid values:</p> * <ul> * <li><strong>y</strong>: yes</li> * <li><strong>n</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>y</p> */ public Builder dealed(String dealed) { this.putQueryParameter("Dealed", dealed); this.dealed = dealed; return this; } /** * <p>The digest of the image.</p> * * <strong>example:</strong> * <p>8f0fbdb41d3d1ade4ffdf21558443f4c03342010563bb8c43ccc09594d507012</p> */ public Builder digest(String digest) { this.putQueryParameter("Digest", digest); this.digest = digest; return this; } /** * <p>The name of the image.</p> * * <strong>example:</strong> * <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-****</p> */ public Builder image(String image) { this.putQueryParameter("Image", image); this.image = image; return this; } /** * <p>The instance ID of the asset.</p> * * <strong>example:</strong> * <p>1-qeqewqw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese</li> * <li><strong>en</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The name of the vulnerability.</p> * * <strong>example:</strong> * <p>debian:10:CVE-2019-9893</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The namespace.</p> * * <strong>example:</strong> * <p>test-002</p> */ public Builder namespace(String namespace) { this.putQueryParameter("Namespace", namespace); this.namespace = namespace; return this; } /** * <p>The priority to fix the vulnerability. Valid values:</p> * <ul> * <li><strong>asap</strong>: high. You must fix the vulnerability at the earliest opportunity.</li> * <li><strong>later</strong>: medium. You can fix the vulnerability based on your business requirements.</li> * <li><strong>nntf</strong>: low. You can ignore the vulnerability.</li> * </ul> * * <strong>example:</strong> * <p>asap</p> */ public Builder necessity(String necessity) { this.putQueryParameter("Necessity", necessity); this.necessity = necessity; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The pod.</p> * * <strong>example:</strong> * <p>22222-7xsqq</p> */ public Builder pod(String pod) { this.putQueryParameter("Pod", pod); this.pod = pod; return this; } /** * <p>The region ID of the instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the image repository.</p> * * <strong>example:</strong> * <p>qew****</p> */ public Builder repoId(String repoId) { this.putQueryParameter("RepoId", repoId); this.repoId = repoId; return this; } /** * <p>The instance ID of the image repository.</p> * * <strong>example:</strong> * <p>i-qewqrqcsadf****</p> */ public Builder repoInstanceId(String repoInstanceId) { this.putQueryParameter("RepoInstanceId", repoInstanceId); this.repoInstanceId = repoInstanceId; return this; } /** * <p>The name of the image.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoName(String repoName) { this.putQueryParameter("RepoName", repoName); this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>libssh2</p> */ public Builder repoNamespace(String repoNamespace) { this.putQueryParameter("RepoNamespace", repoNamespace); this.repoNamespace = repoNamespace; return this; } /** * <p>The region ID of the image repository.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder repoRegionId(String repoRegionId) { this.putQueryParameter("RepoRegionId", repoRegionId); this.repoRegionId = repoRegionId; return this; } /** * <p>The tag of this vulnerability. Valid values:</p> * <ul> * <li><strong>AI</strong>: AI-related components.</li> * </ul> * * <strong>example:</strong> * <p>AI</p> */ public Builder ruleTag(String ruleTag) { this.putQueryParameter("RuleTag", ruleTag); this.ruleTag = ruleTag; return this; } /** * <p>The types of the assets that you want to scan.</p> */ public Builder scanRange(java.util.List<String> scanRange) { this.putQueryParameter("ScanRange", scanRange); this.scanRange = scanRange; return this; } /** * <p>The status of the vulnerability. Valid values:</p> * <ul> * <li><strong>1</strong>: unfixed</li> * <li><strong>4</strong>: being fixed</li> * <li><strong>7</strong>: fixed</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder statusList(String statusList) { this.putQueryParameter("StatusList", statusList); this.statusList = statusList; return this; } /** * <p>The tag that is added to the image vulnerability.</p> * * <strong>example:</strong> * <p>oval</p> */ public Builder tag(String tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The type of the vulnerability. Set the value to <strong>cve</strong>, which indicates image vulnerabilities.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cve</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * <p>The UUIDs of the assets. Separate multiple UUIDs with commas (,).</p> * * <strong>example:</strong> * <p>0004a32a0305a7f6ab5ff9600d47****</p> */ public Builder uuids(String uuids) { this.putQueryParameter("Uuids", uuids); this.uuids = uuids; return this; } @Override public DescribeImageVulListRequest build() { return new DescribeImageVulListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulListResponse} extends {@link TeaModel} * * <p>DescribeImageVulListResponse</p> */ public class DescribeImageVulListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageVulListResponseBody body; private DescribeImageVulListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageVulListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageVulListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageVulListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageVulListResponseBody body); @Override DescribeImageVulListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageVulListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageVulListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageVulListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageVulListResponseBody body) { this.body = body; return this; } @Override public DescribeImageVulListResponse build() { return new DescribeImageVulListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulListResponseBody</p> */ public class DescribeImageVulListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; @com.aliyun.core.annotation.NameInMap("VulRecords") private java.util.List<VulRecords> vulRecords; private DescribeImageVulListResponseBody(Builder builder) { this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vulRecords = builder.vulRecords; } public static Builder builder() { return new Builder(); } public static DescribeImageVulListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return vulRecords */ public java.util.List<VulRecords> getVulRecords() { return this.vulRecords; } public static final class Builder { private Integer currentPage; private Integer pageSize; private String requestId; private Integer totalCount; private java.util.List<VulRecords> vulRecords; private Builder() { } private Builder(DescribeImageVulListResponseBody model) { this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vulRecords = model.vulRecords; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries returned per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>D6B20156-49B0-5CF0-B14D-7ECA4B50DAAB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of vulnerabilities returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>An array that consists of the vulnerabilities.</p> */ public Builder vulRecords(java.util.List<VulRecords> vulRecords) { this.vulRecords = vulRecords; return this; } public DescribeImageVulListResponseBody build() { return new DescribeImageVulListResponseBody(this); } } /** * * {@link DescribeImageVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulListResponseBody</p> */ public static class RpmEntityList extends TeaModel { @com.aliyun.core.annotation.NameInMap("FullVersion") private String fullVersion; @com.aliyun.core.annotation.NameInMap("Layer") private String layer; @com.aliyun.core.annotation.NameInMap("MatchDetail") private String matchDetail; @com.aliyun.core.annotation.NameInMap("MatchList") private java.util.List<String> matchList; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("UpdateCmd") private String updateCmd; @com.aliyun.core.annotation.NameInMap("Version") private String version; private RpmEntityList(Builder builder) { this.fullVersion = builder.fullVersion; this.layer = builder.layer; this.matchDetail = builder.matchDetail; this.matchList = builder.matchList; this.name = builder.name; this.path = builder.path; this.updateCmd = builder.updateCmd; this.version = builder.version; } public static Builder builder() { return new Builder(); } public static RpmEntityList create() { return builder().build(); } /** * @return fullVersion */ public String getFullVersion() { return this.fullVersion; } /** * @return layer */ public String getLayer() { return this.layer; } /** * @return matchDetail */ public String getMatchDetail() { return this.matchDetail; } /** * @return matchList */ public java.util.List<String> getMatchList() { return this.matchList; } /** * @return name */ public String getName() { return this.name; } /** * @return path */ public String getPath() { return this.path; } /** * @return updateCmd */ public String getUpdateCmd() { return this.updateCmd; } /** * @return version */ public String getVersion() { return this.version; } public static final class Builder { private String fullVersion; private String layer; private String matchDetail; private java.util.List<String> matchList; private String name; private String path; private String updateCmd; private String version; private Builder() { } private Builder(RpmEntityList model) { this.fullVersion = model.fullVersion; this.layer = model.layer; this.matchDetail = model.matchDetail; this.matchList = model.matchList; this.name = model.name; this.path = model.path; this.updateCmd = model.updateCmd; this.version = model.version; } /** * <p>The complete version number of the package.</p> * * <strong>example:</strong> * <p>2.3.3-4</p> */ public Builder fullVersion(String fullVersion) { this.fullVersion = fullVersion; return this; } /** * <p>The SHA-256 value of the digest of the image layer.</p> * * <strong>example:</strong> * <p>b1f5b9420803ad0657cf21566e3e20acc08581e7f22991249ef3aa80b8b1c587</p> */ public Builder layer(String layer) { this.layer = layer; return this; } /** * <p>The reason why the vulnerability is detected.</p> * * <strong>example:</strong> * <p>libseccomp2 version less than equals 2.3.3-4</p> */ public Builder matchDetail(String matchDetail) { this.matchDetail = matchDetail; return this; } /** * <p>The details of the rule that is used to detect the vulnerability.</p> * * <strong>example:</strong> * <p>[&quot;libseccomp2 version less than equals 2.3.3-4&quot;]</p> */ public Builder matchList(java.util.List<String> matchList) { this.matchList = matchList; return this; } /** * <p>The name of the software package.</p> * * <strong>example:</strong> * <p>libseccomp2</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The path of the software that has the vulnerability.</p> * * <strong>example:</strong> * <p>/usr/lib64/libssh2.so.1</p> */ public Builder path(String path) { this.path = path; return this; } /** * <p>The command that is used to fix the vulnerability.</p> * * <strong>example:</strong> * <p>apt-get update &amp;&amp; apt-get install libseccomp2 --only-upgrade</p> */ public Builder updateCmd(String updateCmd) { this.updateCmd = updateCmd; return this; } /** * <p>The version number of the package.</p> * * <strong>example:</strong> * <p>2.3.3-4</p> */ public Builder version(String version) { this.version = version; return this; } public RpmEntityList build() { return new RpmEntityList(this); } } } /** * * {@link DescribeImageVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulListResponseBody</p> */ public static class ExtendContentJson extends TeaModel { @com.aliyun.core.annotation.NameInMap("Os") private String os; @com.aliyun.core.annotation.NameInMap("OsRelease") private String osRelease; @com.aliyun.core.annotation.NameInMap("RpmEntityList") private java.util.List<RpmEntityList> rpmEntityList; private ExtendContentJson(Builder builder) { this.os = builder.os; this.osRelease = builder.osRelease; this.rpmEntityList = builder.rpmEntityList; } public static Builder builder() { return new Builder(); } public static ExtendContentJson create() { return builder().build(); } /** * @return os */ public String getOs() { return this.os; } /** * @return osRelease */ public String getOsRelease() { return this.osRelease; } /** * @return rpmEntityList */ public java.util.List<RpmEntityList> getRpmEntityList() { return this.rpmEntityList; } public static final class Builder { private String os; private String osRelease; private java.util.List<RpmEntityList> rpmEntityList; private Builder() { } private Builder(ExtendContentJson model) { this.os = model.os; this.osRelease = model.osRelease; this.rpmEntityList = model.rpmEntityList; } /** * <p>The name of the operating system.</p> * * <strong>example:</strong> * <p>debian</p> */ public Builder os(String os) { this.os = os; return this; } /** * <p>The version of the operating system in the image.</p> * * <strong>example:</strong> * <p>10.9</p> */ public Builder osRelease(String osRelease) { this.osRelease = osRelease; return this; } /** * <p>The details of the package of the software that has the vulnerability.</p> */ public Builder rpmEntityList(java.util.List<RpmEntityList> rpmEntityList) { this.rpmEntityList = rpmEntityList; return this; } public ExtendContentJson build() { return new ExtendContentJson(this); } } } /** * * {@link DescribeImageVulListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulListResponseBody</p> */ public static class VulRecords extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.NameInMap("CanFix") private String canFix; @com.aliyun.core.annotation.NameInMap("CanUpdate") private Boolean canUpdate; @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.NameInMap("ClusterName") private String clusterName; @com.aliyun.core.annotation.NameInMap("ContainerId") private String containerId; @com.aliyun.core.annotation.NameInMap("ExtendContentJson") private ExtendContentJson extendContentJson; @com.aliyun.core.annotation.NameInMap("FirstTs") private Long firstTs; @com.aliyun.core.annotation.NameInMap("Image") private String image; @com.aliyun.core.annotation.NameInMap("ImageDigest") private String imageDigest; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IntranetIp") private String intranetIp; @com.aliyun.core.annotation.NameInMap("LastTs") private Long lastTs; @com.aliyun.core.annotation.NameInMap("Layers") private java.util.List<String> layers; @com.aliyun.core.annotation.NameInMap("MaliciousSource") private String maliciousSource; @com.aliyun.core.annotation.NameInMap("ModifyTs") private Long modifyTs; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.NameInMap("Necessity") private String necessity; @com.aliyun.core.annotation.NameInMap("Pod") private String pod; @com.aliyun.core.annotation.NameInMap("PrimaryId") private Long primaryId; @com.aliyun.core.annotation.NameInMap("Related") private String related; @com.aliyun.core.annotation.NameInMap("RepoName") private String repoName; @com.aliyun.core.annotation.NameInMap("RepoNamespace") private String repoNamespace; @com.aliyun.core.annotation.NameInMap("RuleTag") private String ruleTag; @com.aliyun.core.annotation.NameInMap("ScanTime") private Long scanTime; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("TargetId") private String targetId; @com.aliyun.core.annotation.NameInMap("TargetName") private String targetName; @com.aliyun.core.annotation.NameInMap("TargetType") private String targetType; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Uuid") private String uuid; private VulRecords(Builder builder) { this.aliasName = builder.aliasName; this.canFix = builder.canFix; this.canUpdate = builder.canUpdate; this.clusterId = builder.clusterId; this.clusterName = builder.clusterName; this.containerId = builder.containerId; this.extendContentJson = builder.extendContentJson; this.firstTs = builder.firstTs; this.image = builder.image; this.imageDigest = builder.imageDigest; this.instanceName = builder.instanceName; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.lastTs = builder.lastTs; this.layers = builder.layers; this.maliciousSource = builder.maliciousSource; this.modifyTs = builder.modifyTs; this.name = builder.name; this.namespace = builder.namespace; this.necessity = builder.necessity; this.pod = builder.pod; this.primaryId = builder.primaryId; this.related = builder.related; this.repoName = builder.repoName; this.repoNamespace = builder.repoNamespace; this.ruleTag = builder.ruleTag; this.scanTime = builder.scanTime; this.status = builder.status; this.tag = builder.tag; this.targetId = builder.targetId; this.targetName = builder.targetName; this.targetType = builder.targetType; this.type = builder.type; this.uuid = builder.uuid; } public static Builder builder() { return new Builder(); } public static VulRecords create() { return builder().build(); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return canFix */ public String getCanFix() { return this.canFix; } /** * @return canUpdate */ public Boolean getCanUpdate() { return this.canUpdate; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterName */ public String getClusterName() { return this.clusterName; } /** * @return containerId */ public String getContainerId() { return this.containerId; } /** * @return extendContentJson */ public ExtendContentJson getExtendContentJson() { return this.extendContentJson; } /** * @return firstTs */ public Long getFirstTs() { return this.firstTs; } /** * @return image */ public String getImage() { return this.image; } /** * @return imageDigest */ public String getImageDigest() { return this.imageDigest; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return intranetIp */ public String getIntranetIp() { return this.intranetIp; } /** * @return lastTs */ public Long getLastTs() { return this.lastTs; } /** * @return layers */ public java.util.List<String> getLayers() { return this.layers; } /** * @return maliciousSource */ public String getMaliciousSource() { return this.maliciousSource; } /** * @return modifyTs */ public Long getModifyTs() { return this.modifyTs; } /** * @return name */ public String getName() { return this.name; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return necessity */ public String getNecessity() { return this.necessity; } /** * @return pod */ public String getPod() { return this.pod; } /** * @return primaryId */ public Long getPrimaryId() { return this.primaryId; } /** * @return related */ public String getRelated() { return this.related; } /** * @return repoName */ public String getRepoName() { return this.repoName; } /** * @return repoNamespace */ public String getRepoNamespace() { return this.repoNamespace; } /** * @return ruleTag */ public String getRuleTag() { return this.ruleTag; } /** * @return scanTime */ public Long getScanTime() { return this.scanTime; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return targetId */ public String getTargetId() { return this.targetId; } /** * @return targetName */ public String getTargetName() { return this.targetName; } /** * @return targetType */ public String getTargetType() { return this.targetType; } /** * @return type */ public String getType() { return this.type; } /** * @return uuid */ public String getUuid() { return this.uuid; } public static final class Builder { private String aliasName; private String canFix; private Boolean canUpdate; private String clusterId; private String clusterName; private String containerId; private ExtendContentJson extendContentJson; private Long firstTs; private String image; private String imageDigest; private String instanceName; private String internetIp; private String intranetIp; private Long lastTs; private java.util.List<String> layers; private String maliciousSource; private Long modifyTs; private String name; private String namespace; private String necessity; private String pod; private Long primaryId; private String related; private String repoName; private String repoNamespace; private String ruleTag; private Long scanTime; private Integer status; private String tag; private String targetId; private String targetName; private String targetType; private String type; private String uuid; private Builder() { } private Builder(VulRecords model) { this.aliasName = model.aliasName; this.canFix = model.canFix; this.canUpdate = model.canUpdate; this.clusterId = model.clusterId; this.clusterName = model.clusterName; this.containerId = model.containerId; this.extendContentJson = model.extendContentJson; this.firstTs = model.firstTs; this.image = model.image; this.imageDigest = model.imageDigest; this.instanceName = model.instanceName; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.lastTs = model.lastTs; this.layers = model.layers; this.maliciousSource = model.maliciousSource; this.modifyTs = model.modifyTs; this.name = model.name; this.namespace = model.namespace; this.necessity = model.necessity; this.pod = model.pod; this.primaryId = model.primaryId; this.related = model.related; this.repoName = model.repoName; this.repoNamespace = model.repoNamespace; this.ruleTag = model.ruleTag; this.scanTime = model.scanTime; this.status = model.status; this.tag = model.tag; this.targetId = model.targetId; this.targetName = model.targetName; this.targetType = model.targetType; this.type = model.type; this.uuid = model.uuid; } /** * <p>The alias of the vulnerability.</p> * * <strong>example:</strong> * <p>CVE-2018-25010:libwebp up to 1.0.0 ApplyFilter out-of-bounds read</p> */ public Builder aliasName(String aliasName) { this.aliasName = aliasName; return this; } /** * <p>Indicates whether the vulnerability can be fixed in the Security Center console. Valid values:</p> * <ul> * <li><strong>yes</strong>: yes</li> * <li><strong>no</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>yes</p> */ public Builder canFix(String canFix) { this.canFix = canFix; return this; } /** * <p>Indicates whether the package of the software that has the vulnerability can be upgraded by using Security Center. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder canUpdate(Boolean canUpdate) { this.canUpdate = canUpdate; return this; } /** * <p>The ID of the cluster.</p> * * <strong>example:</strong> * <p>c08d5fc1a329a4b88950a253d082f1****</p> */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } /** * <p>The name of the cluster.</p> * * <strong>example:</strong> * <p>docker-law</p> */ public Builder clusterName(String clusterName) { this.clusterName = clusterName; return this; } /** * <p>The ID of the container.</p> * * <strong>example:</strong> * <p>04d20e98c8e2c93b7b864372084320a15a58c8671e53c972ce3a71d9c163****</p> */ public Builder containerId(String containerId) { this.containerId = containerId; return this; } /** * <p>The extended information about the vulnerability.</p> */ public Builder extendContentJson(ExtendContentJson extendContentJson) { this.extendContentJson = extendContentJson; return this; } /** * <p>The timestamp when the first scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1620752053000</p> */ public Builder firstTs(Long firstTs) { this.firstTs = firstTs; return this; } /** * <p>The name of the image.</p> * * <strong>example:</strong> * <p>registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-conta****</p> */ public Builder image(String image) { this.image = image; return this; } /** * <p>The digest of the image.</p> * * <strong>example:</strong> * <p>8f0fbdb41d3d1ade4ffdf21558443f4c03342010563bb8c43ccc09594d507012</p> */ public Builder imageDigest(String imageDigest) { this.imageDigest = imageDigest; return this; } /** * <p>The name of the asset.</p> * * <strong>example:</strong> * <p>testInstance</p> */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * <p>The public IP address of the server.</p> * * <strong>example:</strong> * <p>1.2.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address of the server.</p> * * <strong>example:</strong> * <p>172.19.XX.XX</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The timestamp when the last scan was performed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1631779996000</p> */ public Builder lastTs(Long lastTs) { this.lastTs = lastTs; return this; } /** * <p>The image layers.</p> */ public Builder layers(java.util.List<String> layers) { this.layers = layers; return this; } /** * <p>The source of the malicious file. Valid values:</p> * <ul> * <li><strong>agentless</strong>: agentless detection</li> * <li><strong>image</strong>: image</li> * <li><strong>container</strong>: container</li> * </ul> * * <strong>example:</strong> * <p>agentless</p> */ public Builder maliciousSource(String maliciousSource) { this.maliciousSource = maliciousSource; return this; } /** * <p>The timestamp when the information about the vulnerability was updated. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1580808765000</p> */ public Builder modifyTs(Long modifyTs) { this.modifyTs = modifyTs; return this; } /** * <p>The name of the vulnerability.</p> * * <strong>example:</strong> * <p>debian:10:CVE-2019-9893</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The namespace.</p> * * <strong>example:</strong> * <p>test-002</p> */ public Builder namespace(String namespace) { this.namespace = namespace; return this; } /** * <p>The priority to fix the vulnerability. Valid values:</p> * <ul> * <li><strong>asap</strong>: high. You must fix the vulnerability at the earliest opportunity.</li> * <li><strong>later</strong>: medium. You can fix the vulnerability based on your business requirements.</li> * <li><strong>nntf</strong>: low. You can ignore the vulnerability.</li> * </ul> * * <strong>example:</strong> * <p>asap</p> */ public Builder necessity(String necessity) { this.necessity = necessity; return this; } /** * <p>The pod.</p> * * <strong>example:</strong> * <p>22222-7xsqq</p> */ public Builder pod(String pod) { this.pod = pod; return this; } /** * <p>The ID of the vulnerability.</p> * * <strong>example:</strong> * <p>782661</p> */ public Builder primaryId(Long primaryId) { this.primaryId = primaryId; return this; } /** * <p>The Common Vulnerabilities and Exposures (CVE) ID of the associated vulnerability.</p> * * <strong>example:</strong> * <p>CVE-2019-9893</p> */ public Builder related(String related) { this.related = related; return this; } /** * <p>The name of the image repository.</p> * * <strong>example:</strong> * <p>varnish</p> */ public Builder repoName(String repoName) { this.repoName = repoName; return this; } /** * <p>The namespace to which the image repository belongs.</p> * * <strong>example:</strong> * <p>default</p> */ public Builder repoNamespace(String repoNamespace) { this.repoNamespace = repoNamespace; return this; } /** * <p>The tag of this vulnerability. Valid values:</p> * <ul> * <li><strong>AI</strong>: AI-related components.</li> * </ul> * * <strong>example:</strong> * <p>AI</p> */ public Builder ruleTag(String ruleTag) { this.ruleTag = ruleTag; return this; } /** * <p>The time at which the scan was performed. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1649814050000</p> */ public Builder scanTime(Long scanTime) { this.scanTime = scanTime; return this; } /** * <p>The status of the vulnerability. Valid values:</p> * <ul> * <li><strong>1</strong>: unfixed</li> * <li><strong>7</strong>: fixed</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * <p>The tag that is added to the image vulnerability.</p> * * <strong>example:</strong> * <p>oval</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The ID of the asset on which the vulnerability is detected.</p> * * <strong>example:</strong> * <p>m-bp17m0pc0xprzbwo****</p> */ public Builder targetId(String targetId) { this.targetId = targetId; return this; } /** * <p>The name of the asset on which the vulnerability is detected.</p> * * <strong>example:</strong> * <p>source-test-obj-XM0Ma</p> */ public Builder targetName(String targetName) { this.targetName = targetName; return this; } /** * <p>The type of the asset on which the vulnerability is detected. Valid values:</p> * <ul> * <li><strong>ECS_SNAPSHOT</strong>: snapshot</li> * <li><strong>ECS_IMAGE</strong>: image</li> * </ul> * * <strong>example:</strong> * <p>ECS_IMAGE</p> */ public Builder targetType(String targetType) { this.targetType = targetType; return this; } /** * <p>The type of the vulnerability. The value is fixed as CVE, which indicates image vulnerabilities.</p> * * <strong>example:</strong> * <p>cve</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The UUID of the server.</p> * * <strong>example:</strong> * <p>0004a32a0305a7f6ab5ff9600d47****</p> */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public VulRecords build() { return new VulRecords(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulWhiteListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulWhiteListRequest} extends {@link RequestModel} * * <p>DescribeImageVulWhiteListRequest</p> */ public class DescribeImageVulWhiteListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Source") private String source; private DescribeImageVulWhiteListRequest(Builder builder) { super(builder); this.aliasName = builder.aliasName; this.currentPage = builder.currentPage; this.lang = builder.lang; this.pageSize = builder.pageSize; this.source = builder.source; } public static Builder builder() { return new Builder(); } public static DescribeImageVulWhiteListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return source */ public String getSource() { return this.source; } public static final class Builder extends Request.Builder<DescribeImageVulWhiteListRequest, Builder> { private String aliasName; private Integer currentPage; private String lang; private Integer pageSize; private String source; private Builder() { super(); } private Builder(DescribeImageVulWhiteListRequest request) { super(request); this.aliasName = request.aliasName; this.currentPage = request.currentPage; this.lang = request.lang; this.pageSize = request.pageSize; this.source = request.source; } /** * <p>The alias of the vulnerability that you want to query.</p> * * <strong>example:</strong> * <p>CVE-2007-5686:rpath_linux</p> */ public Builder aliasName(String aliasName) { this.putQueryParameter("AliasName", aliasName); this.aliasName = aliasName; return this; } /** * <p>The number of the page to return.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.putQueryParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese.</li> * <li><strong>en</strong>: English.</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The number of entries per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The source of the whitelist. Valid values:</p> * <ul> * <li><strong>image</strong></li> * <li><strong>agentless</strong></li> * </ul> * * <strong>example:</strong> * <p>image</p> */ public Builder source(String source) { this.putQueryParameter("Source", source); this.source = source; return this; } @Override public DescribeImageVulWhiteListRequest build() { return new DescribeImageVulWhiteListRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulWhiteListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulWhiteListResponse} extends {@link TeaModel} * * <p>DescribeImageVulWhiteListResponse</p> */ public class DescribeImageVulWhiteListResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeImageVulWhiteListResponseBody body; private DescribeImageVulWhiteListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeImageVulWhiteListResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeImageVulWhiteListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeImageVulWhiteListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeImageVulWhiteListResponseBody body); @Override DescribeImageVulWhiteListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeImageVulWhiteListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeImageVulWhiteListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeImageVulWhiteListResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeImageVulWhiteListResponseBody body) { this.body = body; return this; } @Override public DescribeImageVulWhiteListResponse build() { return new DescribeImageVulWhiteListResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeImageVulWhiteListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeImageVulWhiteListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulWhiteListResponseBody</p> */ public class DescribeImageVulWhiteListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HttpStatusCode") private Integer httpStatusCode; @com.aliyun.core.annotation.NameInMap("ImageVulWhitelist") private java.util.List<ImageVulWhitelist> imageVulWhitelist; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("PageInfo") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; @com.aliyun.core.annotation.NameInMap("TimeCost") private Long timeCost; private DescribeImageVulWhiteListResponseBody(Builder builder) { this.code = builder.code; this.httpStatusCode = builder.httpStatusCode; this.imageVulWhitelist = builder.imageVulWhitelist; this.message = builder.message; this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.success = builder.success; this.timeCost = builder.timeCost; } public static Builder builder() { return new Builder(); } public static DescribeImageVulWhiteListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return httpStatusCode */ public Integer getHttpStatusCode() { return this.httpStatusCode; } /** * @return imageVulWhitelist */ public java.util.List<ImageVulWhitelist> getImageVulWhitelist() { return this.imageVulWhitelist; } /** * @return message */ public String getMessage() { return this.message; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } /** * @return timeCost */ public Long getTimeCost() { return this.timeCost; } public static final class Builder { private String code; private Integer httpStatusCode; private java.util.List<ImageVulWhitelist> imageVulWhitelist; private String message; private PageInfo pageInfo; private String requestId; private Boolean success; private Long timeCost; private Builder() { } private Builder(DescribeImageVulWhiteListResponseBody model) { this.code = model.code; this.httpStatusCode = model.httpStatusCode; this.imageVulWhitelist = model.imageVulWhitelist; this.message = model.message; this.pageInfo = model.pageInfo; this.requestId = model.requestId; this.success = model.success; this.timeCost = model.timeCost; } /** * <p>The status code returned. A value of <strong>200</strong> indicates that the request was successful. Other values indicate that the request failed. You can identify the cause of the failure based on the value of this parameter.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The HTTP status code returned.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder httpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } /** * <p>The information about the whitelist of image vulnerabilities.</p> */ public Builder imageVulWhitelist(java.util.List<ImageVulWhitelist> imageVulWhitelist) { this.imageVulWhitelist = imageVulWhitelist; return this; } /** * <p>The message returned.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The pagination information.</p> */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>911025D0-3D1E-5213-A18A-37EA0C92****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the request was successful. Valid values:</p> * <ul> * <li><strong>true</strong>: The request was successful.</li> * <li><strong>false</strong>: The request failed.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } /** * <p>The amount of time that was consumed to process the request. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder timeCost(Long timeCost) { this.timeCost = timeCost; return this; } public DescribeImageVulWhiteListResponseBody build() { return new DescribeImageVulWhiteListResponseBody(this); } } /** * * {@link DescribeImageVulWhiteListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulWhiteListResponseBody</p> */ public static class ImageVulWhitelist extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliasName") private String aliasName; @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Reason") private String reason; @com.aliyun.core.annotation.NameInMap("Target") private String target; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ImageVulWhitelist(Builder builder) { this.aliasName = builder.aliasName; this.id = builder.id; this.name = builder.name; this.reason = builder.reason; this.target = builder.target; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ImageVulWhitelist create() { return builder().build(); } /** * @return aliasName */ public String getAliasName() { return this.aliasName; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return reason */ public String getReason() { return this.reason; } /** * @return target */ public String getTarget() { return this.target; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String aliasName; private Long id; private String name; private String reason; private String target; private String type; private Builder() { } private Builder(ImageVulWhitelist model) { this.aliasName = model.aliasName; this.id = model.id; this.name = model.name; this.reason = model.reason; this.target = model.target; this.type = model.type; } /** * <p>The alias of the vulnerability that is specified in Common Vulnerabilities and Exposures (CVE).</p> * * <strong>example:</strong> * <p>CVE-2019-19906:in_sasl_add_string</p> */ public Builder aliasName(String aliasName) { this.aliasName = aliasName; return this; } /** * <p>The primary key ID of the vulnerability.</p> * * <strong>example:</strong> * <p>34032043</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The name of the vulnerability.</p> * * <strong>example:</strong> * <p>scan:AVD-2022-953356</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The reason why the vulnerability is added to the whitelist.</p> * * <strong>example:</strong> * <p>already config in another way</p> */ public Builder reason(String reason) { this.reason = reason; return this; } /** * <p>The object on which the query is performed. The value of this parameter is in the JSON format and contains the following fields:</p> * <ul> * <li><strong>type</strong>: the object type. The value is fixed to repo.</li> * <li><strong>target</strong>: the object content. The value is in the Namespace/Image repository format.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;type&quot;:&quot;repo&quot;,&quot;target&quot;:[&quot;sas_test/script_0209&quot;,&quot;sas_test/script&quot;]}</p> */ public Builder target(String target) { this.target = target; return this; } /** * <p>The type of the vulnerability. Valid values:</p> * <ul> * <li><strong>cve</strong>: system vulnerability</li> * <li><strong>sca</strong>: application vulnerability</li> * </ul> * * <strong>example:</strong> * <p>sca</p> */ public Builder type(String type) { this.type = type; return this; } public ImageVulWhitelist build() { return new ImageVulWhitelist(this); } } } /** * * {@link DescribeImageVulWhiteListResponseBody} extends {@link TeaModel} * * <p>DescribeImageVulWhiteListResponseBody</p> */ public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("CurrentPage") private Integer currentPage; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private PageInfo(Builder builder) { this.count = builder.count; this.currentPage = builder.currentPage; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer count; private Integer currentPage; private Integer pageSize; private Integer totalCount; private Builder() { } private Builder(PageInfo model) { this.count = model.count; this.currentPage = model.currentPage; this.pageSize = model.pageSize; this.totalCount = model.totalCount; } /** * <p>The number of entries returned on the current page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The page number of the returned page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder currentPage(Integer currentPage) { this.currentPage = currentPage; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeInstallCaptchaRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstallCaptchaRequest} extends {@link RequestModel} * * <p>DescribeInstallCaptchaRequest</p> */ public class DescribeInstallCaptchaRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Deadline") private String deadline; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIp") private String sourceIp; private DescribeInstallCaptchaRequest(Builder builder) { super(builder); this.deadline = builder.deadline; this.lang = builder.lang; this.sourceIp = builder.sourceIp; } public static Builder builder() { return new Builder(); } public static DescribeInstallCaptchaRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return deadline */ public String getDeadline() { return this.deadline; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return sourceIp */ public String getSourceIp() { return this.sourceIp; } public static final class Builder extends Request.Builder<DescribeInstallCaptchaRequest, Builder> { private String deadline; private String lang; private String sourceIp; private Builder() { super(); } private Builder(DescribeInstallCaptchaRequest request) { super(request); this.deadline = request.deadline; this.lang = request.lang; this.sourceIp = request.sourceIp; } /** * <p>The validity period of verification codes. If this parameter is not specified, only the valid verification codes are returned.</p> * <blockquote> * <p> An installation verification code can be used only within the validity period. An expired installation verification code cannot be used to install the Security Center agent.</p> * </blockquote> * * <strong>example:</strong> * <p>2020-10-11 16:26:22</p> */ public Builder deadline(String deadline) { this.putQueryParameter("Deadline", deadline); this.deadline = deadline; return this; } /** * <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p> * <ul> * <li><strong>zh</strong>: Chinese.</li> * <li><strong>en</strong>: English.</li> * </ul> * * <strong>example:</strong> * <p>zh</p> */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The source IP address of the request.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder sourceIp(String sourceIp) { this.putQueryParameter("SourceIp", sourceIp); this.sourceIp = sourceIp; return this; } @Override public DescribeInstallCaptchaRequest build() { return new DescribeInstallCaptchaRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeInstallCaptchaResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstallCaptchaResponse} extends {@link TeaModel} * * <p>DescribeInstallCaptchaResponse</p> */ public class DescribeInstallCaptchaResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeInstallCaptchaResponseBody body; private DescribeInstallCaptchaResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstallCaptchaResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeInstallCaptchaResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstallCaptchaResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstallCaptchaResponseBody body); @Override DescribeInstallCaptchaResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstallCaptchaResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstallCaptchaResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstallCaptchaResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeInstallCaptchaResponseBody body) { this.body = body; return this; } @Override public DescribeInstallCaptchaResponse build() { return new DescribeInstallCaptchaResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeInstallCaptchaResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstallCaptchaResponseBody} extends {@link TeaModel} * * <p>DescribeInstallCaptchaResponseBody</p> */ public class DescribeInstallCaptchaResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CaptchaCode") private String captchaCode; @com.aliyun.core.annotation.NameInMap("Deadline") private String deadline; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeInstallCaptchaResponseBody(Builder builder) { this.captchaCode = builder.captchaCode; this.deadline = builder.deadline; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeInstallCaptchaResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return captchaCode */ public String getCaptchaCode() { return this.captchaCode; } /** * @return deadline */ public String getDeadline() { return this.deadline; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String captchaCode; private String deadline; private String requestId; private Builder() { } private Builder(DescribeInstallCaptchaResponseBody model) { this.captchaCode = model.captchaCode; this.deadline = model.deadline; this.requestId = model.requestId; } /** * <p>The installation verification code for you to manually install the Security Center agent.</p> * * <strong>example:</strong> * <p>M1HH**</p> */ public Builder captchaCode(String captchaCode) { this.captchaCode = captchaCode; return this; } /** * <p>The validity period of the installation verification code.</p> * <blockquote> * <p> The installation verification code is valid only within the validity period. An expired installation verification code cannot be used to install the agent.</p> * </blockquote> * * <strong>example:</strong> * <p>2020-10-10 16:06:38</p> */ public Builder deadline(String deadline) { this.deadline = deadline; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeInstallCaptchaResponseBody build() { return new DescribeInstallCaptchaResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeInstallCodeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstallCodeRequest} extends {@link RequestModel} * * <p>DescribeInstallCodeRequest</p> */ public class DescribeInstallCodeRequest extends Request { private DescribeInstallCodeRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static DescribeInstallCodeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<DescribeInstallCodeRequest, Builder> { private Builder() { super(); } private Builder(DescribeInstallCodeRequest request) { super(request); } @Override public DescribeInstallCodeRequest build() { return new DescribeInstallCodeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203
java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeInstallCodeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sas20181203.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstallCodeResponse} extends {@link TeaModel} * * <p>DescribeInstallCodeResponse</p> */ public class DescribeInstallCodeResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeInstallCodeResponseBody body; private DescribeInstallCodeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstallCodeResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeInstallCodeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstallCodeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstallCodeResponseBody body); @Override DescribeInstallCodeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstallCodeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstallCodeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstallCodeResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeInstallCodeResponseBody body) { this.body = body; return this; } @Override public DescribeInstallCodeResponse build() { return new DescribeInstallCodeResponse(this); } } }