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/ListAgentlessTaskResponseBody.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 ListAgentlessTaskResponseBody} extends {@link TeaModel}
*
* <p>ListAgentlessTaskResponseBody</p>
*/
public class ListAgentlessTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAgentlessTaskResponseBody(Builder builder) {
this.list = builder.list;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAgentlessTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @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<List> list;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListAgentlessTaskResponseBody model) {
this.list = model.list;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The tasks.</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;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1A975D03-5F49-5354-B2CB-3918D5DA****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAgentlessTaskResponseBody build() {
return new ListAgentlessTaskResponseBody(this);
}
}
/**
*
* {@link ListAgentlessTaskResponseBody} extends {@link TeaModel}
*
* <p>ListAgentlessTaskResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@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("MeasureSpace")
private Long measureSpace;
@com.aliyun.core.annotation.NameInMap("Progress")
private Integer progress;
@com.aliyun.core.annotation.NameInMap("ProgressByProject")
private String progressByProject;
@com.aliyun.core.annotation.NameInMap("ReportDownloadUrl")
private String reportDownloadUrl;
@com.aliyun.core.annotation.NameInMap("ReportStatus")
private String reportStatus;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("TargetType")
private Integer targetType;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private List(Builder builder) {
this.endTime = builder.endTime;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.measureSpace = builder.measureSpace;
this.progress = builder.progress;
this.progressByProject = builder.progressByProject;
this.reportDownloadUrl = builder.reportDownloadUrl;
this.reportStatus = builder.reportStatus;
this.result = builder.result;
this.startTime = builder.startTime;
this.status = builder.status;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @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 measureSpace
*/
public Long getMeasureSpace() {
return this.measureSpace;
}
/**
* @return progress
*/
public Integer getProgress() {
return this.progress;
}
/**
* @return progressByProject
*/
public String getProgressByProject() {
return this.progressByProject;
}
/**
* @return reportDownloadUrl
*/
public String getReportDownloadUrl() {
return this.reportDownloadUrl;
}
/**
* @return reportStatus
*/
public String getReportStatus() {
return this.reportStatus;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public Integer getTargetType() {
return this.targetType;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Long endTime;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long measureSpace;
private Integer progress;
private String progressByProject;
private String reportDownloadUrl;
private String reportStatus;
private String result;
private Long startTime;
private Integer status;
private String targetName;
private Integer targetType;
private String taskId;
private String taskName;
private String uuid;
private Builder() {
}
private Builder(List model) {
this.endTime = model.endTime;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.measureSpace = model.measureSpace;
this.progress = model.progress;
this.progressByProject = model.progressByProject;
this.reportDownloadUrl = model.reportDownloadUrl;
this.reportStatus = model.reportStatus;
this.result = model.result;
this.startTime = model.startTime;
this.status = model.status;
this.targetName = model.targetName;
this.targetType = model.targetType;
this.taskId = model.taskId;
this.taskName = model.taskName;
this.uuid = model.uuid;
}
/**
* <p>The end timestamp of the task. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1678895999999</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The instance ID of the asset.</p>
*
* <strong>example:</strong>
* <p>s-wz95vuqky0ada4******</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>sql-test-0****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>8.210.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.25.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The amount of data detected. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>154.11</p>
*/
public Builder measureSpace(Long measureSpace) {
this.measureSpace = measureSpace;
return this;
}
/**
* <p>The progress of the task.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder progress(Integer progress) {
this.progress = progress;
return this;
}
/**
* <p>The execution progress of the check items.</p>
*
* <strong>example:</strong>
* <p>"{"scaVul":100,"binary":100,"baseline":100,"vul":100,"webshell":100,"script":100,"sensitiveInfo":100}"</p>
*/
public Builder progressByProject(String progressByProject) {
this.progressByProject = progressByProject;
return this;
}
/**
* <p>The download URL of the report.</p>
*
* <strong>example:</strong>
* <p><a href="http://newsas-oss-bucket.oss-cn-hangzhou.aliyuncs.com/agent_less_single_report">http://newsas-oss-bucket.oss-cn-hangzhou.aliyuncs.com/agent_less_single_report</a>****</p>
*/
public Builder reportDownloadUrl(String reportDownloadUrl) {
this.reportDownloadUrl = reportDownloadUrl;
return this;
}
/**
* <p>The status of the report. Valid values:</p>
* <ul>
* <li><strong>PREPARED</strong>: preparing</li>
* <li><strong>RUNNING</strong>: running</li>
* <li><strong>SUCCESS</strong>: succeeded</li>
* <li><strong>TIMEOUT</strong>: timed out</li>
* <li><strong>FAILED</strong>: failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>SUCCESS</p>
*/
public Builder reportStatus(String reportStatus) {
this.reportStatus = reportStatus;
return this;
}
/**
* <p>The result of the detection.</p>
*
* <strong>example:</strong>
* <p>True</p>
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* <p>The start timestamp of the task. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1672741657897</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the detection task.</p>
* <ul>
* <li><strong>1</strong>: The detection task is in progress.</li>
* <li><strong>2</strong>: The detection task is complete.</li>
* <li><strong>3</strong>: The detection task fails.</li>
* <li><strong>4</strong>: The detection task times out.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The name of the asset that is detected.</p>
*
* <strong>example:</strong>
* <p>hkdevt****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The type of the asset that is detected. Valid values:</p>
* <ul>
* <li><strong>1</strong>: snapshot</li>
* <li><strong>2</strong>: image</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder targetType(Integer targetType) {
this.targetType = targetType;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>1538****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the detection task.</p>
*
* <strong>example:</strong>
* <p>AGENTLESS_SCAN</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>49e25e0f-bb51-4a5a-a1b3-13a4ddaa****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListAgentlessTaskResponseBody} extends {@link TeaModel}
*
* <p>ListAgentlessTaskResponseBody</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 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>55</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/ListAssetCleanConfigRequest.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 ListAssetCleanConfigRequest} extends {@link RequestModel}
*
* <p>ListAssetCleanConfigRequest</p>
*/
public class ListAssetCleanConfigRequest extends Request {
private ListAssetCleanConfigRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static ListAssetCleanConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<ListAssetCleanConfigRequest, Builder> {
private Builder() {
super();
}
private Builder(ListAssetCleanConfigRequest request) {
super(request);
}
@Override
public ListAssetCleanConfigRequest build() {
return new ListAssetCleanConfigRequest(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/ListAssetCleanConfigResponse.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 ListAssetCleanConfigResponse} extends {@link TeaModel}
*
* <p>ListAssetCleanConfigResponse</p>
*/
public class ListAssetCleanConfigResponse 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 ListAssetCleanConfigResponseBody body;
private ListAssetCleanConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAssetCleanConfigResponse 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 ListAssetCleanConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAssetCleanConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAssetCleanConfigResponseBody body);
@Override
ListAssetCleanConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAssetCleanConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAssetCleanConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAssetCleanConfigResponse 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(ListAssetCleanConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAssetCleanConfigResponse build() {
return new ListAssetCleanConfigResponse(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/ListAssetCleanConfigResponseBody.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 ListAssetCleanConfigResponseBody} extends {@link TeaModel}
*
* <p>ListAssetCleanConfigResponseBody</p>
*/
public class ListAssetCleanConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAssetCleanConfigResponseBody(Builder builder) {
this.count = builder.count;
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetCleanConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer count;
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(ListAssetCleanConfigResponseBody model) {
this.count = model.count;
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The number of cleanup configurations.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The asset cleanup configurations.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>20456DD5-5CBF-5015-9173-12CA4246B***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAssetCleanConfigResponseBody build() {
return new ListAssetCleanConfigResponseBody(this);
}
}
/**
*
* {@link ListAssetCleanConfigResponseBody} extends {@link TeaModel}
*
* <p>ListAssetCleanConfigResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CleanDays")
private Integer cleanDays;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("Type")
private Integer type;
private Data(Builder builder) {
this.cleanDays = builder.cleanDays;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return cleanDays
*/
public Integer getCleanDays() {
return this.cleanDays;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder {
private Integer cleanDays;
private Integer status;
private Integer type;
private Builder() {
}
private Builder(Data model) {
this.cleanDays = model.cleanDays;
this.status = model.status;
this.type = model.type;
}
/**
* <p>The number of days before hosts whose provider cannot be identified are automatically cleaned after they enter the offline state. Valid value: an integer that ranges from 1 to 30.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder cleanDays(Integer cleanDays) {
this.cleanDays = cleanDays;
return this;
}
/**
* <p>Indicates whether the configuration takes effect. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The configuration does not take effect.</li>
* <li><strong>1</strong>: The configuration takes effect.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The type of hosts that are cleaned.</p>
* <ul>
* <li>The value is set to <strong>1</strong>, which indicates hosts whose provider cannot be identified.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder type(Integer type) {
this.type = type;
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/ListAssetInfoPublishRequest.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 ListAssetInfoPublishRequest} extends {@link RequestModel}
*
* <p>ListAssetInfoPublishRequest</p>
*/
public class ListAssetInfoPublishRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UuidList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> uuidList;
private ListAssetInfoPublishRequest(Builder builder) {
super(builder);
this.name = builder.name;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetInfoPublishRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder extends Request.Builder<ListAssetInfoPublishRequest, Builder> {
private String name;
private java.util.List<String> uuidList;
private Builder() {
super();
}
private Builder(ListAssetInfoPublishRequest request) {
super(request);
this.name = request.name;
this.uuidList = request.uuidList;
}
/**
* <p>An extended parameter. This parameter is temporarily unavailable.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The UUIDs of the servers that you want to query.</p>
* <p>This parameter is required.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.putQueryParameter("UuidList", uuidList);
this.uuidList = uuidList;
return this;
}
@Override
public ListAssetInfoPublishRequest build() {
return new ListAssetInfoPublishRequest(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/ListAssetInfoPublishResponse.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 ListAssetInfoPublishResponse} extends {@link TeaModel}
*
* <p>ListAssetInfoPublishResponse</p>
*/
public class ListAssetInfoPublishResponse 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 ListAssetInfoPublishResponseBody body;
private ListAssetInfoPublishResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAssetInfoPublishResponse 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 ListAssetInfoPublishResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAssetInfoPublishResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAssetInfoPublishResponseBody body);
@Override
ListAssetInfoPublishResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAssetInfoPublishResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAssetInfoPublishResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAssetInfoPublishResponse 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(ListAssetInfoPublishResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAssetInfoPublishResponse build() {
return new ListAssetInfoPublishResponse(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/ListAssetInfoPublishResponseBody.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 ListAssetInfoPublishResponseBody} extends {@link TeaModel}
*
* <p>ListAssetInfoPublishResponseBody</p>
*/
public class ListAssetInfoPublishResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetList")
private java.util.List<AssetList> assetList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAssetInfoPublishResponseBody(Builder builder) {
this.assetList = builder.assetList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetInfoPublishResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetList
*/
public java.util.List<AssetList> getAssetList() {
return this.assetList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AssetList> assetList;
private String requestId;
private Builder() {
}
private Builder(ListAssetInfoPublishResponseBody model) {
this.assetList = model.assetList;
this.requestId = model.requestId;
}
/**
* <p>The servers.</p>
*/
public Builder assetList(java.util.List<AssetList> assetList) {
this.assetList = assetList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>3956048F-9D73-5EDB-834B-4827BB483977</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAssetInfoPublishResponseBody build() {
return new ListAssetInfoPublishResponseBody(this);
}
}
/**
*
* {@link ListAssetInfoPublishResponseBody} extends {@link TeaModel}
*
* <p>ListAssetInfoPublishResponseBody</p>
*/
public static class AssetList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurVersion")
private String curVersion;
@com.aliyun.core.annotation.NameInMap("LastUpgradeTime")
private Long lastUpgradeTime;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("UpgradeEnable")
private Boolean upgradeEnable;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private AssetList(Builder builder) {
this.curVersion = builder.curVersion;
this.lastUpgradeTime = builder.lastUpgradeTime;
this.status = builder.status;
this.upgradeEnable = builder.upgradeEnable;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static AssetList create() {
return builder().build();
}
/**
* @return curVersion
*/
public String getCurVersion() {
return this.curVersion;
}
/**
* @return lastUpgradeTime
*/
public Long getLastUpgradeTime() {
return this.lastUpgradeTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return upgradeEnable
*/
public Boolean getUpgradeEnable() {
return this.upgradeEnable;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String curVersion;
private Long lastUpgradeTime;
private Integer status;
private Boolean upgradeEnable;
private String uuid;
private Builder() {
}
private Builder(AssetList model) {
this.curVersion = model.curVersion;
this.lastUpgradeTime = model.lastUpgradeTime;
this.status = model.status;
this.upgradeEnable = model.upgradeEnable;
this.uuid = model.uuid;
}
/**
* <p>The version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>0.0.8</p>
*/
public Builder curVersion(String curVersion) {
this.curVersion = curVersion;
return this;
}
/**
* <p>The time when the Security Center agent was last upgraded.</p>
*
* <strong>example:</strong>
* <p>1724522400000</p>
*/
public Builder lastUpgradeTime(Long lastUpgradeTime) {
this.lastUpgradeTime = lastUpgradeTime;
return this;
}
/**
* <p>The publish status of the Security Center agent. Valid values:</p>
* <ul>
* <li><strong>0</strong>: not started.</li>
* <li><strong>1</strong>: publishing.</li>
* <li><strong>2</strong>: published.</li>
* <li><strong>3</strong>: publish suspended.</li>
* <li><strong>4</strong>: forcibly upgrading.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>Indicates whether automatic upgrade is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder upgradeEnable(Boolean upgradeEnable) {
this.upgradeEnable = upgradeEnable;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>2a98f149-0256-414c-a29a-a69f8a75****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public AssetList build() {
return new AssetList(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/ListAssetRefreshTaskConfigRequest.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 ListAssetRefreshTaskConfigRequest} extends {@link RequestModel}
*
* <p>ListAssetRefreshTaskConfigRequest</p>
*/
public class ListAssetRefreshTaskConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RefreshConfigType")
private Integer refreshConfigType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetId")
private Long targetId;
private ListAssetRefreshTaskConfigRequest(Builder builder) {
super(builder);
this.refreshConfigType = builder.refreshConfigType;
this.regionId = builder.regionId;
this.targetId = builder.targetId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetRefreshTaskConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return refreshConfigType
*/
public Integer getRefreshConfigType() {
return this.refreshConfigType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return targetId
*/
public Long getTargetId() {
return this.targetId;
}
public static final class Builder extends Request.Builder<ListAssetRefreshTaskConfigRequest, Builder> {
private Integer refreshConfigType;
private String regionId;
private Long targetId;
private Builder() {
super();
}
private Builder(ListAssetRefreshTaskConfigRequest request) {
super(request);
this.refreshConfigType = request.refreshConfigType;
this.regionId = request.regionId;
this.targetId = request.targetId;
}
/**
* <p>The type of the configuration. Valid values:</p>
* <ul>
* <li><strong>0</strong>: server synchronization task</li>
* <li><strong>1</strong>: cloud service synchronization task</li>
* <li><strong>2</strong>: scheduled AccessKey pair verification task</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder refreshConfigType(Integer refreshConfigType) {
this.putQueryParameter("RefreshConfigType", refreshConfigType);
this.refreshConfigType = refreshConfigType;
return this;
}
/**
* <p>The region where the Security Center instance is deployed.</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 data entry containing the AccessKey pair that you specify when you configure the scheduled AccessKey pair verification task.</p>
*
* <strong>example:</strong>
* <p>2295</p>
*/
public Builder targetId(Long targetId) {
this.putQueryParameter("TargetId", targetId);
this.targetId = targetId;
return this;
}
@Override
public ListAssetRefreshTaskConfigRequest build() {
return new ListAssetRefreshTaskConfigRequest(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/ListAssetRefreshTaskConfigResponse.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 ListAssetRefreshTaskConfigResponse} extends {@link TeaModel}
*
* <p>ListAssetRefreshTaskConfigResponse</p>
*/
public class ListAssetRefreshTaskConfigResponse 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 ListAssetRefreshTaskConfigResponseBody body;
private ListAssetRefreshTaskConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAssetRefreshTaskConfigResponse 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 ListAssetRefreshTaskConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAssetRefreshTaskConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAssetRefreshTaskConfigResponseBody body);
@Override
ListAssetRefreshTaskConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAssetRefreshTaskConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAssetRefreshTaskConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAssetRefreshTaskConfigResponse 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(ListAssetRefreshTaskConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAssetRefreshTaskConfigResponse build() {
return new ListAssetRefreshTaskConfigResponse(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/ListAssetRefreshTaskConfigResponseBody.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 ListAssetRefreshTaskConfigResponseBody} extends {@link TeaModel}
*
* <p>ListAssetRefreshTaskConfigResponseBody</p>
*/
public class ListAssetRefreshTaskConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetRefreshConfig")
private java.util.List<AssetRefreshConfig> assetRefreshConfig;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAssetRefreshTaskConfigResponseBody(Builder builder) {
this.assetRefreshConfig = builder.assetRefreshConfig;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetRefreshTaskConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetRefreshConfig
*/
public java.util.List<AssetRefreshConfig> getAssetRefreshConfig() {
return this.assetRefreshConfig;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AssetRefreshConfig> assetRefreshConfig;
private String requestId;
private Builder() {
}
private Builder(ListAssetRefreshTaskConfigResponseBody model) {
this.assetRefreshConfig = model.assetRefreshConfig;
this.requestId = model.requestId;
}
/**
* <p>The asset synchronization configuration.</p>
*/
public Builder assetRefreshConfig(java.util.List<AssetRefreshConfig> assetRefreshConfig) {
this.assetRefreshConfig = assetRefreshConfig;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>D65AADFC-1D20-5A6A-8F6A-9FA53C0DC1F8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAssetRefreshTaskConfigResponseBody build() {
return new ListAssetRefreshTaskConfigResponseBody(this);
}
}
/**
*
* {@link ListAssetRefreshTaskConfigResponseBody} extends {@link TeaModel}
*
* <p>ListAssetRefreshTaskConfigResponseBody</p>
*/
public static class AssetRefreshConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RefreshConfigType")
private Integer refreshConfigType;
@com.aliyun.core.annotation.NameInMap("SchedulePeriod")
private Integer schedulePeriod;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private AssetRefreshConfig(Builder builder) {
this.refreshConfigType = builder.refreshConfigType;
this.schedulePeriod = builder.schedulePeriod;
this.status = builder.status;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static AssetRefreshConfig create() {
return builder().build();
}
/**
* @return refreshConfigType
*/
public Integer getRefreshConfigType() {
return this.refreshConfigType;
}
/**
* @return schedulePeriod
*/
public Integer getSchedulePeriod() {
return this.schedulePeriod;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer refreshConfigType;
private Integer schedulePeriod;
private Integer status;
private Integer vendor;
private Builder() {
}
private Builder(AssetRefreshConfig model) {
this.refreshConfigType = model.refreshConfigType;
this.schedulePeriod = model.schedulePeriod;
this.status = model.status;
this.vendor = model.vendor;
}
/**
* <p>The type of the configuration. Valid values:</p>
* <ul>
* <li><strong>0</strong>: server synchronization task</li>
* <li><strong>1</strong>: cloud service synchronization task</li>
* <li><strong>2</strong>: scheduled AccessKey pair verification task</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder refreshConfigType(Integer refreshConfigType) {
this.refreshConfigType = refreshConfigType;
return this;
}
/**
* <p>The synchronization cycle. Valid values:</p>
* <ul>
* <li><strong>60</strong>: 60 minutes</li>
* <li><strong>180</strong>: 3 hours</li>
* <li><strong>360</strong>: 6 hours</li>
* <li><strong>720</strong>: 12 hours</li>
* <li><strong>1440</strong>: 1 day</li>
* <li><strong>10080</strong>: 7 days</li>
* </ul>
*
* <strong>example:</strong>
* <p>360</p>
*/
public Builder schedulePeriod(Integer schedulePeriod) {
this.schedulePeriod = schedulePeriod;
return this;
}
/**
* <p>The status of the configuration. Valid values:</p>
* <ul>
* <li><strong>1</strong>: enabled</li>
* <li><strong>0</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The service provider of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>3</strong>: Tencent Cloud</li>
* <li><strong>4</strong>: Huawei Cloud</li>
* <li><strong>7</strong>: Amazon Web Services (AWS) Cloud</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public AssetRefreshConfig build() {
return new AssetRefreshConfig(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/ListAssetSelectionSelectedTargetRequest.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 ListAssetSelectionSelectedTargetRequest} extends {@link RequestModel}
*
* <p>ListAssetSelectionSelectedTargetRequest</p>
*/
public class ListAssetSelectionSelectedTargetRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SelectionKey")
@com.aliyun.core.annotation.Validation(required = true)
private String selectionKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetList")
private java.util.List<String> targetList;
private ListAssetSelectionSelectedTargetRequest(Builder builder) {
super(builder);
this.selectionKey = builder.selectionKey;
this.targetList = builder.targetList;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetSelectionSelectedTargetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return selectionKey
*/
public String getSelectionKey() {
return this.selectionKey;
}
/**
* @return targetList
*/
public java.util.List<String> getTargetList() {
return this.targetList;
}
public static final class Builder extends Request.Builder<ListAssetSelectionSelectedTargetRequest, Builder> {
private String selectionKey;
private java.util.List<String> targetList;
private Builder() {
super();
}
private Builder(ListAssetSelectionSelectedTargetRequest request) {
super(request);
this.selectionKey = request.selectionKey;
this.targetList = request.targetList;
}
/**
* <p>The unique ID of the asset.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2e6ab33d-4e00-4581-ac16-0dd1f9ad****</p>
*/
public Builder selectionKey(String selectionKey) {
this.putQueryParameter("SelectionKey", selectionKey);
this.selectionKey = selectionKey;
return this;
}
/**
* <p>The details of queries.</p>
*/
public Builder targetList(java.util.List<String> targetList) {
this.putQueryParameter("TargetList", targetList);
this.targetList = targetList;
return this;
}
@Override
public ListAssetSelectionSelectedTargetRequest build() {
return new ListAssetSelectionSelectedTargetRequest(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/ListAssetSelectionSelectedTargetResponse.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 ListAssetSelectionSelectedTargetResponse} extends {@link TeaModel}
*
* <p>ListAssetSelectionSelectedTargetResponse</p>
*/
public class ListAssetSelectionSelectedTargetResponse 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 ListAssetSelectionSelectedTargetResponseBody body;
private ListAssetSelectionSelectedTargetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAssetSelectionSelectedTargetResponse 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 ListAssetSelectionSelectedTargetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAssetSelectionSelectedTargetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAssetSelectionSelectedTargetResponseBody body);
@Override
ListAssetSelectionSelectedTargetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAssetSelectionSelectedTargetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAssetSelectionSelectedTargetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAssetSelectionSelectedTargetResponse 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(ListAssetSelectionSelectedTargetResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAssetSelectionSelectedTargetResponse build() {
return new ListAssetSelectionSelectedTargetResponse(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/ListAssetSelectionSelectedTargetResponseBody.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 ListAssetSelectionSelectedTargetResponseBody} extends {@link TeaModel}
*
* <p>ListAssetSelectionSelectedTargetResponseBody</p>
*/
public class ListAssetSelectionSelectedTargetResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAssetSelectionSelectedTargetResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetSelectionSelectedTargetResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(ListAssetSelectionSelectedTargetResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1EB12F73-6828-59D2-9FBF-F3713FD55128</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAssetSelectionSelectedTargetResponseBody build() {
return new ListAssetSelectionSelectedTargetResponseBody(this);
}
}
/**
*
* {@link ListAssetSelectionSelectedTargetResponseBody} extends {@link TeaModel}
*
* <p>ListAssetSelectionSelectedTargetResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
private Data(Builder builder) {
this.targetId = builder.targetId;
this.targetName = builder.targetName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
public static final class Builder {
private String targetId;
private String targetName;
private Builder() {
}
private Builder(Data model) {
this.targetId = model.targetId;
this.targetName = model.targetName;
}
/**
* <p>The ID of the asset.</p>
*
* <strong>example:</strong>
* <p>30****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>jen****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
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/ListAssetSelectionTargetRequest.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 ListAssetSelectionTargetRequest} extends {@link RequestModel}
*
* <p>ListAssetSelectionTargetRequest</p>
*/
public class ListAssetSelectionTargetRequest 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("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SelectionKey")
@com.aliyun.core.annotation.Validation(required = true)
private String selectionKey;
private ListAssetSelectionTargetRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.selectionKey = builder.selectionKey;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetSelectionTargetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return selectionKey
*/
public String getSelectionKey() {
return this.selectionKey;
}
public static final class Builder extends Request.Builder<ListAssetSelectionTargetRequest, Builder> {
private Integer currentPage;
private Integer pageSize;
private String selectionKey;
private Builder() {
super();
}
private Builder(ListAssetSelectionTargetRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.selectionKey = request.selectionKey;
}
/**
* <p>The number of the page to return. Pages start from page 1. Default value: 1.</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 number of entries to return on each page.</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 globally unique identifier (GUID) of the asset.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>8ccf9b01-2c64-4cba-8122-10115f29****</p>
*/
public Builder selectionKey(String selectionKey) {
this.putQueryParameter("SelectionKey", selectionKey);
this.selectionKey = selectionKey;
return this;
}
@Override
public ListAssetSelectionTargetRequest build() {
return new ListAssetSelectionTargetRequest(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/ListAssetSelectionTargetResponse.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 ListAssetSelectionTargetResponse} extends {@link TeaModel}
*
* <p>ListAssetSelectionTargetResponse</p>
*/
public class ListAssetSelectionTargetResponse 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 ListAssetSelectionTargetResponseBody body;
private ListAssetSelectionTargetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAssetSelectionTargetResponse 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 ListAssetSelectionTargetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAssetSelectionTargetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAssetSelectionTargetResponseBody body);
@Override
ListAssetSelectionTargetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAssetSelectionTargetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAssetSelectionTargetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAssetSelectionTargetResponse 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(ListAssetSelectionTargetResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAssetSelectionTargetResponse build() {
return new ListAssetSelectionTargetResponse(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/ListAssetSelectionTargetResponseBody.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 ListAssetSelectionTargetResponseBody} extends {@link TeaModel}
*
* <p>ListAssetSelectionTargetResponseBody</p>
*/
public class ListAssetSelectionTargetResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAssetSelectionTargetResponseBody(Builder builder) {
this.data = builder.data;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAssetSelectionTargetResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @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<Data> data;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListAssetSelectionTargetResponseBody model) {
this.data = model.data;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
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>50A75355-F58F-5D65-8377-98C88DED9C51</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAssetSelectionTargetResponseBody build() {
return new ListAssetSelectionTargetResponseBody(this);
}
}
/**
*
* {@link ListAssetSelectionTargetResponseBody} extends {@link TeaModel}
*
* <p>ListAssetSelectionTargetResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TargetId")
private String targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
private Data(Builder builder) {
this.targetId = builder.targetId;
this.targetName = builder.targetName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return targetId
*/
public String getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
public static final class Builder {
private String targetId;
private String targetName;
private Builder() {
}
private Builder(Data model) {
this.targetId = model.targetId;
this.targetName = model.targetName;
}
/**
* <p>The ID of the asset.</p>
*
* <strong>example:</strong>
* <p>30****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>test****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link ListAssetSelectionTargetResponseBody} extends {@link TeaModel}
*
* <p>ListAssetSelectionTargetResponseBody</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 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>639</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/ListAttackPathEventRequest.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 ListAttackPathEventRequest} extends {@link RequestModel}
*
* <p>ListAttackPathEventRequest</p>
*/
public class ListAttackPathEventRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AttackPathAssetList")
private java.util.List<AttackPathAssetList> attackPathAssetList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
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("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 200)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PathNameDesc")
private String pathNameDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevelList")
private java.util.List<String> riskLevelList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
private ListAttackPathEventRequest(Builder builder) {
super(builder);
this.attackPathAssetList = builder.attackPathAssetList;
this.currentPage = builder.currentPage;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.pathNameDesc = builder.pathNameDesc;
this.pathType = builder.pathType;
this.riskLevelList = builder.riskLevelList;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static ListAttackPathEventRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathAssetList
*/
public java.util.List<AttackPathAssetList> getAttackPathAssetList() {
return this.attackPathAssetList;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return pathNameDesc
*/
public String getPathNameDesc() {
return this.pathNameDesc;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<ListAttackPathEventRequest, Builder> {
private java.util.List<AttackPathAssetList> attackPathAssetList;
private Integer currentPage;
private Long endTime;
private String lang;
private Integer pageSize;
private String pathNameDesc;
private String pathType;
private java.util.List<String> riskLevelList;
private Long startTime;
private Builder() {
super();
}
private Builder(ListAttackPathEventRequest request) {
super(request);
this.attackPathAssetList = request.attackPathAssetList;
this.currentPage = request.currentPage;
this.endTime = request.endTime;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.pathNameDesc = request.pathNameDesc;
this.pathType = request.pathType;
this.riskLevelList = request.riskLevelList;
this.startTime = request.startTime;
}
/**
* <p>List of cloud product assets in the attack path.</p>
*/
public Builder attackPathAssetList(java.util.List<AttackPathAssetList> attackPathAssetList) {
this.putQueryParameter("AttackPathAssetList", attackPathAssetList);
this.attackPathAssetList = attackPathAssetList;
return this;
}
/**
* <p>Specifies from which page of the returned results the query results should be displayed. The default value is 1, indicating that the display starts from the first page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Timestamp of the end time. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1668064495000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>Sets the language type for requests and received messages, with the default being <strong>zh</strong>. Values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The maximum number of data entries displayed per page in a paginated query. The default value is <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>Description of the path name.</p>
* <blockquote>
* <p>You can call <a href="~~ListAvailableAttackPath~~">ListAvailableAttackPath</a> to query the path name description.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User</p>
*/
public Builder pathNameDesc(String pathNameDesc) {
this.putQueryParameter("PathNameDesc", pathNameDesc);
this.pathNameDesc = pathNameDesc;
return this;
}
/**
* <p>Path type.</p>
* <blockquote>
* <p>You can call <a href="~~ListAvailableAttackPath~~">ListAvailableAttackPath</a> to query the path type.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.putQueryParameter("PathType", pathType);
this.pathType = pathType;
return this;
}
/**
* <p>List of risk level information.</p>
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putQueryParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* <p>Timestamp of the start time. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1666886400000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public ListAttackPathEventRequest build() {
return new ListAttackPathEventRequest(this);
}
}
/**
*
* {@link ListAttackPathEventRequest} extends {@link TeaModel}
*
* <p>ListAttackPathEventRequest</p>
*/
public static class AttackPathAssetList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private AttackPathAssetList(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.nodeType = builder.nodeType;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathAssetList create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String nodeType;
private Integer vendor;
private Builder() {
}
private Builder(AttackPathAssetList model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.nodeType = model.nodeType;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
* <blockquote>
* <p>You can call <a href="~~ListSupportAttackPathAsset~~">ListSupportAttackPathAsset</a> to query the subtype of the cloud product asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
* <blockquote>
* <p>You can call <a href="~~ListSupportAttackPathAsset~~">ListSupportAttackPathAsset</a> to query the type of the cloud product asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>17</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>Node type, values:</p>
* <ul>
* <li><strong>start</strong>: start point.</li>
* <li><strong>end</strong>: end point.</li>
* </ul>
*
* <strong>example:</strong>
* <p>start</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
* <blockquote>
* <p>You can call <a href="~~ListSupportAttackPathAsset~~">ListSupportAttackPathAsset</a> to query the vendor of the cloud product asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public AttackPathAssetList build() {
return new AttackPathAssetList(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/ListAttackPathEventResponse.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 ListAttackPathEventResponse} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponse</p>
*/
public class ListAttackPathEventResponse 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 ListAttackPathEventResponseBody body;
private ListAttackPathEventResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAttackPathEventResponse 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 ListAttackPathEventResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAttackPathEventResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAttackPathEventResponseBody body);
@Override
ListAttackPathEventResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAttackPathEventResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAttackPathEventResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAttackPathEventResponse 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(ListAttackPathEventResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAttackPathEventResponse build() {
return new ListAttackPathEventResponse(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/ListAttackPathEventResponseBody.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 ListAttackPathEventResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponseBody</p>
*/
public class ListAttackPathEventResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathEventList")
private java.util.List<AttackPathEventList> attackPathEventList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAttackPathEventResponseBody(Builder builder) {
this.attackPathEventList = builder.attackPathEventList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAttackPathEventResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathEventList
*/
public java.util.List<AttackPathEventList> getAttackPathEventList() {
return this.attackPathEventList;
}
/**
* @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<AttackPathEventList> attackPathEventList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListAttackPathEventResponseBody model) {
this.attackPathEventList = model.attackPathEventList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>List of attack path events.</p>
*/
public Builder attackPathEventList(java.util.List<AttackPathEventList> attackPathEventList) {
this.attackPathEventList = attackPathEventList;
return this;
}
/**
* <p>Pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>3956048F-9D73-5EDB-834B-4827BB48****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAttackPathEventResponseBody build() {
return new ListAttackPathEventResponseBody(this);
}
}
/**
*
* {@link ListAttackPathEventResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponseBody</p>
*/
public static class DstAsset extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SensitiveAssetFlag")
private Integer sensitiveAssetFlag;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private DstAsset(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.sensitiveAssetFlag = builder.sensitiveAssetFlag;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static DstAsset create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return sensitiveAssetFlag
*/
public Integer getSensitiveAssetFlag() {
return this.sensitiveAssetFlag;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String regionId;
private Integer sensitiveAssetFlag;
private Integer vendor;
private Builder() {
}
private Builder(DstAsset model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.sensitiveAssetFlag = model.sensitiveAssetFlag;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>i-uf6a1tt9umxwoxqn****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Instance name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>ID of the region where the cloud product asset instance is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Sensitive asset flag. Values:</p>
* <ul>
* <li><strong>0</strong>: Non-sensitive asset.</li>
* <li><strong>1</strong>: Sensitive asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sensitiveAssetFlag(Integer sensitiveAssetFlag) {
this.sensitiveAssetFlag = sensitiveAssetFlag;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public DstAsset build() {
return new DstAsset(this);
}
}
}
/**
*
* {@link ListAttackPathEventResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponseBody</p>
*/
public static class SrcAsset extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SensitiveAssetFlag")
private Integer sensitiveAssetFlag;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private SrcAsset(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.sensitiveAssetFlag = builder.sensitiveAssetFlag;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static SrcAsset create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return sensitiveAssetFlag
*/
public Integer getSensitiveAssetFlag() {
return this.sensitiveAssetFlag;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private String instanceId;
private String instanceName;
private String regionId;
private Integer sensitiveAssetFlag;
private Integer vendor;
private Builder() {
}
private Builder(SrcAsset model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.sensitiveAssetFlag = model.sensitiveAssetFlag;
this.vendor = model.vendor;
}
/**
* <p>Subtype of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>ID of the cloud product asset instance.</p>
*
* <strong>example:</strong>
* <p>i-bp18ifsr1tu1dx39****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Instance name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>ID of the region where the cloud product asset instance is located.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Sensitive asset flag. Values:</p>
* <ul>
* <li><strong>0</strong>: Non-sensitive asset.</li>
* <li><strong>1</strong>: Sensitive asset.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder sensitiveAssetFlag(Integer sensitiveAssetFlag) {
this.sensitiveAssetFlag = sensitiveAssetFlag;
return this;
}
/**
* <p>Vendor of the cloud product asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public SrcAsset build() {
return new SrcAsset(this);
}
}
}
/**
*
* {@link ListAttackPathEventResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponseBody</p>
*/
public static class AttackPathEventList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstAsset")
private DstAsset dstAsset;
@com.aliyun.core.annotation.NameInMap("EventId")
private Long eventId;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("PathName")
private String pathName;
@com.aliyun.core.annotation.NameInMap("PathNameDesc")
private String pathNameDesc;
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.NameInMap("PathTypeDesc")
private String pathTypeDesc;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SrcAsset")
private SrcAsset srcAsset;
private AttackPathEventList(Builder builder) {
this.dstAsset = builder.dstAsset;
this.eventId = builder.eventId;
this.lastTime = builder.lastTime;
this.pathName = builder.pathName;
this.pathNameDesc = builder.pathNameDesc;
this.pathType = builder.pathType;
this.pathTypeDesc = builder.pathTypeDesc;
this.riskLevel = builder.riskLevel;
this.srcAsset = builder.srcAsset;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathEventList create() {
return builder().build();
}
/**
* @return dstAsset
*/
public DstAsset getDstAsset() {
return this.dstAsset;
}
/**
* @return eventId
*/
public Long getEventId() {
return this.eventId;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return pathName
*/
public String getPathName() {
return this.pathName;
}
/**
* @return pathNameDesc
*/
public String getPathNameDesc() {
return this.pathNameDesc;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return pathTypeDesc
*/
public String getPathTypeDesc() {
return this.pathTypeDesc;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return srcAsset
*/
public SrcAsset getSrcAsset() {
return this.srcAsset;
}
public static final class Builder {
private DstAsset dstAsset;
private Long eventId;
private Long lastTime;
private String pathName;
private String pathNameDesc;
private String pathType;
private String pathTypeDesc;
private String riskLevel;
private SrcAsset srcAsset;
private Builder() {
}
private Builder(AttackPathEventList model) {
this.dstAsset = model.dstAsset;
this.eventId = model.eventId;
this.lastTime = model.lastTime;
this.pathName = model.pathName;
this.pathNameDesc = model.pathNameDesc;
this.pathType = model.pathType;
this.pathTypeDesc = model.pathTypeDesc;
this.riskLevel = model.riskLevel;
this.srcAsset = model.srcAsset;
}
/**
* <p>Destination asset.</p>
*/
public Builder dstAsset(DstAsset dstAsset) {
this.dstAsset = dstAsset;
return this;
}
/**
* <p>The ID of the alert event.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder eventId(Long eventId) {
this.eventId = eventId;
return this;
}
/**
* <p>Timestamp of the latest discovery. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1742869699000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>Path name.</p>
*
* <strong>example:</strong>
* <p>ecs_get_credential_by_create_login_profile</p>
*/
public Builder pathName(String pathName) {
this.pathName = pathName;
return this;
}
/**
* <p>Description of the path name.</p>
*
* <strong>example:</strong>
* <p>ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User</p>
*/
public Builder pathNameDesc(String pathNameDesc) {
this.pathNameDesc = pathNameDesc;
return this;
}
/**
* <p>Path type.</p>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.pathType = pathType;
return this;
}
/**
* <p>Description of the path type.</p>
*
* <strong>example:</strong>
* <p>Privilege Escalation by Role</p>
*/
public Builder pathTypeDesc(String pathTypeDesc) {
this.pathTypeDesc = pathTypeDesc;
return this;
}
/**
* <p>Risk level.</p>
*
* <strong>example:</strong>
* <p>suspicious</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>Source asset.</p>
*/
public Builder srcAsset(SrcAsset srcAsset) {
this.srcAsset = srcAsset;
return this;
}
public AttackPathEventList build() {
return new AttackPathEventList(this);
}
}
}
/**
*
* {@link ListAttackPathEventResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathEventResponseBody</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 data entries displayed on the current page when performing a paginated query.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number displayed in the pagination query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of data items displayed per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of data items.</p>
*
* <strong>example:</strong>
* <p>30</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/ListAttackPathWhitelistRequest.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 ListAttackPathWhitelistRequest} extends {@link RequestModel}
*
* <p>ListAttackPathWhitelistRequest</p>
*/
public class ListAttackPathWhitelistRequest 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("PathNameDesc")
private String pathNameDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WhitelistName")
private String whitelistName;
private ListAttackPathWhitelistRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.pathNameDesc = builder.pathNameDesc;
this.pathType = builder.pathType;
this.whitelistName = builder.whitelistName;
}
public static Builder builder() {
return new Builder();
}
public static ListAttackPathWhitelistRequest 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 pathNameDesc
*/
public String getPathNameDesc() {
return this.pathNameDesc;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return whitelistName
*/
public String getWhitelistName() {
return this.whitelistName;
}
public static final class Builder extends Request.Builder<ListAttackPathWhitelistRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private String pathNameDesc;
private String pathType;
private String whitelistName;
private Builder() {
super();
}
private Builder(ListAttackPathWhitelistRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.pathNameDesc = request.pathNameDesc;
this.pathType = request.pathType;
this.whitelistName = request.whitelistName;
}
/**
* <p>When performing a paginated query, set the current page number. The default value is <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 type for requests and responses. The default value is <strong>zh</strong>. Values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>When performing a paginated query, set the maximum number of items per page. The default value is 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>Path name description.</p>
* <blockquote>
* <p>You can call <a href="~~ListAvailableAttackPath~~">ListAvailableAttackPath</a> to query the path name descriptions.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User</p>
*/
public Builder pathNameDesc(String pathNameDesc) {
this.putQueryParameter("PathNameDesc", pathNameDesc);
this.pathNameDesc = pathNameDesc;
return this;
}
/**
* <p>Path type.</p>
* <blockquote>
* <p>You can call <a href="~~ListAvailableAttackPath~~">ListAvailableAttackPath</a> to query the path types.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.putQueryParameter("PathType", pathType);
this.pathType = pathType;
return this;
}
/**
* <p>Whitelist name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder whitelistName(String whitelistName) {
this.putQueryParameter("WhitelistName", whitelistName);
this.whitelistName = whitelistName;
return this;
}
@Override
public ListAttackPathWhitelistRequest build() {
return new ListAttackPathWhitelistRequest(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/ListAttackPathWhitelistResponse.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 ListAttackPathWhitelistResponse} extends {@link TeaModel}
*
* <p>ListAttackPathWhitelistResponse</p>
*/
public class ListAttackPathWhitelistResponse 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 ListAttackPathWhitelistResponseBody body;
private ListAttackPathWhitelistResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAttackPathWhitelistResponse 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 ListAttackPathWhitelistResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAttackPathWhitelistResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAttackPathWhitelistResponseBody body);
@Override
ListAttackPathWhitelistResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAttackPathWhitelistResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAttackPathWhitelistResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAttackPathWhitelistResponse 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(ListAttackPathWhitelistResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAttackPathWhitelistResponse build() {
return new ListAttackPathWhitelistResponse(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/ListAttackPathWhitelistResponseBody.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 ListAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathWhitelistResponseBody</p>
*/
public class ListAttackPathWhitelistResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathWhitelistList")
private java.util.List<AttackPathWhitelistList> attackPathWhitelistList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAttackPathWhitelistResponseBody(Builder builder) {
this.attackPathWhitelistList = builder.attackPathWhitelistList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAttackPathWhitelistResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathWhitelistList
*/
public java.util.List<AttackPathWhitelistList> getAttackPathWhitelistList() {
return this.attackPathWhitelistList;
}
/**
* @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<AttackPathWhitelistList> attackPathWhitelistList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListAttackPathWhitelistResponseBody model) {
this.attackPathWhitelistList = model.attackPathWhitelistList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>List of attack path whitelists.</p>
*/
public Builder attackPathWhitelistList(java.util.List<AttackPathWhitelistList> attackPathWhitelistList) {
this.attackPathWhitelistList = attackPathWhitelistList;
return this;
}
/**
* <p>Page information for paginated queries.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>89AD16CC-97EE-50F3-9B12-9E28E5C8****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAttackPathWhitelistResponseBody build() {
return new ListAttackPathWhitelistResponseBody(this);
}
}
/**
*
* {@link ListAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathWhitelistResponseBody</p>
*/
public static class AttackPathWhitelistList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathWhitelistId")
private String attackPathWhitelistId;
@com.aliyun.core.annotation.NameInMap("LastModifiedTimestamp")
private Long lastModifiedTimestamp;
@com.aliyun.core.annotation.NameInMap("PathName")
private String pathName;
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("WhitelistName")
private String whitelistName;
@com.aliyun.core.annotation.NameInMap("WhitelistType")
private String whitelistType;
private AttackPathWhitelistList(Builder builder) {
this.attackPathWhitelistId = builder.attackPathWhitelistId;
this.lastModifiedTimestamp = builder.lastModifiedTimestamp;
this.pathName = builder.pathName;
this.pathType = builder.pathType;
this.remark = builder.remark;
this.whitelistName = builder.whitelistName;
this.whitelistType = builder.whitelistType;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathWhitelistList create() {
return builder().build();
}
/**
* @return attackPathWhitelistId
*/
public String getAttackPathWhitelistId() {
return this.attackPathWhitelistId;
}
/**
* @return lastModifiedTimestamp
*/
public Long getLastModifiedTimestamp() {
return this.lastModifiedTimestamp;
}
/**
* @return pathName
*/
public String getPathName() {
return this.pathName;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return whitelistName
*/
public String getWhitelistName() {
return this.whitelistName;
}
/**
* @return whitelistType
*/
public String getWhitelistType() {
return this.whitelistType;
}
public static final class Builder {
private String attackPathWhitelistId;
private Long lastModifiedTimestamp;
private String pathName;
private String pathType;
private String remark;
private String whitelistName;
private String whitelistType;
private Builder() {
}
private Builder(AttackPathWhitelistList model) {
this.attackPathWhitelistId = model.attackPathWhitelistId;
this.lastModifiedTimestamp = model.lastModifiedTimestamp;
this.pathName = model.pathName;
this.pathType = model.pathType;
this.remark = model.remark;
this.whitelistName = model.whitelistName;
this.whitelistType = model.whitelistType;
}
/**
* <p>Attack path whitelist ID.</p>
*
* <strong>example:</strong>
* <p>apwl-b33dec0acf9b42aabde032d656c0****</p>
*/
public Builder attackPathWhitelistId(String attackPathWhitelistId) {
this.attackPathWhitelistId = attackPathWhitelistId;
return this;
}
/**
* <p>Timestamp of the last modification, in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1731897750000</p>
*/
public Builder lastModifiedTimestamp(Long lastModifiedTimestamp) {
this.lastModifiedTimestamp = lastModifiedTimestamp;
return this;
}
/**
* <p>Path name.</p>
*
* <strong>example:</strong>
* <p>ecs_get_credential_by_create_login_profile</p>
*/
public Builder pathName(String pathName) {
this.pathName = pathName;
return this;
}
/**
* <p>Path type.</p>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.pathType = pathType;
return this;
}
/**
* <p>Remark.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>Whitelist name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder whitelistName(String whitelistName) {
this.whitelistName = whitelistName;
return this;
}
/**
* <p>Whitelist type.</p>
*
* <strong>example:</strong>
* <p>PART_ASSET</p>
*/
public Builder whitelistType(String whitelistType) {
this.whitelistType = whitelistType;
return this;
}
public AttackPathWhitelistList build() {
return new AttackPathWhitelistList(this);
}
}
}
/**
*
* {@link ListAttackPathWhitelistResponseBody} extends {@link TeaModel}
*
* <p>ListAttackPathWhitelistResponseBody</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>Number of items displayed on the current page in a paginated query.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>Current page number in a paginated query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>Number of items per page in the returned data.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>Total number of items.</p>
*
* <strong>example:</strong>
* <p>49</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/ListAutoTagRulesRequest.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 ListAutoTagRulesRequest} extends {@link RequestModel}
*
* <p>ListAutoTagRulesRequest</p>
*/
public class ListAutoTagRulesRequest 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("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
private ListAutoTagRulesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.ruleName = builder.ruleName;
}
public static Builder builder() {
return new Builder();
}
public static ListAutoTagRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
public static final class Builder extends Request.Builder<ListAutoTagRulesRequest, Builder> {
private Integer currentPage;
private Integer pageSize;
private String ruleName;
private Builder() {
super();
}
private Builder(ListAutoTagRulesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.ruleName = request.ruleName;
}
/**
* <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 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 name of the rule.</p>
*
* <strong>example:</strong>
* <p>text-001</p>
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
@Override
public ListAutoTagRulesRequest build() {
return new ListAutoTagRulesRequest(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/ListAutoTagRulesResponse.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 ListAutoTagRulesResponse} extends {@link TeaModel}
*
* <p>ListAutoTagRulesResponse</p>
*/
public class ListAutoTagRulesResponse 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 ListAutoTagRulesResponseBody body;
private ListAutoTagRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAutoTagRulesResponse 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 ListAutoTagRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAutoTagRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAutoTagRulesResponseBody body);
@Override
ListAutoTagRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAutoTagRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAutoTagRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAutoTagRulesResponse 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(ListAutoTagRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAutoTagRulesResponse build() {
return new ListAutoTagRulesResponse(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/ListAutoTagRulesResponseBody.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 ListAutoTagRulesResponseBody} extends {@link TeaModel}
*
* <p>ListAutoTagRulesResponseBody</p>
*/
public class ListAutoTagRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoTagRuleList")
private java.util.List<AutoTagRuleList> autoTagRuleList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAutoTagRulesResponseBody(Builder builder) {
this.autoTagRuleList = builder.autoTagRuleList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAutoTagRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoTagRuleList
*/
public java.util.List<AutoTagRuleList> getAutoTagRuleList() {
return this.autoTagRuleList;
}
/**
* @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<AutoTagRuleList> autoTagRuleList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListAutoTagRulesResponseBody model) {
this.autoTagRuleList = model.autoTagRuleList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The asset auto-tagging rules.</p>
*/
public Builder autoTagRuleList(java.util.List<AutoTagRuleList> autoTagRuleList) {
this.autoTagRuleList = autoTagRuleList;
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>1383B0DB-D5D6-4B0C-9E6B-75939C8E67FE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAutoTagRulesResponseBody build() {
return new ListAutoTagRulesResponseBody(this);
}
}
/**
*
* {@link ListAutoTagRulesResponseBody} extends {@link TeaModel}
*
* <p>ListAutoTagRulesResponseBody</p>
*/
public static class AutoTagRuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("CreateTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("Expression")
private String expression;
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("ModifiedTimestamp")
private Long modifiedTimestamp;
@com.aliyun.core.annotation.NameInMap("RuleDesc")
private String ruleDesc;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("TagContext")
private String tagContext;
@com.aliyun.core.annotation.NameInMap("TagType")
private String tagType;
private AutoTagRuleList(Builder builder) {
this.aliUid = builder.aliUid;
this.createTimestamp = builder.createTimestamp;
this.expression = builder.expression;
this.id = builder.id;
this.modifiedTimestamp = builder.modifiedTimestamp;
this.ruleDesc = builder.ruleDesc;
this.ruleName = builder.ruleName;
this.tagContext = builder.tagContext;
this.tagType = builder.tagType;
}
public static Builder builder() {
return new Builder();
}
public static AutoTagRuleList create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return expression
*/
public String getExpression() {
return this.expression;
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return modifiedTimestamp
*/
public Long getModifiedTimestamp() {
return this.modifiedTimestamp;
}
/**
* @return ruleDesc
*/
public String getRuleDesc() {
return this.ruleDesc;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return tagContext
*/
public String getTagContext() {
return this.tagContext;
}
/**
* @return tagType
*/
public String getTagType() {
return this.tagType;
}
public static final class Builder {
private Long aliUid;
private Long createTimestamp;
private String expression;
private Integer id;
private Long modifiedTimestamp;
private String ruleDesc;
private String ruleName;
private String tagContext;
private String tagType;
private Builder() {
}
private Builder(AutoTagRuleList model) {
this.aliUid = model.aliUid;
this.createTimestamp = model.createTimestamp;
this.expression = model.expression;
this.id = model.id;
this.modifiedTimestamp = model.modifiedTimestamp;
this.ruleDesc = model.ruleDesc;
this.ruleName = model.ruleName;
this.tagContext = model.tagContext;
this.tagType = model.tagType;
}
/**
* <p>The ID of the Alibaba Cloud account.</p>
*
* <strong>example:</strong>
* <p>558463566374****</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The timestamp when the rule was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614674401000</p>
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* <p>The expression of the rule.</p>
*
* <strong>example:</strong>
* <p>[{"groups":"0","fieldValueType":"string","field":"internetIp","operator":"equals","value":"12.0.0.1"}]</p>
*/
public Builder expression(String expression) {
this.expression = expression;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>900029</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The timestamp when the rule was last updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614674401000</p>
*/
public Builder modifiedTimestamp(Long modifiedTimestamp) {
this.modifiedTimestamp = modifiedTimestamp;
return this;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>describe</p>
*/
public Builder ruleDesc(String ruleDesc) {
this.ruleDesc = ruleDesc;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>auto_test_rule</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The tag specified by the operation type of the rule.</p>
*
* <strong>example:</strong>
* <p>{"tagId":4577447}</p>
*/
public Builder tagContext(String tagContext) {
this.tagContext = tagContext;
return this;
}
/**
* <p>The operation type of the rule. Valid values:</p>
* <ul>
* <li><strong>group</strong></li>
* <li><strong>tag</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>group</p>
*/
public Builder tagType(String tagType) {
this.tagType = tagType;
return this;
}
public AutoTagRuleList build() {
return new AutoTagRuleList(this);
}
}
}
/**
*
* {@link ListAutoTagRulesResponseBody} extends {@link TeaModel}
*
* <p>ListAutoTagRulesResponseBody</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.</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>196</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/ListAvailableAttackPathRequest.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 ListAvailableAttackPathRequest} extends {@link RequestModel}
*
* <p>ListAvailableAttackPathRequest</p>
*/
public class ListAvailableAttackPathRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private ListAvailableAttackPathRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static ListAvailableAttackPathRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<ListAvailableAttackPathRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(ListAvailableAttackPathRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language type for requests and responses. Values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public ListAvailableAttackPathRequest build() {
return new ListAvailableAttackPathRequest(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/ListAvailableAttackPathResponse.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 ListAvailableAttackPathResponse} extends {@link TeaModel}
*
* <p>ListAvailableAttackPathResponse</p>
*/
public class ListAvailableAttackPathResponse 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 ListAvailableAttackPathResponseBody body;
private ListAvailableAttackPathResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAvailableAttackPathResponse 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 ListAvailableAttackPathResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAvailableAttackPathResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAvailableAttackPathResponseBody body);
@Override
ListAvailableAttackPathResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAvailableAttackPathResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAvailableAttackPathResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAvailableAttackPathResponse 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(ListAvailableAttackPathResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAvailableAttackPathResponse build() {
return new ListAvailableAttackPathResponse(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/ListAvailableAttackPathResponseBody.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 ListAvailableAttackPathResponseBody} extends {@link TeaModel}
*
* <p>ListAvailableAttackPathResponseBody</p>
*/
public class ListAvailableAttackPathResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackPathList")
private java.util.List<AttackPathList> attackPathList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListAvailableAttackPathResponseBody(Builder builder) {
this.attackPathList = builder.attackPathList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListAvailableAttackPathResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackPathList
*/
public java.util.List<AttackPathList> getAttackPathList() {
return this.attackPathList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AttackPathList> attackPathList;
private String requestId;
private Builder() {
}
private Builder(ListAvailableAttackPathResponseBody model) {
this.attackPathList = model.attackPathList;
this.requestId = model.requestId;
}
/**
* <p>List of attack paths.</p>
*/
public Builder attackPathList(java.util.List<AttackPathList> attackPathList) {
this.attackPathList = attackPathList;
return this;
}
/**
* <p>The ID of this call request, a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>1383B0DB-D5D6-4B0C-9E6B-75939C8E****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListAvailableAttackPathResponseBody build() {
return new ListAvailableAttackPathResponseBody(this);
}
}
/**
*
* {@link ListAvailableAttackPathResponseBody} extends {@link TeaModel}
*
* <p>ListAvailableAttackPathResponseBody</p>
*/
public static class AttackPathList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PathName")
private String pathName;
@com.aliyun.core.annotation.NameInMap("PathNameDesc")
private String pathNameDesc;
@com.aliyun.core.annotation.NameInMap("PathType")
private String pathType;
@com.aliyun.core.annotation.NameInMap("PathTypeDesc")
private String pathTypeDesc;
private AttackPathList(Builder builder) {
this.pathName = builder.pathName;
this.pathNameDesc = builder.pathNameDesc;
this.pathType = builder.pathType;
this.pathTypeDesc = builder.pathTypeDesc;
}
public static Builder builder() {
return new Builder();
}
public static AttackPathList create() {
return builder().build();
}
/**
* @return pathName
*/
public String getPathName() {
return this.pathName;
}
/**
* @return pathNameDesc
*/
public String getPathNameDesc() {
return this.pathNameDesc;
}
/**
* @return pathType
*/
public String getPathType() {
return this.pathType;
}
/**
* @return pathTypeDesc
*/
public String getPathTypeDesc() {
return this.pathTypeDesc;
}
public static final class Builder {
private String pathName;
private String pathNameDesc;
private String pathType;
private String pathTypeDesc;
private Builder() {
}
private Builder(AttackPathList model) {
this.pathName = model.pathName;
this.pathNameDesc = model.pathNameDesc;
this.pathType = model.pathType;
this.pathTypeDesc = model.pathTypeDesc;
}
/**
* <p>Path name.</p>
*
* <strong>example:</strong>
* <p>ecs_get_credential_by_create_login_profile</p>
*/
public Builder pathName(String pathName) {
this.pathName = pathName;
return this;
}
/**
* <p>Description of the path name.</p>
*
* <strong>example:</strong>
* <p>ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User</p>
*/
public Builder pathNameDesc(String pathNameDesc) {
this.pathNameDesc = pathNameDesc;
return this;
}
/**
* <p>Path type.</p>
*
* <strong>example:</strong>
* <p>role_escalation</p>
*/
public Builder pathType(String pathType) {
this.pathType = pathType;
return this;
}
/**
* <p>Description of the path type.</p>
*
* <strong>example:</strong>
* <p>Privilege Escalation by Role</p>
*/
public Builder pathTypeDesc(String pathTypeDesc) {
this.pathTypeDesc = pathTypeDesc;
return this;
}
public AttackPathList build() {
return new AttackPathList(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/ListAvailableHoneypotRequest.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 ListAvailableHoneypotRequest} extends {@link RequestModel}
*
* <p>ListAvailableHoneypotRequest</p>
*/
public class ListAvailableHoneypotRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
private ListAvailableHoneypotRequest(Builder builder) {
super(builder);
this.nodeId = builder.nodeId;
}
public static Builder builder() {
return new Builder();
}
public static ListAvailableHoneypotRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
public static final class Builder extends Request.Builder<ListAvailableHoneypotRequest, Builder> {
private String nodeId;
private Builder() {
super();
}
private Builder(ListAvailableHoneypotRequest request) {
super(request);
this.nodeId = request.nodeId;
}
/**
* <p>The ID of the management node to which the honeypot is deployed.</p>
*
* <strong>example:</strong>
* <p>4341018b-8e01-43f6-b1d2-af29a2a4****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
@Override
public ListAvailableHoneypotRequest build() {
return new ListAvailableHoneypotRequest(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/ListAvailableHoneypotResponse.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 ListAvailableHoneypotResponse} extends {@link TeaModel}
*
* <p>ListAvailableHoneypotResponse</p>
*/
public class ListAvailableHoneypotResponse 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 ListAvailableHoneypotResponseBody body;
private ListAvailableHoneypotResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListAvailableHoneypotResponse 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 ListAvailableHoneypotResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListAvailableHoneypotResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListAvailableHoneypotResponseBody body);
@Override
ListAvailableHoneypotResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListAvailableHoneypotResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListAvailableHoneypotResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListAvailableHoneypotResponse 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(ListAvailableHoneypotResponseBody body) {
this.body = body;
return this;
}
@Override
public ListAvailableHoneypotResponse build() {
return new ListAvailableHoneypotResponse(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/ListAvailableHoneypotResponseBody.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 ListAvailableHoneypotResponseBody} extends {@link TeaModel}
*
* <p>ListAvailableHoneypotResponseBody</p>
*/
public class ListAvailableHoneypotResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@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 ListAvailableHoneypotResponseBody(Builder builder) {
this.code = builder.code;
this.count = builder.count;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ListAvailableHoneypotResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @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 Integer count;
private java.util.List<Data> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListAvailableHoneypotResponseBody model) {
this.code = model.code;
this.count = model.count;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
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 number of images that are used for the honeypot.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>An array consisting of the information about the images that are used for the honeypot.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
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 ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>6C24D883-984D-52FD-BB66-5F89F86E4837</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 ListAvailableHoneypotResponseBody build() {
return new ListAvailableHoneypotResponseBody(this);
}
}
/**
*
* {@link ListAvailableHoneypotResponseBody} extends {@link TeaModel}
*
* <p>ListAvailableHoneypotResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HoneypotImageDisplayName")
private String honeypotImageDisplayName;
@com.aliyun.core.annotation.NameInMap("HoneypotImageId")
private String honeypotImageId;
@com.aliyun.core.annotation.NameInMap("HoneypotImageName")
private String honeypotImageName;
@com.aliyun.core.annotation.NameInMap("HoneypotImageType")
private String honeypotImageType;
@com.aliyun.core.annotation.NameInMap("HoneypotImageVersion")
private String honeypotImageVersion;
@com.aliyun.core.annotation.NameInMap("Multiports")
private String multiports;
@com.aliyun.core.annotation.NameInMap("Proto")
private String proto;
@com.aliyun.core.annotation.NameInMap("ServicePort")
private String servicePort;
@com.aliyun.core.annotation.NameInMap("Template")
private String template;
private Data(Builder builder) {
this.honeypotImageDisplayName = builder.honeypotImageDisplayName;
this.honeypotImageId = builder.honeypotImageId;
this.honeypotImageName = builder.honeypotImageName;
this.honeypotImageType = builder.honeypotImageType;
this.honeypotImageVersion = builder.honeypotImageVersion;
this.multiports = builder.multiports;
this.proto = builder.proto;
this.servicePort = builder.servicePort;
this.template = builder.template;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return honeypotImageDisplayName
*/
public String getHoneypotImageDisplayName() {
return this.honeypotImageDisplayName;
}
/**
* @return honeypotImageId
*/
public String getHoneypotImageId() {
return this.honeypotImageId;
}
/**
* @return honeypotImageName
*/
public String getHoneypotImageName() {
return this.honeypotImageName;
}
/**
* @return honeypotImageType
*/
public String getHoneypotImageType() {
return this.honeypotImageType;
}
/**
* @return honeypotImageVersion
*/
public String getHoneypotImageVersion() {
return this.honeypotImageVersion;
}
/**
* @return multiports
*/
public String getMultiports() {
return this.multiports;
}
/**
* @return proto
*/
public String getProto() {
return this.proto;
}
/**
* @return servicePort
*/
public String getServicePort() {
return this.servicePort;
}
/**
* @return template
*/
public String getTemplate() {
return this.template;
}
public static final class Builder {
private String honeypotImageDisplayName;
private String honeypotImageId;
private String honeypotImageName;
private String honeypotImageType;
private String honeypotImageVersion;
private String multiports;
private String proto;
private String servicePort;
private String template;
private Builder() {
}
private Builder(Data model) {
this.honeypotImageDisplayName = model.honeypotImageDisplayName;
this.honeypotImageId = model.honeypotImageId;
this.honeypotImageName = model.honeypotImageName;
this.honeypotImageType = model.honeypotImageType;
this.honeypotImageVersion = model.honeypotImageVersion;
this.multiports = model.multiports;
this.proto = model.proto;
this.servicePort = model.servicePort;
this.template = model.template;
}
/**
* <p>The display name of the image.</p>
*
* <strong>example:</strong>
* <p>RuoYi</p>
*/
public Builder honeypotImageDisplayName(String honeypotImageDisplayName) {
this.honeypotImageDisplayName = honeypotImageDisplayName;
return this;
}
/**
* <p>The ID of the image.</p>
*
* <strong>example:</strong>
* <p>sha256:007095d6de9c7a343e9fc1f74a7efc9c5de9d5454789d2fa505a1b3fc62****</p>
*/
public Builder honeypotImageId(String honeypotImageId) {
this.honeypotImageId = honeypotImageId;
return this;
}
/**
* <p>The name of the image that is used for the honeypot.</p>
*
* <strong>example:</strong>
* <p>ruoyi</p>
*/
public Builder honeypotImageName(String honeypotImageName) {
this.honeypotImageName = honeypotImageName;
return this;
}
/**
* <p>The type of the image.</p>
*
* <strong>example:</strong>
* <p>Web</p>
*/
public Builder honeypotImageType(String honeypotImageType) {
this.honeypotImageType = honeypotImageType;
return this;
}
/**
* <p>The version of the image.</p>
*
* <strong>example:</strong>
* <p>1.0.2</p>
*/
public Builder honeypotImageVersion(String honeypotImageVersion) {
this.honeypotImageVersion = honeypotImageVersion;
return this;
}
/**
* <p>The port that is supported by the honeypot. The value is in the JSON format. Valid values:</p>
* <ul>
* <li><strong>log_type</strong>: the log type</li>
* <li><strong>proto</strong>: the supported protocol</li>
* <li><strong>description</strong>: the description</li>
* <li><strong>ports</strong>: the supported ports</li>
* <li><strong>port_str</strong>: the supported port number of the string type</li>
* <li><strong>type</strong>: the type</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"log_type":"web","proto":"tcp","description":"webServerPort","ports":[80.0],"port_str":"80","type":"web"}]</p>
*/
public Builder multiports(String multiports) {
this.multiports = multiports;
return this;
}
/**
* <p>The protocol that is supported by the honeypot.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder proto(String proto) {
this.proto = proto;
return this;
}
/**
* <p>The service port of the honeypot.</p>
*
* <strong>example:</strong>
* <p>27017.0</p>
*/
public Builder servicePort(String servicePort) {
this.servicePort = servicePort;
return this;
}
/**
* <p>The configuration template of the honeypot.</p>
*
* <strong>example:</strong>
* <p>{}</p>
*/
public Builder template(String template) {
this.template = template;
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/ListBackupRecordRequest.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 ListBackupRecordRequest} extends {@link RequestModel}
*
* <p>ListBackupRecordRequest</p>
*/
public class ListBackupRecordRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupEndTime")
private Long backupEndTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupStartTime")
private Long backupStartTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MachineRemark")
private String machineRemark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 10)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatusList")
private java.util.List<String> statusList;
private ListBackupRecordRequest(Builder builder) {
super(builder);
this.backupEndTime = builder.backupEndTime;
this.backupStartTime = builder.backupStartTime;
this.currentPage = builder.currentPage;
this.machineRemark = builder.machineRemark;
this.pageSize = builder.pageSize;
this.statusList = builder.statusList;
}
public static Builder builder() {
return new Builder();
}
public static ListBackupRecordRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupEndTime
*/
public Long getBackupEndTime() {
return this.backupEndTime;
}
/**
* @return backupStartTime
*/
public Long getBackupStartTime() {
return this.backupStartTime;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return machineRemark
*/
public String getMachineRemark() {
return this.machineRemark;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return statusList
*/
public java.util.List<String> getStatusList() {
return this.statusList;
}
public static final class Builder extends Request.Builder<ListBackupRecordRequest, Builder> {
private Long backupEndTime;
private Long backupStartTime;
private Integer currentPage;
private String machineRemark;
private Integer pageSize;
private java.util.List<String> statusList;
private Builder() {
super();
}
private Builder(ListBackupRecordRequest request) {
super(request);
this.backupEndTime = request.backupEndTime;
this.backupStartTime = request.backupStartTime;
this.currentPage = request.currentPage;
this.machineRemark = request.machineRemark;
this.pageSize = request.pageSize;
this.statusList = request.statusList;
}
/**
* <p>The timestamp when the backup task ended. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1699600611000</p>
*/
public Builder backupEndTime(Long backupEndTime) {
this.putQueryParameter("BackupEndTime", backupEndTime);
this.backupEndTime = backupEndTime;
return this;
}
/**
* <p>The timestamp when the backup task started. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1699514211000</p>
*/
public Builder backupStartTime(Long backupStartTime) {
this.putQueryParameter("BackupStartTime", backupStartTime);
this.backupStartTime = backupStartTime;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>. Pages start from page 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The information that you want to use to identify the servers protected by the anti-ransomware policy. You can enter the IP address or ID of a server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder machineRemark(String machineRemark) {
this.putQueryParameter("MachineRemark", machineRemark);
this.machineRemark = machineRemark;
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 backup task status. Valid values:</p>
* <ul>
* <li><strong>BACKUP_COMPLETE</strong>: The backup task is successful.</li>
* <li><strong>BACKUP_FAILED</strong>: The backup task failed.</li>
* <li><strong>PARTIAL_COMPLETE</strong>: The backup task is partially successful.</li>
* </ul>
*/
public Builder statusList(java.util.List<String> statusList) {
this.putQueryParameter("StatusList", statusList);
this.statusList = statusList;
return this;
}
@Override
public ListBackupRecordRequest build() {
return new ListBackupRecordRequest(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/ListBackupRecordResponse.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 ListBackupRecordResponse} extends {@link TeaModel}
*
* <p>ListBackupRecordResponse</p>
*/
public class ListBackupRecordResponse 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 ListBackupRecordResponseBody body;
private ListBackupRecordResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListBackupRecordResponse 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 ListBackupRecordResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListBackupRecordResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListBackupRecordResponseBody body);
@Override
ListBackupRecordResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListBackupRecordResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListBackupRecordResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListBackupRecordResponse 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(ListBackupRecordResponseBody body) {
this.body = body;
return this;
}
@Override
public ListBackupRecordResponse build() {
return new ListBackupRecordResponse(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/ListBackupRecordResponseBody.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 ListBackupRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBackupRecordResponseBody</p>
*/
public class ListBackupRecordResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupRecordList")
private java.util.List<BackupRecordList> backupRecordList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListBackupRecordResponseBody(Builder builder) {
this.backupRecordList = builder.backupRecordList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListBackupRecordResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupRecordList
*/
public java.util.List<BackupRecordList> getBackupRecordList() {
return this.backupRecordList;
}
/**
* @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<BackupRecordList> backupRecordList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListBackupRecordResponseBody model) {
this.backupRecordList = model.backupRecordList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The details of the backup record.</p>
*/
public Builder backupRecordList(java.util.List<BackupRecordList> backupRecordList) {
this.backupRecordList = backupRecordList;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>3956048F-9D73-5EDB-834B-4827BB48****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListBackupRecordResponseBody build() {
return new ListBackupRecordResponseBody(this);
}
}
/**
*
* {@link ListBackupRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBackupRecordResponseBody</p>
*/
public static class BackupRecordList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupEndTime")
private Long backupEndTime;
@com.aliyun.core.annotation.NameInMap("BackupJobId")
private String backupJobId;
@com.aliyun.core.annotation.NameInMap("BackupPlanId")
private String backupPlanId;
@com.aliyun.core.annotation.NameInMap("BackupStartTime")
private Long backupStartTime;
@com.aliyun.core.annotation.NameInMap("BackupStatus")
private String backupStatus;
@com.aliyun.core.annotation.NameInMap("ClientId")
private String clientId;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@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("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private BackupRecordList(Builder builder) {
this.backupEndTime = builder.backupEndTime;
this.backupJobId = builder.backupJobId;
this.backupPlanId = builder.backupPlanId;
this.backupStartTime = builder.backupStartTime;
this.backupStatus = builder.backupStatus;
this.clientId = builder.clientId;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.regionId = builder.regionId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static BackupRecordList create() {
return builder().build();
}
/**
* @return backupEndTime
*/
public Long getBackupEndTime() {
return this.backupEndTime;
}
/**
* @return backupJobId
*/
public String getBackupJobId() {
return this.backupJobId;
}
/**
* @return backupPlanId
*/
public String getBackupPlanId() {
return this.backupPlanId;
}
/**
* @return backupStartTime
*/
public Long getBackupStartTime() {
return this.backupStartTime;
}
/**
* @return backupStatus
*/
public String getBackupStatus() {
return this.backupStatus;
}
/**
* @return clientId
*/
public String getClientId() {
return this.clientId;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @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 ip
*/
public String getIp() {
return this.ip;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Long backupEndTime;
private String backupJobId;
private String backupPlanId;
private Long backupStartTime;
private String backupStatus;
private String clientId;
private String errorCode;
private String errorMessage;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private String regionId;
private String uuid;
private Builder() {
}
private Builder(BackupRecordList model) {
this.backupEndTime = model.backupEndTime;
this.backupJobId = model.backupJobId;
this.backupPlanId = model.backupPlanId;
this.backupStartTime = model.backupStartTime;
this.backupStatus = model.backupStatus;
this.clientId = model.clientId;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.regionId = model.regionId;
this.uuid = model.uuid;
}
/**
* <p>The timestamp when the backup task ended. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1699600611000</p>
*/
public Builder backupEndTime(Long backupEndTime) {
this.backupEndTime = backupEndTime;
return this;
}
/**
* <p>The backup task ID.</p>
*
* <strong>example:</strong>
* <p>a006f24d069843c88688672d74ee****</p>
*/
public Builder backupJobId(String backupJobId) {
this.backupJobId = backupJobId;
return this;
}
/**
* <p>The backup plan ID.</p>
*
* <strong>example:</strong>
* <p>plan-000c4tt43nolmx96****</p>
*/
public Builder backupPlanId(String backupPlanId) {
this.backupPlanId = backupPlanId;
return this;
}
/**
* <p>The timestamp when the backup task started. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1699514211000</p>
*/
public Builder backupStartTime(Long backupStartTime) {
this.backupStartTime = backupStartTime;
return this;
}
/**
* <p>The backup task status. Valid value:</p>
* <ul>
* <li><strong>BACKUP_COMPLETE</strong>: The backup task is successful.</li>
* <li><strong>BACKUP_FAILED</strong>: The backup task failed.</li>
* <li><strong>PARTIAL_COMPLETE</strong>: The backup task is partially successful.</li>
* </ul>
*
* <strong>example:</strong>
* <p>BACKUP_COMPLETE</p>
*/
public Builder backupStatus(String backupStatus) {
this.backupStatus = backupStatus;
return this;
}
/**
* <p>The ID of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>c-0002bgagelj3d2sc****</p>
*/
public Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* <p>The error code of the backup task.</p>
*
* <strong>example:</strong>
* <p>FILE_CACHE_NO_SPACE</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message of the backup task.</p>
*
* <strong>example:</strong>
* <p>FILE_CACHE_NO_SPACE</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The instance ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-wz9ikn44p46krnic****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the asset.</p>
*
* <strong>example:</strong>
* <p>openapi</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.1.1.1</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.1.1</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP address of the server.</p>
*
* <strong>example:</strong>
* <p>1.1.1.1</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The ID of the region in which the backup is stored.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The UUID of the server whose data is backed up based on the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>b93cccb9-f19f-4886-97fe-47df26ba****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public BackupRecordList build() {
return new BackupRecordList(this);
}
}
}
/**
*
* {@link ListBackupRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBackupRecordResponseBody</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.</p>
*
* <strong>example:</strong>
* <p>2</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/ListBaselineCheckWhiteRecordRequest.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 ListBaselineCheckWhiteRecordRequest} extends {@link RequestModel}
*
* <p>ListBaselineCheckWhiteRecordRequest</p>
*/
public class ListBaselineCheckWhiteRecordRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckIds")
private java.util.List<Long> checkIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckItemFuzzy")
private String checkItemFuzzy;
@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("RecordIds")
private java.util.List<Long> recordIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
private ListBaselineCheckWhiteRecordRequest(Builder builder) {
super(builder);
this.checkIds = builder.checkIds;
this.checkItemFuzzy = builder.checkItemFuzzy;
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.recordIds = builder.recordIds;
this.source = builder.source;
}
public static Builder builder() {
return new Builder();
}
public static ListBaselineCheckWhiteRecordRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkIds
*/
public java.util.List<Long> getCheckIds() {
return this.checkIds;
}
/**
* @return checkItemFuzzy
*/
public String getCheckItemFuzzy() {
return this.checkItemFuzzy;
}
/**
* @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 recordIds
*/
public java.util.List<Long> getRecordIds() {
return this.recordIds;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
public static final class Builder extends Request.Builder<ListBaselineCheckWhiteRecordRequest, Builder> {
private java.util.List<Long> checkIds;
private String checkItemFuzzy;
private Integer currentPage;
private String lang;
private Integer pageSize;
private java.util.List<Long> recordIds;
private String source;
private Builder() {
super();
}
private Builder(ListBaselineCheckWhiteRecordRequest request) {
super(request);
this.checkIds = request.checkIds;
this.checkItemFuzzy = request.checkItemFuzzy;
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.recordIds = request.recordIds;
this.source = request.source;
}
/**
* <p>The IDs of check items.</p>
*/
public Builder checkIds(java.util.List<Long> checkIds) {
String checkIdsShrink = shrink(checkIds, "CheckIds", "json");
this.putQueryParameter("CheckIds", checkIdsShrink);
this.checkIds = checkIds;
return this;
}
/**
* <p>The name of the check item. Fuzzy match is supported.</p>
*
* <strong>example:</strong>
* <p>redis</p>
*/
public Builder checkItemFuzzy(String checkItemFuzzy) {
this.putQueryParameter("CheckItemFuzzy", checkItemFuzzy);
this.checkItemFuzzy = checkItemFuzzy;
return this;
}
/**
* <p>The page number. 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 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 IDs of the whitelist rules.</p>
*/
public Builder recordIds(java.util.List<Long> recordIds) {
String recordIdsShrink = shrink(recordIds, "RecordIds", "json");
this.putQueryParameter("RecordIds", recordIdsShrink);
this.recordIds = recordIds;
return this;
}
/**
* <p>The data source. If you leave this parameter empty, the default value is used. Valid values:</p>
* <ul>
* <li><strong>default</strong>: server</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 ListBaselineCheckWhiteRecordRequest build() {
return new ListBaselineCheckWhiteRecordRequest(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/ListBaselineCheckWhiteRecordResponse.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 ListBaselineCheckWhiteRecordResponse} extends {@link TeaModel}
*
* <p>ListBaselineCheckWhiteRecordResponse</p>
*/
public class ListBaselineCheckWhiteRecordResponse 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 ListBaselineCheckWhiteRecordResponseBody body;
private ListBaselineCheckWhiteRecordResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListBaselineCheckWhiteRecordResponse 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 ListBaselineCheckWhiteRecordResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListBaselineCheckWhiteRecordResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListBaselineCheckWhiteRecordResponseBody body);
@Override
ListBaselineCheckWhiteRecordResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListBaselineCheckWhiteRecordResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListBaselineCheckWhiteRecordResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListBaselineCheckWhiteRecordResponse 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(ListBaselineCheckWhiteRecordResponseBody body) {
this.body = body;
return this;
}
@Override
public ListBaselineCheckWhiteRecordResponse build() {
return new ListBaselineCheckWhiteRecordResponse(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/ListBaselineCheckWhiteRecordResponseBody.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 ListBaselineCheckWhiteRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBaselineCheckWhiteRecordResponseBody</p>
*/
public class ListBaselineCheckWhiteRecordResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListBaselineCheckWhiteRecordResponseBody(Builder builder) {
this.list = builder.list;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListBaselineCheckWhiteRecordResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @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<List> list;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListBaselineCheckWhiteRecordResponseBody model) {
this.list = model.list;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The whitelist 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;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9F4E6157-9600-5588-86B9-38F09067****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListBaselineCheckWhiteRecordResponseBody build() {
return new ListBaselineCheckWhiteRecordResponseBody(this);
}
}
/**
*
* {@link ListBaselineCheckWhiteRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBaselineCheckWhiteRecordResponseBody</p>
*/
public static class ContainerItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContainerNames")
private String containerNames;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private ContainerItems(Builder builder) {
this.containerNames = builder.containerNames;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static ContainerItems create() {
return builder().build();
}
/**
* @return containerNames
*/
public String getContainerNames() {
return this.containerNames;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String containerNames;
private String uuid;
private Builder() {
}
private Builder(ContainerItems model) {
this.containerNames = model.containerNames;
this.uuid = model.uuid;
}
/**
* <p>Names of the whitelisted containers for the current asset, separated by English commas.</p>
*
* <strong>example:</strong>
* <p>"anythingllm,ChuanhuChat"</p>
*/
public Builder containerNames(String containerNames) {
this.containerNames = containerNames;
return this;
}
/**
* <p>Server UUID.</p>
*
* <strong>example:</strong>
* <p>beeea5c2-1857-4b2b-a794-7d21eae*****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public ContainerItems build() {
return new ContainerItems(this);
}
}
}
/**
*
* {@link ListBaselineCheckWhiteRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBaselineCheckWhiteRecordResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckItem")
private String checkItem;
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.NameInMap("CheckTypeDisName")
private String checkTypeDisName;
@com.aliyun.core.annotation.NameInMap("ContainerItems")
private java.util.List<ContainerItems> containerItems;
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.NameInMap("Reason")
private String reason;
@com.aliyun.core.annotation.NameInMap("RecordId")
private Long recordId;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private List(Builder builder) {
this.checkId = builder.checkId;
this.checkItem = builder.checkItem;
this.checkType = builder.checkType;
this.checkTypeDisName = builder.checkTypeDisName;
this.containerItems = builder.containerItems;
this.lang = builder.lang;
this.reason = builder.reason;
this.recordId = builder.recordId;
this.source = builder.source;
this.target = builder.target;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkItem
*/
public String getCheckItem() {
return this.checkItem;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return checkTypeDisName
*/
public String getCheckTypeDisName() {
return this.checkTypeDisName;
}
/**
* @return containerItems
*/
public java.util.List<ContainerItems> getContainerItems() {
return this.containerItems;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return reason
*/
public String getReason() {
return this.reason;
}
/**
* @return recordId
*/
public Long getRecordId() {
return this.recordId;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder {
private Long checkId;
private String checkItem;
private String checkType;
private String checkTypeDisName;
private java.util.List<ContainerItems> containerItems;
private String lang;
private String reason;
private Long recordId;
private String source;
private String target;
private String targetType;
private Builder() {
}
private Builder(List model) {
this.checkId = model.checkId;
this.checkItem = model.checkItem;
this.checkType = model.checkType;
this.checkTypeDisName = model.checkTypeDisName;
this.containerItems = model.containerItems;
this.lang = model.lang;
this.reason = model.reason;
this.recordId = model.recordId;
this.source = model.source;
this.target = model.target;
this.targetType = model.targetType;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>696</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The description of the check item.</p>
*
* <strong>example:</strong>
* <p>Config the Event Audit policys</p>
*/
public Builder checkItem(String checkItem) {
this.checkItem = checkItem;
return this;
}
/**
* <p>The type of the check item.</p>
*
* <strong>example:</strong>
* <p>Security audit</p>
*/
public Builder checkType(String checkType) {
this.checkType = checkType;
return this;
}
/**
* <p>The display name of the check item type.</p>
*
* <strong>example:</strong>
* <p>Security audit</p>
*/
public Builder checkTypeDisName(String checkTypeDisName) {
this.checkTypeDisName = checkTypeDisName;
return this;
}
/**
* <p>List of whitelisted container names in the check item.</p>
*/
public Builder containerItems(java.util.List<ContainerItems> containerItems) {
this.containerItems = containerItems;
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>en</p>
*/
public Builder lang(String lang) {
this.lang = lang;
return this;
}
/**
* <p>The reason why the check item is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>AutoTest</p>
*/
public Builder reason(String reason) {
this.reason = reason;
return this;
}
/**
* <p>The ID of the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>79412</p>
*/
public Builder recordId(Long recordId) {
this.recordId = recordId;
return this;
}
/**
* <p>The data source. Valid values:</p>
* <ul>
* <li><strong>default</strong>: server</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;
}
/**
* <p>The object that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>HOST_BASELINE_WHITE_LIST_21</p>
*/
public Builder target(String target) {
this.target = target;
return this;
}
/**
* <p>The type of the assets on which the whitelist rule takes effect. Valid values:</p>
* <ul>
* <li><strong>all_instance</strong>: all servers</li>
* <li><strong>instance</strong>: specific servers</li>
* </ul>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListBaselineCheckWhiteRecordResponseBody} extends {@link TeaModel}
*
* <p>ListBaselineCheckWhiteRecordResponseBody</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.</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>45</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/ListCheckInstanceResultRequest.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 ListCheckInstanceResultRequest} extends {@link RequestModel}
*
* <p>ListCheckInstanceResultRequest</p>
*/
public class ListCheckInstanceResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckId")
@com.aliyun.core.annotation.Validation(required = true)
private Long checkId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIdKey")
private String instanceIdKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIds")
private java.util.List<String> instanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNameKey")
private String instanceNameKey;
@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")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionIdKey")
private String regionIdKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortTypes")
private java.util.List<String> sortTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Statuses")
private java.util.List<String> statuses;
private ListCheckInstanceResultRequest(Builder builder) {
super(builder);
this.checkId = builder.checkId;
this.currentPage = builder.currentPage;
this.instanceIdKey = builder.instanceIdKey;
this.instanceIds = builder.instanceIds;
this.instanceNameKey = builder.instanceNameKey;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.regionIdKey = builder.regionIdKey;
this.sortTypes = builder.sortTypes;
this.statuses = builder.statuses;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckInstanceResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instanceIdKey
*/
public String getInstanceIdKey() {
return this.instanceIdKey;
}
/**
* @return instanceIds
*/
public java.util.List<String> getInstanceIds() {
return this.instanceIds;
}
/**
* @return instanceNameKey
*/
public String getInstanceNameKey() {
return this.instanceNameKey;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionIdKey
*/
public String getRegionIdKey() {
return this.regionIdKey;
}
/**
* @return sortTypes
*/
public java.util.List<String> getSortTypes() {
return this.sortTypes;
}
/**
* @return statuses
*/
public java.util.List<String> getStatuses() {
return this.statuses;
}
public static final class Builder extends Request.Builder<ListCheckInstanceResultRequest, Builder> {
private Long checkId;
private Integer currentPage;
private String instanceIdKey;
private java.util.List<String> instanceIds;
private String instanceNameKey;
private String lang;
private Integer pageSize;
private String regionIdKey;
private java.util.List<String> sortTypes;
private java.util.List<String> statuses;
private Builder() {
super();
}
private Builder(ListCheckInstanceResultRequest request) {
super(request);
this.checkId = request.checkId;
this.currentPage = request.currentPage;
this.instanceIdKey = request.instanceIdKey;
this.instanceIds = request.instanceIds;
this.instanceNameKey = request.instanceNameKey;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.regionIdKey = request.regionIdKey;
this.sortTypes = request.sortTypes;
this.statuses = request.statuses;
}
/**
* <p>The ID of the check item.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder checkId(Long checkId) {
this.putQueryParameter("CheckId", checkId);
this.checkId = checkId;
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 ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-uf64w4q6p9jti5gl****</p>
*/
public Builder instanceIdKey(String instanceIdKey) {
this.putQueryParameter("InstanceIdKey", instanceIdKey);
this.instanceIdKey = instanceIdKey;
return this;
}
/**
* <p>The instance IDs of cloud services.</p>
*/
public Builder instanceIds(java.util.List<String> instanceIds) {
this.putQueryParameter("InstanceIds", instanceIds);
this.instanceIds = instanceIds;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>i-uf64w4q6p9jti5gl****</p>
*/
public Builder instanceNameKey(String instanceNameKey) {
this.putQueryParameter("InstanceNameKey", instanceNameKey);
this.instanceNameKey = instanceNameKey;
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. Maximum value: 100.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder regionIdKey(String regionIdKey) {
this.putQueryParameter("RegionIdKey", regionIdKey);
this.regionIdKey = regionIdKey;
return this;
}
/**
* <p>The types of the conditions based on which the check items are sorted.</p>
*/
public Builder sortTypes(java.util.List<String> sortTypes) {
this.putQueryParameter("SortTypes", sortTypes);
this.sortTypes = sortTypes;
return this;
}
/**
* <p>The statuses of check items.</p>
*/
public Builder statuses(java.util.List<String> statuses) {
this.putQueryParameter("Statuses", statuses);
this.statuses = statuses;
return this;
}
@Override
public ListCheckInstanceResultRequest build() {
return new ListCheckInstanceResultRequest(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/ListCheckInstanceResultResponse.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 ListCheckInstanceResultResponse} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponse</p>
*/
public class ListCheckInstanceResultResponse 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 ListCheckInstanceResultResponseBody body;
private ListCheckInstanceResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckInstanceResultResponse 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 ListCheckInstanceResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckInstanceResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckInstanceResultResponseBody body);
@Override
ListCheckInstanceResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckInstanceResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckInstanceResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckInstanceResultResponse 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(ListCheckInstanceResultResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckInstanceResultResponse build() {
return new ListCheckInstanceResultResponse(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/ListCheckInstanceResultResponseBody.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 ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public class ListCheckInstanceResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BasicData")
private java.util.List<BasicData> basicData;
@com.aliyun.core.annotation.NameInMap("Checks")
private java.util.List<java.util.Map<String, ?>> checks;
@com.aliyun.core.annotation.NameInMap("Columns")
private java.util.List<Columns> columns;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckInstanceResultResponseBody(Builder builder) {
this.basicData = builder.basicData;
this.checks = builder.checks;
this.columns = builder.columns;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckInstanceResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return basicData
*/
public java.util.List<BasicData> getBasicData() {
return this.basicData;
}
/**
* @return checks
*/
public java.util.List<java.util.Map<String, ?>> getChecks() {
return this.checks;
}
/**
* @return columns
*/
public java.util.List<Columns> getColumns() {
return this.columns;
}
/**
* @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<BasicData> basicData;
private java.util.List<java.util.Map<String, ?>> checks;
private java.util.List<Columns> columns;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckInstanceResultResponseBody model) {
this.basicData = model.basicData;
this.checks = model.checks;
this.columns = model.columns;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The basic information about the affected instances.</p>
*/
public Builder basicData(java.util.List<BasicData> basicData) {
this.basicData = basicData;
return this;
}
/**
* <p>The extended information about the instances.</p>
*
* <strong>example:</strong>
* <p>[{
* "SecurityGroupNameShow": {
* "value": "Sas_Malicious_Ip_Security_Group"
* },
* "InstanceIdShow": {
* "link": "<a href="https://ecs.console.aliyun.com/#/securityGroupDetail/region/ap-southeast-1/groupId/sg-t4nbk2aodzio52xvj00s/rule/intranetIngress">https://ecs.console.aliyun.com/#/securityGroupDetail/region/ap-southeast-1/groupId/sg-t4nbk2aodzio52xvj00s/rule/intranetIngress</a>",
* "value": "sg-t4nbk2aodzio52xv****"
* }
* }]</p>
*/
public Builder checks(java.util.List<java.util.Map<String, ?>> checks) {
this.checks = checks;
return this;
}
/**
* <p>The metadata information about the search conditions that can be used to filter instances.</p>
*/
public Builder columns(java.util.List<Columns> columns) {
this.columns = columns;
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>3AB18264-8A1B-52A6-A9AF-A886556E0F2E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckInstanceResultResponseBody build() {
return new ListCheckInstanceResultResponseBody(this);
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class Config extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Config(Builder builder) {
this.name = builder.name;
this.showName = builder.showName;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Config create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String name;
private String showName;
private String value;
private Builder() {
}
private Builder(Config model) {
this.name = model.name;
this.showName = model.showName;
this.value = model.value;
}
/**
* <p>The name of the configuration item, which is unique.</p>
*
* <strong>example:</strong>
* <p>prot</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The display name of the configuration item for internationalization.</p>
*
* <strong>example:</strong>
* <p>prot</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The value of the configuration item specified for the instance.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Config build() {
return new Config(this);
}
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class InstanceInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Config")
private java.util.List<Config> config;
@com.aliyun.core.annotation.NameInMap("FirstUpdateTime")
private Long firstUpdateTime;
@com.aliyun.core.annotation.NameInMap("LastUpdateTime")
private Long lastUpdateTime;
private InstanceInfo(Builder builder) {
this.config = builder.config;
this.firstUpdateTime = builder.firstUpdateTime;
this.lastUpdateTime = builder.lastUpdateTime;
}
public static Builder builder() {
return new Builder();
}
public static InstanceInfo create() {
return builder().build();
}
/**
* @return config
*/
public java.util.List<Config> getConfig() {
return this.config;
}
/**
* @return firstUpdateTime
*/
public Long getFirstUpdateTime() {
return this.firstUpdateTime;
}
/**
* @return lastUpdateTime
*/
public Long getLastUpdateTime() {
return this.lastUpdateTime;
}
public static final class Builder {
private java.util.List<Config> config;
private Long firstUpdateTime;
private Long lastUpdateTime;
private Builder() {
}
private Builder(InstanceInfo model) {
this.config = model.config;
this.firstUpdateTime = model.firstUpdateTime;
this.lastUpdateTime = model.lastUpdateTime;
}
/**
* <p>The information about the configuration item whose risks are fixed for the instance.</p>
*/
public Builder config(java.util.List<Config> config) {
this.config = config;
return this;
}
/**
* <p>The time of the first check.</p>
*
* <strong>example:</strong>
* <p>1716447535531</p>
*/
public Builder firstUpdateTime(Long firstUpdateTime) {
this.firstUpdateTime = firstUpdateTime;
return this;
}
/**
* <p>The time of the last check.</p>
*
* <strong>example:</strong>
* <p>1716447535531</p>
*/
public Builder lastUpdateTime(Long lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
return this;
}
public InstanceInfo build() {
return new InstanceInfo(this);
}
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class BasicData extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceInfo")
private InstanceInfo instanceInfo;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusMessage")
private String statusMessage;
@com.aliyun.core.annotation.NameInMap("VendorUserName")
private String vendorUserName;
private BasicData(Builder builder) {
this.id = builder.id;
this.instanceId = builder.instanceId;
this.instanceInfo = builder.instanceInfo;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
this.status = builder.status;
this.statusMessage = builder.statusMessage;
this.vendorUserName = builder.vendorUserName;
}
public static Builder builder() {
return new Builder();
}
public static BasicData create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceInfo
*/
public InstanceInfo getInstanceInfo() {
return this.instanceInfo;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusMessage
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
* @return vendorUserName
*/
public String getVendorUserName() {
return this.vendorUserName;
}
public static final class Builder {
private Long id;
private String instanceId;
private InstanceInfo instanceInfo;
private String instanceName;
private String regionId;
private String status;
private String statusMessage;
private String vendorUserName;
private Builder() {
}
private Builder(BasicData model) {
this.id = model.id;
this.instanceId = model.instanceId;
this.instanceInfo = model.instanceInfo;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
this.status = model.status;
this.statusMessage = model.statusMessage;
this.vendorUserName = model.vendorUserName;
}
/**
* <p>The ID of the check result for the instance.</p>
*
* <strong>example:</strong>
* <p>300054</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The instance ID of the server.</p>
*
* <strong>example:</strong>
* <p>rm-m5es7ch1s62i4****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The information about the instance on which the check item is used.</p>
*/
public Builder instanceInfo(InstanceInfo instanceInfo) {
this.instanceInfo = instanceInfo;
return this;
}
/**
* <p>The instance name of the server.</p>
*
* <strong>example:</strong>
* <p>sg-t4nbk2aodzio52xv****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>ap-southeast-1</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The states of check items. Multiple states are separated with commas (,). Valid values:</p>
* <ul>
* <li><strong>PASS</strong>: passed</li>
* <li><strong>NOT_PASS</strong>: failed</li>
* <li><strong>CHECKING</strong>: being checked</li>
* <li><strong>NOT_CHECK</strong>: not checked</li>
* <li><strong>WHITELIST</strong>: added to the whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>NOT_PASS</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The exception message of the check item.</p>
*
* <strong>example:</strong>
* <p>Task is failed.</p>
*/
public Builder statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* VendorUserName.
*/
public Builder vendorUserName(String vendorUserName) {
this.vendorUserName = vendorUserName;
return this;
}
public BasicData build() {
return new BasicData(this);
}
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class Grids extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Grids(Builder builder) {
this.key = builder.key;
this.showName = builder.showName;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Grids create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String key;
private String showName;
private String type;
private Builder() {
}
private Builder(Grids model) {
this.key = model.key;
this.showName = model.showName;
this.type = model.type;
}
/**
* <p>The search condition.</p>
*
* <strong>example:</strong>
* <p>RegionIdShow</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The display name of the search condition.</p>
*
* <strong>example:</strong>
* <p>Region</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The format of the check result for the instance. Valid values:</p>
* <ul>
* <li><strong>text</strong></li>
* <li><strong>link</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Grids build() {
return new Grids(this);
}
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class Columns extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Grids")
private java.util.List<Grids> grids;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Search")
private Boolean search;
@com.aliyun.core.annotation.NameInMap("SearchKey")
private String searchKey;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Columns(Builder builder) {
this.grids = builder.grids;
this.key = builder.key;
this.search = builder.search;
this.searchKey = builder.searchKey;
this.showName = builder.showName;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Columns create() {
return builder().build();
}
/**
* @return grids
*/
public java.util.List<Grids> getGrids() {
return this.grids;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return search
*/
public Boolean getSearch() {
return this.search;
}
/**
* @return searchKey
*/
public String getSearchKey() {
return this.searchKey;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private java.util.List<Grids> grids;
private String key;
private Boolean search;
private String searchKey;
private String showName;
private String type;
private Builder() {
}
private Builder(Columns model) {
this.grids = model.grids;
this.key = model.key;
this.search = model.search;
this.searchKey = model.searchKey;
this.showName = model.showName;
this.type = model.type;
}
/**
* <p>The metadata information about the details of the instance.</p>
*/
public Builder grids(java.util.List<Grids> grids) {
this.grids = grids;
return this;
}
/**
* <p>The search condition.</p>
*
* <strong>example:</strong>
* <p>RegionIdShow</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>Indicates whether the search condition is used. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder search(Boolean search) {
this.search = search;
return this;
}
/**
* <p>The search key.</p>
*
* <strong>example:</strong>
* <p>InstanceIdKey</p>
*/
public Builder searchKey(String searchKey) {
this.searchKey = searchKey;
return this;
}
/**
* <p>The display name of the search condition.</p>
*
* <strong>example:</strong>
* <p>Region</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The type of the check result for the instance. Valid values:</p>
* <ul>
* <li><strong>text</strong></li>
* <li><strong>link</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Columns build() {
return new Columns(this);
}
}
}
/**
*
* {@link ListCheckInstanceResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckInstanceResultResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private String 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 String 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 String 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(String 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/ListCheckItemRequest.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 ListCheckItemRequest} extends {@link RequestModel}
*
* <p>ListCheckItemRequest</p>
*/
public class ListCheckItemRequest 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("TaskSources")
private java.util.List<String> taskSources;
private ListCheckItemRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.taskSources = builder.taskSources;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemRequest 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 taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
public static final class Builder extends Request.Builder<ListCheckItemRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private java.util.List<String> taskSources;
private Builder() {
super();
}
private Builder(ListCheckItemRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.taskSources = request.taskSources;
}
/**
* <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 language of the content within the request and response. Default value: <strong>zh</strong>. Valid value:</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: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>List of task sources.</p>
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
@Override
public ListCheckItemRequest build() {
return new ListCheckItemRequest(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/ListCheckItemResponse.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 ListCheckItemResponse} extends {@link TeaModel}
*
* <p>ListCheckItemResponse</p>
*/
public class ListCheckItemResponse 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 ListCheckItemResponseBody body;
private ListCheckItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckItemResponse 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 ListCheckItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckItemResponseBody body);
@Override
ListCheckItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckItemResponse 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(ListCheckItemResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckItemResponse build() {
return new ListCheckItemResponse(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/ListCheckItemResponseBody.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 ListCheckItemResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemResponseBody</p>
*/
public class ListCheckItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckItems")
private java.util.List<CheckItems> checkItems;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckItemResponseBody(Builder builder) {
this.checkItems = builder.checkItems;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkItems
*/
public java.util.List<CheckItems> getCheckItems() {
return this.checkItems;
}
/**
* @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<CheckItems> checkItems;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckItemResponseBody model) {
this.checkItems = model.checkItems;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The check items.</p>
*/
public Builder checkItems(java.util.List<CheckItems> checkItems) {
this.checkItems = checkItems;
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>9F4E6157-9600-5588-86B9-38F09067****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckItemResponseBody build() {
return new ListCheckItemResponseBody(this);
}
}
/**
*
* {@link ListCheckItemResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemResponseBody</p>
*/
public static class CustomConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DefaultValue")
private String defaultValue;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("TypeDefine")
private String typeDefine;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private CustomConfigs(Builder builder) {
this.defaultValue = builder.defaultValue;
this.name = builder.name;
this.showName = builder.showName;
this.typeDefine = builder.typeDefine;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static CustomConfigs create() {
return builder().build();
}
/**
* @return defaultValue
*/
public String getDefaultValue() {
return this.defaultValue;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return typeDefine
*/
public String getTypeDefine() {
return this.typeDefine;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String defaultValue;
private String name;
private String showName;
private String typeDefine;
private String value;
private Builder() {
}
private Builder(CustomConfigs model) {
this.defaultValue = model.defaultValue;
this.name = model.name;
this.showName = model.showName;
this.typeDefine = model.typeDefine;
this.value = model.value;
}
/**
* <p>The default value of the check item. The value is a string.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>IPList</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The display name of the check item.</p>
*
* <strong>example:</strong>
* <p>Ensure RAM password policy prevents password reuse</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The type of the check item. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>{"type":"LIST","range":[1,512],"listType":{"type":"STRING","range":[0,22]}}</p>
*/
public Builder typeDefine(String typeDefine) {
this.typeDefine = typeDefine;
return this;
}
/**
* <p>The specified value of the check item. The value is a string.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public CustomConfigs build() {
return new CustomConfigs(this);
}
}
}
/**
*
* {@link ListCheckItemResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemResponseBody</p>
*/
public static class Description extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Description(Builder builder) {
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Description create() {
return builder().build();
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String type;
private String value;
private Builder() {
}
private Builder(Description model) {
this.type = model.type;
this.value = model.value;
}
/**
* <p>The type of the description of the check item. Valid value:</p>
* <ul>
* <li><strong>text</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The content of the description for the check item when the Type parameter is text.</p>
*
* <strong>example:</strong>
* <p>The download of query results that are returned by SELECT statements in DataStudio must be prohibited at the MaxCompute level.</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Description build() {
return new Description(this);
}
}
}
/**
*
* {@link ListCheckItemResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemResponseBody</p>
*/
public static class CheckItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckShowName")
private String checkShowName;
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.NameInMap("CustomConfigs")
private java.util.List<CustomConfigs> customConfigs;
@com.aliyun.core.annotation.NameInMap("Description")
private Description description;
@com.aliyun.core.annotation.NameInMap("EstimatedCount")
private Integer estimatedCount;
@com.aliyun.core.annotation.NameInMap("InstanceSubType")
private String instanceSubType;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SectionIds")
private java.util.List<Long> sectionIds;
@com.aliyun.core.annotation.NameInMap("Vendor")
private String vendor;
private CheckItems(Builder builder) {
this.checkId = builder.checkId;
this.checkShowName = builder.checkShowName;
this.checkType = builder.checkType;
this.customConfigs = builder.customConfigs;
this.description = builder.description;
this.estimatedCount = builder.estimatedCount;
this.instanceSubType = builder.instanceSubType;
this.instanceType = builder.instanceType;
this.riskLevel = builder.riskLevel;
this.sectionIds = builder.sectionIds;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static CheckItems create() {
return builder().build();
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkShowName
*/
public String getCheckShowName() {
return this.checkShowName;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return customConfigs
*/
public java.util.List<CustomConfigs> getCustomConfigs() {
return this.customConfigs;
}
/**
* @return description
*/
public Description getDescription() {
return this.description;
}
/**
* @return estimatedCount
*/
public Integer getEstimatedCount() {
return this.estimatedCount;
}
/**
* @return instanceSubType
*/
public String getInstanceSubType() {
return this.instanceSubType;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return sectionIds
*/
public java.util.List<Long> getSectionIds() {
return this.sectionIds;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
public static final class Builder {
private Long checkId;
private String checkShowName;
private String checkType;
private java.util.List<CustomConfigs> customConfigs;
private Description description;
private Integer estimatedCount;
private String instanceSubType;
private String instanceType;
private String riskLevel;
private java.util.List<Long> sectionIds;
private String vendor;
private Builder() {
}
private Builder(CheckItems model) {
this.checkId = model.checkId;
this.checkShowName = model.checkShowName;
this.checkType = model.checkType;
this.customConfigs = model.customConfigs;
this.description = model.description;
this.estimatedCount = model.estimatedCount;
this.instanceSubType = model.instanceSubType;
this.instanceType = model.instanceType;
this.riskLevel = model.riskLevel;
this.sectionIds = model.sectionIds;
this.vendor = model.vendor;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>21</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>Enable deletion protection</p>
*/
public Builder checkShowName(String checkShowName) {
this.checkShowName = checkShowName;
return this;
}
/**
* <p>The source type of the Situation Awareness check item: </p>
* <ul>
* <li><strong>CUSTOM</strong>: User-defined </li>
* <li><strong>SYSTEM</strong>: Predefined by the Situation Awareness platform</li>
* </ul>
*
* <strong>example:</strong>
* <p>SYSTEM</p>
*/
public Builder checkType(String checkType) {
this.checkType = checkType;
return this;
}
/**
* <p>The check items.</p>
*/
public Builder customConfigs(java.util.List<CustomConfigs> customConfigs) {
this.customConfigs = customConfigs;
return this;
}
/**
* <p>The description of the check item.</p>
*/
public Builder description(Description description) {
this.description = description;
return this;
}
/**
* <p>The estimated quota that will be consumed by this check item.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder estimatedCount(Integer estimatedCount) {
this.estimatedCount = estimatedCount;
return this;
}
/**
* <p>The asset subtype of the cloud service. Valid values:</p>
* <ul>
* <li><p>If <strong>InstanceType</strong> is set to <strong>ECS</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>DISK</strong></li>
* <li><strong>SECURITY_GROUP</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceType</strong> is set to <strong>ACR</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>REPOSITORY_ENTERPRISE</strong></li>
* <li><strong>REPOSITORY_PERSON</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceType</strong> is set to <strong>RAM</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>ALIAS</strong></li>
* <li><strong>USER</strong></li>
* <li><strong>POLICY</strong></li>
* <li><strong>GROUP</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceType</strong> is set to <strong>WAF</strong>, this parameter supports the following valid value:</p>
* <ul>
* <li><strong>DOMAIN</strong></li>
* </ul>
* </li>
* <li><p>If <strong>InstanceType</strong> is set to other values, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder instanceSubType(String instanceSubType) {
this.instanceSubType = instanceSubType;
return this;
}
/**
* <p>The asset type of the cloud service. Valid values:</p>
* <ul>
* <li><strong>ECS</strong>: Elastic Compute Service (ECS).</li>
* <li><strong>SLB</strong>: Server Load Balancer (SLB).</li>
* <li><strong>RDS</strong>: ApsaraDB RDS.</li>
* <li><strong>MONGODB</strong>: ApsaraDB for MongoDB (MongoDB).</li>
* <li><strong>KVSTORE</strong>: ApsaraDB for Redis (Redis).</li>
* <li><strong>ACR</strong>: Container Registry.</li>
* <li><strong>CSK</strong>: Container Service for Kubernetes (ACK).</li>
* <li><strong>VPC</strong>: Virtual Private Cloud (VPC).</li>
* <li><strong>ACTIONTRAIL</strong>: ActionTrail.</li>
* <li><strong>CDN</strong>: Alibaba Cloud CDN (CDN).</li>
* <li><strong>CAS</strong>: Certificate Management Service (formerly SSL Certificates Service).</li>
* <li><strong>RDC</strong>: Apsara Devops.</li>
* <li><strong>RAM</strong>: Resource Access Management (RAM).</li>
* <li><strong>DDOS</strong>: Anti-DDoS.</li>
* <li><strong>WAF</strong>: Web Application Firewall (WAF).</li>
* <li><strong>OSS</strong>: Object Storage Service (OSS).</li>
* <li><strong>POLARDB</strong>: PolarDB.</li>
* <li><strong>POSTGRESQL</strong>: ApsaraDB RDS for PostgreSQL.</li>
* <li><strong>MSE</strong>: Microservices Engine (MSE).</li>
* <li><strong>NAS</strong>: File Storage NAS (NAS).</li>
* <li><strong>SDDP</strong>: Sensitive Data Discovery and Protection (SDDP).</li>
* <li><strong>EIP</strong>: Elastic IP Address (EIP).</li>
* </ul>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The risk level of the 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 riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The IDs of the sections associated with the check items.</p>
*/
public Builder sectionIds(java.util.List<Long> sectionIds) {
this.sectionIds = sectionIds;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an asset provided by Alibaba Cloud.</li>
* <li><strong>1</strong>: an asset outside Alibaba Cloud.</li>
* <li><strong>2</strong>: an asset in a data center.</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset.</li>
* <li><strong>8</strong>: a simple application server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(String vendor) {
this.vendor = vendor;
return this;
}
public CheckItems build() {
return new CheckItems(this);
}
}
}
/**
*
* {@link ListCheckItemResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemResponseBody</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 per page.</p>
*
* <strong>example:</strong>
* <p>10</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);
}
}
}
}
|
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/ListCheckItemWarningMachineRequest.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 ListCheckItemWarningMachineRequest} extends {@link RequestModel}
*
* <p>ListCheckItemWarningMachineRequest</p>
*/
public class ListCheckItemWarningMachineRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckId")
@com.aliyun.core.annotation.Validation(required = true)
private Long checkId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerFieldName")
private String containerFieldName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerFieldValue")
private String containerFieldValue;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@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("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskType")
private String riskType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UuidList")
private java.util.List<String> uuidList;
private ListCheckItemWarningMachineRequest(Builder builder) {
super(builder);
this.checkId = builder.checkId;
this.containerFieldName = builder.containerFieldName;
this.containerFieldValue = builder.containerFieldValue;
this.currentPage = builder.currentPage;
this.groupId = builder.groupId;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.riskType = builder.riskType;
this.source = builder.source;
this.status = builder.status;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemWarningMachineRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return containerFieldName
*/
public String getContainerFieldName() {
return this.containerFieldName;
}
/**
* @return containerFieldValue
*/
public String getContainerFieldValue() {
return this.containerFieldValue;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return riskType
*/
public String getRiskType() {
return this.riskType;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder extends Request.Builder<ListCheckItemWarningMachineRequest, Builder> {
private Long checkId;
private String containerFieldName;
private String containerFieldValue;
private Integer currentPage;
private Long groupId;
private String lang;
private Integer pageSize;
private String remark;
private String riskType;
private String source;
private Integer status;
private java.util.List<String> uuidList;
private Builder() {
super();
}
private Builder(ListCheckItemWarningMachineRequest request) {
super(request);
this.checkId = request.checkId;
this.containerFieldName = request.containerFieldName;
this.containerFieldValue = request.containerFieldValue;
this.currentPage = request.currentPage;
this.groupId = request.groupId;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.riskType = request.riskType;
this.source = request.source;
this.status = request.status;
this.uuidList = request.uuidList;
}
/**
* <p>The ID of the check item.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder checkId(Long checkId) {
this.putQueryParameter("CheckId", checkId);
this.checkId = checkId;
return this;
}
/**
* <p>The name of the field that is used to query containers.</p>
*
* <strong>example:</strong>
* <p>clusterId</p>
*/
public Builder containerFieldName(String containerFieldName) {
this.putQueryParameter("ContainerFieldName", containerFieldName);
this.containerFieldName = containerFieldName;
return this;
}
/**
* <p>The value of the field that is used to query containers.</p>
*
* <strong>example:</strong>
* <p>ce89cdd0ea732472a8703821b19e****</p>
*/
public Builder containerFieldValue(String containerFieldValue) {
this.putQueryParameter("ContainerFieldValue", containerFieldValue);
this.containerFieldValue = containerFieldValue;
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 ID of the asset group.</p>
* <blockquote>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/130972.html">DescribeAllGroups</a> operation to query the ID of the asset group.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1161****</p>
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
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. 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 keyword that is used to query servers in fuzzy match mode.</p>
*
* <strong>example:</strong>
* <p>225</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* <p>The type of the check item.</p>
*
* <strong>example:</strong>
* <p>cis</p>
*/
public Builder riskType(String riskType) {
this.putQueryParameter("RiskType", riskType);
this.riskType = riskType;
return this;
}
/**
* <p>The data source. Default value: default. Valid values:</p>
* <ul>
* <li><strong>default</strong>: The check items of baselines for hosts.</li>
* <li><strong>agentless</strong>: The check items of baselines 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 status of the check item. Valid values:</p>
* <ul>
* <li><p>1: failed</p>
* </li>
* <li><p>2: verifying</p>
* </li>
* <li><p>3: passed</p>
* </li>
* <li><p>6: ignored</p>
* </li>
* <li><p>7: fixing</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder status(Integer status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The UUID array of the servers.</p>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.putQueryParameter("UuidList", uuidList);
this.uuidList = uuidList;
return this;
}
@Override
public ListCheckItemWarningMachineRequest build() {
return new ListCheckItemWarningMachineRequest(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/ListCheckItemWarningMachineResponse.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 ListCheckItemWarningMachineResponse} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponse</p>
*/
public class ListCheckItemWarningMachineResponse 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 ListCheckItemWarningMachineResponseBody body;
private ListCheckItemWarningMachineResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckItemWarningMachineResponse 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 ListCheckItemWarningMachineResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckItemWarningMachineResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckItemWarningMachineResponseBody body);
@Override
ListCheckItemWarningMachineResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckItemWarningMachineResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckItemWarningMachineResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckItemWarningMachineResponse 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(ListCheckItemWarningMachineResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckItemWarningMachineResponse build() {
return new ListCheckItemWarningMachineResponse(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/ListCheckItemWarningMachineResponseBody.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 ListCheckItemWarningMachineResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponseBody</p>
*/
public class ListCheckItemWarningMachineResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckItemWarningMachineResponseBody(Builder builder) {
this.list = builder.list;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemWarningMachineResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @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<List> list;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckItemWarningMachineResponseBody model) {
this.list = model.list;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The servers on which the alerts are generated.</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;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>22B5615F-700E-575A-A6D5-DC8D7741****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckItemWarningMachineResponseBody build() {
return new ListCheckItemWarningMachineResponseBody(this);
}
}
/**
*
* {@link ListCheckItemWarningMachineResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponseBody</p>
*/
public static class FixList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RiskId")
private Long riskId;
@com.aliyun.core.annotation.NameInMap("RiskName")
private String riskName;
private FixList(Builder builder) {
this.riskId = builder.riskId;
this.riskName = builder.riskName;
}
public static Builder builder() {
return new Builder();
}
public static FixList create() {
return builder().build();
}
/**
* @return riskId
*/
public Long getRiskId() {
return this.riskId;
}
/**
* @return riskName
*/
public String getRiskName() {
return this.riskName;
}
public static final class Builder {
private Long riskId;
private String riskName;
private Builder() {
}
private Builder(FixList model) {
this.riskId = model.riskId;
this.riskName = model.riskName;
}
/**
* <p>The ID of the baseline.</p>
*
* <strong>example:</strong>
* <p>72</p>
*/
public Builder riskId(Long riskId) {
this.riskId = riskId;
return this;
}
/**
* <p>The name of the baseline.</p>
*
* <strong>example:</strong>
* <p>Alibaba Cloud Linux/Aliyun Linux 2 Baseline for China classified protection of cybersecurity-Level II</p>
*/
public Builder riskName(String riskName) {
this.riskName = riskName;
return this;
}
public FixList build() {
return new FixList(this);
}
}
}
/**
*
* {@link ListCheckItemWarningMachineResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponseBody</p>
*/
public static class WarningRiskList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RiskId")
@Deprecated
private Long riskId;
@com.aliyun.core.annotation.NameInMap("RiskName")
@Deprecated
private String riskName;
private WarningRiskList(Builder builder) {
this.riskId = builder.riskId;
this.riskName = builder.riskName;
}
public static Builder builder() {
return new Builder();
}
public static WarningRiskList create() {
return builder().build();
}
/**
* @return riskId
*/
public Long getRiskId() {
return this.riskId;
}
/**
* @return riskName
*/
public String getRiskName() {
return this.riskName;
}
public static final class Builder {
private Long riskId;
private String riskName;
private Builder() {
}
private Builder(WarningRiskList model) {
this.riskId = model.riskId;
this.riskName = model.riskName;
}
/**
* <p>The ID of the baseline.</p>
*
* <strong>example:</strong>
* <p>72</p>
*/
public Builder riskId(Long riskId) {
this.riskId = riskId;
return this;
}
/**
* <p>The name of the baseline.</p>
*
* <strong>example:</strong>
* <p>Alibaba Cloud Linux/Aliyun Linux 2 Baseline for China classified protection of cybersecurity-Level II</p>
*/
public Builder riskName(String riskName) {
this.riskName = riskName;
return this;
}
public WarningRiskList build() {
return new WarningRiskList(this);
}
}
}
/**
*
* {@link ListCheckItemWarningMachineResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthVersion")
private Integer authVersion;
@com.aliyun.core.annotation.NameInMap("Bind")
private Boolean bind;
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.NameInMap("ContainerName")
private String containerName;
@com.aliyun.core.annotation.NameInMap("FixList")
private java.util.List<FixList> fixList;
@com.aliyun.core.annotation.NameInMap("FixStatus")
private Integer fixStatus;
@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("LastHandleTime")
private Long lastHandleTime;
@com.aliyun.core.annotation.NameInMap("LastScanTime")
private Long lastScanTime;
@com.aliyun.core.annotation.NameInMap("PortOpen")
private Boolean portOpen;
@com.aliyun.core.annotation.NameInMap("Prompt")
private String prompt;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@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("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("WarningRiskList")
@Deprecated
private java.util.List<WarningRiskList> warningRiskList;
private List(Builder builder) {
this.authVersion = builder.authVersion;
this.bind = builder.bind;
this.containerId = builder.containerId;
this.containerName = builder.containerName;
this.fixList = builder.fixList;
this.fixStatus = builder.fixStatus;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.lastHandleTime = builder.lastHandleTime;
this.lastScanTime = builder.lastScanTime;
this.portOpen = builder.portOpen;
this.prompt = builder.prompt;
this.regionId = builder.regionId;
this.status = builder.status;
this.targetId = builder.targetId;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
this.uuid = builder.uuid;
this.warningRiskList = builder.warningRiskList;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return authVersion
*/
public Integer getAuthVersion() {
return this.authVersion;
}
/**
* @return bind
*/
public Boolean getBind() {
return this.bind;
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return containerName
*/
public String getContainerName() {
return this.containerName;
}
/**
* @return fixList
*/
public java.util.List<FixList> getFixList() {
return this.fixList;
}
/**
* @return fixStatus
*/
public Integer getFixStatus() {
return this.fixStatus;
}
/**
* @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 lastHandleTime
*/
public Long getLastHandleTime() {
return this.lastHandleTime;
}
/**
* @return lastScanTime
*/
public Long getLastScanTime() {
return this.lastScanTime;
}
/**
* @return portOpen
*/
public Boolean getPortOpen() {
return this.portOpen;
}
/**
* @return prompt
*/
public String getPrompt() {
return this.prompt;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @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 uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return warningRiskList
*/
public java.util.List<WarningRiskList> getWarningRiskList() {
return this.warningRiskList;
}
public static final class Builder {
private Integer authVersion;
private Boolean bind;
private String containerId;
private String containerName;
private java.util.List<FixList> fixList;
private Integer fixStatus;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long lastHandleTime;
private Long lastScanTime;
private Boolean portOpen;
private String prompt;
private String regionId;
private Integer status;
private String targetId;
private String targetName;
private String targetType;
private String uuid;
private java.util.List<WarningRiskList> warningRiskList;
private Builder() {
}
private Builder(List model) {
this.authVersion = model.authVersion;
this.bind = model.bind;
this.containerId = model.containerId;
this.containerName = model.containerName;
this.fixList = model.fixList;
this.fixStatus = model.fixStatus;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.lastHandleTime = model.lastHandleTime;
this.lastScanTime = model.lastScanTime;
this.portOpen = model.portOpen;
this.prompt = model.prompt;
this.regionId = model.regionId;
this.status = model.status;
this.targetId = model.targetId;
this.targetName = model.targetName;
this.targetType = model.targetType;
this.uuid = model.uuid;
this.warningRiskList = model.warningRiskList;
}
/**
* <p>The edition of Security Center that is authorized to protect the asset. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Basic edition</li>
* <li><strong>6</strong>: Anti-virus edition</li>
* <li><strong>5</strong>: Advanced edition</li>
* <li><strong>3</strong>: Enterprise edition</li>
* <li><strong>7</strong>: Ultimate edition</li>
* <li><strong>10</strong>: Value-added Plan edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder authVersion(Integer authVersion) {
this.authVersion = authVersion;
return this;
}
/**
* <p>Indicates whether Security Center is authorized to protect the asset. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder bind(Boolean bind) {
this.bind = bind;
return this;
}
/**
* <p>The ID of the container.</p>
*
* <strong>example:</strong>
* <p>48a6d9a92435a13ad573372c3f3c63b7e04d106458141df9f9215570********</p>
*/
public Builder containerId(String containerId) {
this.containerId = containerId;
return this;
}
/**
* <p>The name of the container.</p>
*
* <strong>example:</strong>
* <p>step-build-ui-build</p>
*/
public Builder containerName(String containerName) {
this.containerName = containerName;
return this;
}
/**
* <p>The details of the baselines for which the risk item can be fixed.</p>
*/
public Builder fixList(java.util.List<FixList> fixList) {
this.fixList = fixList;
return this;
}
/**
* <p>Whether the repair is supported. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Supported</li>
* <li><strong>1</strong>: Not Supported</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder fixStatus(Integer fixStatus) {
this.fixStatus = fixStatus;
return this;
}
/**
* <p>The instance ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-bp1a69mvjujbakxu****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>sql-test-0****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the affected asset.</p>
*
* <strong>example:</strong>
* <p>8.210.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the affected asset.</p>
*
* <strong>example:</strong>
* <p>172.25.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The timestamp of the latest processing of the check item risk of the machine. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1694692471000</p>
*/
public Builder lastHandleTime(Long lastHandleTime) {
this.lastHandleTime = lastHandleTime;
return this;
}
/**
* <p>The timestamp generated when the last scan was performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1694692471000</p>
*/
public Builder lastScanTime(Long lastScanTime) {
this.lastScanTime = lastScanTime;
return this;
}
/**
* <p>Indicates whether a port on the server is accessible over the Internet. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder portOpen(Boolean portOpen) {
this.portOpen = portOpen;
return this;
}
/**
* <p>The prompt for the risk item.</p>
*
* <strong>example:</strong>
* <p>There is a weak password (username/password): root/he*****34</p>
*/
public Builder prompt(String prompt) {
this.prompt = prompt;
return this;
}
/**
* <p>The region ID of the asset.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The status of the check item. Valid values:</p>
* <ul>
* <li>1: failed</li>
* <li>2: verifying</li>
* <li>3: passed</li>
* <li>6: ignored</li>
* <li>7: fixing</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The ID of the asset that is scanned.</p>
*
* <strong>example:</strong>
* <p>30****</p>
*/
public Builder targetId(String targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the asset on which the malicious image sample is detected.</p>
*
* <strong>example:</strong>
* <p>jenkins****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The type of the asset. Valid values:</p>
* <ul>
* <li><strong>ECS_SNAPSHOT</strong></li>
* <li><strong>ECS_IMAGE</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS_IMAGE</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>49e25e0f-bb51-4a5a-a1b3-13a4ddaa****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The information about the baselines on which the risk item is detected.</p>
*/
public Builder warningRiskList(java.util.List<WarningRiskList> warningRiskList) {
this.warningRiskList = warningRiskList;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListCheckItemWarningMachineResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningMachineResponseBody</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 affected assets 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 affected assets.</p>
*
* <strong>example:</strong>
* <p>107</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/ListCheckItemWarningSummaryRequest.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 ListCheckItemWarningSummaryRequest} extends {@link RequestModel}
*
* <p>ListCheckItemWarningSummaryRequest</p>
*/
public class ListCheckItemWarningSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckItemFuzzy")
private String checkItemFuzzy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckLevel")
private String checkLevel;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckWarningStatus")
private Integer checkWarningStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckWarningStatusList")
private java.util.List<Integer> checkWarningStatusList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerFieldName")
private String containerFieldName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerFieldValue")
private String containerFieldValue;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@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("RiskType")
private String riskType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UuidList")
private java.util.List<String> uuidList;
private ListCheckItemWarningSummaryRequest(Builder builder) {
super(builder);
this.checkItemFuzzy = builder.checkItemFuzzy;
this.checkLevel = builder.checkLevel;
this.checkType = builder.checkType;
this.checkWarningStatus = builder.checkWarningStatus;
this.checkWarningStatusList = builder.checkWarningStatusList;
this.containerFieldName = builder.containerFieldName;
this.containerFieldValue = builder.containerFieldValue;
this.currentPage = builder.currentPage;
this.groupId = builder.groupId;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.riskType = builder.riskType;
this.source = builder.source;
this.startTime = builder.startTime;
this.uuidList = builder.uuidList;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemWarningSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkItemFuzzy
*/
public String getCheckItemFuzzy() {
return this.checkItemFuzzy;
}
/**
* @return checkLevel
*/
public String getCheckLevel() {
return this.checkLevel;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return checkWarningStatus
*/
public Integer getCheckWarningStatus() {
return this.checkWarningStatus;
}
/**
* @return checkWarningStatusList
*/
public java.util.List<Integer> getCheckWarningStatusList() {
return this.checkWarningStatusList;
}
/**
* @return containerFieldName
*/
public String getContainerFieldName() {
return this.containerFieldName;
}
/**
* @return containerFieldValue
*/
public String getContainerFieldValue() {
return this.containerFieldValue;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return riskType
*/
public String getRiskType() {
return this.riskType;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return uuidList
*/
public java.util.List<String> getUuidList() {
return this.uuidList;
}
public static final class Builder extends Request.Builder<ListCheckItemWarningSummaryRequest, Builder> {
private String checkItemFuzzy;
private String checkLevel;
private String checkType;
private Integer checkWarningStatus;
private java.util.List<Integer> checkWarningStatusList;
private String containerFieldName;
private String containerFieldValue;
private Integer currentPage;
private Long groupId;
private String lang;
private Integer pageSize;
private String riskType;
private String source;
private Long startTime;
private java.util.List<String> uuidList;
private Builder() {
super();
}
private Builder(ListCheckItemWarningSummaryRequest request) {
super(request);
this.checkItemFuzzy = request.checkItemFuzzy;
this.checkLevel = request.checkLevel;
this.checkType = request.checkType;
this.checkWarningStatus = request.checkWarningStatus;
this.checkWarningStatusList = request.checkWarningStatusList;
this.containerFieldName = request.containerFieldName;
this.containerFieldValue = request.containerFieldValue;
this.currentPage = request.currentPage;
this.groupId = request.groupId;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.riskType = request.riskType;
this.source = request.source;
this.startTime = request.startTime;
this.uuidList = request.uuidList;
}
/**
* <p>The name of the check item. Fuzzy match is supported.</p>
*
* <strong>example:</strong>
* <p>password</p>
*/
public Builder checkItemFuzzy(String checkItemFuzzy) {
this.putQueryParameter("CheckItemFuzzy", checkItemFuzzy);
this.checkItemFuzzy = checkItemFuzzy;
return this;
}
/**
* <p>The risk level. Default value: null, which indicates that check items at all risk levels are queried.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 checkLevel(String checkLevel) {
this.putQueryParameter("CheckLevel", checkLevel);
this.checkLevel = checkLevel;
return this;
}
/**
* <p>The type of the check item.</p>
*
* <strong>example:</strong>
* <p>hc.check.type.attack_defense</p>
*/
public Builder checkType(String checkType) {
this.putQueryParameter("CheckType", checkType);
this.checkType = checkType;
return this;
}
/**
* <p>The risk status. Default value is null, meaning check items in all states are queried. Valid values:</p>
* <ul>
* <li><strong>1</strong>: failed</li>
* <li><strong>3</strong>: passed</li>
* <li><strong>6</strong>: whitelisted</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder checkWarningStatus(Integer checkWarningStatus) {
this.putQueryParameter("CheckWarningStatus", checkWarningStatus);
this.checkWarningStatus = checkWarningStatus;
return this;
}
/**
* <p>The list of risk levels. If the CheckWarningStatus parameter is specified, only it takes effect.</p>
*/
public Builder checkWarningStatusList(java.util.List<Integer> checkWarningStatusList) {
this.putQueryParameter("CheckWarningStatusList", checkWarningStatusList);
this.checkWarningStatusList = checkWarningStatusList;
return this;
}
/**
* <p>The name of the field that is used to query containers.</p>
*
* <strong>example:</strong>
* <p>clusterId</p>
*/
public Builder containerFieldName(String containerFieldName) {
this.putQueryParameter("ContainerFieldName", containerFieldName);
this.containerFieldName = containerFieldName;
return this;
}
/**
* <p>The value of the field that is used to query containers.</p>
*
* <strong>example:</strong>
* <p>c471f0f61b9c04f8380556e922cf1****</p>
*/
public Builder containerFieldValue(String containerFieldValue) {
this.putQueryParameter("ContainerFieldValue", containerFieldValue);
this.containerFieldValue = containerFieldValue;
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 ID of the asset group.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeAllGroups~~">DescribeAllGroups</a> operation to query the IDs of asset groups.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1161****</p>
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
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. 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 type of the baseline.</p>
*
* <strong>example:</strong>
* <p>weak_password</p>
*/
public Builder riskType(String riskType) {
this.putQueryParameter("RiskType", riskType);
this.riskType = riskType;
return this;
}
/**
* <p>The data source. Default value: <strong>default</strong>. Valid value:</p>
* <ul>
* <li><strong>agentless</strong>: The check items of baselines for agentless detection.</li>
* <li><strong>default</strong>: The check items of baselines for hosts.</li>
* </ul>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>Start of time range for filtering alerts, effective only for querying historically handled alerts.</p>
*
* <strong>example:</strong>
* <p>1732793158366</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The UUIDs of the servers.</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 the servers.</p>
* </blockquote>
*/
public Builder uuidList(java.util.List<String> uuidList) {
this.putQueryParameter("UuidList", uuidList);
this.uuidList = uuidList;
return this;
}
@Override
public ListCheckItemWarningSummaryRequest build() {
return new ListCheckItemWarningSummaryRequest(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/ListCheckItemWarningSummaryResponse.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 ListCheckItemWarningSummaryResponse} extends {@link TeaModel}
*
* <p>ListCheckItemWarningSummaryResponse</p>
*/
public class ListCheckItemWarningSummaryResponse 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 ListCheckItemWarningSummaryResponseBody body;
private ListCheckItemWarningSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckItemWarningSummaryResponse 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 ListCheckItemWarningSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckItemWarningSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckItemWarningSummaryResponseBody body);
@Override
ListCheckItemWarningSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckItemWarningSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckItemWarningSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckItemWarningSummaryResponse 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(ListCheckItemWarningSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckItemWarningSummaryResponse build() {
return new ListCheckItemWarningSummaryResponse(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/ListCheckItemWarningSummaryResponseBody.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 ListCheckItemWarningSummaryResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningSummaryResponseBody</p>
*/
public class ListCheckItemWarningSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckItemWarningSummaryResponseBody(Builder builder) {
this.list = builder.list;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckItemWarningSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @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<List> list;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckItemWarningSummaryResponseBody model) {
this.list = model.list;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>List of check item risk statistics.</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;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>DC97C9EC-4B7D-5EFF-8A5E-A5CCC9ED****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckItemWarningSummaryResponseBody build() {
return new ListCheckItemWarningSummaryResponseBody(this);
}
}
/**
*
* {@link ListCheckItemWarningSummaryResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningSummaryResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Advice")
private String advice;
@com.aliyun.core.annotation.NameInMap("AffiliatedRiskTypes")
private java.util.List<String> affiliatedRiskTypes;
@com.aliyun.core.annotation.NameInMap("AffiliatedRisks")
private java.util.List<String> affiliatedRisks;
@com.aliyun.core.annotation.NameInMap("Alias")
@Deprecated
private String alias;
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckItem")
private String checkItem;
@com.aliyun.core.annotation.NameInMap("CheckLevel")
private String checkLevel;
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.NameInMap("ContainerCheckItem")
private Boolean containerCheckItem;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EnableRisks")
private java.util.List<String> enableRisks;
@com.aliyun.core.annotation.NameInMap("RiskType")
@Deprecated
private String riskType;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("WarningMachineCount")
private Integer warningMachineCount;
private List(Builder builder) {
this.advice = builder.advice;
this.affiliatedRiskTypes = builder.affiliatedRiskTypes;
this.affiliatedRisks = builder.affiliatedRisks;
this.alias = builder.alias;
this.checkId = builder.checkId;
this.checkItem = builder.checkItem;
this.checkLevel = builder.checkLevel;
this.checkType = builder.checkType;
this.containerCheckItem = builder.containerCheckItem;
this.description = builder.description;
this.enableRisks = builder.enableRisks;
this.riskType = builder.riskType;
this.status = builder.status;
this.warningMachineCount = builder.warningMachineCount;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return advice
*/
public String getAdvice() {
return this.advice;
}
/**
* @return affiliatedRiskTypes
*/
public java.util.List<String> getAffiliatedRiskTypes() {
return this.affiliatedRiskTypes;
}
/**
* @return affiliatedRisks
*/
public java.util.List<String> getAffiliatedRisks() {
return this.affiliatedRisks;
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkItem
*/
public String getCheckItem() {
return this.checkItem;
}
/**
* @return checkLevel
*/
public String getCheckLevel() {
return this.checkLevel;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return containerCheckItem
*/
public Boolean getContainerCheckItem() {
return this.containerCheckItem;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return enableRisks
*/
public java.util.List<String> getEnableRisks() {
return this.enableRisks;
}
/**
* @return riskType
*/
public String getRiskType() {
return this.riskType;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return warningMachineCount
*/
public Integer getWarningMachineCount() {
return this.warningMachineCount;
}
public static final class Builder {
private String advice;
private java.util.List<String> affiliatedRiskTypes;
private java.util.List<String> affiliatedRisks;
private String alias;
private Long checkId;
private String checkItem;
private String checkLevel;
private String checkType;
private Boolean containerCheckItem;
private String description;
private java.util.List<String> enableRisks;
private String riskType;
private Integer status;
private Integer warningMachineCount;
private Builder() {
}
private Builder(List model) {
this.advice = model.advice;
this.affiliatedRiskTypes = model.affiliatedRiskTypes;
this.affiliatedRisks = model.affiliatedRisks;
this.alias = model.alias;
this.checkId = model.checkId;
this.checkItem = model.checkItem;
this.checkLevel = model.checkLevel;
this.checkType = model.checkType;
this.containerCheckItem = model.containerCheckItem;
this.description = model.description;
this.enableRisks = model.enableRisks;
this.riskType = model.riskType;
this.status = model.status;
this.warningMachineCount = model.warningMachineCount;
}
/**
* <p>The suggestion on the check item.</p>
*
* <strong>example:</strong>
* <p>In the Administrative Tools window, double-click Local Security Policy. In the Local Security Policy window that appears, choose Security Settings\Local Policies\Audit Policy, configure all audit policies as: <code>Success, Failure</code>.</p>
*/
public Builder advice(String advice) {
this.advice = advice;
return this;
}
/**
* <p>The types of the baselines to which the check item belongs.</p>
*/
public Builder affiliatedRiskTypes(java.util.List<String> affiliatedRiskTypes) {
this.affiliatedRiskTypes = affiliatedRiskTypes;
return this;
}
/**
* <p>The baselines to which the check item belongs.</p>
*/
public Builder affiliatedRisks(java.util.List<String> affiliatedRisks) {
this.affiliatedRisks = affiliatedRisks;
return this;
}
/**
* <p>The alias of the baseline type.</p>
*
* <strong>example:</strong>
* <p>week_pa****</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>696</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The description of the check item.</p>
*
* <strong>example:</strong>
* <p>Config the Event Audit policys</p>
*/
public Builder checkItem(String checkItem) {
this.checkItem = checkItem;
return this;
}
/**
* <p>The risk level of the 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 checkLevel(String checkLevel) {
this.checkLevel = checkLevel;
return this;
}
/**
* <p>The type of the check item.</p>
*
* <strong>example:</strong>
* <p>Security audit</p>
*/
public Builder checkType(String checkType) {
this.checkType = checkType;
return this;
}
/**
* <p>Indicates whether the check item belongs to the container runtime type. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder containerCheckItem(Boolean containerCheckItem) {
this.containerCheckItem = containerCheckItem;
return this;
}
/**
* <p>The description of the check item.</p>
*
* <strong>example:</strong>
* <p>Config the Event Audit policys</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The baselines in which the check item is enabled.</p>
*/
public Builder enableRisks(java.util.List<String> enableRisks) {
this.enableRisks = enableRisks;
return this;
}
/**
* <p>The type of the baseline.</p>
*
* <strong>example:</strong>
* <p>weak_password</p>
*/
public Builder riskType(String riskType) {
this.riskType = riskType;
return this;
}
/**
* <p>Risk status of check items. Valid values:</p>
* <ul>
* <li><strong>1</strong>: failed</li>
* <li><strong>3</strong>: passed</li>
* <li><strong>6</strong>: whitelisted</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The number of servers that are affected by the check item.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder warningMachineCount(Integer warningMachineCount) {
this.warningMachineCount = warningMachineCount;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListCheckItemWarningSummaryResponseBody} extends {@link TeaModel}
*
* <p>ListCheckItemWarningSummaryResponseBody</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>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 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);
}
}
}
}
|
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/ListCheckResultRequest.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 ListCheckResultRequest} extends {@link RequestModel}
*
* <p>ListCheckResultRequest</p>
*/
public class ListCheckResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckIds")
private java.util.List<Long> checkIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckKey")
private String checkKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckTypes")
private java.util.List<String> checkTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomParam")
private Boolean customParam;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIds")
private java.util.List<String> instanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceTypes")
private java.util.List<String> instanceTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OperationTypes")
private java.util.List<String> operationTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RequirementIds")
private java.util.List<Long> requirementIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevels")
private java.util.List<String> riskLevels;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortTypes")
private java.util.List<String> sortTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StandardIds")
private java.util.List<Long> standardIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Statuses")
private java.util.List<String> statuses;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Types")
private java.util.List<String> types;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<String> vendors;
private ListCheckResultRequest(Builder builder) {
super(builder);
this.checkIds = builder.checkIds;
this.checkKey = builder.checkKey;
this.checkTypes = builder.checkTypes;
this.currentPage = builder.currentPage;
this.customParam = builder.customParam;
this.instanceIds = builder.instanceIds;
this.instanceTypes = builder.instanceTypes;
this.lang = builder.lang;
this.operationTypes = builder.operationTypes;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.requirementIds = builder.requirementIds;
this.riskLevels = builder.riskLevels;
this.sortTypes = builder.sortTypes;
this.standardIds = builder.standardIds;
this.statuses = builder.statuses;
this.taskSources = builder.taskSources;
this.types = builder.types;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkIds
*/
public java.util.List<Long> getCheckIds() {
return this.checkIds;
}
/**
* @return checkKey
*/
public String getCheckKey() {
return this.checkKey;
}
/**
* @return checkTypes
*/
public java.util.List<String> getCheckTypes() {
return this.checkTypes;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return customParam
*/
public Boolean getCustomParam() {
return this.customParam;
}
/**
* @return instanceIds
*/
public java.util.List<String> getInstanceIds() {
return this.instanceIds;
}
/**
* @return instanceTypes
*/
public java.util.List<String> getInstanceTypes() {
return this.instanceTypes;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return operationTypes
*/
public java.util.List<String> getOperationTypes() {
return this.operationTypes;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requirementIds
*/
public java.util.List<Long> getRequirementIds() {
return this.requirementIds;
}
/**
* @return riskLevels
*/
public java.util.List<String> getRiskLevels() {
return this.riskLevels;
}
/**
* @return sortTypes
*/
public java.util.List<String> getSortTypes() {
return this.sortTypes;
}
/**
* @return standardIds
*/
public java.util.List<Long> getStandardIds() {
return this.standardIds;
}
/**
* @return statuses
*/
public java.util.List<String> getStatuses() {
return this.statuses;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return types
*/
public java.util.List<String> getTypes() {
return this.types;
}
/**
* @return vendors
*/
public java.util.List<String> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<ListCheckResultRequest, Builder> {
private java.util.List<Long> checkIds;
private String checkKey;
private java.util.List<String> checkTypes;
private Integer currentPage;
private Boolean customParam;
private java.util.List<String> instanceIds;
private java.util.List<String> instanceTypes;
private String lang;
private java.util.List<String> operationTypes;
private Integer pageSize;
private String regionId;
private java.util.List<Long> requirementIds;
private java.util.List<String> riskLevels;
private java.util.List<String> sortTypes;
private java.util.List<Long> standardIds;
private java.util.List<String> statuses;
private java.util.List<String> taskSources;
private java.util.List<String> types;
private java.util.List<String> vendors;
private Builder() {
super();
}
private Builder(ListCheckResultRequest request) {
super(request);
this.checkIds = request.checkIds;
this.checkKey = request.checkKey;
this.checkTypes = request.checkTypes;
this.currentPage = request.currentPage;
this.customParam = request.customParam;
this.instanceIds = request.instanceIds;
this.instanceTypes = request.instanceTypes;
this.lang = request.lang;
this.operationTypes = request.operationTypes;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.requirementIds = request.requirementIds;
this.riskLevels = request.riskLevels;
this.sortTypes = request.sortTypes;
this.standardIds = request.standardIds;
this.statuses = request.statuses;
this.taskSources = request.taskSources;
this.types = request.types;
this.vendors = request.vendors;
}
/**
* <p>The IDs of the check items.</p>
*/
public Builder checkIds(java.util.List<Long> checkIds) {
this.putQueryParameter("CheckIds", checkIds);
this.checkIds = checkIds;
return this;
}
/**
* <p>The key that you want to use to search for check items in fuzzy match mode.</p>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder checkKey(String checkKey) {
this.putQueryParameter("CheckKey", checkKey);
this.checkKey = checkKey;
return this;
}
/**
* <p>Source type of the situation awareness check item.</p>
*/
public Builder checkTypes(java.util.List<String> checkTypes) {
this.putQueryParameter("CheckTypes", checkTypes);
this.checkTypes = checkTypes;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether the check item supports custom parameters. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder customParam(Boolean customParam) {
this.putQueryParameter("CustomParam", customParam);
this.customParam = customParam;
return this;
}
/**
* <p>The instance IDs of the cloud services that you want to query. Separate multiple IDs with commas (,).</p>
*/
public Builder instanceIds(java.util.List<String> instanceIds) {
this.putQueryParameter("InstanceIds", instanceIds);
this.instanceIds = instanceIds;
return this;
}
/**
* <p>The asset type of the cloud services. Valid values:</p>
* <ul>
* <li><strong>ECS</strong>: Elastic Compute Service (ECS)</li>
* <li><strong>SLB</strong>: Server Load Balancer (SLB)</li>
* <li><strong>RDS</strong>: ApsaraDB RDS</li>
* <li><strong>MONGODB</strong>: ApsaraDB for MongoDB (MongoDB)</li>
* <li><strong>KVSTORE</strong>: ApsaraDB for Redis (Redis)</li>
* <li><strong>ACR</strong>: Container Registry</li>
* <li><strong>CSK</strong>: Container Service for Kubernetes (ACK)</li>
* <li><strong>VPC</strong>: Virtual Private Cloud (VPC)</li>
* <li><strong>ACTIONTRAIL</strong>: ActionTrail</li>
* <li><strong>CDN</strong>: Alibaba Cloud CDN (CDN)</li>
* <li><strong>CAS</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>RDC</strong>: Apsara Devops</li>
* <li><strong>RAM</strong>: Resource Access Management (RAM)</li>
* <li><strong>DDOS</strong>: Anti-DDoS</li>
* <li><strong>WAF</strong>: Web Application Firewall (WAF)</li>
* <li><strong>OSS</strong>: Object Storage Service (OSS)</li>
* <li><strong>POLARDB</strong>: PolarDB</li>
* <li><strong>POSTGRESQL</strong>: ApsaraDB RDS for PostgreSQL</li>
* <li><strong>MSE</strong>: Microservices Engine (MSE)</li>
* <li><strong>NAS</strong>: File Storage NAS (NAS)</li>
* <li><strong>SDDP</strong>: Sensitive Data Discovery and Protection (SDDP)</li>
* <li><strong>EIP</strong>: Elastic IP Address (EIP)</li>
* </ul>
*/
public Builder instanceTypes(java.util.List<String> instanceTypes) {
this.putQueryParameter("InstanceTypes", instanceTypes);
this.instanceTypes = instanceTypes;
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>Specifies whether fixing is supported. Valid values:</p>
* <ul>
* <li><strong>SUPPORT_REPAIR</strong></li>
* <li><strong>NOT_SUPPORT_REPAIR</strong></li>
* </ul>
*/
public Builder operationTypes(java.util.List<String> operationTypes) {
this.putQueryParameter("OperationTypes", operationTypes);
this.operationTypes = operationTypes;
return this;
}
/**
* <p>The number of entries per page. Maximum value: 100.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the instance. Valid values:</p>
* <ul>
* <li><strong>cn-hangzhou</strong>: International</li>
* <li><strong>ap-southeast-1</strong>: Singapore</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The IDs of the requirements.</p>
*/
public Builder requirementIds(java.util.List<Long> requirementIds) {
this.putQueryParameter("RequirementIds", requirementIds);
this.requirementIds = requirementIds;
return this;
}
/**
* <p>The risk levels of check items. Separate multiple risk levels with commas (,). Valid values:</p>
* <ul>
* <li><strong>HIGH</strong></li>
* <li><strong>MEDIUM</strong></li>
* <li><strong>LOW</strong></li>
* </ul>
*/
public Builder riskLevels(java.util.List<String> riskLevels) {
this.putQueryParameter("RiskLevels", riskLevels);
this.riskLevels = riskLevels;
return this;
}
/**
* <p>The types of the conditions based on which check items are sorted. Valid values:</p>
* <ul>
* <li><strong>RISK_LEVEL</strong>: risk level</li>
* <li><strong>STATUS</strong>: status</li>
* </ul>
*/
public Builder sortTypes(java.util.List<String> sortTypes) {
this.putQueryParameter("SortTypes", sortTypes);
this.sortTypes = sortTypes;
return this;
}
/**
* <p>The standard IDs.</p>
*/
public Builder standardIds(java.util.List<Long> standardIds) {
this.putQueryParameter("StandardIds", standardIds);
this.standardIds = standardIds;
return this;
}
/**
* <p>The statuses of check items. Separate multiple statuses with commas (,). Valid values:</p>
* <ul>
* <li><strong>PASS</strong></li>
* <li><strong>NOT_PASS</strong></li>
* <li><strong>CHECKING</strong></li>
* <li><strong>NOT_CHECK</strong></li>
* <li><strong>WHITELIST</strong></li>
* </ul>
*/
public Builder statuses(java.util.List<String> statuses) {
this.putQueryParameter("Statuses", statuses);
this.statuses = statuses;
return this;
}
/**
* <p>Delete the custom category in a custom inspection item.</p>
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
/**
* <p>The types of check standards.</p>
*/
public Builder types(java.util.List<String> types) {
this.putQueryParameter("Types", types);
this.types = types;
return this;
}
/**
* <p>The cloud service providers. Valid values:</p>
* <ul>
* <li><strong>ALIYUN</strong>: Alibaba Cloud</li>
* <li><strong>TENCENT</strong>: Tencent Cloud</li>
* <li><strong>AWS</strong>: Amazon Web Services (AWS)</li>
* <li><strong>MICROSOFT</strong>: Microsoft Azure</li>
* </ul>
*/
public Builder vendors(java.util.List<String> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public ListCheckResultRequest build() {
return new ListCheckResultRequest(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/ListCheckResultResponse.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 ListCheckResultResponse} extends {@link TeaModel}
*
* <p>ListCheckResultResponse</p>
*/
public class ListCheckResultResponse 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 ListCheckResultResponseBody body;
private ListCheckResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckResultResponse 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 ListCheckResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckResultResponseBody body);
@Override
ListCheckResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckResultResponse 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(ListCheckResultResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckResultResponse build() {
return new ListCheckResultResponse(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/ListCheckResultResponseBody.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 ListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckResultResponseBody</p>
*/
public class ListCheckResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Checks")
private java.util.List<Checks> checks;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckResultResponseBody(Builder builder) {
this.checks = builder.checks;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checks
*/
public java.util.List<Checks> getChecks() {
return this.checks;
}
/**
* @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<Checks> checks;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckResultResponseBody model) {
this.checks = model.checks;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The check items.</p>
*/
public Builder checks(java.util.List<Checks> checks) {
this.checks = checks;
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>F9B6DD67-B289-5406-B35C-B0F4A217S23</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckResultResponseBody build() {
return new ListCheckResultResponseBody(this);
}
}
/**
*
* {@link ListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckResultResponseBody</p>
*/
public static class CheckPolicies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequirementId")
private Long requirementId;
@com.aliyun.core.annotation.NameInMap("RequirementShowName")
private String requirementShowName;
@com.aliyun.core.annotation.NameInMap("SectionId")
private Long sectionId;
@com.aliyun.core.annotation.NameInMap("SectionShowName")
private String sectionShowName;
@com.aliyun.core.annotation.NameInMap("StandardId")
private Long standardId;
@com.aliyun.core.annotation.NameInMap("StandardShowName")
private String standardShowName;
private CheckPolicies(Builder builder) {
this.requirementId = builder.requirementId;
this.requirementShowName = builder.requirementShowName;
this.sectionId = builder.sectionId;
this.sectionShowName = builder.sectionShowName;
this.standardId = builder.standardId;
this.standardShowName = builder.standardShowName;
}
public static Builder builder() {
return new Builder();
}
public static CheckPolicies create() {
return builder().build();
}
/**
* @return requirementId
*/
public Long getRequirementId() {
return this.requirementId;
}
/**
* @return requirementShowName
*/
public String getRequirementShowName() {
return this.requirementShowName;
}
/**
* @return sectionId
*/
public Long getSectionId() {
return this.sectionId;
}
/**
* @return sectionShowName
*/
public String getSectionShowName() {
return this.sectionShowName;
}
/**
* @return standardId
*/
public Long getStandardId() {
return this.standardId;
}
/**
* @return standardShowName
*/
public String getStandardShowName() {
return this.standardShowName;
}
public static final class Builder {
private Long requirementId;
private String requirementShowName;
private Long sectionId;
private String sectionShowName;
private Long standardId;
private String standardShowName;
private Builder() {
}
private Builder(CheckPolicies model) {
this.requirementId = model.requirementId;
this.requirementShowName = model.requirementShowName;
this.sectionId = model.sectionId;
this.sectionShowName = model.sectionShowName;
this.standardId = model.standardId;
this.standardShowName = model.standardShowName;
}
/**
* <p>The ID of the requirement item for the check item.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder requirementId(Long requirementId) {
this.requirementId = requirementId;
return this;
}
/**
* <p>The display name of the requirement item for the check item.</p>
*
* <strong>example:</strong>
* <p>Alibaba cloud OSS best security practices</p>
*/
public Builder requirementShowName(String requirementShowName) {
this.requirementShowName = requirementShowName;
return this;
}
/**
* <p>The ID of the section for the check item.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder sectionId(Long sectionId) {
this.sectionId = sectionId;
return this;
}
/**
* <p>The display name of the section for the check item.</p>
*
* <strong>example:</strong>
* <p>Log Audit</p>
*/
public Builder sectionShowName(String sectionShowName) {
this.sectionShowName = sectionShowName;
return this;
}
/**
* <p>The standard ID of the check item.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder standardId(Long standardId) {
this.standardId = standardId;
return this;
}
/**
* <p>The standard display name of the check item.</p>
*
* <strong>example:</strong>
* <p>Best security practices</p>
*/
public Builder standardShowName(String standardShowName) {
this.standardShowName = standardShowName;
return this;
}
public CheckPolicies build() {
return new CheckPolicies(this);
}
}
}
/**
*
* {@link ListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckResultResponseBody</p>
*/
public static class Checks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("AssetVendor")
private Integer assetVendor;
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckPolicies")
private java.util.List<CheckPolicies> checkPolicies;
@com.aliyun.core.annotation.NameInMap("CheckSaleType")
private Integer checkSaleType;
@com.aliyun.core.annotation.NameInMap("CheckShowName")
private String checkShowName;
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.NameInMap("InstanceSubType")
private String instanceSubType;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("LastCheckTime")
private Long lastCheckTime;
@com.aliyun.core.annotation.NameInMap("OperationType")
private String operationType;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusMessage")
private String statusMessage;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TrialPermission")
private Boolean trialPermission;
@com.aliyun.core.annotation.NameInMap("TrialPermissionType")
private Integer trialPermissionType;
@com.aliyun.core.annotation.NameInMap("Vendor")
private String vendor;
@com.aliyun.core.annotation.NameInMap("VendorShowName")
private String vendorShowName;
private Checks(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.assetVendor = builder.assetVendor;
this.checkId = builder.checkId;
this.checkPolicies = builder.checkPolicies;
this.checkSaleType = builder.checkSaleType;
this.checkShowName = builder.checkShowName;
this.checkType = builder.checkType;
this.instanceSubType = builder.instanceSubType;
this.instanceType = builder.instanceType;
this.lastCheckTime = builder.lastCheckTime;
this.operationType = builder.operationType;
this.riskLevel = builder.riskLevel;
this.status = builder.status;
this.statusMessage = builder.statusMessage;
this.taskId = builder.taskId;
this.trialPermission = builder.trialPermission;
this.trialPermissionType = builder.trialPermissionType;
this.vendor = builder.vendor;
this.vendorShowName = builder.vendorShowName;
}
public static Builder builder() {
return new Builder();
}
public static Checks create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return assetVendor
*/
public Integer getAssetVendor() {
return this.assetVendor;
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkPolicies
*/
public java.util.List<CheckPolicies> getCheckPolicies() {
return this.checkPolicies;
}
/**
* @return checkSaleType
*/
public Integer getCheckSaleType() {
return this.checkSaleType;
}
/**
* @return checkShowName
*/
public String getCheckShowName() {
return this.checkShowName;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return instanceSubType
*/
public String getInstanceSubType() {
return this.instanceSubType;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return lastCheckTime
*/
public Long getLastCheckTime() {
return this.lastCheckTime;
}
/**
* @return operationType
*/
public String getOperationType() {
return this.operationType;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusMessage
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return trialPermission
*/
public Boolean getTrialPermission() {
return this.trialPermission;
}
/**
* @return trialPermissionType
*/
public Integer getTrialPermissionType() {
return this.trialPermissionType;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
/**
* @return vendorShowName
*/
public String getVendorShowName() {
return this.vendorShowName;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Integer assetVendor;
private Long checkId;
private java.util.List<CheckPolicies> checkPolicies;
private Integer checkSaleType;
private String checkShowName;
private String checkType;
private String instanceSubType;
private String instanceType;
private Long lastCheckTime;
private String operationType;
private String riskLevel;
private String status;
private String statusMessage;
private String taskId;
private Boolean trialPermission;
private Integer trialPermissionType;
private String vendor;
private String vendorShowName;
private Builder() {
}
private Builder(Checks model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.assetVendor = model.assetVendor;
this.checkId = model.checkId;
this.checkPolicies = model.checkPolicies;
this.checkSaleType = model.checkSaleType;
this.checkShowName = model.checkShowName;
this.checkType = model.checkType;
this.instanceSubType = model.instanceSubType;
this.instanceType = model.instanceType;
this.lastCheckTime = model.lastCheckTime;
this.operationType = model.operationType;
this.riskLevel = model.riskLevel;
this.status = model.status;
this.statusMessage = model.statusMessage;
this.taskId = model.taskId;
this.trialPermission = model.trialPermission;
this.trialPermissionType = model.trialPermissionType;
this.vendor = model.vendor;
this.vendorShowName = model.vendorShowName;
}
/**
* <p>The subtype of the cloud service.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: an ECS instance</li>
* <li><strong>1</strong>: a SLB instance</li>
* <li><strong>2</strong>: a NAT gateway</li>
* <li><strong>3</strong>: an ApsaraDB RDS instance</li>
* <li><strong>4</strong>: an ApsaraDB for MongoDB instance</li>
* <li><strong>5</strong>: an ApsaraDB for Redis instance</li>
* <li><strong>6</strong>: a container image</li>
* <li><strong>7</strong>: a container</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The service provider of the asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Alibaba Cloud</li>
* <li><strong>3</strong>: Huawei Cloud</li>
* <li><strong>4</strong>: Microsoft Azure</li>
* <li><strong>5</strong>: AWS</li>
* <li><strong>7</strong>: Tencent Cloud</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder assetVendor(Integer assetVendor) {
this.assetVendor = assetVendor;
return this;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The check policies.</p>
*/
public Builder checkPolicies(java.util.List<CheckPolicies> checkPolicies) {
this.checkPolicies = checkPolicies;
return this;
}
/**
* <p>The type of the check item. Valid values:</p>
* <ul>
* <li><strong>0</strong>: paid</li>
* <li><strong>1</strong>: free</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder checkSaleType(Integer checkSaleType) {
this.checkSaleType = checkSaleType;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>OSS-PublicReadOpenManifestFileWithoutEncryption</p>
*/
public Builder checkShowName(String checkShowName) {
this.checkShowName = checkShowName;
return this;
}
/**
* <p>The source type of the situation awareness check item: </p>
* <ul>
* <li><strong>CUSTOM</strong>: User-defined </li>
* <li><strong>SYSTEM</strong>: Predefined by the situation awareness platform</li>
* </ul>
*
* <strong>example:</strong>
* <p>SYSTEM</p>
*/
public Builder checkType(String checkType) {
this.checkType = checkType;
return this;
}
/**
* <p>The asset subtype of the cloud service. Valid values:</p>
* <ul>
* <li><p>If the <strong>InstanceType</strong> parameter is set to <strong>ECS</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>DISK</strong></li>
* <li><strong>SECURITY_GROUP</strong></li>
* </ul>
* </li>
* <li><p>If the <strong>InstanceType</strong> parameter is set to <strong>ACR</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>REPOSITORY_ENTERPRISE</strong></li>
* <li><strong>REPOSITORY_PERSON</strong></li>
* </ul>
* </li>
* <li><p>If the <strong>InstanceType</strong> parameter is set to <strong>RAM</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>ALIAS</strong></li>
* <li><strong>USER</strong></li>
* <li><strong>POLICY</strong></li>
* <li><strong>GROUP</strong></li>
* </ul>
* </li>
* <li><p>If the <strong>InstanceType</strong> parameter is set to <strong>WAF</strong>, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>DOMAIN</strong></li>
* </ul>
* </li>
* <li><p>If the <strong>InstanceType</strong> parameter is set to other values, this parameter supports the following valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>DISK</p>
*/
public Builder instanceSubType(String instanceSubType) {
this.instanceSubType = instanceSubType;
return this;
}
/**
* <p>The asset type of the cloud service. Valid values:</p>
* <ul>
* <li><strong>ECS</strong>: ECS</li>
* <li><strong>SLB</strong>: SLB</li>
* <li><strong>RDS</strong>: ApsaraDB RDS</li>
* <li><strong>MONGODB</strong>: MongoDB</li>
* <li><strong>KVSTORE</strong>: Redis</li>
* <li><strong>ACR</strong>: Container Registry</li>
* <li><strong>CSK</strong>: ACK</li>
* <li><strong>VPC</strong>: VPC</li>
* <li><strong>ACTIONTRAIL</strong>: ActionTrail</li>
* <li><strong>CDN</strong>: CDN</li>
* <li><strong>CAS</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>RDC</strong>: Apsara Devops</li>
* <li><strong>RAM</strong>: RAM</li>
* <li><strong>DDOS</strong>: Anti-DDoS</li>
* <li><strong>WAF</strong>: WAF</li>
* <li><strong>OSS</strong>: OSS</li>
* <li><strong>POLARDB</strong>: PolarDB</li>
* <li><strong>POSTGRESQL</strong>: ApsaraDB RDS for PostgreSQL</li>
* <li><strong>MSE</strong>: MSE</li>
* <li><strong>NAS</strong>: NAS</li>
* <li><strong>SDDP</strong>: SDDP</li>
* <li><strong>EIP</strong>: EIP</li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The timestamp when the last check was performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1657793398000</p>
*/
public Builder lastCheckTime(Long lastCheckTime) {
this.lastCheckTime = lastCheckTime;
return this;
}
/**
* <p>Indicates whether fixing is supported. Valid values:</p>
* <ul>
* <li><strong>SUPPORT_REPAIR</strong></li>
* <li><strong>NOT_SUPPORT_REPAIR</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>NOT_SUPPORT_REPAIR</p>
*/
public Builder operationType(String operationType) {
this.operationType = operationType;
return this;
}
/**
* <p>The risk level of the 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 riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The status of the check item. Valid values:</p>
* <ul>
* <li><strong>PASS</strong>: passed</li>
* <li><strong>NOT_PASS</strong>: failed</li>
* <li><strong>CHECKING</strong>: being checked</li>
* <li><strong>NOT_CHECK</strong>: not checked</li>
* <li><strong>WHITELIST</strong>: added to the whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>PASS</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The message returned if the status of the check item is abnormal.</p>
*
* <strong>example:</strong>
* <p>TIMEOUT</p>
*/
public Builder statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* <p>The ID of the check task.</p>
*
* <strong>example:</strong>
* <p>64</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>Indicates whether the TRIAL permission is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder trialPermission(Boolean trialPermission) {
this.trialPermission = trialPermission;
return this;
}
/**
* <p>Check whether the data delivery period for ActionTrail is enabled for more than 30 days to establish a baseline of behaviour.</p>
* <ul>
* <li><strong>0</strong>: REQUIRED</li>
* <li><strong>1</strong>: NOT REQUIRED</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder trialPermissionType(Integer trialPermissionType) {
this.trialPermissionType = trialPermissionType;
return this;
}
/**
* <p>The cloud service provider.</p>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendor(String vendor) {
this.vendor = vendor;
return this;
}
/**
* <p>The name of the cloud service provider.</p>
*
* <strong>example:</strong>
* <p>Aliyun</p>
*/
public Builder vendorShowName(String vendorShowName) {
this.vendorShowName = vendorShowName;
return this;
}
public Checks build() {
return new Checks(this);
}
}
}
/**
*
* {@link ListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>ListCheckResultResponseBody</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.</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/ListCheckRuleInstanceRequest.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 ListCheckRuleInstanceRequest} extends {@link RequestModel}
*
* <p>ListCheckRuleInstanceRequest</p>
*/
public class ListCheckRuleInstanceRequest 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("InstanceList")
private java.util.List<InstanceList> instanceList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleId")
@com.aliyun.core.annotation.Validation(required = true)
private Long ruleId;
private ListCheckRuleInstanceRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.instanceList = builder.instanceList;
this.pageSize = builder.pageSize;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckRuleInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instanceList
*/
public java.util.List<InstanceList> getInstanceList() {
return this.instanceList;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
public static final class Builder extends Request.Builder<ListCheckRuleInstanceRequest, Builder> {
private Integer currentPage;
private java.util.List<InstanceList> instanceList;
private Integer pageSize;
private Long ruleId;
private Builder() {
super();
}
private Builder(ListCheckRuleInstanceRequest request) {
super(request);
this.currentPage = request.currentPage;
this.instanceList = request.instanceList;
this.pageSize = request.pageSize;
this.ruleId = request.ruleId;
}
/**
* <p>The page number of the current page when performing a paginated query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Instance list.</p>
*/
public Builder instanceList(java.util.List<InstanceList> instanceList) {
this.putQueryParameter("InstanceList", instanceList);
this.instanceList = instanceList;
return this;
}
/**
* <p>The maximum number of items per page in a paginated query. The default value is <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>Rule ID.</p>
* <blockquote>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/2590599.html">LisCheckRule</a> interface to get this parameter.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
@Override
public ListCheckRuleInstanceRequest build() {
return new ListCheckRuleInstanceRequest(this);
}
}
/**
*
* {@link ListCheckRuleInstanceRequest} extends {@link TeaModel}
*
* <p>ListCheckRuleInstanceRequest</p>
*/
public static class InstanceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private InstanceList(Builder builder) {
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static InstanceList create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String instanceId;
private String regionId;
private Builder() {
}
private Builder(InstanceList model) {
this.instanceId = model.instanceId;
this.regionId = model.regionId;
}
/**
* <p>Asset instance ID.</p>
* <blockquote>
* <p>Call the <a href="~~ListCheckInstanceResult~~">ListCheckInstanceResult</a> interface to get this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-wz9fdluqx20mp2x7****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The region where the asset is located.</p>
* <blockquote>
* <p>Call the <a href="~~ListCheckInstanceResult~~">ListCheckInstanceResult</a> interface to get this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public InstanceList build() {
return new InstanceList(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/ListCheckRuleInstanceResponse.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 ListCheckRuleInstanceResponse} extends {@link TeaModel}
*
* <p>ListCheckRuleInstanceResponse</p>
*/
public class ListCheckRuleInstanceResponse 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 ListCheckRuleInstanceResponseBody body;
private ListCheckRuleInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckRuleInstanceResponse 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 ListCheckRuleInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckRuleInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckRuleInstanceResponseBody body);
@Override
ListCheckRuleInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckRuleInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckRuleInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckRuleInstanceResponse 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(ListCheckRuleInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckRuleInstanceResponse build() {
return new ListCheckRuleInstanceResponse(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/ListCheckRuleInstanceResponseBody.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 ListCheckRuleInstanceResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleInstanceResponseBody</p>
*/
public class ListCheckRuleInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private String aliUid;
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private String assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private String assetType;
@com.aliyun.core.annotation.NameInMap("CheckId")
private String checkId;
@com.aliyun.core.annotation.NameInMap("CheckRuleInstances")
private java.util.List<CheckRuleInstances> checkRuleInstances;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Vendor")
private String vendor;
private ListCheckRuleInstanceResponseBody(Builder builder) {
this.aliUid = builder.aliUid;
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.checkId = builder.checkId;
this.checkRuleInstances = builder.checkRuleInstances;
this.requestId = builder.requestId;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckRuleInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aliUid
*/
public String getAliUid() {
return this.aliUid;
}
/**
* @return assetSubType
*/
public String getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public String getAssetType() {
return this.assetType;
}
/**
* @return checkId
*/
public String getCheckId() {
return this.checkId;
}
/**
* @return checkRuleInstances
*/
public java.util.List<CheckRuleInstances> getCheckRuleInstances() {
return this.checkRuleInstances;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
public static final class Builder {
private String aliUid;
private String assetSubType;
private String assetType;
private String checkId;
private java.util.List<CheckRuleInstances> checkRuleInstances;
private String requestId;
private String vendor;
private Builder() {
}
private Builder(ListCheckRuleInstanceResponseBody model) {
this.aliUid = model.aliUid;
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.checkId = model.checkId;
this.checkRuleInstances = model.checkRuleInstances;
this.requestId = model.requestId;
this.vendor = model.vendor;
}
/**
* <p>Alibaba Cloud account ID.</p>
*
* <strong>example:</strong>
* <p>103784262032****</p>
*/
public Builder aliUid(String aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>Subtype of the cloud product.</p>
*
* <strong>example:</strong>
* <p>Disk</p>
*/
public Builder assetSubType(String assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>Type of cloud assets.</p>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder assetType(String assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>Check item ID.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder checkId(String checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>List of instance rule information.</p>
*/
public Builder checkRuleInstances(java.util.List<CheckRuleInstances> checkRuleInstances) {
this.checkRuleInstances = checkRuleInstances;
return this;
}
/**
* <p>The ID of the current request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>7532B7EE-7CE7-5F4D-BF04-B12447DD****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Cloud vendor. Values:</p>
* <ul>
* <li><strong>ALIYUN</strong>: Alibaba Cloud</li>
* <li><strong>TENCENT</strong>: Tencent Cloud</li>
* <li><strong>MICROSOFT</strong>: Microsoft</li>
* <li><strong>AWS</strong>: Amazon Web Services (AWS)</li>
* </ul>
*
* <strong>example:</strong>
* <p>Aliyun</p>
*/
public Builder vendor(String vendor) {
this.vendor = vendor;
return this;
}
public ListCheckRuleInstanceResponseBody build() {
return new ListCheckRuleInstanceResponseBody(this);
}
}
/**
*
* {@link ListCheckRuleInstanceResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleInstanceResponseBody</p>
*/
public static class CheckRuleInstances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private CheckRuleInstances(Builder builder) {
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static CheckRuleInstances create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String instanceId;
private String instanceName;
private String regionId;
private Builder() {
}
private Builder(CheckRuleInstances model) {
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.regionId = model.regionId;
}
/**
* <p>The instance ID of the asset.</p>
*
* <strong>example:</strong>
* <p>i-j6c76lh1kvrcvwl*****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the asset.</p>
*
* <strong>example:</strong>
* <p>testEcs</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>Region ID.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public CheckRuleInstances build() {
return new CheckRuleInstances(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/ListCheckRuleRequest.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 ListCheckRuleRequest} extends {@link RequestModel}
*
* <p>ListCheckRuleRequest</p>
*/
public class ListCheckRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckName")
private String checkName;
@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("RuleType")
private String ruleType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScopeType")
private String scopeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
private ListCheckRuleRequest(Builder builder) {
super(builder);
this.checkId = builder.checkId;
this.checkName = builder.checkName;
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.ruleType = builder.ruleType;
this.scopeType = builder.scopeType;
this.taskSources = builder.taskSources;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkName
*/
public String getCheckName() {
return this.checkName;
}
/**
* @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 ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return scopeType
*/
public String getScopeType() {
return this.scopeType;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
public static final class Builder extends Request.Builder<ListCheckRuleRequest, Builder> {
private Long checkId;
private String checkName;
private Integer currentPage;
private String lang;
private Integer pageSize;
private String ruleType;
private String scopeType;
private java.util.List<String> taskSources;
private Builder() {
super();
}
private Builder(ListCheckRuleRequest request) {
super(request);
this.checkId = request.checkId;
this.checkName = request.checkName;
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.ruleType = request.ruleType;
this.scopeType = request.scopeType;
this.taskSources = request.taskSources;
}
/**
* <p>The ID of the check item.</p>
* <blockquote>
* <p>You can call the <a href="~~ListCheckResult~~">ListCheckResult</a> API to get the check item ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>58</p>
*/
public Builder checkId(Long checkId) {
this.putQueryParameter("CheckId", checkId);
this.checkId = checkId;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>checkName</p>
*/
public Builder checkName(String checkName) {
this.putQueryParameter("CheckName", checkName);
this.checkName = checkName;
return this;
}
/**
* <p>The page number displayed in a paginated query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Set the language type for the request and response messages. The default is <strong>zh</strong>. Values:</p>
* <ul>
* <li>zh: Chinese</li>
* <li>en: 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 check items displayed per page in a paginated query. The default value is <strong>20</strong>, indicating 20 check items 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 type of rule. Default is <strong>WHITE</strong>. Values:</p>
* <ul>
* <li><strong>WHITE</strong>: Add to whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>WHITE</p>
*/
public Builder ruleType(String ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
/**
* <p>The scope where the rule applies. Values:</p>
* <ul>
* <li><strong>INSTNACE</strong>: Instance</li>
* <li><strong>ITEM</strong>: Check item</li>
* </ul>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder scopeType(String scopeType) {
this.putQueryParameter("ScopeType", scopeType);
this.scopeType = scopeType;
return this;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
@Override
public ListCheckRuleRequest build() {
return new ListCheckRuleRequest(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/ListCheckRuleResponse.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 ListCheckRuleResponse} extends {@link TeaModel}
*
* <p>ListCheckRuleResponse</p>
*/
public class ListCheckRuleResponse 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 ListCheckRuleResponseBody body;
private ListCheckRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckRuleResponse 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 ListCheckRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckRuleResponseBody body);
@Override
ListCheckRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckRuleResponse 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(ListCheckRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckRuleResponse build() {
return new ListCheckRuleResponse(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/ListCheckRuleResponseBody.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 ListCheckRuleResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleResponseBody</p>
*/
public class ListCheckRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckRules")
private java.util.List<CheckRules> checkRules;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListCheckRuleResponseBody(Builder builder) {
this.checkRules = builder.checkRules;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkRules
*/
public java.util.List<CheckRules> getCheckRules() {
return this.checkRules;
}
/**
* @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<CheckRules> checkRules;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListCheckRuleResponseBody model) {
this.checkRules = model.checkRules;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>Check rules.</p>
*/
public Builder checkRules(java.util.List<CheckRules> checkRules) {
this.checkRules = checkRules;
return this;
}
/**
* <p>Pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used for troubleshooting and problem localization.</p>
*
* <strong>example:</strong>
* <p>52870893-48A7-5A9E-9E05-6253E5B6****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListCheckRuleResponseBody build() {
return new ListCheckRuleResponseBody(this);
}
}
/**
*
* {@link ListCheckRuleResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleResponseBody</p>
*/
public static class CheckPolicies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("sectionShowName")
private String sectionShowName;
private CheckPolicies(Builder builder) {
this.sectionShowName = builder.sectionShowName;
}
public static Builder builder() {
return new Builder();
}
public static CheckPolicies create() {
return builder().build();
}
/**
* @return sectionShowName
*/
public String getSectionShowName() {
return this.sectionShowName;
}
public static final class Builder {
private String sectionShowName;
private Builder() {
}
private Builder(CheckPolicies model) {
this.sectionShowName = model.sectionShowName;
}
/**
* <p>Display name of the item"s chapter.</p>
*
* <strong>example:</strong>
* <p>Access Control</p>
*/
public Builder sectionShowName(String sectionShowName) {
this.sectionShowName = sectionShowName;
return this;
}
public CheckPolicies build() {
return new CheckPolicies(this);
}
}
}
/**
*
* {@link ListCheckRuleResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleResponseBody</p>
*/
public static class CheckRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckPolicies")
private java.util.List<CheckPolicies> checkPolicies;
@com.aliyun.core.annotation.NameInMap("CheckShowName")
private String checkShowName;
@com.aliyun.core.annotation.NameInMap("InstanceSubType")
private String instanceSubType;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
@com.aliyun.core.annotation.NameInMap("ScopeType")
private String scopeType;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
@com.aliyun.core.annotation.NameInMap("VendorName")
private String vendorName;
private CheckRules(Builder builder) {
this.aliUid = builder.aliUid;
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.checkId = builder.checkId;
this.checkPolicies = builder.checkPolicies;
this.checkShowName = builder.checkShowName;
this.instanceSubType = builder.instanceSubType;
this.instanceType = builder.instanceType;
this.remark = builder.remark;
this.ruleId = builder.ruleId;
this.ruleType = builder.ruleType;
this.scopeType = builder.scopeType;
this.vendor = builder.vendor;
this.vendorName = builder.vendorName;
}
public static Builder builder() {
return new Builder();
}
public static CheckRules create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkPolicies
*/
public java.util.List<CheckPolicies> getCheckPolicies() {
return this.checkPolicies;
}
/**
* @return checkShowName
*/
public String getCheckShowName() {
return this.checkShowName;
}
/**
* @return instanceSubType
*/
public String getInstanceSubType() {
return this.instanceSubType;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return scopeType
*/
public String getScopeType() {
return this.scopeType;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
/**
* @return vendorName
*/
public String getVendorName() {
return this.vendorName;
}
public static final class Builder {
private Long aliUid;
private Integer assetSubType;
private Integer assetType;
private Long checkId;
private java.util.List<CheckPolicies> checkPolicies;
private String checkShowName;
private String instanceSubType;
private String instanceType;
private String remark;
private Long ruleId;
private String ruleType;
private String scopeType;
private Integer vendor;
private String vendorName;
private Builder() {
}
private Builder(CheckRules model) {
this.aliUid = model.aliUid;
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.checkId = model.checkId;
this.checkPolicies = model.checkPolicies;
this.checkShowName = model.checkShowName;
this.instanceSubType = model.instanceSubType;
this.instanceType = model.instanceType;
this.remark = model.remark;
this.ruleId = model.ruleId;
this.ruleType = model.ruleType;
this.scopeType = model.scopeType;
this.vendor = model.vendor;
this.vendorName = model.vendorName;
}
/**
* <p>The UID of the current user.</p>
*
* <strong>example:</strong>
* <p>176316827610****</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The subtype of the cloud product.</p>
* <blockquote>
* <p>For specific meanings, refer to the <a href="~~GetCloudAssetCriteria~~">GetCloudAssetCriteria</a> AssetSubType.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of cloud asset.</p>
* <blockquote>
* <p>For specific meanings, refer to the <a href="~~GetCloudAssetCriteria~~">GetCloudAssetCriteria</a> AssetType.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>77</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The display name of the check item section.</p>
*/
public Builder checkPolicies(java.util.List<CheckPolicies> checkPolicies) {
this.checkPolicies = checkPolicies;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>Check for IPS Whitelist on CEN (Enterprise Edition) Tab</p>
*/
public Builder checkShowName(String checkShowName) {
this.checkShowName = checkShowName;
return this;
}
/**
* <p>The sub-asset type of the cloud product.</p>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder instanceSubType(String instanceSubType) {
this.instanceSubType = instanceSubType;
return this;
}
/**
* <p>The asset type of the cloud product.</p>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>Remark.</p>
*
* <strong>example:</strong>
* <p>remark</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>8000**</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The type of rule. Default is <strong>WHITE</strong>. Values:</p>
* <ul>
* <li><strong>WHITE</strong>: Add to whitelist</li>
* </ul>
*
* <strong>example:</strong>
* <p>WHITE</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>The scope where the rule applies. Values:</p>
* <ul>
* <li><strong>INSTNACE</strong>: Instance</li>
* <li><strong>ITEM</strong>: Check item</li>
* </ul>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder scopeType(String scopeType) {
this.scopeType = scopeType;
return this;
}
/**
* <p>The server vendor. Values:</p>
* <ul>
* <li><strong>0</strong>: Alibaba Cloud asset</li>
* <li><strong>1</strong>: Non-cloud asset</li>
* <li><strong>2</strong>: IDC asset</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, <strong>7</strong>: Other cloud assets</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
/**
* <p>The name of the server provider.</p>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendorName(String vendorName) {
this.vendorName = vendorName;
return this;
}
public CheckRules build() {
return new CheckRules(this);
}
}
}
/**
*
* {@link ListCheckRuleResponseBody} extends {@link TeaModel}
*
* <p>ListCheckRuleResponseBody</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 data entries displayed 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 in a paginated query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The maximum number of data entries displayed per page in a paginated query.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>Total number of data entries.</p>
*
* <strong>example:</strong>
* <p>10</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/ListCheckStandardRequest.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 ListCheckStandardRequest} extends {@link RequestModel}
*
* <p>ListCheckStandardRequest</p>
*/
public class ListCheckStandardRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIds")
private java.util.List<String> instanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceSubTypes")
private java.util.List<String> instanceSubTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceTypes")
private java.util.List<String> instanceTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskSources")
private java.util.List<String> taskSources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<String> vendors;
private ListCheckStandardRequest(Builder builder) {
super(builder);
this.instanceIds = builder.instanceIds;
this.instanceSubTypes = builder.instanceSubTypes;
this.instanceTypes = builder.instanceTypes;
this.lang = builder.lang;
this.taskSources = builder.taskSources;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckStandardRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceIds
*/
public java.util.List<String> getInstanceIds() {
return this.instanceIds;
}
/**
* @return instanceSubTypes
*/
public java.util.List<String> getInstanceSubTypes() {
return this.instanceSubTypes;
}
/**
* @return instanceTypes
*/
public java.util.List<String> getInstanceTypes() {
return this.instanceTypes;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return vendors
*/
public java.util.List<String> getVendors() {
return this.vendors;
}
public static final class Builder extends Request.Builder<ListCheckStandardRequest, Builder> {
private java.util.List<String> instanceIds;
private java.util.List<String> instanceSubTypes;
private java.util.List<String> instanceTypes;
private String lang;
private java.util.List<String> taskSources;
private java.util.List<String> vendors;
private Builder() {
super();
}
private Builder(ListCheckStandardRequest request) {
super(request);
this.instanceIds = request.instanceIds;
this.instanceSubTypes = request.instanceSubTypes;
this.instanceTypes = request.instanceTypes;
this.lang = request.lang;
this.taskSources = request.taskSources;
this.vendors = request.vendors;
}
/**
* <p>The instance IDs of the cloud services to which the check items belong.</p>
*/
public Builder instanceIds(java.util.List<String> instanceIds) {
this.putQueryParameter("InstanceIds", instanceIds);
this.instanceIds = instanceIds;
return this;
}
/**
* <p>The subtypes of cloud services.</p>
*/
public Builder instanceSubTypes(java.util.List<String> instanceSubTypes) {
this.putQueryParameter("InstanceSubTypes", instanceSubTypes);
this.instanceSubTypes = instanceSubTypes;
return this;
}
/**
* <p>The asset types of cloud services.</p>
*/
public Builder instanceTypes(java.util.List<String> instanceTypes) {
this.putQueryParameter("InstanceTypes", instanceTypes);
this.instanceTypes = instanceTypes;
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;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
/**
* <p>The cloud service providers. Valid values:</p>
* <ul>
* <li><strong>ALIYUN</strong>: Alibaba Cloud.</li>
* <li><strong>TENCENT</strong>: Tencent Cloud.</li>
* <li><strong>HUAWEICLOUD</strong>: Huawei Cloud.</li>
* <li><strong>MICROSOFT</strong>: Microsoft Azure.</li>
* <li><strong>AWS</strong>: Amazon Web Services (AWS).</li>
* </ul>
*/
public Builder vendors(java.util.List<String> vendors) {
this.putQueryParameter("Vendors", vendors);
this.vendors = vendors;
return this;
}
@Override
public ListCheckStandardRequest build() {
return new ListCheckStandardRequest(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/ListCheckStandardResponse.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 ListCheckStandardResponse} extends {@link TeaModel}
*
* <p>ListCheckStandardResponse</p>
*/
public class ListCheckStandardResponse 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 ListCheckStandardResponseBody body;
private ListCheckStandardResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckStandardResponse 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 ListCheckStandardResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckStandardResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckStandardResponseBody body);
@Override
ListCheckStandardResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckStandardResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckStandardResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckStandardResponse 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(ListCheckStandardResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckStandardResponse build() {
return new ListCheckStandardResponse(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/ListCheckStandardResponseBody.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 ListCheckStandardResponseBody} extends {@link TeaModel}
*
* <p>ListCheckStandardResponseBody</p>
*/
public class ListCheckStandardResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Standards")
private java.util.List<Standards> standards;
private ListCheckStandardResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.standards = builder.standards;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckStandardResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return standards
*/
public java.util.List<Standards> getStandards() {
return this.standards;
}
public static final class Builder {
private String requestId;
private java.util.List<Standards> standards;
private Builder() {
}
private Builder(ListCheckStandardResponseBody model) {
this.requestId = model.requestId;
this.standards = model.standards;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>FA91FBDA-***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The standards.</p>
*/
public Builder standards(java.util.List<Standards> standards) {
this.standards = standards;
return this;
}
public ListCheckStandardResponseBody build() {
return new ListCheckStandardResponseBody(this);
}
}
/**
*
* {@link ListCheckStandardResponseBody} extends {@link TeaModel}
*
* <p>ListCheckStandardResponseBody</p>
*/
public static class Requirements extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("RiskCheckCount")
private Long riskCheckCount;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("ShowPriorityLevel")
private Integer showPriorityLevel;
private Requirements(Builder builder) {
this.id = builder.id;
this.riskCheckCount = builder.riskCheckCount;
this.showName = builder.showName;
this.showPriorityLevel = builder.showPriorityLevel;
}
public static Builder builder() {
return new Builder();
}
public static Requirements create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return riskCheckCount
*/
public Long getRiskCheckCount() {
return this.riskCheckCount;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return showPriorityLevel
*/
public Integer getShowPriorityLevel() {
return this.showPriorityLevel;
}
public static final class Builder {
private Long id;
private Long riskCheckCount;
private String showName;
private Integer showPriorityLevel;
private Builder() {
}
private Builder(Requirements model) {
this.id = model.id;
this.riskCheckCount = model.riskCheckCount;
this.showName = model.showName;
this.showPriorityLevel = model.showPriorityLevel;
}
/**
* <p>The ID of the requirement.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The number of check items in the requirement.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder riskCheckCount(Long riskCheckCount) {
this.riskCheckCount = riskCheckCount;
return this;
}
/**
* <p>The display name of the search condition.</p>
*
* <strong>example:</strong>
* <p>RAM identity authentication</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The priority for display.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder showPriorityLevel(Integer showPriorityLevel) {
this.showPriorityLevel = showPriorityLevel;
return this;
}
public Requirements build() {
return new Requirements(this);
}
}
}
/**
*
* {@link ListCheckStandardResponseBody} extends {@link TeaModel}
*
* <p>ListCheckStandardResponseBody</p>
*/
public static class Standards extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BindVendor")
private Integer bindVendor;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Requirements")
private java.util.List<Requirements> requirements;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("ShowPriorityLevel")
private Integer showPriorityLevel;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Standards(Builder builder) {
this.bindVendor = builder.bindVendor;
this.id = builder.id;
this.requirements = builder.requirements;
this.showName = builder.showName;
this.showPriorityLevel = builder.showPriorityLevel;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Standards create() {
return builder().build();
}
/**
* @return bindVendor
*/
public Integer getBindVendor() {
return this.bindVendor;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return requirements
*/
public java.util.List<Requirements> getRequirements() {
return this.requirements;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return showPriorityLevel
*/
public Integer getShowPriorityLevel() {
return this.showPriorityLevel;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Integer bindVendor;
private Long id;
private java.util.List<Requirements> requirements;
private String showName;
private Integer showPriorityLevel;
private String type;
private Builder() {
}
private Builder(Standards model) {
this.bindVendor = model.bindVendor;
this.id = model.id;
this.requirements = model.requirements;
this.showName = model.showName;
this.showPriorityLevel = model.showPriorityLevel;
this.type = model.type;
}
/**
* <p>The cloud service provider that uses the standard. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Alibaba Cloud.</li>
* <li><strong>3</strong>: Tencent Cloud.</li>
* <li><strong>4</strong>: Huawei Cloud.</li>
* <li><strong>5</strong>: Microsoft Azure.</li>
* <li><strong>7</strong>: AWS.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder bindVendor(Integer bindVendor) {
this.bindVendor = bindVendor;
return this;
}
/**
* <p>The ID of the standard.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The requirements.</p>
*/
public Builder requirements(java.util.List<Requirements> requirements) {
this.requirements = requirements;
return this;
}
/**
* <p>The display name of the check item.</p>
*
* <strong>example:</strong>
* <p>Identity and permission management</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The priority for display.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder showPriorityLevel(Integer showPriorityLevel) {
this.showPriorityLevel = showPriorityLevel;
return this;
}
/**
* <p>The type of the standard.</p>
*
* <strong>example:</strong>
* <p>IDENTITY_PERMISSION</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Standards build() {
return new Standards(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/ListCheckTypesRequest.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 ListCheckTypesRequest} extends {@link RequestModel}
*
* <p>ListCheckTypesRequest</p>
*/
public class ListCheckTypesRequest 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("RiskId")
private Long riskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ShowChecks")
private Boolean showChecks;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private ListCheckTypesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.riskId = builder.riskId;
this.showChecks = builder.showChecks;
this.source = builder.source;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckTypesRequest 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 riskId
*/
public Long getRiskId() {
return this.riskId;
}
/**
* @return showChecks
*/
public Boolean getShowChecks() {
return this.showChecks;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<ListCheckTypesRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private Long riskId;
private Boolean showChecks;
private String source;
private String uuid;
private Builder() {
super();
}
private Builder(ListCheckTypesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.riskId = request.riskId;
this.showChecks = request.showChecks;
this.source = request.source;
this.uuid = request.uuid;
}
/**
* <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>en</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 per 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 ID of the baseline.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/116179.html">DescribeCheckWarningSummary</a> operation to query the IDs of baselines.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder riskId(Long riskId) {
this.putQueryParameter("RiskId", riskId);
this.riskId = riskId;
return this;
}
/**
* <p>Whether to query the check item list. The default value is false. Valid values:</p>
* <ul>
* <li><strong>false</strong>: Not Query</li>
* <li><strong>true</strong>: Query</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder showChecks(Boolean showChecks) {
this.putQueryParameter("ShowChecks", showChecks);
this.showChecks = showChecks;
return this;
}
/**
* <p>The data source. Default value: <strong>default</strong>. Valid values:</p>
* <ul>
* <li><strong>agentless</strong>: The check items of baselines for agentless detection.</li>
* <li><strong>default</strong>: The check items of baselines for hosts.</li>
* </ul>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The UUID of the server.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the UUIDs of servers.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>293b07cb-db2d-4f39-941f-b2e4abb8****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public ListCheckTypesRequest build() {
return new ListCheckTypesRequest(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/ListCheckTypesResponse.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 ListCheckTypesResponse} extends {@link TeaModel}
*
* <p>ListCheckTypesResponse</p>
*/
public class ListCheckTypesResponse 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 ListCheckTypesResponseBody body;
private ListCheckTypesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCheckTypesResponse 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 ListCheckTypesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCheckTypesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCheckTypesResponseBody body);
@Override
ListCheckTypesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCheckTypesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCheckTypesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCheckTypesResponse 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(ListCheckTypesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCheckTypesResponse build() {
return new ListCheckTypesResponse(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/ListCheckTypesResponseBody.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 ListCheckTypesResponseBody} extends {@link TeaModel}
*
* <p>ListCheckTypesResponseBody</p>
*/
public class ListCheckTypesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@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 ListCheckTypesResponseBody(Builder builder) {
this.code = builder.code;
this.count = builder.count;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ListCheckTypesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @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 Integer count;
private java.util.List<Data> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListCheckTypesResponseBody model) {
this.code = model.code;
this.count = model.count;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
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 total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
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 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>D65AADFC-1D20-5A6A-8F6A-9FA53C0D****</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 ListCheckTypesResponseBody build() {
return new ListCheckTypesResponseBody(this);
}
}
/**
*
* {@link ListCheckTypesResponseBody} extends {@link TeaModel}
*
* <p>ListCheckTypesResponseBody</p>
*/
public static class CheckDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AffiliatedRiskTypes")
private java.util.List<String> affiliatedRiskTypes;
@com.aliyun.core.annotation.NameInMap("AffiliatedRisks")
private java.util.List<String> affiliatedRisks;
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckItem")
private String checkItem;
private CheckDetails(Builder builder) {
this.affiliatedRiskTypes = builder.affiliatedRiskTypes;
this.affiliatedRisks = builder.affiliatedRisks;
this.checkId = builder.checkId;
this.checkItem = builder.checkItem;
}
public static Builder builder() {
return new Builder();
}
public static CheckDetails create() {
return builder().build();
}
/**
* @return affiliatedRiskTypes
*/
public java.util.List<String> getAffiliatedRiskTypes() {
return this.affiliatedRiskTypes;
}
/**
* @return affiliatedRisks
*/
public java.util.List<String> getAffiliatedRisks() {
return this.affiliatedRisks;
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkItem
*/
public String getCheckItem() {
return this.checkItem;
}
public static final class Builder {
private java.util.List<String> affiliatedRiskTypes;
private java.util.List<String> affiliatedRisks;
private Long checkId;
private String checkItem;
private Builder() {
}
private Builder(CheckDetails model) {
this.affiliatedRiskTypes = model.affiliatedRiskTypes;
this.affiliatedRisks = model.affiliatedRisks;
this.checkId = model.checkId;
this.checkItem = model.checkItem;
}
/**
* <p>The list of the baseline categories of attribution.</p>
*/
public Builder affiliatedRiskTypes(java.util.List<String> affiliatedRiskTypes) {
this.affiliatedRiskTypes = affiliatedRiskTypes;
return this;
}
/**
* <p>The list of baselines attribution.</p>
*/
public Builder affiliatedRisks(java.util.List<String> affiliatedRisks) {
this.affiliatedRisks = affiliatedRisks;
return this;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>31</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The description of the check item.</p>
*
* <strong>example:</strong>
* <p>Configure the idle session timeout period.</p>
*/
public Builder checkItem(String checkItem) {
this.checkItem = checkItem;
return this;
}
public CheckDetails build() {
return new CheckDetails(this);
}
}
}
/**
*
* {@link ListCheckTypesResponseBody} extends {@link TeaModel}
*
* <p>ListCheckTypesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckDetails")
private java.util.List<CheckDetails> checkDetails;
@com.aliyun.core.annotation.NameInMap("CheckType")
private String checkType;
@com.aliyun.core.annotation.NameInMap("CheckTypeDisName")
private String checkTypeDisName;
private Data(Builder builder) {
this.checkDetails = builder.checkDetails;
this.checkType = builder.checkType;
this.checkTypeDisName = builder.checkTypeDisName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return checkDetails
*/
public java.util.List<CheckDetails> getCheckDetails() {
return this.checkDetails;
}
/**
* @return checkType
*/
public String getCheckType() {
return this.checkType;
}
/**
* @return checkTypeDisName
*/
public String getCheckTypeDisName() {
return this.checkTypeDisName;
}
public static final class Builder {
private java.util.List<CheckDetails> checkDetails;
private String checkType;
private String checkTypeDisName;
private Builder() {
}
private Builder(Data model) {
this.checkDetails = model.checkDetails;
this.checkType = model.checkType;
this.checkTypeDisName = model.checkTypeDisName;
}
/**
* <p>The detail of check items.</p>
*/
public Builder checkDetails(java.util.List<CheckDetails> checkDetails) {
this.checkDetails = checkDetails;
return this;
}
/**
* <p>The type of the check item.</p>
*
* <strong>example:</strong>
* <p>data_integrity</p>
*/
public Builder checkType(String checkType) {
this.checkType = checkType;
return this;
}
/**
* <p>The display name of the check item type.</p>
*
* <strong>example:</strong>
* <p>Data Integrity</p>
*/
public Builder checkTypeDisName(String checkTypeDisName) {
this.checkTypeDisName = checkTypeDisName;
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/ListClientAlertModeRequest.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 ListClientAlertModeRequest} extends {@link RequestModel}
*
* <p>ListClientAlertModeRequest</p>
*/
public class ListClientAlertModeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Mode")
private String mode;
private ListClientAlertModeRequest(Builder builder) {
super(builder);
this.mode = builder.mode;
}
public static Builder builder() {
return new Builder();
}
public static ListClientAlertModeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
public static final class Builder extends Request.Builder<ListClientAlertModeRequest, Builder> {
private String mode;
private Builder() {
super();
}
private Builder(ListClientAlertModeRequest request) {
super(request);
this.mode = request.mode;
}
/**
* <p>The protection mode. Valid values:</p>
* <ul>
* <li><strong>strict</strong>: The strict mode. False positives may be generated. We recommend that you enable this mode during major events.</li>
* <li><strong>balance</strong>: The balanced mode. More risks can be detected with less false positives in this mode.</li>
* </ul>
*
* <strong>example:</strong>
* <p>strict</p>
*/
public Builder mode(String mode) {
this.putQueryParameter("Mode", mode);
this.mode = mode;
return this;
}
@Override
public ListClientAlertModeRequest build() {
return new ListClientAlertModeRequest(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/ListClientAlertModeResponse.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 ListClientAlertModeResponse} extends {@link TeaModel}
*
* <p>ListClientAlertModeResponse</p>
*/
public class ListClientAlertModeResponse 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 ListClientAlertModeResponseBody body;
private ListClientAlertModeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClientAlertModeResponse 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 ListClientAlertModeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClientAlertModeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClientAlertModeResponseBody body);
@Override
ListClientAlertModeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClientAlertModeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClientAlertModeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClientAlertModeResponse 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(ListClientAlertModeResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClientAlertModeResponse build() {
return new ListClientAlertModeResponse(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/ListClientAlertModeResponseBody.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 ListClientAlertModeResponseBody} extends {@link TeaModel}
*
* <p>ListClientAlertModeResponseBody</p>
*/
public class ListClientAlertModeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListClientAlertModeResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListClientAlertModeResponseBody 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(ListClientAlertModeResponseBody 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>A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListClientAlertModeResponseBody build() {
return new ListClientAlertModeResponseBody(this);
}
}
/**
*
* {@link ListClientAlertModeResponseBody} extends {@link TeaModel}
*
* <p>ListClientAlertModeResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Uuids")
private java.util.List<String> uuids;
private Data(Builder builder) {
this.count = builder.count;
this.uuids = builder.uuids;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return uuids
*/
public java.util.List<String> getUuids() {
return this.uuids;
}
public static final class Builder {
private Integer count;
private java.util.List<String> uuids;
private Builder() {
}
private Builder(Data model) {
this.count = model.count;
this.uuids = model.uuids;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The UUIDs of the assets.</p>
*/
public Builder uuids(java.util.List<String> uuids) {
this.uuids = uuids;
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/ListClientUserDefineRuleTypesRequest.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 ListClientUserDefineRuleTypesRequest} extends {@link RequestModel}
*
* <p>ListClientUserDefineRuleTypesRequest</p>
*/
public class ListClientUserDefineRuleTypesRequest extends Request {
private ListClientUserDefineRuleTypesRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static ListClientUserDefineRuleTypesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<ListClientUserDefineRuleTypesRequest, Builder> {
private Builder() {
super();
}
private Builder(ListClientUserDefineRuleTypesRequest request) {
super(request);
}
@Override
public ListClientUserDefineRuleTypesRequest build() {
return new ListClientUserDefineRuleTypesRequest(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/ListClientUserDefineRuleTypesResponse.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 ListClientUserDefineRuleTypesResponse} extends {@link TeaModel}
*
* <p>ListClientUserDefineRuleTypesResponse</p>
*/
public class ListClientUserDefineRuleTypesResponse 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 ListClientUserDefineRuleTypesResponseBody body;
private ListClientUserDefineRuleTypesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClientUserDefineRuleTypesResponse 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 ListClientUserDefineRuleTypesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClientUserDefineRuleTypesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClientUserDefineRuleTypesResponseBody body);
@Override
ListClientUserDefineRuleTypesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClientUserDefineRuleTypesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClientUserDefineRuleTypesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClientUserDefineRuleTypesResponse 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(ListClientUserDefineRuleTypesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClientUserDefineRuleTypesResponse build() {
return new ListClientUserDefineRuleTypesResponse(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/ListClientUserDefineRuleTypesResponseBody.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 ListClientUserDefineRuleTypesResponseBody} extends {@link TeaModel}
*
* <p>ListClientUserDefineRuleTypesResponseBody</p>
*/
public class ListClientUserDefineRuleTypesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UserDefineRuleTypes")
private java.util.List<String> userDefineRuleTypes;
private ListClientUserDefineRuleTypesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.userDefineRuleTypes = builder.userDefineRuleTypes;
}
public static Builder builder() {
return new Builder();
}
public static ListClientUserDefineRuleTypesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return userDefineRuleTypes
*/
public java.util.List<String> getUserDefineRuleTypes() {
return this.userDefineRuleTypes;
}
public static final class Builder {
private String requestId;
private java.util.List<String> userDefineRuleTypes;
private Builder() {
}
private Builder(ListClientUserDefineRuleTypesResponseBody model) {
this.requestId = model.requestId;
this.userDefineRuleTypes = model.userDefineRuleTypes;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>340D7FC4-D575-1661-8ACD-CFA7BE57****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array consisting of the rule types that are supported.</p>
*/
public Builder userDefineRuleTypes(java.util.List<String> userDefineRuleTypes) {
this.userDefineRuleTypes = userDefineRuleTypes;
return this;
}
public ListClientUserDefineRuleTypesResponseBody build() {
return new ListClientUserDefineRuleTypesResponseBody(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/ListClientUserDefineRulesRequest.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 ListClientUserDefineRulesRequest} extends {@link RequestModel}
*
* <p>ListClientUserDefineRulesRequest</p>
*/
public class ListClientUserDefineRulesRequest 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("Name")
private String name;
@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("Type")
private java.util.List<Integer> type;
private ListClientUserDefineRulesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static ListClientUserDefineRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return type
*/
public java.util.List<Integer> getType() {
return this.type;
}
public static final class Builder extends Request.Builder<ListClientUserDefineRulesRequest, Builder> {
private Integer currentPage;
private String name;
private Integer pageSize;
private java.util.List<Integer> type;
private Builder() {
super();
}
private Builder(ListClientUserDefineRulesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.name = request.name;
this.pageSize = request.pageSize;
this.type = request.type;
}
/**
* <p>The number of the page to return.</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 name of the rule.</p>
*
* <strong>example:</strong>
* <p>Rule****</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The types of rules.</p>
*/
public Builder type(java.util.List<Integer> type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public ListClientUserDefineRulesRequest build() {
return new ListClientUserDefineRulesRequest(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/ListClientUserDefineRulesResponse.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 ListClientUserDefineRulesResponse} extends {@link TeaModel}
*
* <p>ListClientUserDefineRulesResponse</p>
*/
public class ListClientUserDefineRulesResponse 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 ListClientUserDefineRulesResponseBody body;
private ListClientUserDefineRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClientUserDefineRulesResponse 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 ListClientUserDefineRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClientUserDefineRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClientUserDefineRulesResponseBody body);
@Override
ListClientUserDefineRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClientUserDefineRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClientUserDefineRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClientUserDefineRulesResponse 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(ListClientUserDefineRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClientUserDefineRulesResponse build() {
return new ListClientUserDefineRulesResponse(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/ListClientUserDefineRulesResponseBody.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 ListClientUserDefineRulesResponseBody} extends {@link TeaModel}
*
* <p>ListClientUserDefineRulesResponseBody</p>
*/
public class ListClientUserDefineRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UserDefineRuleList")
private java.util.List<UserDefineRuleList> userDefineRuleList;
private ListClientUserDefineRulesResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.userDefineRuleList = builder.userDefineRuleList;
}
public static Builder builder() {
return new Builder();
}
public static ListClientUserDefineRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return userDefineRuleList
*/
public java.util.List<UserDefineRuleList> getUserDefineRuleList() {
return this.userDefineRuleList;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<UserDefineRuleList> userDefineRuleList;
private Builder() {
}
private Builder(ListClientUserDefineRulesResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.userDefineRuleList = model.userDefineRuleList;
}
/**
* <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-D1BBB393***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the rules.</p>
*/
public Builder userDefineRuleList(java.util.List<UserDefineRuleList> userDefineRuleList) {
this.userDefineRuleList = userDefineRuleList;
return this;
}
public ListClientUserDefineRulesResponseBody build() {
return new ListClientUserDefineRulesResponseBody(this);
}
}
/**
*
* {@link ListClientUserDefineRulesResponseBody} extends {@link TeaModel}
*
* <p>ListClientUserDefineRulesResponseBody</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 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>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link ListClientUserDefineRulesResponseBody} extends {@link TeaModel}
*
* <p>ListClientUserDefineRulesResponseBody</p>
*/
public static class UserDefineRuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActionType")
private Integer actionType;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("SwitchId")
private String switchId;
@com.aliyun.core.annotation.NameInMap("Type")
private Integer type;
private UserDefineRuleList(Builder builder) {
this.actionType = builder.actionType;
this.id = builder.id;
this.name = builder.name;
this.platform = builder.platform;
this.switchId = builder.switchId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static UserDefineRuleList create() {
return builder().build();
}
/**
* @return actionType
*/
public Integer getActionType() {
return this.actionType;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return switchId
*/
public String getSwitchId() {
return this.switchId;
}
/**
* @return type
*/
public Integer getType() {
return this.type;
}
public static final class Builder {
private Integer actionType;
private Long id;
private String name;
private String platform;
private String switchId;
private Integer type;
private Builder() {
}
private Builder(UserDefineRuleList model) {
this.actionType = model.actionType;
this.id = model.id;
this.name = model.name;
this.platform = model.platform;
this.switchId = model.switchId;
this.type = model.type;
}
/**
* <p>The action of the rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: allow</li>
* <li><strong>1</strong>: block</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder actionType(Integer actionType) {
this.actionType = actionType;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>200****</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>Rule****</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the operating system. Valid values:</p>
* <ul>
* <li><strong>windows</strong>: Windows</li>
* <li><strong>linux</strong>: Linux</li>
* <li><strong>all</strong>: all types</li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The switch ID of the rule.</p>
*
* <strong>example:</strong>
* <p>USER-DEFINE-RULE-SWITCH-TYPE_200****</p>
*/
public Builder switchId(String switchId) {
this.switchId = switchId;
return this;
}
/**
* <p>The type of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: Process hash</li>
* <li><strong>2</strong>: Command line</li>
* <li><strong>3</strong>: Process Network</li>
* <li><strong>4</strong>: File Read and Write</li>
* <li><strong>5</strong>: Operation on Registry</li>
* <li><strong>6</strong>: Dynamic-link Library Loading</li>
* <li><strong>7</strong>: File Renaming</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder type(Integer type) {
this.type = type;
return this;
}
public UserDefineRuleList build() {
return new UserDefineRuleList(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/ListCloudAssetInstancesRequest.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 ListCloudAssetInstancesRequest} extends {@link RequestModel}
*
* <p>ListCloudAssetInstancesRequest</p>
*/
public class ListCloudAssetInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CloudAssetTypes")
private java.util.List<CloudAssetTypes> cloudAssetTypes;
@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")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListCloudAssetInstancesRequest(Builder builder) {
super(builder);
this.cloudAssetTypes = builder.cloudAssetTypes;
this.criteria = builder.criteria;
this.currentPage = builder.currentPage;
this.logicalExp = builder.logicalExp;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListCloudAssetInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cloudAssetTypes
*/
public java.util.List<CloudAssetTypes> getCloudAssetTypes() {
return this.cloudAssetTypes;
}
/**
* @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 regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListCloudAssetInstancesRequest, Builder> {
private java.util.List<CloudAssetTypes> cloudAssetTypes;
private String criteria;
private Integer currentPage;
private String logicalExp;
private Integer pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListCloudAssetInstancesRequest request) {
super(request);
this.cloudAssetTypes = request.cloudAssetTypes;
this.criteria = request.criteria;
this.currentPage = request.currentPage;
this.logicalExp = request.logicalExp;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The details of the cloud asset.</p>
*/
public Builder cloudAssetTypes(java.util.List<CloudAssetTypes> cloudAssetTypes) {
this.putQueryParameter("CloudAssetTypes", cloudAssetTypes);
this.cloudAssetTypes = cloudAssetTypes;
return this;
}
/**
* <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 name of the search condition.</p>
* </li>
* <li><p><strong>value</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="~~GetCloudAssetCriteria~~">GetCloudAssetCriteria</a> operation to query supported search conditions.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>[{"name":"internetIp","value":"192.168","logicalExp":"OR"}]</p>
*/
public Builder criteria(String criteria) {
this.putQueryParameter("Criteria", criteria);
this.criteria = criteria;
return this;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>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>
*
* <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. Maximum value: 100. 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 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;
}
@Override
public ListCloudAssetInstancesRequest build() {
return new ListCloudAssetInstancesRequest(this);
}
}
/**
*
* {@link ListCloudAssetInstancesRequest} extends {@link TeaModel}
*
* <p>ListCloudAssetInstancesRequest</p>
*/
public static class CloudAssetTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private Integer assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
private CloudAssetTypes(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static CloudAssetTypes create() {
return builder().build();
}
/**
* @return assetSubType
*/
public Integer getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Integer vendor;
private Builder() {
}
private Builder(CloudAssetTypes model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.vendor = model.vendor;
}
/**
* <p>The subtype of the cloud asset.</p>
* <p>You can call the <a href="~~GetCloudAssetCriteria~~">GetCloudAssetCriteria</a> operation to query the subtype of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the cloud asset.</p>
* <p>You can call the <a href="~~GetCloudAssetCriteria~~">GetCloudAssetCriteria</a> operation to query the cloud asset type.</p>
*
* <strong>example:</strong>
* <p>18</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The server type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a cloud asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a cloud asset outside Alibaba Cloud</li>
* <li><strong>2</strong>: a cloud asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: a cloud asset provided by a third-party service provider</li>
* <li><strong>8</strong>: a lightweight cloud asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
public CloudAssetTypes build() {
return new CloudAssetTypes(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/ListCloudAssetInstancesResponse.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 ListCloudAssetInstancesResponse} extends {@link TeaModel}
*
* <p>ListCloudAssetInstancesResponse</p>
*/
public class ListCloudAssetInstancesResponse 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 ListCloudAssetInstancesResponseBody body;
private ListCloudAssetInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCloudAssetInstancesResponse 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 ListCloudAssetInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCloudAssetInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCloudAssetInstancesResponseBody body);
@Override
ListCloudAssetInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCloudAssetInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCloudAssetInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCloudAssetInstancesResponse 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(ListCloudAssetInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCloudAssetInstancesResponse build() {
return new ListCloudAssetInstancesResponse(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/ListCloudAssetInstancesResponseBody.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 ListCloudAssetInstancesResponseBody} extends {@link TeaModel}
*
* <p>ListCloudAssetInstancesResponseBody</p>
*/
public class ListCloudAssetInstancesResponseBody 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;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private ListCloudAssetInstancesResponseBody(Builder builder) {
this.instances = builder.instances;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ListCloudAssetInstancesResponseBody 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;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private java.util.List<Instances> instances;
private PageInfo pageInfo;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListCloudAssetInstancesResponseBody model) {
this.instances = model.instances;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The details of the cloud assets.</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 ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>028CF634-5268-5660-9575-48C9ED6BF880</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 ListCloudAssetInstancesResponseBody build() {
return new ListCloudAssetInstancesResponseBody(this);
}
}
/**
*
* {@link ListCloudAssetInstancesResponseBody} extends {@link TeaModel}
*
* <p>ListCloudAssetInstancesResponseBody</p>
*/
public static class Instances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlarmStatus")
private String alarmStatus;
@com.aliyun.core.annotation.NameInMap("AssetSubType")
private String assetSubType;
@com.aliyun.core.annotation.NameInMap("AssetSubTypeName")
private String assetSubTypeName;
@com.aliyun.core.annotation.NameInMap("AssetType")
private Integer assetType;
@com.aliyun.core.annotation.NameInMap("AssetTypeName")
private String assetTypeName;
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@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("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RiskStatus")
private String riskStatus;
@com.aliyun.core.annotation.NameInMap("SecurityInfo")
private String securityInfo;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<String> tags;
@com.aliyun.core.annotation.NameInMap("Vendor")
private Integer vendor;
@com.aliyun.core.annotation.NameInMap("VendorUid")
private String vendorUid;
@com.aliyun.core.annotation.NameInMap("VendorUserName")
private String vendorUserName;
private Instances(Builder builder) {
this.alarmStatus = builder.alarmStatus;
this.assetSubType = builder.assetSubType;
this.assetSubTypeName = builder.assetSubTypeName;
this.assetType = builder.assetType;
this.assetTypeName = builder.assetTypeName;
this.createdTime = builder.createdTime;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.regionId = builder.regionId;
this.riskStatus = builder.riskStatus;
this.securityInfo = builder.securityInfo;
this.tags = builder.tags;
this.vendor = builder.vendor;
this.vendorUid = builder.vendorUid;
this.vendorUserName = builder.vendorUserName;
}
public static Builder builder() {
return new Builder();
}
public static Instances create() {
return builder().build();
}
/**
* @return alarmStatus
*/
public String getAlarmStatus() {
return this.alarmStatus;
}
/**
* @return assetSubType
*/
public String getAssetSubType() {
return this.assetSubType;
}
/**
* @return assetSubTypeName
*/
public String getAssetSubTypeName() {
return this.assetSubTypeName;
}
/**
* @return assetType
*/
public Integer getAssetType() {
return this.assetType;
}
/**
* @return assetTypeName
*/
public String getAssetTypeName() {
return this.assetTypeName;
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @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 regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return riskStatus
*/
public String getRiskStatus() {
return this.riskStatus;
}
/**
* @return securityInfo
*/
public String getSecurityInfo() {
return this.securityInfo;
}
/**
* @return tags
*/
public java.util.List<String> getTags() {
return this.tags;
}
/**
* @return vendor
*/
public Integer getVendor() {
return this.vendor;
}
/**
* @return vendorUid
*/
public String getVendorUid() {
return this.vendorUid;
}
/**
* @return vendorUserName
*/
public String getVendorUserName() {
return this.vendorUserName;
}
public static final class Builder {
private String alarmStatus;
private String assetSubType;
private String assetSubTypeName;
private Integer assetType;
private String assetTypeName;
private Long createdTime;
private String instanceId;
private String instanceName;
private String internetIp;
private String regionId;
private String riskStatus;
private String securityInfo;
private java.util.List<String> tags;
private Integer vendor;
private String vendorUid;
private String vendorUserName;
private Builder() {
}
private Builder(Instances model) {
this.alarmStatus = model.alarmStatus;
this.assetSubType = model.assetSubType;
this.assetSubTypeName = model.assetSubTypeName;
this.assetType = model.assetType;
this.assetTypeName = model.assetTypeName;
this.createdTime = model.createdTime;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.regionId = model.regionId;
this.riskStatus = model.riskStatus;
this.securityInfo = model.securityInfo;
this.tags = model.tags;
this.vendor = model.vendor;
this.vendorUid = model.vendorUid;
this.vendorUserName = model.vendorUserName;
}
/**
* <p>Indicates whether alerts are generated for the cloud asset. 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 subtype of the cloud service. The subtype of the cloud asset. Valid values:</p>
* <ul>
* <li><p><strong>0</strong>: ECS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* <li><strong>1</strong>: disk (storage)</li>
* <li><strong>2</strong>: security group</li>
* </ul>
* </li>
* <li><p><strong>1</strong>: SLB</p>
* <ul>
* <li><strong>0</strong>: SLB</li>
* <li><strong>1</strong>: Application Load Balancer (ALB)</li>
* </ul>
* </li>
* <li><p><strong>3</strong>: ApsaraDB RDS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>4</strong>: ApsaraDB for MongoDB</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>5</strong>: ApsaraDB for Redis</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>6</strong>: Container Registry</p>
* <ul>
* <li><strong>1</strong>: Enterprise Edition</li>
* <li><strong>2</strong>: Personal Edition</li>
* </ul>
* </li>
* <li><p><strong>8</strong>: ACK</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>9</strong>: VPC</p>
* <ul>
* <li><strong>0</strong>: NAT gateway</li>
* <li><strong>1</strong>: EIP</li>
* <li><strong>2</strong>: VPN</li>
* <li><strong>3</strong>: FLOW_LOG</li>
* </ul>
* </li>
* <li><p><strong>11</strong>: ActionTrail</p>
* <ul>
* <li><strong>0</strong>: trail</li>
* </ul>
* </li>
* <li><p><strong>12</strong>: Alibaba Cloud CDN</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</p>
* <ul>
* <li><strong>0</strong>: certificate</li>
* </ul>
* </li>
* <li><p><strong>14</strong>: Apsara Devops</p>
* <ul>
* <li><strong>0</strong>: organization</li>
* </ul>
* </li>
* <li><p><strong>16</strong>: Anti-DDoS</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>17</strong>: WAF</p>
* <ul>
* <li><strong>0</strong>: domain name</li>
* </ul>
* </li>
* <li><p><strong>18</strong>: OSS</p>
* <ul>
* <li><strong>0</strong>: bucket</li>
* </ul>
* </li>
* <li><p><strong>19</strong>: PolarDB</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>20</strong>: ApsaraDB RDS for PostgreSQL</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>21</strong>: MSE</p>
* <ul>
* <li><strong>0</strong>: cluster</li>
* </ul>
* </li>
* <li><p><strong>22</strong>: NAS</p>
* <ul>
* <li><strong>0</strong>: file system</li>
* </ul>
* </li>
* <li><p><strong>23</strong>: DSC</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>24</strong>: EIP</p>
* <ul>
* <li><strong>0</strong>: Anycast EIP</li>
* </ul>
* </li>
* <li><p><strong>25</strong>: IDaaS EIAM</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>26</strong>: PolarDB-X</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* <li><p><strong>27</strong>: Elasticsearch</p>
* <ul>
* <li><strong>0</strong>: instance</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetSubType(String assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The subtype name of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>SECURITY_GROUP</p>
*/
public Builder assetSubTypeName(String assetSubTypeName) {
this.assetSubTypeName = assetSubTypeName;
return this;
}
/**
* <p>The type of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: Elastic Compute Service (ECS)</li>
* <li><strong>1</strong>: Server Load Balancer (SLB)</li>
* <li><strong>3</strong>: ApsaraDB RDS</li>
* <li><strong>4</strong>: ApsaraDB for MongoDB</li>
* <li><strong>5</strong>: ApsaraDB for Redis</li>
* <li><strong>6</strong>: Container Registry</li>
* <li><strong>8</strong>: Container Service for Kubernetes (ACK)</li>
* <li><strong>9</strong>: Virtual Private Cloud (VPC)</li>
* <li><strong>11</strong>: ActionTrail</li>
* <li><strong>12</strong>: Alibaba Cloud CDN</li>
* <li><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>14</strong>: Apsara Devops</li>
* <li><strong>16</strong>: Anti-DDoS</li>
* <li><strong>17</strong>: Web Application Firewall (WAF)</li>
* <li><strong>18</strong>: Object Storage Service (OSS)</li>
* <li><strong>19</strong>: PolarDB</li>
* <li><strong>20</strong>: ApsaraDB RDS for PostgreSQL</li>
* <li><strong>21</strong>: Microservices Engine (MSE)</li>
* <li><strong>22</strong>: File Storage NAS (NAS)</li>
* <li><strong>23</strong>: Data Security Center (DSC)</li>
* <li><strong>24</strong>: Elastic IP Address (EIP)</li>
* <li><strong>25</strong>: Identity as a Service (IDaaS) Employee Identity and Access Management (EIAM)</li>
* <li><strong>26</strong>: PolarDB-X</li>
* <li><strong>27</strong>: Elasticsearch</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The type name of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder assetTypeName(String assetTypeName) {
this.assetTypeName = assetTypeName;
return this;
}
/**
* <p>The time when the instance was created.</p>
*
* <strong>example:</strong>
* <p>1607365213000</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The instance ID of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>d-uf60vevzkztnflx7cny5</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>yztest-l***</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the cloud asset.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The ID of the region to which the cloud asset belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hanghzou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Indicates whether risks are detected on the cloud asset. 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 security information about the cloud asset.</p>
*
* <strong>example:</strong>
* <p>{"seriousNum":0,"appNum":0,"baselineMedium":0,"remindNum":0,"imageVulNntf":0,"cveNum":0,"vul":0,"uuid":"yuejia-test","emgNum":0,"weakPWNum":0,"imageMaliciousFileRemind":0,"imageBaselineMedium":0,"laterVulCount":0,"cmsNum":0,"imageMaliciousFileSerious":0,"agentlessMalicious":0,"suspNum":0,"imageBaselineHigh":0,"asapVulCount":0,"imageVulLater":0,"agentlessAll":0,"sysNum":0,"containerLater":0,"containerSuspicious":0,"imageBaselineNum":0,"newSuspicious":0,"nntfVulCount":0,"scaNum":0,"containerNntf":0,"health":0,"trojan":0,"suspicious":0,"imageMaliciousFileSuspicious":0,"containerRemind":0,"baselineLow":0,"imageVulAsap":0,"imageBaselineLow":0,"containerAsap":0,"agentlessBaseline":0,"agentlessVulSca":0,"agentlessVulCve":0,"containerSerious":0,"baselineHigh":0,"account":0,"baselineNum":5}</p>
*/
public Builder securityInfo(String securityInfo) {
this.securityInfo = securityInfo;
return this;
}
/**
* <p>Tag list.</p>
*/
public Builder tags(java.util.List<String> tags) {
this.tags = tags;
return this;
}
/**
* <p>The service provider (SP) of the cloud asset. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a cloud asset provided by Alibaba Cloud</li>
* <li><strong>1</strong>: a third-party cloud asset</li>
* <li><strong>2</strong>: a cloud asset in a data center</li>
* <li><strong>3</strong>, <strong>4</strong>, <strong>5</strong>, and <strong>7</strong>: other cloud asset</li>
* <li><strong>8</strong>: a lightweight cloud asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vendor(Integer vendor) {
this.vendor = vendor;
return this;
}
/**
* VendorUid.
*/
public Builder vendorUid(String vendorUid) {
this.vendorUid = vendorUid;
return this;
}
/**
* VendorUserName.
*/
public Builder vendorUserName(String vendorUserName) {
this.vendorUserName = vendorUserName;
return this;
}
public Instances build() {
return new Instances(this);
}
}
}
/**
*
* {@link ListCloudAssetInstancesResponseBody} extends {@link TeaModel}
*
* <p>ListCloudAssetInstancesResponseBody</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>2</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of cloud assets.</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/ListCloudVendorRegionsRequest.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 ListCloudVendorRegionsRequest} extends {@link RequestModel}
*
* <p>ListCloudVendorRegionsRequest</p>
*/
public class ListCloudVendorRegionsRequest 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("Vendor")
private String vendor;
private ListCloudVendorRegionsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static ListCloudVendorRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
public static final class Builder extends Request.Builder<ListCloudVendorRegionsRequest, Builder> {
private String lang;
private String vendor;
private Builder() {
super();
}
private Builder(ListCloudVendorRegionsRequest request) {
super(request);
this.lang = request.lang;
this.vendor = request.vendor;
}
/**
* <p>The language of the content in the request and response messages. 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>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The service provider of cloud assets. Valid values:</p>
* <ul>
* <li><strong>Tencent</strong>, <strong>HUAWEICLOUD</strong>, <strong>Azure</strong>, and <strong>AWS</strong>: other service providers of cloud assets.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Tencent</p>
*/
public Builder vendor(String vendor) {
this.putQueryParameter("Vendor", vendor);
this.vendor = vendor;
return this;
}
@Override
public ListCloudVendorRegionsRequest build() {
return new ListCloudVendorRegionsRequest(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/ListCloudVendorRegionsResponse.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 ListCloudVendorRegionsResponse} extends {@link TeaModel}
*
* <p>ListCloudVendorRegionsResponse</p>
*/
public class ListCloudVendorRegionsResponse 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 ListCloudVendorRegionsResponseBody body;
private ListCloudVendorRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCloudVendorRegionsResponse 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 ListCloudVendorRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCloudVendorRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCloudVendorRegionsResponseBody body);
@Override
ListCloudVendorRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCloudVendorRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCloudVendorRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCloudVendorRegionsResponse 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(ListCloudVendorRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCloudVendorRegionsResponse build() {
return new ListCloudVendorRegionsResponse(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/ListCloudVendorRegionsResponseBody.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 ListCloudVendorRegionsResponseBody} extends {@link TeaModel}
*
* <p>ListCloudVendorRegionsResponseBody</p>
*/
public class ListCloudVendorRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@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 ListCloudVendorRegionsResponseBody(Builder builder) {
this.code = builder.code;
this.count = builder.count;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ListCloudVendorRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @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 Integer count;
private java.util.List<Data> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListCloudVendorRegionsResponseBody model) {
this.code = model.code;
this.count = model.count;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The return code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The total number of returned entries.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The regions that the service provider supports.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
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 request ID.</p>
*
* <strong>example:</strong>
* <p>C87EC6AD-4590-5546-9DF6-B8956579D***</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 ListCloudVendorRegionsResponseBody build() {
return new ListCloudVendorRegionsResponseBody(this);
}
}
/**
*
* {@link ListCloudVendorRegionsResponseBody} extends {@link TeaModel}
*
* <p>ListCloudVendorRegionsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Area")
private String area;
@com.aliyun.core.annotation.NameInMap("Disable")
private Integer disable;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Selected")
private Integer selected;
private Data(Builder builder) {
this.area = builder.area;
this.disable = builder.disable;
this.regionId = builder.regionId;
this.selected = builder.selected;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return area
*/
public String getArea() {
return this.area;
}
/**
* @return disable
*/
public Integer getDisable() {
return this.disable;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return selected
*/
public Integer getSelected() {
return this.selected;
}
public static final class Builder {
private String area;
private Integer disable;
private String regionId;
private Integer selected;
private Builder() {
}
private Builder(Data model) {
this.area = model.area;
this.disable = model.disable;
this.regionId = model.regionId;
this.selected = model.selected;
}
/**
* <p>The area to which the region belongs. The valid values vary based on the value of the Vendor parameter.</p>
* <ul>
* <li>Valid values if <strong>Vendor</strong> is set to Tencent:</li>
* <li><strong>cn</strong>: China</li>
* <li><strong>southeast_asia</strong>: Southeast Asia Pacific</li>
* <li><strong>northeast_asia</strong>: Northeast Asia Pacific</li>
* <li><strong>southern_asia</strong>: South Asia Pacific</li>
* <li><strong>north_America</strong>: North America</li>
* <li><strong>south_America</strong>: South America</li>
* <li><strong>western_America</strong>: Western United States</li>
* <li><strong>eastern_America</strong>: Eastern United States</li>
* <li><strong>european</strong>: Europe</li>
* <li>Valid values if <strong>Vendor</strong> is set to HUAWEICLOUD:</li>
* <li><strong>cn</strong>: China</li>
* <li><strong>africa</strong>: Africa</li>
* <li><strong>latin_america</strong>: Latin America</li>
* <li><strong>asia</strong>: Asia Pacific</li>
* <li>Valid values if <strong>Vendor</strong> is set to Azure:</li>
* <li><strong>middle_east</strong>: Middle East</li>
* <li><strong>south_america</strong>: South America</li>
* <li><strong>canada</strong>: Canada</li>
* <li><strong>asia-pacific</strong>: Asia Pacific</li>
* <li><strong>europe</strong>: Europe</li>
* <li><strong>africa</strong>: Africa</li>
* <li><strong>us</strong>: United States</li>
* <li><strong>other</strong>: other regions</li>
* <li>Valid values if <strong>Vendor</strong> is set to AWS:</li>
* <li><strong>cn</strong>: China</li>
* <li><strong>us</strong>: United States</li>
* <li><strong>eu</strong>: Europe</li>
* <li><strong>asia</strong>: Asia Pacific</li>
* <li><strong>south_america</strong>: South America</li>
* <li><strong>me</strong>: Middle East</li>
* <li><strong>ca</strong>: Canada</li>
* <li><strong>af</strong>: Africa</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn</p>
*/
public Builder area(String area) {
this.area = area;
return this;
}
/**
* <p>Indicates whether the region is configured as a synchronization region on another site. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The region is not configured as a synchronization region on another site.</li>
* <li><strong>1</strong>: The region is configured as a synchronization region on another site.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder disable(Integer disable) {
this.disable = disable;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Indicates whether the region is configured as a synchronization region on this site. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The region is not configured as a synchronization region on this site.</li>
* <li><strong>1</strong>: The region is configured as a synchronization region on this site.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder selected(Integer selected) {
this.selected = selected;
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/ListClusterCnnfStatusDetailRequest.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 ListClusterCnnfStatusDetailRequest} extends {@link RequestModel}
*
* <p>ListClusterCnnfStatusDetailRequest</p>
*/
public class ListClusterCnnfStatusDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterIds")
private java.util.List<String> clusterIds;
private ListClusterCnnfStatusDetailRequest(Builder builder) {
super(builder);
this.clusterIds = builder.clusterIds;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterCnnfStatusDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterIds
*/
public java.util.List<String> getClusterIds() {
return this.clusterIds;
}
public static final class Builder extends Request.Builder<ListClusterCnnfStatusDetailRequest, Builder> {
private java.util.List<String> clusterIds;
private Builder() {
super();
}
private Builder(ListClusterCnnfStatusDetailRequest request) {
super(request);
this.clusterIds = request.clusterIds;
}
/**
* <p>An array that consists of the ID of the cluster.</p>
*/
public Builder clusterIds(java.util.List<String> clusterIds) {
this.putQueryParameter("ClusterIds", clusterIds);
this.clusterIds = clusterIds;
return this;
}
@Override
public ListClusterCnnfStatusDetailRequest build() {
return new ListClusterCnnfStatusDetailRequest(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/ListClusterCnnfStatusDetailResponse.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 ListClusterCnnfStatusDetailResponse} extends {@link TeaModel}
*
* <p>ListClusterCnnfStatusDetailResponse</p>
*/
public class ListClusterCnnfStatusDetailResponse 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 ListClusterCnnfStatusDetailResponseBody body;
private ListClusterCnnfStatusDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClusterCnnfStatusDetailResponse 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 ListClusterCnnfStatusDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClusterCnnfStatusDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClusterCnnfStatusDetailResponseBody body);
@Override
ListClusterCnnfStatusDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClusterCnnfStatusDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClusterCnnfStatusDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClusterCnnfStatusDetailResponse 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(ListClusterCnnfStatusDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClusterCnnfStatusDetailResponse build() {
return new ListClusterCnnfStatusDetailResponse(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/ListClusterCnnfStatusDetailResponseBody.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 ListClusterCnnfStatusDetailResponseBody} extends {@link TeaModel}
*
* <p>ListClusterCnnfStatusDetailResponseBody</p>
*/
public class ListClusterCnnfStatusDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListClusterCnnfStatusDetailResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterCnnfStatusDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(ListClusterCnnfStatusDetailResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the protection status of the container firewall.</p>
*/
public Builder data(java.util.List<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>64329F40-5C94-51D3-A400-37AA7BAC****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListClusterCnnfStatusDetailResponseBody build() {
return new ListClusterCnnfStatusDetailResponseBody(this);
}
}
/**
*
* {@link ListClusterCnnfStatusDetailResponseBody} extends {@link TeaModel}
*
* <p>ListClusterCnnfStatusDetailResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Installed")
private Boolean installed;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("InvalidType")
private String invalidType;
@com.aliyun.core.annotation.NameInMap("MachineName")
private String machineName;
@com.aliyun.core.annotation.NameInMap("MachineType")
private Integer machineType;
@com.aliyun.core.annotation.NameInMap("PluginName")
private String pluginName;
@com.aliyun.core.annotation.NameInMap("PluginVersion")
private String pluginVersion;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Data(Builder builder) {
this.clusterId = builder.clusterId;
this.installed = builder.installed;
this.instanceId = builder.instanceId;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.invalidType = builder.invalidType;
this.machineName = builder.machineName;
this.machineType = builder.machineType;
this.pluginName = builder.pluginName;
this.pluginVersion = builder.pluginVersion;
this.status = builder.status;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return installed
*/
public Boolean getInstalled() {
return this.installed;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return invalidType
*/
public String getInvalidType() {
return this.invalidType;
}
/**
* @return machineName
*/
public String getMachineName() {
return this.machineName;
}
/**
* @return machineType
*/
public Integer getMachineType() {
return this.machineType;
}
/**
* @return pluginName
*/
public String getPluginName() {
return this.pluginName;
}
/**
* @return pluginVersion
*/
public String getPluginVersion() {
return this.pluginVersion;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String clusterId;
private Boolean installed;
private String instanceId;
private String internetIp;
private String intranetIp;
private String invalidType;
private String machineName;
private Integer machineType;
private String pluginName;
private String pluginVersion;
private String status;
private String uuid;
private Builder() {
}
private Builder(Data model) {
this.clusterId = model.clusterId;
this.installed = model.installed;
this.instanceId = model.instanceId;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.invalidType = model.invalidType;
this.machineName = model.machineName;
this.machineType = model.machineType;
this.pluginName = model.pluginName;
this.pluginVersion = model.pluginVersion;
this.status = model.status;
this.uuid = model.uuid;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c8ca91e0907d94efaba7fb0827eb9****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>Indicates whether the container firewall plug-in is installed.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder installed(Boolean installed) {
this.installed = installed;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-bp180bogui4fc0z4****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The public IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the associated instance.</p>
*
* <strong>example:</strong>
* <p>10.42.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The cause why the plug-in is invalid. Valid values:</p>
* <ul>
* <li><strong>PLUGIN_OFFLINE</strong>: The plug-in is offline.</li>
* <li><strong>PLUGIN_NOT_INSTALLED</strong>: The plug-in is not installed.</li>
* <li><strong>PLUGIN_INVALID_VERSION</strong>: The version of the plug-in is invalid.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PLUGIN_OFFLINE</p>
*/
public Builder invalidType(String invalidType) {
this.invalidType = invalidType;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>security</p>
*/
public Builder machineName(String machineName) {
this.machineName = machineName;
return this;
}
/**
* <p>The machine type of the instance. The value is fixed as <strong>ecs</strong>.</p>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder machineType(Integer machineType) {
this.machineType = machineType;
return this;
}
/**
* <p>The name of the plug-in. The value is fixed as <strong>alinet</strong>.</p>
*
* <strong>example:</strong>
* <p>alinet</p>
*/
public Builder pluginName(String pluginName) {
this.pluginName = pluginName;
return this;
}
/**
* <p>The version of the plug-in.</p>
*
* <strong>example:</strong>
* <p>3.3</p>
*/
public Builder pluginVersion(String pluginVersion) {
this.pluginVersion = pluginVersion;
return this;
}
/**
* <p>The online status of the plug-in. Valid values:</p>
* <ul>
* <li><strong>false</strong>: The plug-in is offline.</li>
* <li><strong>true</strong>: The plug-in is online.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>6690a46c-0edb-4663-a641-3629d1a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
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/ListClusterInterceptionConfigRequest.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 ListClusterInterceptionConfigRequest} extends {@link RequestModel}
*
* <p>ListClusterInterceptionConfigRequest</p>
*/
public class ListClusterInterceptionConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterCNNFStatus")
private Integer clusterCNNFStatus;
@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("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private ListClusterInterceptionConfigRequest(Builder builder) {
super(builder);
this.clusterCNNFStatus = builder.clusterCNNFStatus;
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterInterceptionConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterCNNFStatus
*/
public Integer getClusterCNNFStatus() {
return this.clusterCNNFStatus;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<ListClusterInterceptionConfigRequest, Builder> {
private Integer clusterCNNFStatus;
private String clusterId;
private String clusterName;
private Integer currentPage;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListClusterInterceptionConfigRequest request) {
super(request);
this.clusterCNNFStatus = request.clusterCNNFStatus;
this.clusterId = request.clusterId;
this.clusterName = request.clusterName;
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
}
/**
* <p>The status of the container firewall feature. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: unknown</li>
* <li><strong>0</strong>: abnormal</li>
* <li><strong>1</strong>: normal</li>
* <li><strong>2</strong>: normal to be confirmed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder clusterCNNFStatus(Integer clusterCNNFStatus) {
this.putQueryParameter("ClusterCNNFStatus", clusterCNNFStatus);
this.clusterCNNFStatus = clusterCNNFStatus;
return this;
}
/**
* <p>The ID of the cluster.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeContainerInstances~~">DescribeContainerInstances</a> operation to query the IDs of clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>c22143730ab6e40b09ec7c1c51d4d****</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>sas</p>
*/
public Builder clusterName(String clusterName) {
this.putQueryParameter("ClusterName", clusterName);
this.clusterName = clusterName;
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 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;
}
@Override
public ListClusterInterceptionConfigRequest build() {
return new ListClusterInterceptionConfigRequest(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/ListClusterInterceptionConfigResponse.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 ListClusterInterceptionConfigResponse} extends {@link TeaModel}
*
* <p>ListClusterInterceptionConfigResponse</p>
*/
public class ListClusterInterceptionConfigResponse 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 ListClusterInterceptionConfigResponseBody body;
private ListClusterInterceptionConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClusterInterceptionConfigResponse 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 ListClusterInterceptionConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClusterInterceptionConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClusterInterceptionConfigResponseBody body);
@Override
ListClusterInterceptionConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClusterInterceptionConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClusterInterceptionConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClusterInterceptionConfigResponse 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(ListClusterInterceptionConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClusterInterceptionConfigResponse build() {
return new ListClusterInterceptionConfigResponse(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/ListClusterInterceptionConfigResponseBody.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 ListClusterInterceptionConfigResponseBody} extends {@link TeaModel}
*
* <p>ListClusterInterceptionConfigResponseBody</p>
*/
public class ListClusterInterceptionConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterConfigList")
private java.util.List<ClusterConfigList> clusterConfigList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListClusterInterceptionConfigResponseBody(Builder builder) {
this.clusterConfigList = builder.clusterConfigList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterInterceptionConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterConfigList
*/
public java.util.List<ClusterConfigList> getClusterConfigList() {
return this.clusterConfigList;
}
/**
* @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<ClusterConfigList> clusterConfigList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListClusterInterceptionConfigResponseBody model) {
this.clusterConfigList = model.clusterConfigList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the configurations of the cluster.</p>
*/
public Builder clusterConfigList(java.util.List<ClusterConfigList> clusterConfigList) {
this.clusterConfigList = clusterConfigList;
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>49FDE92F-A0B8-56CC-B7A8-23B17646****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListClusterInterceptionConfigResponseBody build() {
return new ListClusterInterceptionConfigResponseBody(this);
}
}
/**
*
* {@link ListClusterInterceptionConfigResponseBody} extends {@link TeaModel}
*
* <p>ListClusterInterceptionConfigResponseBody</p>
*/
public static class ClusterConfigList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterCNNFStatus")
private Integer clusterCNNFStatus;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("ClusterName")
private String clusterName;
@com.aliyun.core.annotation.NameInMap("ClusterType")
private String clusterType;
@com.aliyun.core.annotation.NameInMap("InterceptionSwitch")
private Integer interceptionSwitch;
@com.aliyun.core.annotation.NameInMap("OpenRuleCount")
private Long openRuleCount;
@com.aliyun.core.annotation.NameInMap("SupportCNNF")
private Boolean supportCNNF;
@com.aliyun.core.annotation.NameInMap("TotalRuleCount")
private Long totalRuleCount;
private ClusterConfigList(Builder builder) {
this.clusterCNNFStatus = builder.clusterCNNFStatus;
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.clusterType = builder.clusterType;
this.interceptionSwitch = builder.interceptionSwitch;
this.openRuleCount = builder.openRuleCount;
this.supportCNNF = builder.supportCNNF;
this.totalRuleCount = builder.totalRuleCount;
}
public static Builder builder() {
return new Builder();
}
public static ClusterConfigList create() {
return builder().build();
}
/**
* @return clusterCNNFStatus
*/
public Integer getClusterCNNFStatus() {
return this.clusterCNNFStatus;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return clusterType
*/
public String getClusterType() {
return this.clusterType;
}
/**
* @return interceptionSwitch
*/
public Integer getInterceptionSwitch() {
return this.interceptionSwitch;
}
/**
* @return openRuleCount
*/
public Long getOpenRuleCount() {
return this.openRuleCount;
}
/**
* @return supportCNNF
*/
public Boolean getSupportCNNF() {
return this.supportCNNF;
}
/**
* @return totalRuleCount
*/
public Long getTotalRuleCount() {
return this.totalRuleCount;
}
public static final class Builder {
private Integer clusterCNNFStatus;
private String clusterId;
private String clusterName;
private String clusterType;
private Integer interceptionSwitch;
private Long openRuleCount;
private Boolean supportCNNF;
private Long totalRuleCount;
private Builder() {
}
private Builder(ClusterConfigList model) {
this.clusterCNNFStatus = model.clusterCNNFStatus;
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.clusterType = model.clusterType;
this.interceptionSwitch = model.interceptionSwitch;
this.openRuleCount = model.openRuleCount;
this.supportCNNF = model.supportCNNF;
this.totalRuleCount = model.totalRuleCount;
}
/**
* <p>The status of the container firewall feature. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: unknown</li>
* <li><strong>0</strong>: abnormal</li>
* <li><strong>1</strong>: normal</li>
* <li><strong>2</strong>: normal to be confirmed</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder clusterCNNFStatus(Integer clusterCNNFStatus) {
this.clusterCNNFStatus = clusterCNNFStatus;
return this;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c9051d30d8a044b4d99e1cb5d25ac****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>container-opa-kill-02</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* <p>The type of the cluster. Valid values:</p>
* <ul>
* <li><strong>ManagedKubernetes</strong>: managed Kubernetes cluster</li>
* <li><strong>NotManagedKubernetes</strong>: non-managed Kubernetes cluster</li>
* <li><strong>PrivateKubernetes</strong>: private cluster</li>
* <li><strong>kubernetes</strong>: dedicated Kubernetes cluster</li>
* <li><strong>ask</strong>: dedicated serverless Kubernetes (ASK) cluster</li>
* </ul>
*
* <strong>example:</strong>
* <p>ManagedKubernetes</p>
*/
public Builder clusterType(String clusterType) {
this.clusterType = clusterType;
return this;
}
/**
* <p>The status of the defense rule. Valid values:</p>
* <ul>
* <li><strong>0</strong>: disabled</li>
* <li><strong>1</strong>: enabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder interceptionSwitch(Integer interceptionSwitch) {
this.interceptionSwitch = interceptionSwitch;
return this;
}
/**
* <p>The number of defense rules that are in effect.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder openRuleCount(Long openRuleCount) {
this.openRuleCount = openRuleCount;
return this;
}
/**
* <p>Indicates whether the container firewall feature is supported.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder supportCNNF(Boolean supportCNNF) {
this.supportCNNF = supportCNNF;
return this;
}
/**
* <p>The total number of defense rules.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder totalRuleCount(Long totalRuleCount) {
this.totalRuleCount = totalRuleCount;
return this;
}
public ClusterConfigList build() {
return new ClusterConfigList(this);
}
}
}
/**
*
* {@link ListClusterInterceptionConfigResponseBody} extends {@link TeaModel}
*
* <p>ListClusterInterceptionConfigResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrrentPage")
private Integer currrentPage;
@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.currrentPage = builder.currrentPage;
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 currrentPage
*/
public Integer getCurrrentPage() {
return this.currrentPage;
}
/**
* @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 currrentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currrentPage = model.currrentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>11</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 currrentPage(Integer currrentPage) {
this.currrentPage = currrentPage;
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>11</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/ListClusterPluginInfoRequest.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 ListClusterPluginInfoRequest} extends {@link RequestModel}
*
* <p>ListClusterPluginInfoRequest</p>
*/
public class ListClusterPluginInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterIds")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> clusterIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PluginName")
private String pluginName;
private ListClusterPluginInfoRequest(Builder builder) {
super(builder);
this.clusterIds = builder.clusterIds;
this.lang = builder.lang;
this.pluginName = builder.pluginName;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterPluginInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterIds
*/
public java.util.List<String> getClusterIds() {
return this.clusterIds;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pluginName
*/
public String getPluginName() {
return this.pluginName;
}
public static final class Builder extends Request.Builder<ListClusterPluginInfoRequest, Builder> {
private java.util.List<String> clusterIds;
private String lang;
private String pluginName;
private Builder() {
super();
}
private Builder(ListClusterPluginInfoRequest request) {
super(request);
this.clusterIds = request.clusterIds;
this.lang = request.lang;
this.pluginName = request.pluginName;
}
/**
* <p>The IDs of the clusters.</p>
* <p>This parameter is required.</p>
*/
public Builder clusterIds(java.util.List<String> clusterIds) {
this.putQueryParameter("ClusterIds", clusterIds);
this.clusterIds = clusterIds;
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 plug-in.</p>
*
* <strong>example:</strong>
* <p>alihips</p>
*/
public Builder pluginName(String pluginName) {
this.putQueryParameter("PluginName", pluginName);
this.pluginName = pluginName;
return this;
}
@Override
public ListClusterPluginInfoRequest build() {
return new ListClusterPluginInfoRequest(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/ListClusterPluginInfoResponse.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 ListClusterPluginInfoResponse} extends {@link TeaModel}
*
* <p>ListClusterPluginInfoResponse</p>
*/
public class ListClusterPluginInfoResponse 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 ListClusterPluginInfoResponseBody body;
private ListClusterPluginInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListClusterPluginInfoResponse 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 ListClusterPluginInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListClusterPluginInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListClusterPluginInfoResponseBody body);
@Override
ListClusterPluginInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListClusterPluginInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListClusterPluginInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListClusterPluginInfoResponse 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(ListClusterPluginInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public ListClusterPluginInfoResponse build() {
return new ListClusterPluginInfoResponse(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/ListClusterPluginInfoResponseBody.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 ListClusterPluginInfoResponseBody} extends {@link TeaModel}
*
* <p>ListClusterPluginInfoResponseBody</p>
*/
public class ListClusterPluginInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListClusterPluginInfoResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterPluginInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(ListClusterPluginInfoResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The information about the plug-in.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0B48AB3C-84FC-424D-A01D-B9270EF46038</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListClusterPluginInfoResponseBody build() {
return new ListClusterPluginInfoResponseBody(this);
}
}
/**
*
* {@link ListClusterPluginInfoResponseBody} extends {@link TeaModel}
*
* <p>ListClusterPluginInfoResponseBody</p>
*/
public static class NodePluginInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMsg")
private String errorMsg;
@com.aliyun.core.annotation.NameInMap("Installed")
private Boolean installed;
@com.aliyun.core.annotation.NameInMap("MachineInternetIp")
private String machineInternetIp;
@com.aliyun.core.annotation.NameInMap("MachineIntranetIp")
private String machineIntranetIp;
@com.aliyun.core.annotation.NameInMap("MachineName")
private String machineName;
@com.aliyun.core.annotation.NameInMap("MachineType")
private Long machineType;
@com.aliyun.core.annotation.NameInMap("Online")
private Boolean online;
@com.aliyun.core.annotation.NameInMap("PluginName")
private String pluginName;
@com.aliyun.core.annotation.NameInMap("PluginVersion")
private String pluginVersion;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("instanceId")
private String instanceId;
private NodePluginInfoList(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMsg = builder.errorMsg;
this.installed = builder.installed;
this.machineInternetIp = builder.machineInternetIp;
this.machineIntranetIp = builder.machineIntranetIp;
this.machineName = builder.machineName;
this.machineType = builder.machineType;
this.online = builder.online;
this.pluginName = builder.pluginName;
this.pluginVersion = builder.pluginVersion;
this.uuid = builder.uuid;
this.instanceId = builder.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static NodePluginInfoList create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMsg
*/
public String getErrorMsg() {
return this.errorMsg;
}
/**
* @return installed
*/
public Boolean getInstalled() {
return this.installed;
}
/**
* @return machineInternetIp
*/
public String getMachineInternetIp() {
return this.machineInternetIp;
}
/**
* @return machineIntranetIp
*/
public String getMachineIntranetIp() {
return this.machineIntranetIp;
}
/**
* @return machineName
*/
public String getMachineName() {
return this.machineName;
}
/**
* @return machineType
*/
public Long getMachineType() {
return this.machineType;
}
/**
* @return online
*/
public Boolean getOnline() {
return this.online;
}
/**
* @return pluginName
*/
public String getPluginName() {
return this.pluginName;
}
/**
* @return pluginVersion
*/
public String getPluginVersion() {
return this.pluginVersion;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
public static final class Builder {
private String errorCode;
private String errorMsg;
private Boolean installed;
private String machineInternetIp;
private String machineIntranetIp;
private String machineName;
private Long machineType;
private Boolean online;
private String pluginName;
private String pluginVersion;
private String uuid;
private String instanceId;
private Builder() {
}
private Builder(NodePluginInfoList model) {
this.errorCode = model.errorCode;
this.errorMsg = model.errorMsg;
this.installed = model.installed;
this.machineInternetIp = model.machineInternetIp;
this.machineIntranetIp = model.machineIntranetIp;
this.machineName = model.machineName;
this.machineType = model.machineType;
this.online = model.online;
this.pluginName = model.pluginName;
this.pluginVersion = model.pluginVersion;
this.uuid = model.uuid;
this.instanceId = model.instanceId;
}
/**
* <p>The error code returned.</p>
*
* <strong>example:</strong>
* <p>kenerl not support</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>kenerl not support</p>
*/
public Builder errorMsg(String errorMsg) {
this.errorMsg = errorMsg;
return this;
}
/**
* <p>Indicates whether the plug-in is installed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder installed(Boolean installed) {
this.installed = installed;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>100.100.XXX.XX</p>
*/
public Builder machineInternetIp(String machineInternetIp) {
this.machineInternetIp = machineInternetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>10.XXX.XXX.XX</p>
*/
public Builder machineIntranetIp(String machineIntranetIp) {
this.machineIntranetIp = machineIntranetIp;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>npznas05</p>
*/
public Builder machineName(String machineName) {
this.machineName = machineName;
return this;
}
/**
* <p>The type of the instance. Valid values include:</p>
* <ul>
* <li><strong>ecs</strong>: Elastic Compute Service (ECS) instance</li>
* <li><strong>slb</strong>: Server Load Balancer (SLB) instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder machineType(Long machineType) {
this.machineType = machineType;
return this;
}
/**
* <p>Indicates whether the Security Center agent is online. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <p> If the Security Center agent of the server is offline, Security Center does not protect the server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder online(Boolean online) {
this.online = online;
return this;
}
/**
* <p>The name of the plug-in.</p>
*
* <strong>example:</strong>
* <p>alihips</p>
*/
public Builder pluginName(String pluginName) {
this.pluginName = pluginName;
return this;
}
/**
* <p>The version of the plug-in.</p>
*
* <strong>example:</strong>
* <p>1.3.1</p>
*/
public Builder pluginVersion(String pluginVersion) {
this.pluginVersion = pluginVersion;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>bc563d2b-2a3d-411b-8bbe-d75b8d3c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The instance ID of the server.</p>
*
* <strong>example:</strong>
* <p>tpp-cn-2r42njq4y001</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public NodePluginInfoList build() {
return new NodePluginInfoList(this);
}
}
}
/**
*
* {@link ListClusterPluginInfoResponseBody} extends {@link TeaModel}
*
* <p>ListClusterPluginInfoResponseBody</p>
*/
public static class Data 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("ClusterStatus")
private String clusterStatus;
@com.aliyun.core.annotation.NameInMap("NodePluginInfoList")
private java.util.List<NodePluginInfoList> nodePluginInfoList;
private Data(Builder builder) {
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.clusterStatus = builder.clusterStatus;
this.nodePluginInfoList = builder.nodePluginInfoList;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return clusterStatus
*/
public String getClusterStatus() {
return this.clusterStatus;
}
/**
* @return nodePluginInfoList
*/
public java.util.List<NodePluginInfoList> getNodePluginInfoList() {
return this.nodePluginInfoList;
}
public static final class Builder {
private String clusterId;
private String clusterName;
private String clusterStatus;
private java.util.List<NodePluginInfoList> nodePluginInfoList;
private Builder() {
}
private Builder(Data model) {
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.clusterStatus = model.clusterStatus;
this.nodePluginInfoList = model.nodePluginInfoList;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c8ca91e0907d94efaba7fb0827eb9****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>lmftest</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* <p>The status of the cluster. Valid values:</p>
* <ul>
* <li>1: normal</li>
* <li>2: abnormal</li>
* <li>3: offline</li>
* </ul>
*
* <strong>example:</strong>
* <p>ABNORMAL</p>
*/
public Builder clusterStatus(String clusterStatus) {
this.clusterStatus = clusterStatus;
return this;
}
/**
* <p>The plug-ins.</p>
*/
public Builder nodePluginInfoList(java.util.List<NodePluginInfoList> nodePluginInfoList) {
this.nodePluginInfoList = nodePluginInfoList;
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/ListCompressFileDetectResultRequest.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 ListCompressFileDetectResultRequest} extends {@link RequestModel}
*
* <p>ListCompressFileDetectResultRequest</p>
*/
public class ListCompressFileDetectResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true, minimum = 1)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HashKey")
private String hashKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true, maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private ListCompressFileDetectResultRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.hashKey = builder.hashKey;
this.pageSize = builder.pageSize;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static ListCompressFileDetectResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return hashKey
*/
public String getHashKey() {
return this.hashKey;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<ListCompressFileDetectResultRequest, Builder> {
private Integer currentPage;
private String hashKey;
private Integer pageSize;
private String sourceIp;
private Builder() {
super();
}
private Builder(ListCompressFileDetectResultRequest request) {
super(request);
this.currentPage = request.currentPage;
this.hashKey = request.hashKey;
this.pageSize = request.pageSize;
this.sourceIp = request.sourceIp;
}
/**
* <p>The page number. Default value: 1.</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 identifier of the file. Only MD5 hash values are supported.</p>
*
* <strong>example:</strong>
* <p>0a212417e65c26ff133cfff28f6c****</p>
*/
public Builder hashKey(String hashKey) {
this.putQueryParameter("HashKey", hashKey);
this.hashKey = hashKey;
return this;
}
/**
* <p>The number of entries per page. Default value: 20.</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 source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>27.9.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public ListCompressFileDetectResultRequest build() {
return new ListCompressFileDetectResultRequest(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/ListCompressFileDetectResultResponse.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 ListCompressFileDetectResultResponse} extends {@link TeaModel}
*
* <p>ListCompressFileDetectResultResponse</p>
*/
public class ListCompressFileDetectResultResponse 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 ListCompressFileDetectResultResponseBody body;
private ListCompressFileDetectResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCompressFileDetectResultResponse 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 ListCompressFileDetectResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCompressFileDetectResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCompressFileDetectResultResponseBody body);
@Override
ListCompressFileDetectResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCompressFileDetectResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCompressFileDetectResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCompressFileDetectResultResponse 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(ListCompressFileDetectResultResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCompressFileDetectResultResponse build() {
return new ListCompressFileDetectResultResponse(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/ListCompressFileDetectResultResponseBody.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 ListCompressFileDetectResultResponseBody} extends {@link TeaModel}
*
* <p>ListCompressFileDetectResultResponseBody</p>
*/
public class ListCompressFileDetectResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResultList")
private java.util.List<ResultList> resultList;
private ListCompressFileDetectResultResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.resultList = builder.resultList;
}
public static Builder builder() {
return new Builder();
}
public static ListCompressFileDetectResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resultList
*/
public java.util.List<ResultList> getResultList() {
return this.resultList;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<ResultList> resultList;
private Builder() {
}
private Builder(ListCompressFileDetectResultResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.resultList = model.resultList;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E10BAF1C-A6C5-51E2-866C-76D5922E****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The detection results of files.</p>
*/
public Builder resultList(java.util.List<ResultList> resultList) {
this.resultList = resultList;
return this;
}
public ListCompressFileDetectResultResponseBody build() {
return new ListCompressFileDetectResultResponseBody(this);
}
}
/**
*
* {@link ListCompressFileDetectResultResponseBody} extends {@link TeaModel}
*
* <p>ListCompressFileDetectResultResponseBody</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>55</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link ListCompressFileDetectResultResponseBody} extends {@link TeaModel}
*
* <p>ListCompressFileDetectResultResponseBody</p>
*/
public static class ResultList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ext")
private String ext;
@com.aliyun.core.annotation.NameInMap("HashKey")
private String hashKey;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("Result")
private Integer result;
@com.aliyun.core.annotation.NameInMap("Score")
private Integer score;
@com.aliyun.core.annotation.NameInMap("VirusType")
private String virusType;
private ResultList(Builder builder) {
this.ext = builder.ext;
this.hashKey = builder.hashKey;
this.path = builder.path;
this.result = builder.result;
this.score = builder.score;
this.virusType = builder.virusType;
}
public static Builder builder() {
return new Builder();
}
public static ResultList create() {
return builder().build();
}
/**
* @return ext
*/
public String getExt() {
return this.ext;
}
/**
* @return hashKey
*/
public String getHashKey() {
return this.hashKey;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return result
*/
public Integer getResult() {
return this.result;
}
/**
* @return score
*/
public Integer getScore() {
return this.score;
}
/**
* @return virusType
*/
public String getVirusType() {
return this.virusType;
}
public static final class Builder {
private String ext;
private String hashKey;
private String path;
private Integer result;
private Integer score;
private String virusType;
private Builder() {
}
private Builder(ResultList model) {
this.ext = model.ext;
this.hashKey = model.hashKey;
this.path = model.path;
this.result = model.result;
this.score = model.score;
this.virusType = model.virusType;
}
/**
* <p>The extended information about the file detection result.</p>
*
* <strong>example:</strong>
* <p>{
* "HighLight":
* [
* [
* 23245,
* 23212
* ]
* ],
* "FileLabel":
* [
* "PE32",
* "Zip",
* "SFX",
* "encrypted"
* ]
* }</p>
*/
public Builder ext(String ext) {
this.ext = ext;
return this;
}
/**
* <p>The identifier of the file.</p>
*
* <strong>example:</strong>
* <p>0a212417e65c26ff133cfff28f6c****</p>
*/
public Builder hashKey(String hashKey) {
this.hashKey = hashKey;
return this;
}
/**
* <p>The path to the file within the package.</p>
*
* <strong>example:</strong>
* <p>/root/1.zip/test****</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The file detection result. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The file is normal.</li>
* <li><strong>1</strong>: The file is suspicious.</li>
* <li><strong>3</strong>: The detection is in progress.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder result(Integer result) {
this.result = result;
return this;
}
/**
* <p>The score of the file detection result. The following list describes mappings between the score ranges and risk levels:</p>
* <ul>
* <li>0 to 60: normal</li>
* <li>61 to 70: risky</li>
* <li>71 to 80: suspicious</li>
* <li>81 to 100: malicious</li>
* </ul>
* <blockquote>
* <p> A higher score indicates a more suspicious file.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(Integer score) {
this.score = score;
return this;
}
/**
* <p>The type of the virus. Valid values:</p>
* <ul>
* <li><strong>Trojan</strong>: self-mutating trojan</li>
* <li><strong>WebShell</strong>: webshell</li>
* <li><strong>Backdoor</strong>: backdoor program</li>
* <li><strong>RansomWare</strong>: ransomware</li>
* <li><strong>Scanner</strong>: scanner</li>
* <li><strong>Stealer</strong>: tool that is used to steal information</li>
* <li><strong>Malbaseware</strong>: tainted basic software</li>
* <li><strong>Hacktool</strong>: attacker tool</li>
* <li><strong>Engtest</strong>: engine test program</li>
* <li><strong>Downloader</strong>: trojan downloader</li>
* <li><strong>Virus</strong>: infectious virus</li>
* <li><strong>Miner</strong>: mining program</li>
* <li><strong>Worm</strong>: worm</li>
* <li><strong>DDoS</strong>: DDoS trojan</li>
* <li><strong>Malware</strong>: malicious program</li>
* <li><strong>Backdoor</strong>: reverse shell</li>
* <li><strong>RiskWare</strong>: software that has risks</li>
* <li><strong>Proxytool</strong>: proxy</li>
* <li><strong>Suspicious</strong>: suspicious program</li>
* <li><strong>MalScript</strong>: malicious script</li>
* <li><strong>Rootkit</strong>: rootkit</li>
* <li><strong>Exploit</strong>: exploit</li>
* </ul>
*
* <strong>example:</strong>
* <p>WebShell</p>
*/
public Builder virusType(String virusType) {
this.virusType = virusType;
return this;
}
public ResultList build() {
return new ResultList(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/ListContainerDefenseRuleClustersRequest.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 ListContainerDefenseRuleClustersRequest} extends {@link RequestModel}
*
* <p>ListContainerDefenseRuleClustersRequest</p>
*/
public class ListContainerDefenseRuleClustersRequest extends Request {
private ListContainerDefenseRuleClustersRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static ListContainerDefenseRuleClustersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<ListContainerDefenseRuleClustersRequest, Builder> {
private Builder() {
super();
}
private Builder(ListContainerDefenseRuleClustersRequest request) {
super(request);
}
@Override
public ListContainerDefenseRuleClustersRequest build() {
return new ListContainerDefenseRuleClustersRequest(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/ListContainerDefenseRuleClustersResponse.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 ListContainerDefenseRuleClustersResponse} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleClustersResponse</p>
*/
public class ListContainerDefenseRuleClustersResponse 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 ListContainerDefenseRuleClustersResponseBody body;
private ListContainerDefenseRuleClustersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListContainerDefenseRuleClustersResponse 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 ListContainerDefenseRuleClustersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListContainerDefenseRuleClustersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListContainerDefenseRuleClustersResponseBody body);
@Override
ListContainerDefenseRuleClustersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListContainerDefenseRuleClustersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListContainerDefenseRuleClustersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListContainerDefenseRuleClustersResponse 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(ListContainerDefenseRuleClustersResponseBody body) {
this.body = body;
return this;
}
@Override
public ListContainerDefenseRuleClustersResponse build() {
return new ListContainerDefenseRuleClustersResponse(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/ListContainerDefenseRuleClustersResponseBody.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 ListContainerDefenseRuleClustersResponseBody} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleClustersResponseBody</p>
*/
public class ListContainerDefenseRuleClustersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterList")
private java.util.List<ClusterList> clusterList;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@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 ListContainerDefenseRuleClustersResponseBody(Builder builder) {
this.clusterList = builder.clusterList;
this.code = builder.code;
this.count = builder.count;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ListContainerDefenseRuleClustersResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterList
*/
public java.util.List<ClusterList> getClusterList() {
return this.clusterList;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @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 java.util.List<ClusterList> clusterList;
private String code;
private Integer count;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListContainerDefenseRuleClustersResponseBody model) {
this.clusterList = model.clusterList;
this.code = model.code;
this.count = model.count;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The clusters.</p>
*/
public Builder clusterList(java.util.List<ClusterList> clusterList) {
this.clusterList = clusterList;
return this;
}
/**
* <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 total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
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>1F995515-CAF3-5F84-8D82-C9F706AD5070</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 ListContainerDefenseRuleClustersResponseBody build() {
return new ListContainerDefenseRuleClustersResponseBody(this);
}
}
/**
*
* {@link ListContainerDefenseRuleClustersResponseBody} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleClustersResponseBody</p>
*/
public static class ClusterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllNamespace")
private Integer allNamespace;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Namespaces")
private java.util.List<String> namespaces;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
private ClusterList(Builder builder) {
this.allNamespace = builder.allNamespace;
this.clusterId = builder.clusterId;
this.namespaces = builder.namespaces;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static ClusterList create() {
return builder().build();
}
/**
* @return allNamespace
*/
public Integer getAllNamespace() {
return this.allNamespace;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return namespaces
*/
public java.util.List<String> getNamespaces() {
return this.namespaces;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
public static final class Builder {
private Integer allNamespace;
private String clusterId;
private java.util.List<String> namespaces;
private Long ruleId;
private Builder() {
}
private Builder(ClusterList model) {
this.allNamespace = model.allNamespace;
this.clusterId = model.clusterId;
this.namespaces = model.namespaces;
this.ruleId = model.ruleId;
}
/**
* <p>Indicates whether all namespaces are included. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder allNamespace(Integer allNamespace) {
this.allNamespace = allNamespace;
return this;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>cfeb7a9f99ce740e98c5595d0fe37****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The namespaces.</p>
*/
public Builder namespaces(java.util.List<String> namespaces) {
this.namespaces = namespaces;
return this;
}
/**
* <p>The ID of the rule.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2590599.html">ListInterceptionRulePage</a> operation to query the IDs of rules.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>403178</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
public ClusterList build() {
return new ClusterList(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/ListContainerDefenseRuleRequest.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 ListContainerDefenseRuleRequest} extends {@link RequestModel}
*
* <p>ListContainerDefenseRuleRequest</p>
*/
public class ListContainerDefenseRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Conditions")
private java.util.List<Conditions> conditions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsDefaultRule")
private Integer isDefaultRule;
@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("RuleType")
private Integer ruleType;
private ListContainerDefenseRuleRequest(Builder builder) {
super(builder);
this.conditions = builder.conditions;
this.currentPage = builder.currentPage;
this.isDefaultRule = builder.isDefaultRule;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.ruleType = builder.ruleType;
}
public static Builder builder() {
return new Builder();
}
public static ListContainerDefenseRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return conditions
*/
public java.util.List<Conditions> getConditions() {
return this.conditions;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return isDefaultRule
*/
public Integer getIsDefaultRule() {
return this.isDefaultRule;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return ruleType
*/
public Integer getRuleType() {
return this.ruleType;
}
public static final class Builder extends Request.Builder<ListContainerDefenseRuleRequest, Builder> {
private java.util.List<Conditions> conditions;
private Integer currentPage;
private Integer isDefaultRule;
private String lang;
private Integer pageSize;
private Integer ruleType;
private Builder() {
super();
}
private Builder(ListContainerDefenseRuleRequest request) {
super(request);
this.conditions = request.conditions;
this.currentPage = request.currentPage;
this.isDefaultRule = request.isDefaultRule;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.ruleType = request.ruleType;
}
/**
* <p>The details of the condition.</p>
*/
public Builder conditions(java.util.List<Conditions> conditions) {
this.putQueryParameter("Conditions", conditions);
this.conditions = conditions;
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 to query system rules.</p>
* <blockquote>
* <p> This parameter is deprecated.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isDefaultRule(Integer isDefaultRule) {
this.putQueryParameter("IsDefaultRule", isDefaultRule);
this.isDefaultRule = isDefaultRule;
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 rule type. Valid values:</p>
* <ul>
* <li>1: system rule</li>
* <li>2: user-defined rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleType(Integer ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
@Override
public ListContainerDefenseRuleRequest build() {
return new ListContainerDefenseRuleRequest(this);
}
}
/**
*
* {@link ListContainerDefenseRuleRequest} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleRequest</p>
*/
public static class Conditions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Conditions(Builder builder) {
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Conditions create() {
return builder().build();
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String type;
private String value;
private Builder() {
}
private Builder(Conditions model) {
this.type = model.type;
this.value = model.value;
}
/**
* <p>The condition type. Valid values:</p>
* <ul>
* <li><strong>ruleName</strong>: the rule name</li>
* </ul>
*
* <strong>example:</strong>
* <p>ruleName</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The rule content.</p>
*
* <strong>example:</strong>
* <p>auto-test-rule-**</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Conditions build() {
return new Conditions(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/ListContainerDefenseRuleResponse.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 ListContainerDefenseRuleResponse} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleResponse</p>
*/
public class ListContainerDefenseRuleResponse 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 ListContainerDefenseRuleResponseBody body;
private ListContainerDefenseRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListContainerDefenseRuleResponse 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 ListContainerDefenseRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListContainerDefenseRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListContainerDefenseRuleResponseBody body);
@Override
ListContainerDefenseRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListContainerDefenseRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListContainerDefenseRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListContainerDefenseRuleResponse 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(ListContainerDefenseRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public ListContainerDefenseRuleResponse build() {
return new ListContainerDefenseRuleResponse(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/ListContainerDefenseRuleResponseBody.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 ListContainerDefenseRuleResponseBody} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleResponseBody</p>
*/
public class ListContainerDefenseRuleResponseBody 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("List")
private java.util.List<List> list;
@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 ListContainerDefenseRuleResponseBody(Builder builder) {
this.code = builder.code;
this.httpStatusCode = builder.httpStatusCode;
this.list = builder.list;
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 ListContainerDefenseRuleResponseBody 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 list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @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<List> list;
private String message;
private PageInfo pageInfo;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListContainerDefenseRuleResponseBody model) {
this.code = model.code;
this.httpStatusCode = model.httpStatusCode;
this.list = model.list;
this.message = model.message;
this.pageInfo = model.pageInfo;
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 HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The rules.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
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 pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5E3A63BA-***843</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 ListContainerDefenseRuleResponseBody build() {
return new ListContainerDefenseRuleResponseBody(this);
}
}
/**
*
* {@link ListContainerDefenseRuleResponseBody} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClusterCount")
private Integer clusterCount;
@com.aliyun.core.annotation.NameInMap("ClusterIdList")
private String clusterIdList;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("RuleAction")
private Integer ruleAction;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("RuleSwitch")
private Integer ruleSwitch;
@com.aliyun.core.annotation.NameInMap("RuleType")
private Integer ruleType;
private List(Builder builder) {
this.clusterCount = builder.clusterCount;
this.clusterIdList = builder.clusterIdList;
this.description = builder.description;
this.ruleAction = builder.ruleAction;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.ruleSwitch = builder.ruleSwitch;
this.ruleType = builder.ruleType;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return clusterCount
*/
public Integer getClusterCount() {
return this.clusterCount;
}
/**
* @return clusterIdList
*/
public String getClusterIdList() {
return this.clusterIdList;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ruleAction
*/
public Integer getRuleAction() {
return this.ruleAction;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return ruleSwitch
*/
public Integer getRuleSwitch() {
return this.ruleSwitch;
}
/**
* @return ruleType
*/
public Integer getRuleType() {
return this.ruleType;
}
public static final class Builder {
private Integer clusterCount;
private String clusterIdList;
private String description;
private Integer ruleAction;
private Long ruleId;
private String ruleName;
private Integer ruleSwitch;
private Integer ruleType;
private Builder() {
}
private Builder(List model) {
this.clusterCount = model.clusterCount;
this.clusterIdList = model.clusterIdList;
this.description = model.description;
this.ruleAction = model.ruleAction;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.ruleSwitch = model.ruleSwitch;
this.ruleType = model.ruleType;
}
/**
* <p>The total number of clusters.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder clusterCount(Integer clusterCount) {
this.clusterCount = clusterCount;
return this;
}
/**
* <p>The clusters specified in the rule.</p>
*
* <strong>example:</strong>
* <p>cfb41a8**8a106</p>
*/
public Builder clusterIdList(String clusterIdList) {
this.clusterIdList = clusterIdList;
return this;
}
/**
* <p>The description of the rule.</p>
*
* <strong>example:</strong>
* <p>defense rule.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The action specified in the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: alert</li>
* <li><strong>2</strong>: block</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleAction(Integer ruleAction) {
this.ruleAction = ruleAction;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>181</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-rule-01</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: enabled</li>
* <li><strong>0</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder ruleSwitch(Integer ruleSwitch) {
this.ruleSwitch = ruleSwitch;
return this;
}
/**
* <p>The type of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: system rule</li>
* <li><strong>2</strong>: custom rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder ruleType(Integer ruleType) {
this.ruleType = ruleType;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListContainerDefenseRuleResponseBody} extends {@link TeaModel}
*
* <p>ListContainerDefenseRuleResponseBody</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("NextToken")
private String nextToken;
@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.nextToken = builder.nextToken;
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 nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @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 String nextToken;
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.nextToken = model.nextToken;
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 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>CAESGgo***jE2NDc4NjE=</p>
*/
public Builder lastRowKey(String lastRowKey) {
this.lastRowKey = lastRowKey;
return this;
}
/**
* <p>The query credential.</p>
*
* <strong>example:</strong>
* <p>B60***</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
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>45</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/ListCriteriaStrategyRequest.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 ListCriteriaStrategyRequest} extends {@link RequestModel}
*
* <p>ListCriteriaStrategyRequest</p>
*/
public class ListCriteriaStrategyRequest 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("ImageName")
private String imageName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StrategyName")
private String strategyName;
private ListCriteriaStrategyRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.imageName = builder.imageName;
this.label = builder.label;
this.namespace = builder.namespace;
this.strategyName = builder.strategyName;
}
public static Builder builder() {
return new Builder();
}
public static ListCriteriaStrategyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return imageName
*/
public String getImageName() {
return this.imageName;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return strategyName
*/
public String getStrategyName() {
return this.strategyName;
}
public static final class Builder extends Request.Builder<ListCriteriaStrategyRequest, Builder> {
private String clusterId;
private String imageName;
private String label;
private String namespace;
private String strategyName;
private Builder() {
super();
}
private Builder(ListCriteriaStrategyRequest request) {
super(request);
this.clusterId = request.clusterId;
this.imageName = request.imageName;
this.label = request.label;
this.namespace = request.namespace;
this.strategyName = request.strategyName;
}
/**
* <p>The cluster ID.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the IDs of clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>c4af4fdf38a98496a9b63c2be5dae****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the image.</p>
* <blockquote>
* <p> You can call the <a href="~~GetOpaClusterImageList~~">GetOpaClusterImageList</a> operation to query the names of images.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>testImage</p>
*/
public Builder imageName(String imageName) {
this.putQueryParameter("ImageName", imageName);
this.imageName = imageName;
return this;
}
/**
* <p>The tag that is added to the container.</p>
* <blockquote>
* <p> You can call the <a href="~~GetOpaClusterLabelList~~">GetOpaClusterLabelList</a> operation to query the tags that are added to containers.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>testlabel</p>
*/
public Builder label(String label) {
this.putQueryParameter("Label", label);
this.label = label;
return this;
}
/**
* <p>The namespace of the cluster.</p>
* <blockquote>
* <p> You can call the <a href="~~GetOpaClusterNamespaceList~~">GetOpaClusterNamespaceList</a> operation to query the namespaces of clusters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder strategyName(String strategyName) {
this.putQueryParameter("StrategyName", strategyName);
this.strategyName = strategyName;
return this;
}
@Override
public ListCriteriaStrategyRequest build() {
return new ListCriteriaStrategyRequest(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/ListCriteriaStrategyResponse.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 ListCriteriaStrategyResponse} extends {@link TeaModel}
*
* <p>ListCriteriaStrategyResponse</p>
*/
public class ListCriteriaStrategyResponse 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 ListCriteriaStrategyResponseBody body;
private ListCriteriaStrategyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListCriteriaStrategyResponse 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 ListCriteriaStrategyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListCriteriaStrategyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListCriteriaStrategyResponseBody body);
@Override
ListCriteriaStrategyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListCriteriaStrategyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListCriteriaStrategyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListCriteriaStrategyResponse 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(ListCriteriaStrategyResponseBody body) {
this.body = body;
return this;
}
@Override
public ListCriteriaStrategyResponse build() {
return new ListCriteriaStrategyResponse(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/ListCriteriaStrategyResponseBody.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 ListCriteriaStrategyResponseBody} extends {@link TeaModel}
*
* <p>ListCriteriaStrategyResponseBody</p>
*/
public class ListCriteriaStrategyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<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 ListCriteriaStrategyResponseBody(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 ListCriteriaStrategyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<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 java.util.List<Data> data;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListCriteriaStrategyResponseBody 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 IDs and names of the rules.</p>
*/
public Builder data(java.util.List<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>835851E3-AFA2-5EA7-93E9-4FC9BCF3F973</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 ListCriteriaStrategyResponseBody build() {
return new ListCriteriaStrategyResponseBody(this);
}
}
/**
*
* {@link ListCriteriaStrategyResponseBody} extends {@link TeaModel}
*
* <p>ListCriteriaStrategyResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Data(Builder builder) {
this.id = builder.id;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private Long id;
private String value;
private Builder() {
}
private Builder(Data model) {
this.id = model.id;
this.value = model.value;
}
/**
* <p>The unique identifier of the rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.