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/ListDockerhubImageRequest.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 ListDockerhubImageRequest} extends {@link RequestModel}
*
* <p>ListDockerhubImageRequest</p>
*/
public class ListDockerhubImageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Query")
@com.aliyun.core.annotation.Validation(required = true)
private String query;
private ListDockerhubImageRequest(Builder builder) {
super(builder);
this.query = builder.query;
}
public static Builder builder() {
return new Builder();
}
public static ListDockerhubImageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return query
*/
public String getQuery() {
return this.query;
}
public static final class Builder extends Request.Builder<ListDockerhubImageRequest, Builder> {
private String query;
private Builder() {
super();
}
private Builder(ListDockerhubImageRequest request) {
super(request);
this.query = request.query;
}
/**
* <p>The query condition for images. You can query images in the <code>[namespace/]repoName[:version]</code> format. Conditions in <code>[]</code> are optional.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>python:3.9</p>
*/
public Builder query(String query) {
this.putQueryParameter("Query", query);
this.query = query;
return this;
}
@Override
public ListDockerhubImageRequest build() {
return new ListDockerhubImageRequest(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/ListDockerhubImageResponse.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 ListDockerhubImageResponse} extends {@link TeaModel}
*
* <p>ListDockerhubImageResponse</p>
*/
public class ListDockerhubImageResponse 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 ListDockerhubImageResponseBody body;
private ListDockerhubImageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDockerhubImageResponse 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 ListDockerhubImageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDockerhubImageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDockerhubImageResponseBody body);
@Override
ListDockerhubImageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDockerhubImageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDockerhubImageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDockerhubImageResponse 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(ListDockerhubImageResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDockerhubImageResponse build() {
return new ListDockerhubImageResponse(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/ListDockerhubImageResponseBody.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 ListDockerhubImageResponseBody} extends {@link TeaModel}
*
* <p>ListDockerhubImageResponseBody</p>
*/
public class ListDockerhubImageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageList")
private java.util.List<ImageList> imageList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListDockerhubImageResponseBody(Builder builder) {
this.imageList = builder.imageList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListDockerhubImageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageList
*/
public java.util.List<ImageList> getImageList() {
return this.imageList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ImageList> imageList;
private String requestId;
private Builder() {
}
private Builder(ListDockerhubImageResponseBody model) {
this.imageList = model.imageList;
this.requestId = model.requestId;
}
/**
* <p>The information about the images.</p>
*/
public Builder imageList(java.util.List<ImageList> imageList) {
this.imageList = imageList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F8B6F758-BCD4-597A-8A2C-DA5A552C****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListDockerhubImageResponseBody build() {
return new ListDockerhubImageResponseBody(this);
}
}
/**
*
* {@link ListDockerhubImageResponseBody} extends {@link TeaModel}
*
* <p>ListDockerhubImageResponseBody</p>
*/
public static class ImageList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Digest")
private String digest;
@com.aliyun.core.annotation.NameInMap("HcCount")
private Integer hcCount;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageSize")
private Long imageSize;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.NameInMap("RiskLevelDetail")
private String riskLevelDetail;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VulCount")
private Integer vulCount;
private ImageList(Builder builder) {
this.digest = builder.digest;
this.hcCount = builder.hcCount;
this.imageId = builder.imageId;
this.imageSize = builder.imageSize;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.riskLevelDetail = builder.riskLevelDetail;
this.tag = builder.tag;
this.uuid = builder.uuid;
this.vulCount = builder.vulCount;
}
public static Builder builder() {
return new Builder();
}
public static ImageList create() {
return builder().build();
}
/**
* @return digest
*/
public String getDigest() {
return this.digest;
}
/**
* @return hcCount
*/
public Integer getHcCount() {
return this.hcCount;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageSize
*/
public Long getImageSize() {
return this.imageSize;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return riskLevelDetail
*/
public String getRiskLevelDetail() {
return this.riskLevelDetail;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vulCount
*/
public Integer getVulCount() {
return this.vulCount;
}
public static final class Builder {
private String digest;
private Integer hcCount;
private String imageId;
private Long imageSize;
private String repoName;
private String repoNamespace;
private String riskLevelDetail;
private String tag;
private String uuid;
private Integer vulCount;
private Builder() {
}
private Builder(ImageList model) {
this.digest = model.digest;
this.hcCount = model.hcCount;
this.imageId = model.imageId;
this.imageSize = model.imageSize;
this.repoName = model.repoName;
this.repoNamespace = model.repoNamespace;
this.riskLevelDetail = model.riskLevelDetail;
this.tag = model.tag;
this.uuid = model.uuid;
this.vulCount = model.vulCount;
}
/**
* <p>The digest value of the image.</p>
*
* <strong>example:</strong>
* <p>5ffded22661b0f1e9c7fcccb0d488cff*****f8c52a819bd7179ef3e4a041988</p>
*/
public Builder digest(String digest) {
this.digest = digest;
return this;
}
/**
* <p>The number of baseline risks.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder hcCount(Integer hcCount) {
this.hcCount = hcCount;
return this;
}
/**
* <p>The image ID.</p>
*
* <strong>example:</strong>
* <p>d943de1933650d74b415d3ae8b37c064a0e0c700574d7a949c26db3291******</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The size of the image. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder imageSize(Long imageSize) {
this.imageSize = imageSize;
return this;
}
/**
* <p>The name of the image repository.</p>
*
* <strong>example:</strong>
* <p>python</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The namespace to which the image repository belongs.</p>
*
* <strong>example:</strong>
* <p>python</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The risk details of the image.</p>
*
* <strong>example:</strong>
* <p>{"vul":0}</p>
*/
public Builder riskLevelDetail(String riskLevelDetail) {
this.riskLevelDetail = riskLevelDetail;
return this;
}
/**
* <p>The tag of the image.</p>
*
* <strong>example:</strong>
* <p>3.9</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the image.</p>
*
* <strong>example:</strong>
* <p>a9b50827-801f-414c-900d-c4a223d*****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The number of detected vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vulCount(Integer vulCount) {
this.vulCount = vulCount;
return this;
}
public ImageList build() {
return new ImageList(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/ListFileProtectEventRequest.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 ListFileProtectEventRequest} extends {@link RequestModel}
*
* <p>ListFileProtectEventRequest</p>
*/
public class ListFileProtectEventRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AlertLevels")
private java.util.List<Integer> alertLevels;
@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("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Operation")
private String operation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maxLength = 100, minLength = 1)
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private ListFileProtectEventRequest(Builder builder) {
super(builder);
this.alertLevels = builder.alertLevels;
this.currentPage = builder.currentPage;
this.endTime = builder.endTime;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.operation = builder.operation;
this.pageSize = builder.pageSize;
this.ruleName = builder.ruleName;
this.startTime = builder.startTime;
this.status = builder.status;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectEventRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return alertLevels
*/
public java.util.List<Integer> getAlertLevels() {
return this.alertLevels;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @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 operation
*/
public String getOperation() {
return this.operation;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<ListFileProtectEventRequest, Builder> {
private java.util.List<Integer> alertLevels;
private Integer currentPage;
private Long endTime;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String operation;
private String pageSize;
private String ruleName;
private Long startTime;
private String status;
private String uuid;
private Builder() {
super();
}
private Builder(ListFileProtectEventRequest request) {
super(request);
this.alertLevels = request.alertLevels;
this.currentPage = request.currentPage;
this.endTime = request.endTime;
this.instanceId = request.instanceId;
this.instanceName = request.instanceName;
this.internetIp = request.internetIp;
this.intranetIp = request.intranetIp;
this.operation = request.operation;
this.pageSize = request.pageSize;
this.ruleName = request.ruleName;
this.startTime = request.startTime;
this.status = request.status;
this.uuid = request.uuid;
}
/**
* <p>The severities of alerts.</p>
*/
public Builder alertLevels(java.util.List<Integer> alertLevels) {
this.putQueryParameter("AlertLevels", alertLevels);
this.alertLevels = alertLevels;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The end timestamp of the query.</p>
*
* <strong>example:</strong>
* <p>1683195595204</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The instance ID of the asset.</p>
*
* <strong>example:</strong>
* <p>i-bp1fu4aqltf1huhc****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>ca_cpm_****</p>
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>120.27.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.putQueryParameter("InternetIp", internetIp);
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>172.26.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.putQueryParameter("IntranetIp", intranetIp);
this.intranetIp = intranetIp;
return this;
}
/**
* <p>Type of operation on a file. eg:</p>
* <ul>
* <li><strong>DELETE</strong>: delete the file.</li>
* <li><strong>WRITE</strong>: write the file.</li>
* <li><strong>READ</strong>: read the file.</li>
* <li><strong>RENAME</strong>: rename the file.</li>
* <li><strong>CHOWN</strong>: set the file owner and file association group operations.</li>
* </ul>
*
* <strong>example:</strong>
* <p>READ</p>
*/
public Builder operation(String operation) {
this.putQueryParameter("Operation", operation);
this.operation = operation;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-rule-1</p>
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
/**
* <p>The start timestamp of the query.</p>
*
* <strong>example:</strong>
* <p>1683080489594</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The status of the event. Valid values:</p>
* <ul>
* <li>0: unhandled</li>
* <li>1: handled</li>
* <li>2: added to the whitelist</li>
* <li>3: ignored</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The UUID of the server.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeCloudCenterInstances~~">DescribeCloudCenterInstances</a> operation to query the UUID of the server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>inet-ecs-4e876cb0-09f7-43b8-82ef-4bc7a937***</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public ListFileProtectEventRequest build() {
return new ListFileProtectEventRequest(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/ListFileProtectEventResponse.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 ListFileProtectEventResponse} extends {@link TeaModel}
*
* <p>ListFileProtectEventResponse</p>
*/
public class ListFileProtectEventResponse 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 ListFileProtectEventResponseBody body;
private ListFileProtectEventResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListFileProtectEventResponse 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 ListFileProtectEventResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListFileProtectEventResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListFileProtectEventResponseBody body);
@Override
ListFileProtectEventResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListFileProtectEventResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListFileProtectEventResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListFileProtectEventResponse 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(ListFileProtectEventResponseBody body) {
this.body = body;
return this;
}
@Override
public ListFileProtectEventResponse build() {
return new ListFileProtectEventResponse(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/ListFileProtectEventResponseBody.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 ListFileProtectEventResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectEventResponseBody</p>
*/
public class ListFileProtectEventResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EventList")
private java.util.List<EventList> eventList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListFileProtectEventResponseBody(Builder builder) {
this.eventList = builder.eventList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectEventResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eventList
*/
public java.util.List<EventList> getEventList() {
return this.eventList;
}
/**
* @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<EventList> eventList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListFileProtectEventResponseBody model) {
this.eventList = model.eventList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The events.</p>
*/
public Builder eventList(java.util.List<EventList> eventList) {
this.eventList = eventList;
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>23AD0BD2-8771-5647-819E-6BA51E212F80</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListFileProtectEventResponseBody build() {
return new ListFileProtectEventResponseBody(this);
}
}
/**
*
* {@link ListFileProtectEventResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectEventResponseBody</p>
*/
public static class EventList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlertLevel")
private Integer alertLevel;
@com.aliyun.core.annotation.NameInMap("CmdLine")
private String cmdLine;
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("HandleTime")
private Long handleTime;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@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("LatestTime")
private Long latestTime;
@com.aliyun.core.annotation.NameInMap("Operation")
private String operation;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("ProcPath")
private String procPath;
@com.aliyun.core.annotation.NameInMap("ProcPermission")
private String procPermission;
@com.aliyun.core.annotation.NameInMap("ProcessId")
private String processId;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private EventList(Builder builder) {
this.alertLevel = builder.alertLevel;
this.cmdLine = builder.cmdLine;
this.filePath = builder.filePath;
this.handleTime = builder.handleTime;
this.id = builder.id;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.latestTime = builder.latestTime;
this.operation = builder.operation;
this.platform = builder.platform;
this.procPath = builder.procPath;
this.procPermission = builder.procPermission;
this.processId = builder.processId;
this.remark = builder.remark;
this.ruleName = builder.ruleName;
this.status = builder.status;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static EventList create() {
return builder().build();
}
/**
* @return alertLevel
*/
public Integer getAlertLevel() {
return this.alertLevel;
}
/**
* @return cmdLine
*/
public String getCmdLine() {
return this.cmdLine;
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return handleTime
*/
public Long getHandleTime() {
return this.handleTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @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 latestTime
*/
public Long getLatestTime() {
return this.latestTime;
}
/**
* @return operation
*/
public String getOperation() {
return this.operation;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return procPath
*/
public String getProcPath() {
return this.procPath;
}
/**
* @return procPermission
*/
public String getProcPermission() {
return this.procPermission;
}
/**
* @return processId
*/
public String getProcessId() {
return this.processId;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Integer alertLevel;
private String cmdLine;
private String filePath;
private Long handleTime;
private Long id;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long latestTime;
private String operation;
private String platform;
private String procPath;
private String procPermission;
private String processId;
private String remark;
private String ruleName;
private Integer status;
private String uuid;
private Builder() {
}
private Builder(EventList model) {
this.alertLevel = model.alertLevel;
this.cmdLine = model.cmdLine;
this.filePath = model.filePath;
this.handleTime = model.handleTime;
this.id = model.id;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.latestTime = model.latestTime;
this.operation = model.operation;
this.platform = model.platform;
this.procPath = model.procPath;
this.procPermission = model.procPermission;
this.processId = model.processId;
this.remark = model.remark;
this.ruleName = model.ruleName;
this.status = model.status;
this.uuid = model.uuid;
}
/**
* <p>The severity of the alert. Valid values:</p>
* <ul>
* <li>0: no alerts</li>
* <li>1: reminder</li>
* <li>2: suspicious</li>
* <li>3: high-risk</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder alertLevel(Integer alertLevel) {
this.alertLevel = alertLevel;
return this;
}
/**
* <p>The command line of the event.</p>
*
* <strong>example:</strong>
* <p>["touch","/test/aaaa"]</p>
*/
public Builder cmdLine(String cmdLine) {
this.cmdLine = cmdLine;
return this;
}
/**
* <p>The path to the file that is managed by the process.</p>
*
* <strong>example:</strong>
* <p>/etc/pam.d/su</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The time when the event was handled.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder handleTime(Long handleTime) {
this.handleTime = handleTime;
return this;
}
/**
* <p>The ID of the event.</p>
*
* <strong>example:</strong>
* <p>161757</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The instance name of the server.</p>
*
* <strong>example:</strong>
* <p>kyy-admin-01</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>121.40.211.194</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.22.5.36</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The time when the event last occurred.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder latestTime(Long latestTime) {
this.latestTime = latestTime;
return this;
}
/**
* <p>The operation performed by the process on the file.</p>
*
* <strong>example:</strong>
* <p>DELETE</p>
*/
public Builder operation(String operation) {
this.operation = operation;
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>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The path to the process.</p>
*
* <strong>example:</strong>
* <p>/usr/bin/sshpass</p>
*/
public Builder procPath(String procPath) {
this.procPath = procPath;
return this;
}
/**
* <p>The permissions required to start the process.</p>
*
* <strong>example:</strong>
* <p>rwxr-xr-x</p>
*/
public Builder procPermission(String procPermission) {
this.procPermission = procPermission;
return this;
}
/**
* <p>The ID of the process.</p>
*
* <strong>example:</strong>
* <p>52636</p>
*/
public Builder processId(String processId) {
this.processId = processId;
return this;
}
/**
* <p>The description.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-rule-1</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the event. Valid values:</p>
* <ul>
* <li>0: unhandled</li>
* <li>1: handled</li>
* <li>2: added to the whitelist</li>
* <li>3: ignored</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the server that is associated with the process.</p>
*
* <strong>example:</strong>
* <p>94b44720-d982-4d20-a4e1-80a1a57b5a8e</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public EventList build() {
return new EventList(this);
}
}
}
/**
*
* {@link ListFileProtectEventResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectEventResponseBody</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>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/ListFileProtectPluginStatusRequest.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 ListFileProtectPluginStatusRequest} extends {@link RequestModel}
*
* <p>ListFileProtectPluginStatusRequest</p>
*/
public class ListFileProtectPluginStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Long currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SwitchId")
private String switchId;
private ListFileProtectPluginStatusRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.switchId = builder.switchId;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectPluginStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Long getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return switchId
*/
public String getSwitchId() {
return this.switchId;
}
public static final class Builder extends Request.Builder<ListFileProtectPluginStatusRequest, Builder> {
private Long currentPage;
private Long pageSize;
private String switchId;
private Builder() {
super();
}
private Builder(ListFileProtectPluginStatusRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.switchId = request.switchId;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Long currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the core file monitoring rule.</p>
*
* <strong>example:</strong>
* <p>FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927</p>
*/
public Builder switchId(String switchId) {
this.putQueryParameter("SwitchId", switchId);
this.switchId = switchId;
return this;
}
@Override
public ListFileProtectPluginStatusRequest build() {
return new ListFileProtectPluginStatusRequest(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/ListFileProtectPluginStatusResponse.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 ListFileProtectPluginStatusResponse} extends {@link TeaModel}
*
* <p>ListFileProtectPluginStatusResponse</p>
*/
public class ListFileProtectPluginStatusResponse 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 ListFileProtectPluginStatusResponseBody body;
private ListFileProtectPluginStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListFileProtectPluginStatusResponse 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 ListFileProtectPluginStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListFileProtectPluginStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListFileProtectPluginStatusResponseBody body);
@Override
ListFileProtectPluginStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListFileProtectPluginStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListFileProtectPluginStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListFileProtectPluginStatusResponse 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(ListFileProtectPluginStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public ListFileProtectPluginStatusResponse build() {
return new ListFileProtectPluginStatusResponse(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/ListFileProtectPluginStatusResponseBody.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 ListFileProtectPluginStatusResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectPluginStatusResponseBody</p>
*/
public class ListFileProtectPluginStatusResponseBody 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 ListFileProtectPluginStatusResponseBody(Builder builder) {
this.data = builder.data;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectPluginStatusResponseBody 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(ListFileProtectPluginStatusResponseBody model) {
this.data = model.data;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The data returned if the call is successful.</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>60F289EC-BAA3-5DF1-8476-B3F05A14EBC2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListFileProtectPluginStatusResponseBody build() {
return new ListFileProtectPluginStatusResponseBody(this);
}
}
/**
*
* {@link ListFileProtectPluginStatusResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectPluginStatusResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClientVersion")
private String clientVersion;
@com.aliyun.core.annotation.NameInMap("InstallCode")
private String installCode;
@com.aliyun.core.annotation.NameInMap("InstallMessage")
private String installMessage;
@com.aliyun.core.annotation.NameInMap("Installed")
private Boolean installed;
@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("Online")
private Boolean online;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("SupportFile")
private Boolean supportFile;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Data(Builder builder) {
this.clientVersion = builder.clientVersion;
this.installCode = builder.installCode;
this.installMessage = builder.installMessage;
this.installed = builder.installed;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.online = builder.online;
this.platform = builder.platform;
this.supportFile = builder.supportFile;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return clientVersion
*/
public String getClientVersion() {
return this.clientVersion;
}
/**
* @return installCode
*/
public String getInstallCode() {
return this.installCode;
}
/**
* @return installMessage
*/
public String getInstallMessage() {
return this.installMessage;
}
/**
* @return installed
*/
public Boolean getInstalled() {
return this.installed;
}
/**
* @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 online
*/
public Boolean getOnline() {
return this.online;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return supportFile
*/
public Boolean getSupportFile() {
return this.supportFile;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String clientVersion;
private String installCode;
private String installMessage;
private Boolean installed;
private String instanceName;
private String internetIp;
private String intranetIp;
private Boolean online;
private String platform;
private Boolean supportFile;
private String uuid;
private Builder() {
}
private Builder(Data model) {
this.clientVersion = model.clientVersion;
this.installCode = model.installCode;
this.installMessage = model.installMessage;
this.installed = model.installed;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.online = model.online;
this.platform = model.platform;
this.supportFile = model.supportFile;
this.uuid = model.uuid;
}
/**
* <p>The version of the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>00_41</p>
*/
public Builder clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* <p>The returned code after you install the Security Center agent. Valid values:</p>
* <ol>
* <li>0: The installation is successful.</li>
* <li>-2: The kernel does not support the installation.</li>
* </ol>
*
* <strong>example:</strong>
* <p>-2</p>
*/
public Builder installCode(String installCode) {
this.installCode = installCode;
return this;
}
/**
* <p>The returned message after you install the Security Center agent.</p>
*
* <strong>example:</strong>
* <p>driver file not exist</p>
*/
public Builder installMessage(String installMessage) {
this.installMessage = installMessage;
return this;
}
/**
* <p>Indicates whether the Security Center agent is installed.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder installed(Boolean installed) {
this.installed = installed;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>i-wz92q7m5hsbgfhdss***</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address that is associated with the 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 that is associated with the instance.</p>
*
* <strong>example:</strong>
* <p>10.42.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>Indicates whether the Security Center agent is online. Valid value:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder online(Boolean online) {
this.online = online;
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>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>Indicates whether the core file monitoring file is supported.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder supportFile(Boolean supportFile) {
this.supportFile = supportFile;
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);
}
}
}
/**
*
* {@link ListFileProtectPluginStatusResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectPluginStatusResponseBody</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>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/ListFileProtectRuleRequest.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 ListFileProtectRuleRequest} extends {@link RequestModel}
*
* <p>ListFileProtectRuleRequest</p>
*/
public class ListFileProtectRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AlertLevel")
private Integer alertLevel;
@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")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleAction")
private String ruleAction;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
private ListFileProtectRuleRequest(Builder builder) {
super(builder);
this.alertLevel = builder.alertLevel;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.platform = builder.platform;
this.ruleAction = builder.ruleAction;
this.ruleName = builder.ruleName;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return alertLevel
*/
public Integer getAlertLevel() {
return this.alertLevel;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return ruleAction
*/
public String getRuleAction() {
return this.ruleAction;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
public static final class Builder extends Request.Builder<ListFileProtectRuleRequest, Builder> {
private Integer alertLevel;
private Integer currentPage;
private Integer pageSize;
private String platform;
private String ruleAction;
private String ruleName;
private Builder() {
super();
}
private Builder(ListFileProtectRuleRequest request) {
super(request);
this.alertLevel = request.alertLevel;
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.platform = request.platform;
this.ruleAction = request.ruleAction;
this.ruleName = request.ruleName;
}
/**
* <p>The severity of alerts. Valid values:</p>
* <ul>
* <li>0: does not generate alerts</li>
* <li>1: sends notifications</li>
* <li>2: suspicious</li>
* <li>3: high-risk</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder alertLevel(Integer alertLevel) {
this.putQueryParameter("AlertLevel", alertLevel);
this.alertLevel = alertLevel;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.putQueryParameter("Platform", platform);
this.platform = platform;
return this;
}
/**
* <p>The handling method of the rule. Valid values:</p>
* <ul>
* <li>pass: allow</li>
* <li>alert</li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder ruleAction(String ruleAction) {
this.putQueryParameter("RuleAction", ruleAction);
this.ruleAction = ruleAction;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test-rule-1</p>
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
@Override
public ListFileProtectRuleRequest build() {
return new ListFileProtectRuleRequest(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/ListFileProtectRuleResponse.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 ListFileProtectRuleResponse} extends {@link TeaModel}
*
* <p>ListFileProtectRuleResponse</p>
*/
public class ListFileProtectRuleResponse 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 ListFileProtectRuleResponseBody body;
private ListFileProtectRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListFileProtectRuleResponse 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 ListFileProtectRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListFileProtectRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListFileProtectRuleResponseBody body);
@Override
ListFileProtectRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListFileProtectRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListFileProtectRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListFileProtectRuleResponse 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(ListFileProtectRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public ListFileProtectRuleResponse build() {
return new ListFileProtectRuleResponse(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/ListFileProtectRuleResponseBody.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 ListFileProtectRuleResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectRuleResponseBody</p>
*/
public class ListFileProtectRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileProtectList")
private java.util.List<FileProtectList> fileProtectList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListFileProtectRuleResponseBody(Builder builder) {
this.fileProtectList = builder.fileProtectList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListFileProtectRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fileProtectList
*/
public java.util.List<FileProtectList> getFileProtectList() {
return this.fileProtectList;
}
/**
* @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<FileProtectList> fileProtectList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListFileProtectRuleResponseBody model) {
this.fileProtectList = model.fileProtectList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The details of returned data.</p>
*/
public Builder fileProtectList(java.util.List<FileProtectList> fileProtectList) {
this.fileProtectList = fileProtectList;
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>FBBEB173-1F43-505F-A876-C03ECDF6CE4C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListFileProtectRuleResponseBody build() {
return new ListFileProtectRuleResponseBody(this);
}
}
/**
*
* {@link ListFileProtectRuleResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectRuleResponseBody</p>
*/
public static class FileProtectList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("AlertLevel")
private String alertLevel;
@com.aliyun.core.annotation.NameInMap("EffectInstanceCount")
private Long effectInstanceCount;
@com.aliyun.core.annotation.NameInMap("FileOps")
private java.util.List<String> fileOps;
@com.aliyun.core.annotation.NameInMap("FilePaths")
private java.util.List<String> filePaths;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Platform")
private String platform;
@com.aliyun.core.annotation.NameInMap("ProcPaths")
private java.util.List<String> procPaths;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("SwitchId")
private String switchId;
private FileProtectList(Builder builder) {
this.action = builder.action;
this.alertLevel = builder.alertLevel;
this.effectInstanceCount = builder.effectInstanceCount;
this.fileOps = builder.fileOps;
this.filePaths = builder.filePaths;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.id = builder.id;
this.platform = builder.platform;
this.procPaths = builder.procPaths;
this.ruleName = builder.ruleName;
this.status = builder.status;
this.switchId = builder.switchId;
}
public static Builder builder() {
return new Builder();
}
public static FileProtectList create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return alertLevel
*/
public String getAlertLevel() {
return this.alertLevel;
}
/**
* @return effectInstanceCount
*/
public Long getEffectInstanceCount() {
return this.effectInstanceCount;
}
/**
* @return fileOps
*/
public java.util.List<String> getFileOps() {
return this.fileOps;
}
/**
* @return filePaths
*/
public java.util.List<String> getFilePaths() {
return this.filePaths;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return platform
*/
public String getPlatform() {
return this.platform;
}
/**
* @return procPaths
*/
public java.util.List<String> getProcPaths() {
return this.procPaths;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return switchId
*/
public String getSwitchId() {
return this.switchId;
}
public static final class Builder {
private String action;
private String alertLevel;
private Long effectInstanceCount;
private java.util.List<String> fileOps;
private java.util.List<String> filePaths;
private Long gmtCreate;
private Long gmtModified;
private Long id;
private String platform;
private java.util.List<String> procPaths;
private String ruleName;
private Integer status;
private String switchId;
private Builder() {
}
private Builder(FileProtectList model) {
this.action = model.action;
this.alertLevel = model.alertLevel;
this.effectInstanceCount = model.effectInstanceCount;
this.fileOps = model.fileOps;
this.filePaths = model.filePaths;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.id = model.id;
this.platform = model.platform;
this.procPaths = model.procPaths;
this.ruleName = model.ruleName;
this.status = model.status;
this.switchId = model.switchId;
}
/**
* <p>The handling method of the rule. Valid values:</p>
* <ul>
* <li>pass: allow</li>
* <li>alert</li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The severity of alerts. Valid values:</p>
* <ul>
* <li>0: does not generate alerts</li>
* <li>1: sends notifications</li>
* <li>2: suspicious</li>
* <li>3: high-risk</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder alertLevel(String alertLevel) {
this.alertLevel = alertLevel;
return this;
}
/**
* <p>The total number of affected assets.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder effectInstanceCount(Long effectInstanceCount) {
this.effectInstanceCount = effectInstanceCount;
return this;
}
/**
* <p>The operations performed on the files.</p>
*/
public Builder fileOps(java.util.List<String> fileOps) {
this.fileOps = fileOps;
return this;
}
/**
* <p>The paths to the monitored files. Wildcard characters are supported.</p>
*/
public Builder filePaths(java.util.List<String> filePaths) {
this.filePaths = filePaths;
return this;
}
/**
* <p>The time when the rule was created.</p>
*
* <strong>example:</strong>
* <p>1682304179000</p>
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The time when the rule was last modified.</p>
*
* <strong>example:</strong>
* <p>1682304179000</p>
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>1412511</p>
*/
public Builder id(Long id) {
this.id = id;
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>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder platform(String platform) {
this.platform = platform;
return this;
}
/**
* <p>The paths to the monitored processes. Wildcard characters are supported.</p>
*/
public Builder procPaths(java.util.List<String> procPaths) {
this.procPaths = procPaths;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test11</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the rule. Valid values:</p>
* <ul>
* <li>0: disabled</li>
* <li>1: enabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The switch ID of the rule.</p>
*
* <strong>example:</strong>
* <p>FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927</p>
*/
public Builder switchId(String switchId) {
this.switchId = switchId;
return this;
}
public FileProtectList build() {
return new FileProtectList(this);
}
}
}
/**
*
* {@link ListFileProtectRuleResponseBody} extends {@link TeaModel}
*
* <p>ListFileProtectRuleResponseBody</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>253</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/ListGroupsRequest.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 ListGroupsRequest} extends {@link RequestModel}
*
* <p>ListGroupsRequest</p>
*/
public class ListGroupsRequest 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("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UseNextToken")
private Boolean useNextToken;
private ListGroupsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.nextToken = builder.nextToken;
this.pageSize = builder.pageSize;
this.useNextToken = builder.useNextToken;
}
public static Builder builder() {
return new Builder();
}
public static ListGroupsRequest 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 nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return useNextToken
*/
public Boolean getUseNextToken() {
return this.useNextToken;
}
public static final class Builder extends Request.Builder<ListGroupsRequest, Builder> {
private Integer currentPage;
private String lang;
private String nextToken;
private Integer pageSize;
private Boolean useNextToken;
private Builder() {
super();
}
private Builder(ListGroupsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.nextToken = request.nextToken;
this.pageSize = request.pageSize;
this.useNextToken = request.useNextToken;
}
/**
* <p>The page number. Pages start from page 1. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>89</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 pagination token that is used in the next request to retrieve a new page of results. If the return value of NextToken is empty, no next query is to be sent. If a value of NextToken is returned, the value indicates the token that is used for the next query.</p>
*
* <strong>example:</strong>
* <p>1426C575705AE8545E8360A6EFA3B***</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The number of entries per page. Default value: 20. Maximum value: 2000.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>Specifies whether to use NextToken to query vulnerabilities. If you set this parameter to true, TotalCount is not returned. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder useNextToken(Boolean useNextToken) {
this.putQueryParameter("UseNextToken", useNextToken);
this.useNextToken = useNextToken;
return this;
}
@Override
public ListGroupsRequest build() {
return new ListGroupsRequest(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/ListGroupsResponse.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 ListGroupsResponse} extends {@link TeaModel}
*
* <p>ListGroupsResponse</p>
*/
public class ListGroupsResponse 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 ListGroupsResponseBody body;
private ListGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListGroupsResponse 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 ListGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListGroupsResponseBody body);
@Override
ListGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListGroupsResponse 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(ListGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListGroupsResponse build() {
return new ListGroupsResponse(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/ListGroupsResponseBody.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 ListGroupsResponseBody} extends {@link TeaModel}
*
* <p>ListGroupsResponseBody</p>
*/
public class ListGroupsResponseBody 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 ListGroupsResponseBody(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 ListGroupsResponseBody 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(ListGroupsResponseBody 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 status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The groups.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The error 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>CB414DB5-F692-5DAB-9F0F-975C060AF***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether exceptions are handled. 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 ListGroupsResponseBody build() {
return new ListGroupsResponseBody(this);
}
}
/**
*
* {@link ListGroupsResponseBody} extends {@link TeaModel}
*
* <p>ListGroupsResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GroupFlag")
private Integer groupFlag;
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
private List(Builder builder) {
this.groupFlag = builder.groupFlag;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return groupFlag
*/
public Integer getGroupFlag() {
return this.groupFlag;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
public static final class Builder {
private Integer groupFlag;
private Long groupId;
private String groupName;
private Builder() {
}
private Builder(List model) {
this.groupFlag = model.groupFlag;
this.groupId = model.groupId;
this.groupName = model.groupName;
}
/**
* <p>The server group type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: default group</li>
* <li><strong>1</strong>: other group</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder groupFlag(Integer groupFlag) {
this.groupFlag = groupFlag;
return this;
}
/**
* <p>The server group ID.</p>
*
* <strong>example:</strong>
* <p>11028542</p>
*/
public Builder groupId(Long groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The server group name.</p>
*
* <strong>example:</strong>
* <p>cn-shenzhen+dir-1440978***</p>
*/
public Builder groupName(String groupName) {
this.groupName = groupName;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListGroupsResponseBody} extends {@link TeaModel}
*
* <p>ListGroupsResponseBody</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("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.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 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 nextToken;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
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>4</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>A pagination token. It can be used in the next request to retrieve a new page of results.</p>
*
* <strong>example:</strong>
* <p>B604532DEF982B875E8360A6EFA3B***</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
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>202</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/ListHoneypotAlarmEventsRequest.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 ListHoneypotAlarmEventsRequest} extends {@link RequestModel}
*
* <p>ListHoneypotAlarmEventsRequest</p>
*/
public class ListHoneypotAlarmEventsRequest 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("Dealed")
private String dealed;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DstIp")
private String dstIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@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("SrcIp")
private String srcIp;
private ListHoneypotAlarmEventsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.dealed = builder.dealed;
this.dstIp = builder.dstIp;
this.pageSize = builder.pageSize;
this.riskLevelList = builder.riskLevelList;
this.srcIp = builder.srcIp;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotAlarmEventsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dealed
*/
public String getDealed() {
return this.dealed;
}
/**
* @return dstIp
*/
public String getDstIp() {
return this.dstIp;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
public static final class Builder extends Request.Builder<ListHoneypotAlarmEventsRequest, Builder> {
private Integer currentPage;
private String dealed;
private String dstIp;
private Integer pageSize;
private java.util.List<String> riskLevelList;
private String srcIp;
private Builder() {
super();
}
private Builder(ListHoneypotAlarmEventsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.dealed = request.dealed;
this.dstIp = request.dstIp;
this.pageSize = request.pageSize;
this.riskLevelList = request.riskLevelList;
this.srcIp = request.srcIp;
}
/**
* CurrentPage.
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* Dealed.
*/
public Builder dealed(String dealed) {
this.putQueryParameter("Dealed", dealed);
this.dealed = dealed;
return this;
}
/**
* DstIp.
*/
public Builder dstIp(String dstIp) {
this.putQueryParameter("DstIp", dstIp);
this.dstIp = dstIp;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* RiskLevelList.
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putQueryParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* SrcIp.
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
@Override
public ListHoneypotAlarmEventsRequest build() {
return new ListHoneypotAlarmEventsRequest(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/ListHoneypotAlarmEventsResponse.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 ListHoneypotAlarmEventsResponse} extends {@link TeaModel}
*
* <p>ListHoneypotAlarmEventsResponse</p>
*/
public class ListHoneypotAlarmEventsResponse 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 ListHoneypotAlarmEventsResponseBody body;
private ListHoneypotAlarmEventsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotAlarmEventsResponse 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 ListHoneypotAlarmEventsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotAlarmEventsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotAlarmEventsResponseBody body);
@Override
ListHoneypotAlarmEventsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotAlarmEventsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotAlarmEventsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotAlarmEventsResponse 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(ListHoneypotAlarmEventsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotAlarmEventsResponse build() {
return new ListHoneypotAlarmEventsResponse(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/ListHoneypotAlarmEventsResponseBody.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 ListHoneypotAlarmEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAlarmEventsResponseBody</p>
*/
public class ListHoneypotAlarmEventsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HoneypotAlarmEvents")
private java.util.List<HoneypotAlarmEvents> honeypotAlarmEvents;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListHoneypotAlarmEventsResponseBody(Builder builder) {
this.honeypotAlarmEvents = builder.honeypotAlarmEvents;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotAlarmEventsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return honeypotAlarmEvents
*/
public java.util.List<HoneypotAlarmEvents> getHoneypotAlarmEvents() {
return this.honeypotAlarmEvents;
}
/**
* @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<HoneypotAlarmEvents> honeypotAlarmEvents;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListHoneypotAlarmEventsResponseBody model) {
this.honeypotAlarmEvents = model.honeypotAlarmEvents;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The alert events.</p>
*/
public Builder honeypotAlarmEvents(java.util.List<HoneypotAlarmEvents> honeypotAlarmEvents) {
this.honeypotAlarmEvents = honeypotAlarmEvents;
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>513C9554-55A4-5504-B7C4-6E17EB4FC7A3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListHoneypotAlarmEventsResponseBody build() {
return new ListHoneypotAlarmEventsResponseBody(this);
}
}
/**
*
* {@link ListHoneypotAlarmEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAlarmEventsResponseBody</p>
*/
public static class MergeFieldList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FieldExtInfo")
private String fieldExtInfo;
@com.aliyun.core.annotation.NameInMap("FieldKey")
private String fieldKey;
@com.aliyun.core.annotation.NameInMap("FieldType")
private String fieldType;
@com.aliyun.core.annotation.NameInMap("FieldValue")
private String fieldValue;
private MergeFieldList(Builder builder) {
this.fieldExtInfo = builder.fieldExtInfo;
this.fieldKey = builder.fieldKey;
this.fieldType = builder.fieldType;
this.fieldValue = builder.fieldValue;
}
public static Builder builder() {
return new Builder();
}
public static MergeFieldList create() {
return builder().build();
}
/**
* @return fieldExtInfo
*/
public String getFieldExtInfo() {
return this.fieldExtInfo;
}
/**
* @return fieldKey
*/
public String getFieldKey() {
return this.fieldKey;
}
/**
* @return fieldType
*/
public String getFieldType() {
return this.fieldType;
}
/**
* @return fieldValue
*/
public String getFieldValue() {
return this.fieldValue;
}
public static final class Builder {
private String fieldExtInfo;
private String fieldKey;
private String fieldType;
private String fieldValue;
private Builder() {
}
private Builder(MergeFieldList model) {
this.fieldExtInfo = model.fieldExtInfo;
this.fieldKey = model.fieldKey;
this.fieldType = model.fieldType;
this.fieldValue = model.fieldValue;
}
/**
* <p>The extended value that corresponds to the field key.</p>
*
* <strong>example:</strong>
* <p>dest_ip_ext</p>
*/
public Builder fieldExtInfo(String fieldExtInfo) {
this.fieldExtInfo = fieldExtInfo;
return this;
}
/**
* <p>The key of the field.</p>
*
* <strong>example:</strong>
* <p>dest_ip_count</p>
*/
public Builder fieldKey(String fieldKey) {
this.fieldKey = fieldKey;
return this;
}
/**
* <p>The type of the field. You can ignore this internal parameter.</p>
*
* <strong>example:</strong>
* <p>level1_item3</p>
*/
public Builder fieldType(String fieldType) {
this.fieldType = fieldType;
return this;
}
/**
* <p>The value that corresponds to the field key.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder fieldValue(String fieldValue) {
this.fieldValue = fieldValue;
return this;
}
public MergeFieldList build() {
return new MergeFieldList(this);
}
}
}
/**
*
* {@link ListHoneypotAlarmEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAlarmEventsResponseBody</p>
*/
public static class HoneypotAlarmEvents extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlarmEventId")
private Long alarmEventId;
@com.aliyun.core.annotation.NameInMap("AlarmEventName")
private String alarmEventName;
@com.aliyun.core.annotation.NameInMap("AlarmEventType")
private String alarmEventType;
@com.aliyun.core.annotation.NameInMap("AlarmUniqueInfo")
private String alarmUniqueInfo;
@com.aliyun.core.annotation.NameInMap("EventCount")
private Integer eventCount;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("MergeFieldList")
private java.util.List<MergeFieldList> mergeFieldList;
@com.aliyun.core.annotation.NameInMap("OperateStatus")
private Integer operateStatus;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
private HoneypotAlarmEvents(Builder builder) {
this.alarmEventId = builder.alarmEventId;
this.alarmEventName = builder.alarmEventName;
this.alarmEventType = builder.alarmEventType;
this.alarmUniqueInfo = builder.alarmUniqueInfo;
this.eventCount = builder.eventCount;
this.firstTime = builder.firstTime;
this.lastTime = builder.lastTime;
this.mergeFieldList = builder.mergeFieldList;
this.operateStatus = builder.operateStatus;
this.riskLevel = builder.riskLevel;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotAlarmEvents create() {
return builder().build();
}
/**
* @return alarmEventId
*/
public Long getAlarmEventId() {
return this.alarmEventId;
}
/**
* @return alarmEventName
*/
public String getAlarmEventName() {
return this.alarmEventName;
}
/**
* @return alarmEventType
*/
public String getAlarmEventType() {
return this.alarmEventType;
}
/**
* @return alarmUniqueInfo
*/
public String getAlarmUniqueInfo() {
return this.alarmUniqueInfo;
}
/**
* @return eventCount
*/
public Integer getEventCount() {
return this.eventCount;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return mergeFieldList
*/
public java.util.List<MergeFieldList> getMergeFieldList() {
return this.mergeFieldList;
}
/**
* @return operateStatus
*/
public Integer getOperateStatus() {
return this.operateStatus;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
public static final class Builder {
private Long alarmEventId;
private String alarmEventName;
private String alarmEventType;
private String alarmUniqueInfo;
private Integer eventCount;
private Long firstTime;
private Long lastTime;
private java.util.List<MergeFieldList> mergeFieldList;
private Integer operateStatus;
private String riskLevel;
private Builder() {
}
private Builder(HoneypotAlarmEvents model) {
this.alarmEventId = model.alarmEventId;
this.alarmEventName = model.alarmEventName;
this.alarmEventType = model.alarmEventType;
this.alarmUniqueInfo = model.alarmUniqueInfo;
this.eventCount = model.eventCount;
this.firstTime = model.firstTime;
this.lastTime = model.lastTime;
this.mergeFieldList = model.mergeFieldList;
this.operateStatus = model.operateStatus;
this.riskLevel = model.riskLevel;
}
/**
* <p>The event ID.</p>
*
* <strong>example:</strong>
* <p>940272</p>
*/
public Builder alarmEventId(Long alarmEventId) {
this.alarmEventId = alarmEventId;
return this;
}
/**
* <p>The name of the alert event.</p>
*
* <strong>example:</strong>
* <p>Attack Honeypot</p>
*/
public Builder alarmEventName(String alarmEventName) {
this.alarmEventName = alarmEventName;
return this;
}
/**
* <p>The type of the alert event.</p>
*
* <strong>example:</strong>
* <p>Initial Access</p>
*/
public Builder alarmEventType(String alarmEventType) {
this.alarmEventType = alarmEventType;
return this;
}
/**
* <p>The unique identifier of the alert event.</p>
*
* <strong>example:</strong>
* <p>167e6fc0d931917d2059efcd1d00f6ab</p>
*/
public Builder alarmUniqueInfo(String alarmUniqueInfo) {
this.alarmUniqueInfo = alarmUniqueInfo;
return this;
}
/**
* <p>The total number of times that the alert event was generated.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder eventCount(Integer eventCount) {
this.eventCount = eventCount;
return this;
}
/**
* <p>The timestamp that indicates the time when the alert event was first detected. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1658193602000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>The timestamp that indicates the time when the alert event was last detected. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1660610772000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The risk information.</p>
*/
public Builder mergeFieldList(java.util.List<MergeFieldList> mergeFieldList) {
this.mergeFieldList = mergeFieldList;
return this;
}
/**
* <p>The handling status of the alert event. Valid values:</p>
* <ul>
* <li><strong>1</strong>: pending</li>
* <li><strong>2</strong>: ignored</li>
* <li><strong>4</strong>: confirmed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder operateStatus(Integer operateStatus) {
this.operateStatus = operateStatus;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>2</strong>: low</li>
* <li><strong>3</strong>: medium</li>
* <li><strong>4</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
public HoneypotAlarmEvents build() {
return new HoneypotAlarmEvents(this);
}
}
}
/**
*
* {@link ListHoneypotAlarmEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAlarmEventsResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: 100.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/ListHoneypotAttackerPortraitRequest.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 ListHoneypotAttackerPortraitRequest} extends {@link RequestModel}
*
* <p>ListHoneypotAttackerPortraitRequest</p>
*/
public class ListHoneypotAttackerPortraitRequest 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("EndTimeStamp")
private Long endTimeStamp;
@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("SrcIp")
private String srcIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimeStamp")
private Long startTimeStamp;
private ListHoneypotAttackerPortraitRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.endTimeStamp = builder.endTimeStamp;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.srcIp = builder.srcIp;
this.startTimeStamp = builder.startTimeStamp;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotAttackerPortraitRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
/**
* @return startTimeStamp
*/
public Long getStartTimeStamp() {
return this.startTimeStamp;
}
public static final class Builder extends Request.Builder<ListHoneypotAttackerPortraitRequest, Builder> {
private Integer currentPage;
private Long endTimeStamp;
private String lang;
private Integer pageSize;
private String srcIp;
private Long startTimeStamp;
private Builder() {
super();
}
private Builder(ListHoneypotAttackerPortraitRequest request) {
super(request);
this.currentPage = request.currentPage;
this.endTimeStamp = request.endTimeStamp;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.srcIp = request.srcIp;
this.startTimeStamp = request.startTimeStamp;
}
/**
* <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 end of the time range to query. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1672285044000</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.putQueryParameter("EndTimeStamp", endTimeStamp);
this.endTimeStamp = endTimeStamp;
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 source IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>101.133.155.***</p>
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
/**
* <p>The beginning of the time range to query. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1672249044000</p>
*/
public Builder startTimeStamp(Long startTimeStamp) {
this.putQueryParameter("StartTimeStamp", startTimeStamp);
this.startTimeStamp = startTimeStamp;
return this;
}
@Override
public ListHoneypotAttackerPortraitRequest build() {
return new ListHoneypotAttackerPortraitRequest(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/ListHoneypotAttackerPortraitResponse.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 ListHoneypotAttackerPortraitResponse} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerPortraitResponse</p>
*/
public class ListHoneypotAttackerPortraitResponse 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 ListHoneypotAttackerPortraitResponseBody body;
private ListHoneypotAttackerPortraitResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotAttackerPortraitResponse 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 ListHoneypotAttackerPortraitResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotAttackerPortraitResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotAttackerPortraitResponseBody body);
@Override
ListHoneypotAttackerPortraitResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotAttackerPortraitResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotAttackerPortraitResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotAttackerPortraitResponse 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(ListHoneypotAttackerPortraitResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotAttackerPortraitResponse build() {
return new ListHoneypotAttackerPortraitResponse(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/ListHoneypotAttackerPortraitResponseBody.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 ListHoneypotAttackerPortraitResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerPortraitResponseBody</p>
*/
public class ListHoneypotAttackerPortraitResponseBody 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 ListHoneypotAttackerPortraitResponseBody(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 ListHoneypotAttackerPortraitResponseBody 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(ListHoneypotAttackerPortraitResponseBody 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 status code that is returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The HTTP status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The details of the attacker profile.</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>8A5A2DA6-67EA-5968-960F-6B20FD0C*****</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 ListHoneypotAttackerPortraitResponseBody build() {
return new ListHoneypotAttackerPortraitResponseBody(this);
}
}
/**
*
* {@link ListHoneypotAttackerPortraitResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerPortraitResponseBody</p>
*/
public static class Network extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExternalIp")
private java.util.List<String> externalIp;
@com.aliyun.core.annotation.NameInMap("InternalIp")
private java.util.List<String> internalIp;
@com.aliyun.core.annotation.NameInMap("RealIp")
private java.util.List<String> realIp;
private Network(Builder builder) {
this.externalIp = builder.externalIp;
this.internalIp = builder.internalIp;
this.realIp = builder.realIp;
}
public static Builder builder() {
return new Builder();
}
public static Network create() {
return builder().build();
}
/**
* @return externalIp
*/
public java.util.List<String> getExternalIp() {
return this.externalIp;
}
/**
* @return internalIp
*/
public java.util.List<String> getInternalIp() {
return this.internalIp;
}
/**
* @return realIp
*/
public java.util.List<String> getRealIp() {
return this.realIp;
}
public static final class Builder {
private java.util.List<String> externalIp;
private java.util.List<String> internalIp;
private java.util.List<String> realIp;
private Builder() {
}
private Builder(Network model) {
this.externalIp = model.externalIp;
this.internalIp = model.internalIp;
this.realIp = model.realIp;
}
/**
* <p>The public IP addresses.</p>
*/
public Builder externalIp(java.util.List<String> externalIp) {
this.externalIp = externalIp;
return this;
}
/**
* <p>The private IP addresses.</p>
*/
public Builder internalIp(java.util.List<String> internalIp) {
this.internalIp = internalIp;
return this;
}
/**
* <p>The originating IP addresses.</p>
*/
public Builder realIp(java.util.List<String> realIp) {
this.realIp = realIp;
return this;
}
public Network build() {
return new Network(this);
}
}
}
/**
*
* {@link ListHoneypotAttackerPortraitResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerPortraitResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackCount")
private Integer attackCount;
@com.aliyun.core.annotation.NameInMap("Browser")
private java.util.List<String> browser;
@com.aliyun.core.annotation.NameInMap("Host")
private java.util.List<String> host;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("Network")
private Network network;
@com.aliyun.core.annotation.NameInMap("PortraitId")
private String portraitId;
@com.aliyun.core.annotation.NameInMap("Social")
private java.util.List<String> social;
private List(Builder builder) {
this.attackCount = builder.attackCount;
this.browser = builder.browser;
this.host = builder.host;
this.lastTime = builder.lastTime;
this.network = builder.network;
this.portraitId = builder.portraitId;
this.social = builder.social;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return attackCount
*/
public Integer getAttackCount() {
return this.attackCount;
}
/**
* @return browser
*/
public java.util.List<String> getBrowser() {
return this.browser;
}
/**
* @return host
*/
public java.util.List<String> getHost() {
return this.host;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return network
*/
public Network getNetwork() {
return this.network;
}
/**
* @return portraitId
*/
public String getPortraitId() {
return this.portraitId;
}
/**
* @return social
*/
public java.util.List<String> getSocial() {
return this.social;
}
public static final class Builder {
private Integer attackCount;
private java.util.List<String> browser;
private java.util.List<String> host;
private Long lastTime;
private Network network;
private String portraitId;
private java.util.List<String> social;
private Builder() {
}
private Builder(List model) {
this.attackCount = model.attackCount;
this.browser = model.browser;
this.host = model.host;
this.lastTime = model.lastTime;
this.network = model.network;
this.portraitId = model.portraitId;
this.social = model.social;
}
/**
* <p>The number of attacks.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder attackCount(Integer attackCount) {
this.attackCount = attackCount;
return this;
}
/**
* <p>The information about the browsers of the attack source.</p>
*/
public Builder browser(java.util.List<String> browser) {
this.browser = browser;
return this;
}
/**
* <p>The information about the hosts of the attack source.</p>
*/
public Builder host(java.util.List<String> host) {
this.host = host;
return this;
}
/**
* <p>The timestamp at which the attack was last detected. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1679896965</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The network information about the attack source.</p>
*/
public Builder network(Network network) {
this.network = network;
return this;
}
/**
* <p>The attacker profile ID.</p>
*
* <strong>example:</strong>
* <p>cd48604a-1694-4f03-ade0-ec6994c3****</p>
*/
public Builder portraitId(String portraitId) {
this.portraitId = portraitId;
return this;
}
/**
* <p>The social information about the attack source.</p>
*/
public Builder social(java.util.List<String> social) {
this.social = social;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListHoneypotAttackerPortraitResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerPortraitResponseBody</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>11</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>25</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/ListHoneypotAttackerSourceRequest.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 ListHoneypotAttackerSourceRequest} extends {@link RequestModel}
*
* <p>ListHoneypotAttackerSourceRequest</p>
*/
public class ListHoneypotAttackerSourceRequest 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("EndTimeStamp")
private Long endTimeStamp;
@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("RiskLevelList")
private java.util.List<String> riskLevelList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcIp")
private String srcIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimeStamp")
private Long startTimeStamp;
private ListHoneypotAttackerSourceRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.endTimeStamp = builder.endTimeStamp;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.riskLevelList = builder.riskLevelList;
this.srcIp = builder.srcIp;
this.startTimeStamp = builder.startTimeStamp;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotAttackerSourceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
/**
* @return startTimeStamp
*/
public Long getStartTimeStamp() {
return this.startTimeStamp;
}
public static final class Builder extends Request.Builder<ListHoneypotAttackerSourceRequest, Builder> {
private Integer currentPage;
private Long endTimeStamp;
private String lang;
private Integer pageSize;
private java.util.List<String> riskLevelList;
private String srcIp;
private Long startTimeStamp;
private Builder() {
super();
}
private Builder(ListHoneypotAttackerSourceRequest request) {
super(request);
this.currentPage = request.currentPage;
this.endTimeStamp = request.endTimeStamp;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.riskLevelList = request.riskLevelList;
this.srcIp = request.srcIp;
this.startTimeStamp = request.startTimeStamp;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The end of the time range to query. This value is a timestamp.</p>
*
* <strong>example:</strong>
* <p>1676945366221</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.putQueryParameter("EndTimeStamp", endTimeStamp);
this.endTimeStamp = endTimeStamp;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>An array that consists of risk levels.</p>
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putQueryParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* <p>The source IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>175.136.230.***</p>
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
/**
* <p>The beginning of the time range to query. This value is a timestamp.</p>
*
* <strong>example:</strong>
* <p>1674007632124</p>
*/
public Builder startTimeStamp(Long startTimeStamp) {
this.putQueryParameter("StartTimeStamp", startTimeStamp);
this.startTimeStamp = startTimeStamp;
return this;
}
@Override
public ListHoneypotAttackerSourceRequest build() {
return new ListHoneypotAttackerSourceRequest(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/ListHoneypotAttackerSourceResponse.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 ListHoneypotAttackerSourceResponse} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerSourceResponse</p>
*/
public class ListHoneypotAttackerSourceResponse 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 ListHoneypotAttackerSourceResponseBody body;
private ListHoneypotAttackerSourceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotAttackerSourceResponse 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 ListHoneypotAttackerSourceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotAttackerSourceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotAttackerSourceResponseBody body);
@Override
ListHoneypotAttackerSourceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotAttackerSourceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotAttackerSourceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotAttackerSourceResponse 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(ListHoneypotAttackerSourceResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotAttackerSourceResponse build() {
return new ListHoneypotAttackerSourceResponse(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/ListHoneypotAttackerSourceResponseBody.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 ListHoneypotAttackerSourceResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerSourceResponseBody</p>
*/
public class ListHoneypotAttackerSourceResponseBody 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 ListHoneypotAttackerSourceResponseBody(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 ListHoneypotAttackerSourceResponseBody 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(ListHoneypotAttackerSourceResponseBody 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 source IP addresses of the attack.</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>9915DC4D-B4DA-5140-8138-FD80636*****</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 ListHoneypotAttackerSourceResponseBody build() {
return new ListHoneypotAttackerSourceResponseBody(this);
}
}
/**
*
* {@link ListHoneypotAttackerSourceResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerSourceResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EventCount")
private Integer eventCount;
@com.aliyun.core.annotation.NameInMap("LastTargetHoneypot")
private String lastTargetHoneypot;
@com.aliyun.core.annotation.NameInMap("LastTargetIp")
private String lastTargetIp;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SrcIp")
private String srcIp;
private List(Builder builder) {
this.eventCount = builder.eventCount;
this.lastTargetHoneypot = builder.lastTargetHoneypot;
this.lastTargetIp = builder.lastTargetIp;
this.lastTime = builder.lastTime;
this.riskLevel = builder.riskLevel;
this.srcIp = builder.srcIp;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return eventCount
*/
public Integer getEventCount() {
return this.eventCount;
}
/**
* @return lastTargetHoneypot
*/
public String getLastTargetHoneypot() {
return this.lastTargetHoneypot;
}
/**
* @return lastTargetIp
*/
public String getLastTargetIp() {
return this.lastTargetIp;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
public static final class Builder {
private Integer eventCount;
private String lastTargetHoneypot;
private String lastTargetIp;
private Long lastTime;
private String riskLevel;
private String srcIp;
private Builder() {
}
private Builder(List model) {
this.eventCount = model.eventCount;
this.lastTargetHoneypot = model.lastTargetHoneypot;
this.lastTargetIp = model.lastTargetIp;
this.lastTime = model.lastTime;
this.riskLevel = model.riskLevel;
this.srcIp = model.srcIp;
}
/**
* <p>The total number of attack events.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder eventCount(Integer eventCount) {
this.eventCount = eventCount;
return this;
}
/**
* <p>The most recent honeypot that was attacked.</p>
*
* <strong>example:</strong>
* <p>vpc tcp honeypot</p>
*/
public Builder lastTargetHoneypot(String lastTargetHoneypot) {
this.lastTargetHoneypot = lastTargetHoneypot;
return this;
}
/**
* <p>The most recent IP address that was attacked.</p>
*
* <strong>example:</strong>
* <p>144.23.66.***</p>
*/
public Builder lastTargetIp(String lastTargetIp) {
this.lastTargetIp = lastTargetIp;
return this;
}
/**
* <p>The last time when the attack event occurred.</p>
*
* <strong>example:</strong>
* <p>1693446913000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>2</strong>: low</li>
* <li><strong>3</strong>: medium</li>
* <li><strong>4</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The source IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>101.102.61.***</p>
*/
public Builder srcIp(String srcIp) {
this.srcIp = srcIp;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListHoneypotAttackerSourceResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotAttackerSourceResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>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/ListHoneypotEventFlowsRequest.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 ListHoneypotEventFlowsRequest} extends {@link RequestModel}
*
* <p>ListHoneypotEventFlowsRequest</p>
*/
public class ListHoneypotEventFlowsRequest 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("Dealed")
private String dealed;
@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("RequestId")
private String requestId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
private Long securityEventId;
private ListHoneypotEventFlowsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.dealed = builder.dealed;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.securityEventId = builder.securityEventId;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotEventFlowsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dealed
*/
public String getDealed() {
return this.dealed;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
public static final class Builder extends Request.Builder<ListHoneypotEventFlowsRequest, Builder> {
private Integer currentPage;
private String dealed;
private String lang;
private Integer pageSize;
private String requestId;
private Long securityEventId;
private Builder() {
super();
}
private Builder(ListHoneypotEventFlowsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.dealed = request.dealed;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.requestId = request.requestId;
this.securityEventId = request.securityEventId;
}
/**
* CurrentPage.
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* Dealed.
*/
public Builder dealed(String dealed) {
this.putQueryParameter("Dealed", dealed);
this.dealed = dealed;
return this;
}
/**
* Lang.
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.putQueryParameter("RequestId", requestId);
this.requestId = requestId;
return this;
}
/**
* SecurityEventId.
*/
public Builder securityEventId(Long securityEventId) {
this.putQueryParameter("SecurityEventId", securityEventId);
this.securityEventId = securityEventId;
return this;
}
@Override
public ListHoneypotEventFlowsRequest build() {
return new ListHoneypotEventFlowsRequest(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/ListHoneypotEventFlowsResponse.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 ListHoneypotEventFlowsResponse} extends {@link TeaModel}
*
* <p>ListHoneypotEventFlowsResponse</p>
*/
public class ListHoneypotEventFlowsResponse 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 ListHoneypotEventFlowsResponseBody body;
private ListHoneypotEventFlowsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotEventFlowsResponse 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 ListHoneypotEventFlowsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotEventFlowsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotEventFlowsResponseBody body);
@Override
ListHoneypotEventFlowsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotEventFlowsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotEventFlowsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotEventFlowsResponse 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(ListHoneypotEventFlowsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotEventFlowsResponse build() {
return new ListHoneypotEventFlowsResponse(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/ListHoneypotEventFlowsResponseBody.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 ListHoneypotEventFlowsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventFlowsResponseBody</p>
*/
public class ListHoneypotEventFlowsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("HoneypotEventFlows")
private java.util.List<HoneypotEventFlows> honeypotEventFlows;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private ListHoneypotEventFlowsResponseBody(Builder builder) {
this.code = builder.code;
this.honeypotEventFlows = builder.honeypotEventFlows;
this.httpStatusCode = builder.httpStatusCode;
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 ListHoneypotEventFlowsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return honeypotEventFlows
*/
public java.util.List<HoneypotEventFlows> getHoneypotEventFlows() {
return this.honeypotEventFlows;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private java.util.List<HoneypotEventFlows> honeypotEventFlows;
private Integer httpStatusCode;
private String message;
private PageInfo pageInfo;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListHoneypotEventFlowsResponseBody model) {
this.code = model.code;
this.honeypotEventFlows = model.honeypotEventFlows;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status 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 attack timelines.</p>
*/
public Builder honeypotEventFlows(java.util.List<HoneypotEventFlows> honeypotEventFlows) {
this.honeypotEventFlows = honeypotEventFlows;
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 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;
}
/**
* <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 ListHoneypotEventFlowsResponseBody build() {
return new ListHoneypotEventFlowsResponseBody(this);
}
}
/**
*
* {@link ListHoneypotEventFlowsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventFlowsResponseBody</p>
*/
public static class HoneypotEventFlows extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AgentId")
private String agentId;
@com.aliyun.core.annotation.NameInMap("AgentName")
private String agentName;
@com.aliyun.core.annotation.NameInMap("DockerId")
private String dockerId;
@com.aliyun.core.annotation.NameInMap("DstIp")
private String dstIp;
@com.aliyun.core.annotation.NameInMap("DstPort")
private Integer dstPort;
@com.aliyun.core.annotation.NameInMap("EventConnection")
private String eventConnection;
@com.aliyun.core.annotation.NameInMap("Extra")
private String extra;
@com.aliyun.core.annotation.NameInMap("Extra1")
private String extra1;
@com.aliyun.core.annotation.NameInMap("FileOssUrl")
private String fileOssUrl;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("HoneypotEventId")
private String honeypotEventId;
@com.aliyun.core.annotation.NameInMap("HoneypotId")
private String honeypotId;
@com.aliyun.core.annotation.NameInMap("HoneypotName")
private String honeypotName;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
private Long securityEventId;
@com.aliyun.core.annotation.NameInMap("SrcIp")
private String srcIp;
@com.aliyun.core.annotation.NameInMap("SrcMac")
private String srcMac;
@com.aliyun.core.annotation.NameInMap("SrcPort")
private Integer srcPort;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TypeId")
private String typeId;
@com.aliyun.core.annotation.NameInMap("Uid")
private String uid;
private HoneypotEventFlows(Builder builder) {
this.agentId = builder.agentId;
this.agentName = builder.agentName;
this.dockerId = builder.dockerId;
this.dstIp = builder.dstIp;
this.dstPort = builder.dstPort;
this.eventConnection = builder.eventConnection;
this.extra = builder.extra;
this.extra1 = builder.extra1;
this.fileOssUrl = builder.fileOssUrl;
this.firstTime = builder.firstTime;
this.honeypotEventId = builder.honeypotEventId;
this.honeypotId = builder.honeypotId;
this.honeypotName = builder.honeypotName;
this.lastTime = builder.lastTime;
this.riskLevel = builder.riskLevel;
this.securityEventId = builder.securityEventId;
this.srcIp = builder.srcIp;
this.srcMac = builder.srcMac;
this.srcPort = builder.srcPort;
this.status = builder.status;
this.typeId = builder.typeId;
this.uid = builder.uid;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotEventFlows create() {
return builder().build();
}
/**
* @return agentId
*/
public String getAgentId() {
return this.agentId;
}
/**
* @return agentName
*/
public String getAgentName() {
return this.agentName;
}
/**
* @return dockerId
*/
public String getDockerId() {
return this.dockerId;
}
/**
* @return dstIp
*/
public String getDstIp() {
return this.dstIp;
}
/**
* @return dstPort
*/
public Integer getDstPort() {
return this.dstPort;
}
/**
* @return eventConnection
*/
public String getEventConnection() {
return this.eventConnection;
}
/**
* @return extra
*/
public String getExtra() {
return this.extra;
}
/**
* @return extra1
*/
public String getExtra1() {
return this.extra1;
}
/**
* @return fileOssUrl
*/
public String getFileOssUrl() {
return this.fileOssUrl;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return honeypotEventId
*/
public String getHoneypotEventId() {
return this.honeypotEventId;
}
/**
* @return honeypotId
*/
public String getHoneypotId() {
return this.honeypotId;
}
/**
* @return honeypotName
*/
public String getHoneypotName() {
return this.honeypotName;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
/**
* @return srcMac
*/
public String getSrcMac() {
return this.srcMac;
}
/**
* @return srcPort
*/
public Integer getSrcPort() {
return this.srcPort;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return typeId
*/
public String getTypeId() {
return this.typeId;
}
/**
* @return uid
*/
public String getUid() {
return this.uid;
}
public static final class Builder {
private String agentId;
private String agentName;
private String dockerId;
private String dstIp;
private Integer dstPort;
private String eventConnection;
private String extra;
private String extra1;
private String fileOssUrl;
private Long firstTime;
private String honeypotEventId;
private String honeypotId;
private String honeypotName;
private Long lastTime;
private String riskLevel;
private Long securityEventId;
private String srcIp;
private String srcMac;
private Integer srcPort;
private Integer status;
private String typeId;
private String uid;
private Builder() {
}
private Builder(HoneypotEventFlows model) {
this.agentId = model.agentId;
this.agentName = model.agentName;
this.dockerId = model.dockerId;
this.dstIp = model.dstIp;
this.dstPort = model.dstPort;
this.eventConnection = model.eventConnection;
this.extra = model.extra;
this.extra1 = model.extra1;
this.fileOssUrl = model.fileOssUrl;
this.firstTime = model.firstTime;
this.honeypotEventId = model.honeypotEventId;
this.honeypotId = model.honeypotId;
this.honeypotName = model.honeypotName;
this.lastTime = model.lastTime;
this.riskLevel = model.riskLevel;
this.securityEventId = model.securityEventId;
this.srcIp = model.srcIp;
this.srcMac = model.srcMac;
this.srcPort = model.srcPort;
this.status = model.status;
this.typeId = model.typeId;
this.uid = model.uid;
}
/**
* <p>The ID of the probe.</p>
*
* <strong>example:</strong>
* <p>d3c0dafa-5059-4eb0-8c28-7d40f58*****</p>
*/
public Builder agentId(String agentId) {
this.agentId = agentId;
return this;
}
/**
* <p>The name of the probe.</p>
*
* <strong>example:</strong>
* <p>hw-d***</p>
*/
public Builder agentName(String agentName) {
this.agentName = agentName;
return this;
}
/**
* <p>The ID of the container.</p>
*
* <strong>example:</strong>
* <p>eca09895****</p>
*/
public Builder dockerId(String dockerId) {
this.dockerId = dockerId;
return this;
}
/**
* <p>The destination IP address.</p>
*
* <strong>example:</strong>
* <p>112.126.205.***</p>
*/
public Builder dstIp(String dstIp) {
this.dstIp = dstIp;
return this;
}
/**
* <p>The destination port.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder dstPort(Integer dstPort) {
this.dstPort = dstPort;
return this;
}
/**
* <p>The UUID of the connection in the attack.</p>
*
* <strong>example:</strong>
* <p>fd7f1ff4-0c4b-41cb-99ad-0724349d****</p>
*/
public Builder eventConnection(String eventConnection) {
this.eventConnection = eventConnection;
return this;
}
/**
* <p>The extended information about the attack payload.</p>
*
* <strong>example:</strong>
* <p>{"payload":{"format":"line","name":{"cn":"payload","en":"payload"},"value":""},"uid":{"format":"line","name":{"cn":"","en":""},"uid":"5fa2ece9-aa08-4bbd-a272-5d27*********","value":""}}</p>
*/
public Builder extra(String extra) {
this.extra = extra;
return this;
}
/**
* <p>The extension information about the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>{"vpc_id":"","vpc_dest_port":"","vpc_dest_ip":""}</p>
*/
public Builder extra1(String extra1) {
this.extra1 = extra1;
return this;
}
/**
* <p>The Object Storage Service (OSS) URL of the file.</p>
*
* <strong>example:</strong>
* <p><a href="https://pop-test-file-upload.oss-cn-beijing.aliyuncs.com/5626_26331">https://pop-test-file-upload.oss-cn-beijing.aliyuncs.com/5626_26331</a>*****</p>
*/
public Builder fileOssUrl(String fileOssUrl) {
this.fileOssUrl = fileOssUrl;
return this;
}
/**
* <p>The timestamp when the intrusion event was first occurred.</p>
*
* <strong>example:</strong>
* <p>1686621122000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>The ID of the intrusion event. The value is a string.</p>
*
* <strong>example:</strong>
* <p>19bec028-d98b-45c4-a4d9-cc3d593f****</p>
*/
public Builder honeypotEventId(String honeypotEventId) {
this.honeypotEventId = honeypotEventId;
return this;
}
/**
* <p>The ID of the honeypot.</p>
*
* <strong>example:</strong>
* <p>911df9d6fe20451c059edbcffa1d1c33452f6a71e59d4826da067af224*****</p>
*/
public Builder honeypotId(String honeypotId) {
this.honeypotId = honeypotId;
return this;
}
/**
* <p>The name of the honeypot.</p>
*
* <strong>example:</strong>
* <p>hw-zhi*****</p>
*/
public Builder honeypotName(String honeypotName) {
this.honeypotName = honeypotName;
return this;
}
/**
* <p>The timestamp when the intrusion event was last occurred.</p>
*
* <strong>example:</strong>
* <p>1686622222000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>2</strong>: low</li>
* <li><strong>3</strong>: medium</li>
* <li><strong>4</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The ID of the intrusion event.</p>
*
* <strong>example:</strong>
* <p>306527555</p>
*/
public Builder securityEventId(Long securityEventId) {
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The source IP address.</p>
*
* <strong>example:</strong>
* <p>121.41.48.***</p>
*/
public Builder srcIp(String srcIp) {
this.srcIp = srcIp;
return this;
}
/**
* <p>The source media access control (MAC) address.</p>
*
* <strong>example:</strong>
* <p>00:0C:29:CA:<strong>:</strong></p>
*/
public Builder srcMac(String srcMac) {
this.srcMac = srcMac;
return this;
}
/**
* <p>The source port number.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder srcPort(Integer srcPort) {
this.srcPort = srcPort;
return this;
}
/**
* <p>The handling status of the intrusion event. Valid values:</p>
* <ul>
* <li><strong>1</strong>: pending handling</li>
* <li><strong>2</strong>: ignored</li>
* <li><strong>4</strong>: confirmed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The ID of the attack type.</p>
*
* <strong>example:</strong>
* <p>web_access</p>
*/
public Builder typeId(String typeId) {
this.typeId = typeId;
return this;
}
/**
* <p>The UUID of an attack in the intrusion event.</p>
*
* <strong>example:</strong>
* <p>5fa2ece9-aa08-4bbd-a272-5d27d1c6*****</p>
*/
public Builder uid(String uid) {
this.uid = uid;
return this;
}
public HoneypotEventFlows build() {
return new HoneypotEventFlows(this);
}
}
}
/**
*
* {@link ListHoneypotEventFlowsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventFlowsResponseBody</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>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>78</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/ListHoneypotEventsRequest.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 ListHoneypotEventsRequest} extends {@link RequestModel}
*
* <p>ListHoneypotEventsRequest</p>
*/
public class ListHoneypotEventsRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AgentIdList")
private java.util.List<String> agentIdList;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AlarmEventId")
private Long alarmEventId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Dealed")
private String dealed;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("HoneypotIdList")
private java.util.List<String> honeypotIdList;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PortraitId")
private String portraitId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("RiskLevelList")
private java.util.List<String> riskLevelList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcIp")
private String srcIp;
private ListHoneypotEventsRequest(Builder builder) {
super(builder);
this.agentIdList = builder.agentIdList;
this.alarmEventId = builder.alarmEventId;
this.currentPage = builder.currentPage;
this.dealed = builder.dealed;
this.honeypotIdList = builder.honeypotIdList;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.portraitId = builder.portraitId;
this.requestId = builder.requestId;
this.riskLevelList = builder.riskLevelList;
this.srcIp = builder.srcIp;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotEventsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return agentIdList
*/
public java.util.List<String> getAgentIdList() {
return this.agentIdList;
}
/**
* @return alarmEventId
*/
public Long getAlarmEventId() {
return this.alarmEventId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return dealed
*/
public String getDealed() {
return this.dealed;
}
/**
* @return honeypotIdList
*/
public java.util.List<String> getHoneypotIdList() {
return this.honeypotIdList;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return portraitId
*/
public String getPortraitId() {
return this.portraitId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskLevelList
*/
public java.util.List<String> getRiskLevelList() {
return this.riskLevelList;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
public static final class Builder extends Request.Builder<ListHoneypotEventsRequest, Builder> {
private java.util.List<String> agentIdList;
private Long alarmEventId;
private Integer currentPage;
private String dealed;
private java.util.List<String> honeypotIdList;
private String lang;
private Integer pageSize;
private String portraitId;
private String requestId;
private java.util.List<String> riskLevelList;
private String srcIp;
private Builder() {
super();
}
private Builder(ListHoneypotEventsRequest request) {
super(request);
this.agentIdList = request.agentIdList;
this.alarmEventId = request.alarmEventId;
this.currentPage = request.currentPage;
this.dealed = request.dealed;
this.honeypotIdList = request.honeypotIdList;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.portraitId = request.portraitId;
this.requestId = request.requestId;
this.riskLevelList = request.riskLevelList;
this.srcIp = request.srcIp;
}
/**
* <p>The probe IDs.</p>
*/
public Builder agentIdList(java.util.List<String> agentIdList) {
this.putBodyParameter("AgentIdList", agentIdList);
this.agentIdList = agentIdList;
return this;
}
/**
* <p>The ID of the alert.</p>
*
* <strong>example:</strong>
* <p>1259925</p>
*/
public Builder alarmEventId(Long alarmEventId) {
this.putBodyParameter("AlarmEventId", alarmEventId);
this.alarmEventId = alarmEventId;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putBodyParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The status of the event. Valid values:</p>
* <ul>
* <li><strong>y</strong>: handled</li>
* <li><strong>n</strong>: unhandled</li>
* <li><strong>a</strong>: all statuses</li>
* </ul>
*
* <strong>example:</strong>
* <p>y</p>
*/
public Builder dealed(String dealed) {
this.putBodyParameter("Dealed", dealed);
this.dealed = dealed;
return this;
}
/**
* <p>The honeypot IDs.</p>
*/
public Builder honeypotIdList(java.util.List<String> honeypotIdList) {
this.putBodyParameter("HoneypotIdList", honeypotIdList);
this.honeypotIdList = honeypotIdList;
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.putBodyParameter("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.putBodyParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the attacker profile.</p>
*
* <strong>example:</strong>
* <p>cd48604a-1694-4f03-ade0-ec6994c3*****</p>
*/
public Builder portraitId(String portraitId) {
this.putQueryParameter("PortraitId", portraitId);
this.portraitId = portraitId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2F9CE167-58D5-5DA6-AA3B-923EED02****</p>
*/
public Builder requestId(String requestId) {
this.putBodyParameter("RequestId", requestId);
this.requestId = requestId;
return this;
}
/**
* <p>The risk levels.</p>
*/
public Builder riskLevelList(java.util.List<String> riskLevelList) {
this.putBodyParameter("RiskLevelList", riskLevelList);
this.riskLevelList = riskLevelList;
return this;
}
/**
* <p>The source IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>185.237.96.***</p>
*/
public Builder srcIp(String srcIp) {
this.putQueryParameter("SrcIp", srcIp);
this.srcIp = srcIp;
return this;
}
@Override
public ListHoneypotEventsRequest build() {
return new ListHoneypotEventsRequest(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/ListHoneypotEventsResponse.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 ListHoneypotEventsResponse} extends {@link TeaModel}
*
* <p>ListHoneypotEventsResponse</p>
*/
public class ListHoneypotEventsResponse 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 ListHoneypotEventsResponseBody body;
private ListHoneypotEventsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotEventsResponse 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 ListHoneypotEventsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotEventsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotEventsResponseBody body);
@Override
ListHoneypotEventsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotEventsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotEventsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotEventsResponse 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(ListHoneypotEventsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotEventsResponse build() {
return new ListHoneypotEventsResponse(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/ListHoneypotEventsResponseBody.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 ListHoneypotEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventsResponseBody</p>
*/
public class ListHoneypotEventsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HoneypotEvents")
private java.util.List<HoneypotEvents> honeypotEvents;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListHoneypotEventsResponseBody(Builder builder) {
this.honeypotEvents = builder.honeypotEvents;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotEventsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return honeypotEvents
*/
public java.util.List<HoneypotEvents> getHoneypotEvents() {
return this.honeypotEvents;
}
/**
* @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<HoneypotEvents> honeypotEvents;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListHoneypotEventsResponseBody model) {
this.honeypotEvents = model.honeypotEvents;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The intrusion events.</p>
*/
public Builder honeypotEvents(java.util.List<HoneypotEvents> honeypotEvents) {
this.honeypotEvents = honeypotEvents;
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>FBD28009-6096-5E90-BFE6-62CCD67*****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListHoneypotEventsResponseBody build() {
return new ListHoneypotEventsResponseBody(this);
}
}
/**
*
* {@link ListHoneypotEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventsResponseBody</p>
*/
public static class MergeFieldList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FieldExtInfo")
private String fieldExtInfo;
@com.aliyun.core.annotation.NameInMap("FieldKey")
private String fieldKey;
@com.aliyun.core.annotation.NameInMap("FieldType")
private String fieldType;
@com.aliyun.core.annotation.NameInMap("FieldValue")
private String fieldValue;
private MergeFieldList(Builder builder) {
this.fieldExtInfo = builder.fieldExtInfo;
this.fieldKey = builder.fieldKey;
this.fieldType = builder.fieldType;
this.fieldValue = builder.fieldValue;
}
public static Builder builder() {
return new Builder();
}
public static MergeFieldList create() {
return builder().build();
}
/**
* @return fieldExtInfo
*/
public String getFieldExtInfo() {
return this.fieldExtInfo;
}
/**
* @return fieldKey
*/
public String getFieldKey() {
return this.fieldKey;
}
/**
* @return fieldType
*/
public String getFieldType() {
return this.fieldType;
}
/**
* @return fieldValue
*/
public String getFieldValue() {
return this.fieldValue;
}
public static final class Builder {
private String fieldExtInfo;
private String fieldKey;
private String fieldType;
private String fieldValue;
private Builder() {
}
private Builder(MergeFieldList model) {
this.fieldExtInfo = model.fieldExtInfo;
this.fieldKey = model.fieldKey;
this.fieldType = model.fieldType;
this.fieldValue = model.fieldValue;
}
/**
* <p>The supplementary information about the field.</p>
*
* <strong>example:</strong>
* <p>data</p>
*/
public Builder fieldExtInfo(String fieldExtInfo) {
this.fieldExtInfo = fieldExtInfo;
return this;
}
/**
* <p>The key of the field.</p>
*
* <strong>example:</strong>
* <p>type</p>
*/
public Builder fieldKey(String fieldKey) {
this.fieldKey = fieldKey;
return this;
}
/**
* <p>The type of the field.</p>
*
* <strong>example:</strong>
* <p>level2_item1</p>
*/
public Builder fieldType(String fieldType) {
this.fieldType = fieldType;
return this;
}
/**
* <p>The value of the field key.</p>
*
* <strong>example:</strong>
* <p>web_access</p>
*/
public Builder fieldValue(String fieldValue) {
this.fieldValue = fieldValue;
return this;
}
public MergeFieldList build() {
return new MergeFieldList(this);
}
}
}
/**
*
* {@link ListHoneypotEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventsResponseBody</p>
*/
public static class HoneypotEvents extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AgentId")
private String agentId;
@com.aliyun.core.annotation.NameInMap("AgentName")
private String agentName;
@com.aliyun.core.annotation.NameInMap("AlarmEventId")
private Long alarmEventId;
@com.aliyun.core.annotation.NameInMap("DstIp")
private String dstIp;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("HoneypotName")
private String honeypotName;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("Location")
private String location;
@com.aliyun.core.annotation.NameInMap("MergeFieldList")
private java.util.List<MergeFieldList> mergeFieldList;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
private Long securityEventId;
@com.aliyun.core.annotation.NameInMap("SrcIp")
private String srcIp;
private HoneypotEvents(Builder builder) {
this.agentId = builder.agentId;
this.agentName = builder.agentName;
this.alarmEventId = builder.alarmEventId;
this.dstIp = builder.dstIp;
this.firstTime = builder.firstTime;
this.honeypotName = builder.honeypotName;
this.lastTime = builder.lastTime;
this.location = builder.location;
this.mergeFieldList = builder.mergeFieldList;
this.protocol = builder.protocol;
this.riskLevel = builder.riskLevel;
this.securityEventId = builder.securityEventId;
this.srcIp = builder.srcIp;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotEvents create() {
return builder().build();
}
/**
* @return agentId
*/
public String getAgentId() {
return this.agentId;
}
/**
* @return agentName
*/
public String getAgentName() {
return this.agentName;
}
/**
* @return alarmEventId
*/
public Long getAlarmEventId() {
return this.alarmEventId;
}
/**
* @return dstIp
*/
public String getDstIp() {
return this.dstIp;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return honeypotName
*/
public String getHoneypotName() {
return this.honeypotName;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return location
*/
public String getLocation() {
return this.location;
}
/**
* @return mergeFieldList
*/
public java.util.List<MergeFieldList> getMergeFieldList() {
return this.mergeFieldList;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
/**
* @return srcIp
*/
public String getSrcIp() {
return this.srcIp;
}
public static final class Builder {
private String agentId;
private String agentName;
private Long alarmEventId;
private String dstIp;
private Long firstTime;
private String honeypotName;
private Long lastTime;
private String location;
private java.util.List<MergeFieldList> mergeFieldList;
private String protocol;
private String riskLevel;
private Long securityEventId;
private String srcIp;
private Builder() {
}
private Builder(HoneypotEvents model) {
this.agentId = model.agentId;
this.agentName = model.agentName;
this.alarmEventId = model.alarmEventId;
this.dstIp = model.dstIp;
this.firstTime = model.firstTime;
this.honeypotName = model.honeypotName;
this.lastTime = model.lastTime;
this.location = model.location;
this.mergeFieldList = model.mergeFieldList;
this.protocol = model.protocol;
this.riskLevel = model.riskLevel;
this.securityEventId = model.securityEventId;
this.srcIp = model.srcIp;
}
/**
* <p>The probe ID.</p>
*
* <strong>example:</strong>
* <p>27d44bd5815d401992ea672874d9****</p>
*/
public Builder agentId(String agentId) {
this.agentId = agentId;
return this;
}
/**
* <p>The name of the probe.</p>
*
* <strong>example:</strong>
* <p>1193474_test_****</p>
*/
public Builder agentName(String agentName) {
this.agentName = agentName;
return this;
}
/**
* <p>The ID of the alert event.</p>
*
* <strong>example:</strong>
* <p>1900752</p>
*/
public Builder alarmEventId(Long alarmEventId) {
this.alarmEventId = alarmEventId;
return this;
}
/**
* <p>The destination IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>112.126.205.***</p>
*/
public Builder dstIp(String dstIp) {
this.dstIp = dstIp;
return this;
}
/**
* <p>The timestamp at which the event was first detected.</p>
*
* <strong>example:</strong>
* <p>1692670297</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>The name of the honeypot.</p>
*
* <strong>example:</strong>
* <p>honeypot-2</p>
*/
public Builder honeypotName(String honeypotName) {
this.honeypotName = honeypotName;
return this;
}
/**
* <p>The timestamp at which the event was last detected.</p>
*
* <strong>example:</strong>
* <p>1676558664</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The region.</p>
*
* <strong>example:</strong>
* <p>China Beijing</p>
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* <p>The extended values that correspond to the field key.</p>
*/
public Builder mergeFieldList(java.util.List<MergeFieldList> mergeFieldList) {
this.mergeFieldList = mergeFieldList;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>2</strong>: low</li>
* <li><strong>3</strong>: medium</li>
* <li><strong>4</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The ID of the intrusion event.</p>
*
* <strong>example:</strong>
* <p>70427821</p>
*/
public Builder securityEventId(Long securityEventId) {
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The source IP address of the attack.</p>
*
* <strong>example:</strong>
* <p>192.168.62.***</p>
*/
public Builder srcIp(String srcIp) {
this.srcIp = srcIp;
return this;
}
public HoneypotEvents build() {
return new HoneypotEvents(this);
}
}
}
/**
*
* {@link ListHoneypotEventsResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotEventsResponseBody</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>20</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 key of the last data entry.</p>
*
* <strong>example:</strong>
* <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY*********</p>
*/
public Builder lastRowKey(String lastRowKey) {
this.lastRowKey = lastRowKey;
return this;
}
/**
* <p>The value of the NextToken parameter that is returned by using the NextToken method.</p>
*
* <strong>example:</strong>
* <p>B604532DEF982B875E8360A6EFA3B***</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>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/ListHoneypotNodeRequest.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 ListHoneypotNodeRequest} extends {@link RequestModel}
*
* <p>ListHoneypotNodeRequest</p>
*/
public class ListHoneypotNodeRequest 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("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private ListHoneypotNodeRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.nodeId = builder.nodeId;
this.nodeName = builder.nodeName;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotNodeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<ListHoneypotNodeRequest, Builder> {
private Integer currentPage;
private String nodeId;
private String nodeName;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListHoneypotNodeRequest request) {
super(request);
this.currentPage = request.currentPage;
this.nodeId = request.nodeId;
this.nodeName = request.nodeName;
this.pageSize = request.pageSize;
}
/**
* <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 management node.</p>
*
* <strong>example:</strong>
* <p>7d110ca6-05ee-4149-8042-13ad1a41fd****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>cyct_cnymu</p>
*/
public Builder nodeName(String nodeName) {
this.putQueryParameter("NodeName", nodeName);
this.nodeName = nodeName;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public ListHoneypotNodeRequest build() {
return new ListHoneypotNodeRequest(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/ListHoneypotNodeResponse.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 ListHoneypotNodeResponse} extends {@link TeaModel}
*
* <p>ListHoneypotNodeResponse</p>
*/
public class ListHoneypotNodeResponse 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 ListHoneypotNodeResponseBody body;
private ListHoneypotNodeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotNodeResponse 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 ListHoneypotNodeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotNodeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotNodeResponseBody body);
@Override
ListHoneypotNodeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotNodeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotNodeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotNodeResponse 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(ListHoneypotNodeResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotNodeResponse build() {
return new ListHoneypotNodeResponse(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/ListHoneypotNodeResponseBody.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 ListHoneypotNodeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotNodeResponseBody</p>
*/
public class ListHoneypotNodeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("HoneypotNodeList")
private java.util.List<HoneypotNodeList> honeypotNodeList;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private ListHoneypotNodeResponseBody(Builder builder) {
this.code = builder.code;
this.honeypotNodeList = builder.honeypotNodeList;
this.httpStatusCode = builder.httpStatusCode;
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 ListHoneypotNodeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return honeypotNodeList
*/
public java.util.List<HoneypotNodeList> getHoneypotNodeList() {
return this.honeypotNodeList;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private java.util.List<HoneypotNodeList> honeypotNodeList;
private Integer httpStatusCode;
private String message;
private PageInfo pageInfo;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListHoneypotNodeResponseBody model) {
this.code = model.code;
this.honeypotNodeList = model.honeypotNodeList;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>An array that consists of the information about the management nodes.</p>
*/
public Builder honeypotNodeList(java.util.List<HoneypotNodeList> honeypotNodeList) {
this.honeypotNodeList = honeypotNodeList;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>337BEA70-B03D-5370-8420-436F3FCD9924</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 ListHoneypotNodeResponseBody build() {
return new ListHoneypotNodeResponseBody(this);
}
}
/**
*
* {@link ListHoneypotNodeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotNodeResponseBody</p>
*/
public static class HoneypotNodeList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowHoneypotAccessInternet")
private Boolean allowHoneypotAccessInternet;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DefaultNode")
private Boolean defaultNode;
@com.aliyun.core.annotation.NameInMap("EcsInstanceId")
private String ecsInstanceId;
@com.aliyun.core.annotation.NameInMap("HoneypotTotalCount")
private Integer honeypotTotalCount;
@com.aliyun.core.annotation.NameInMap("HoneypotUsedCount")
private Integer honeypotUsedCount;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeIp")
private String nodeIp;
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.NameInMap("ProbeTotalCount")
private Integer probeTotalCount;
@com.aliyun.core.annotation.NameInMap("ProbeUsedCount")
private Integer probeUsedCount;
@com.aliyun.core.annotation.NameInMap("SecurityGroupProbeIpList")
private java.util.List<String> securityGroupProbeIpList;
@com.aliyun.core.annotation.NameInMap("TotalStatus")
private Integer totalStatus;
@com.aliyun.core.annotation.NameInMap("UpgradeAvailable")
private Boolean upgradeAvailable;
private HoneypotNodeList(Builder builder) {
this.allowHoneypotAccessInternet = builder.allowHoneypotAccessInternet;
this.createTime = builder.createTime;
this.defaultNode = builder.defaultNode;
this.ecsInstanceId = builder.ecsInstanceId;
this.honeypotTotalCount = builder.honeypotTotalCount;
this.honeypotUsedCount = builder.honeypotUsedCount;
this.nodeId = builder.nodeId;
this.nodeIp = builder.nodeIp;
this.nodeName = builder.nodeName;
this.probeTotalCount = builder.probeTotalCount;
this.probeUsedCount = builder.probeUsedCount;
this.securityGroupProbeIpList = builder.securityGroupProbeIpList;
this.totalStatus = builder.totalStatus;
this.upgradeAvailable = builder.upgradeAvailable;
}
public static Builder builder() {
return new Builder();
}
public static HoneypotNodeList create() {
return builder().build();
}
/**
* @return allowHoneypotAccessInternet
*/
public Boolean getAllowHoneypotAccessInternet() {
return this.allowHoneypotAccessInternet;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return defaultNode
*/
public Boolean getDefaultNode() {
return this.defaultNode;
}
/**
* @return ecsInstanceId
*/
public String getEcsInstanceId() {
return this.ecsInstanceId;
}
/**
* @return honeypotTotalCount
*/
public Integer getHoneypotTotalCount() {
return this.honeypotTotalCount;
}
/**
* @return honeypotUsedCount
*/
public Integer getHoneypotUsedCount() {
return this.honeypotUsedCount;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeIp
*/
public String getNodeIp() {
return this.nodeIp;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return probeTotalCount
*/
public Integer getProbeTotalCount() {
return this.probeTotalCount;
}
/**
* @return probeUsedCount
*/
public Integer getProbeUsedCount() {
return this.probeUsedCount;
}
/**
* @return securityGroupProbeIpList
*/
public java.util.List<String> getSecurityGroupProbeIpList() {
return this.securityGroupProbeIpList;
}
/**
* @return totalStatus
*/
public Integer getTotalStatus() {
return this.totalStatus;
}
/**
* @return upgradeAvailable
*/
public Boolean getUpgradeAvailable() {
return this.upgradeAvailable;
}
public static final class Builder {
private Boolean allowHoneypotAccessInternet;
private String createTime;
private Boolean defaultNode;
private String ecsInstanceId;
private Integer honeypotTotalCount;
private Integer honeypotUsedCount;
private String nodeId;
private String nodeIp;
private String nodeName;
private Integer probeTotalCount;
private Integer probeUsedCount;
private java.util.List<String> securityGroupProbeIpList;
private Integer totalStatus;
private Boolean upgradeAvailable;
private Builder() {
}
private Builder(HoneypotNodeList model) {
this.allowHoneypotAccessInternet = model.allowHoneypotAccessInternet;
this.createTime = model.createTime;
this.defaultNode = model.defaultNode;
this.ecsInstanceId = model.ecsInstanceId;
this.honeypotTotalCount = model.honeypotTotalCount;
this.honeypotUsedCount = model.honeypotUsedCount;
this.nodeId = model.nodeId;
this.nodeIp = model.nodeIp;
this.nodeName = model.nodeName;
this.probeTotalCount = model.probeTotalCount;
this.probeUsedCount = model.probeUsedCount;
this.securityGroupProbeIpList = model.securityGroupProbeIpList;
this.totalStatus = model.totalStatus;
this.upgradeAvailable = model.upgradeAvailable;
}
/**
* <p>Indicates whether a honeypot is allowed to access the Internet. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The honeypot is allowed to access the Internet.</li>
* <li><strong>false</strong>: The honeypot is not allowed to access the Internet.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder allowHoneypotAccessInternet(Boolean allowHoneypotAccessInternet) {
this.allowHoneypotAccessInternet = allowHoneypotAccessInternet;
return this;
}
/**
* <p>The time when the management node was created.</p>
*
* <strong>example:</strong>
* <p>2022-08-04 15:52:56</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The type of the management node. Default value: <strong>false</strong>. Valid values:</p>
* <ul>
* <li><strong>false</strong>: non-default type</li>
* <li><strong>true</strong>: default type</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder defaultNode(Boolean defaultNode) {
this.defaultNode = defaultNode;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-bp1fs3qsc1msa3512k****</p>
*/
public Builder ecsInstanceId(String ecsInstanceId) {
this.ecsInstanceId = ecsInstanceId;
return this;
}
/**
* <p>The maximum number of honeypots that can be deployed to the management node.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder honeypotTotalCount(Integer honeypotTotalCount) {
this.honeypotTotalCount = honeypotTotalCount;
return this;
}
/**
* <p>The number of honeypots that are deployed to the management node.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder honeypotUsedCount(Integer honeypotUsedCount) {
this.honeypotUsedCount = honeypotUsedCount;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>7d110ca6-05ee-4149-8042-13ad1a41fd****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The IP address of the management node.</p>
*
* <strong>example:</strong>
* <p>119.180.XX.XX</p>
*/
public Builder nodeIp(String nodeIp) {
this.nodeIp = nodeIp;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>cyct_cnymu</p>
*/
public Builder nodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
/**
* <p>The maximum number of probes that can be deployed for the management node.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder probeTotalCount(Integer probeTotalCount) {
this.probeTotalCount = probeTotalCount;
return this;
}
/**
* <p>The number of probes that are deployed for the management node.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder probeUsedCount(Integer probeUsedCount) {
this.probeUsedCount = probeUsedCount;
return this;
}
/**
* <p>An array consisting of the CIDR blocks that are allowed to access the management node.</p>
*/
public Builder securityGroupProbeIpList(java.util.List<String> securityGroupProbeIpList) {
this.securityGroupProbeIpList = securityGroupProbeIpList;
return this;
}
/**
* <p>The status of the management node. Valid values:</p>
* <ul>
* <li><strong>1</strong>: normal</li>
* <li><strong>2</strong>: abnormal</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalStatus(Integer totalStatus) {
this.totalStatus = totalStatus;
return this;
}
/**
* <p>Indicates whether the management node can be upgraded. Valid values:</p>
* <ul>
* <li><strong>false</strong>: no</li>
* <li><strong>true</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder upgradeAvailable(Boolean upgradeAvailable) {
this.upgradeAvailable = upgradeAvailable;
return this;
}
public HoneypotNodeList build() {
return new HoneypotNodeList(this);
}
}
}
/**
*
* {@link ListHoneypotNodeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotNodeResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of 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/ListHoneypotPresetRequest.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 ListHoneypotPresetRequest} extends {@link RequestModel}
*
* <p>ListHoneypotPresetRequest</p>
*/
public class ListHoneypotPresetRequest 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("HoneypotImageName")
private String honeypotImageName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PresetName")
private String presetName;
private ListHoneypotPresetRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.honeypotImageName = builder.honeypotImageName;
this.lang = builder.lang;
this.nodeId = builder.nodeId;
this.nodeName = builder.nodeName;
this.pageSize = builder.pageSize;
this.presetName = builder.presetName;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotPresetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return honeypotImageName
*/
public String getHoneypotImageName() {
return this.honeypotImageName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return presetName
*/
public String getPresetName() {
return this.presetName;
}
public static final class Builder extends Request.Builder<ListHoneypotPresetRequest, Builder> {
private Integer currentPage;
private String honeypotImageName;
private String lang;
private String nodeId;
private String nodeName;
private Integer pageSize;
private String presetName;
private Builder() {
super();
}
private Builder(ListHoneypotPresetRequest request) {
super(request);
this.currentPage = request.currentPage;
this.honeypotImageName = request.honeypotImageName;
this.lang = request.lang;
this.nodeId = request.nodeId;
this.nodeName = request.nodeName;
this.pageSize = request.pageSize;
this.presetName = request.presetName;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>ruoyi</p>
*/
public Builder honeypotImageName(String honeypotImageName) {
this.putQueryParameter("HoneypotImageName", honeypotImageName);
this.honeypotImageName = honeypotImageName;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>d892b4fe-af0d-4486-ab2a-8a518045****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>Node1</p>
*/
public Builder nodeName(String nodeName) {
this.putQueryParameter("NodeName", nodeName);
this.nodeName = nodeName;
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 custom name of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>mx-rouyi</p>
*/
public Builder presetName(String presetName) {
this.putQueryParameter("PresetName", presetName);
this.presetName = presetName;
return this;
}
@Override
public ListHoneypotPresetRequest build() {
return new ListHoneypotPresetRequest(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/ListHoneypotPresetResponse.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 ListHoneypotPresetResponse} extends {@link TeaModel}
*
* <p>ListHoneypotPresetResponse</p>
*/
public class ListHoneypotPresetResponse 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 ListHoneypotPresetResponseBody body;
private ListHoneypotPresetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotPresetResponse 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 ListHoneypotPresetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotPresetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotPresetResponseBody body);
@Override
ListHoneypotPresetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotPresetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotPresetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotPresetResponse 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(ListHoneypotPresetResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotPresetResponse build() {
return new ListHoneypotPresetResponse(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/ListHoneypotPresetResponseBody.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 ListHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotPresetResponseBody</p>
*/
public class ListHoneypotPresetResponseBody 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 ListHoneypotPresetResponseBody(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 ListHoneypotPresetResponseBody 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(ListHoneypotPresetResponseBody 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 status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>An array that consists of the honeypot templates.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0C656B33-0D6B-5953-A26A-D766BD75B44A</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 ListHoneypotPresetResponseBody build() {
return new ListHoneypotPresetResponseBody(this);
}
}
/**
*
* {@link ListHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotPresetResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ControlNodeName")
private String controlNodeName;
@com.aliyun.core.annotation.NameInMap("HoneypotImageDisplayName")
private String honeypotImageDisplayName;
@com.aliyun.core.annotation.NameInMap("HoneypotImageName")
private String honeypotImageName;
@com.aliyun.core.annotation.NameInMap("HoneypotPresetId")
private String honeypotPresetId;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("PresetName")
private String presetName;
@com.aliyun.core.annotation.NameInMap("PresetType")
private String presetType;
private List(Builder builder) {
this.controlNodeName = builder.controlNodeName;
this.honeypotImageDisplayName = builder.honeypotImageDisplayName;
this.honeypotImageName = builder.honeypotImageName;
this.honeypotPresetId = builder.honeypotPresetId;
this.nodeId = builder.nodeId;
this.presetName = builder.presetName;
this.presetType = builder.presetType;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return controlNodeName
*/
public String getControlNodeName() {
return this.controlNodeName;
}
/**
* @return honeypotImageDisplayName
*/
public String getHoneypotImageDisplayName() {
return this.honeypotImageDisplayName;
}
/**
* @return honeypotImageName
*/
public String getHoneypotImageName() {
return this.honeypotImageName;
}
/**
* @return honeypotPresetId
*/
public String getHoneypotPresetId() {
return this.honeypotPresetId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return presetName
*/
public String getPresetName() {
return this.presetName;
}
/**
* @return presetType
*/
public String getPresetType() {
return this.presetType;
}
public static final class Builder {
private String controlNodeName;
private String honeypotImageDisplayName;
private String honeypotImageName;
private String honeypotPresetId;
private String nodeId;
private String presetName;
private String presetType;
private Builder() {
}
private Builder(List model) {
this.controlNodeName = model.controlNodeName;
this.honeypotImageDisplayName = model.honeypotImageDisplayName;
this.honeypotImageName = model.honeypotImageName;
this.honeypotPresetId = model.honeypotPresetId;
this.nodeId = model.nodeId;
this.presetName = model.presetName;
this.presetType = model.presetType;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>node1</p>
*/
public Builder controlNodeName(String controlNodeName) {
this.controlNodeName = controlNodeName;
return this;
}
/**
* <p>The display name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>Metabase</p>
*/
public Builder honeypotImageDisplayName(String honeypotImageDisplayName) {
this.honeypotImageDisplayName = honeypotImageDisplayName;
return this;
}
/**
* <p>The name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>metabase</p>
*/
public Builder honeypotImageName(String honeypotImageName) {
this.honeypotImageName = honeypotImageName;
return this;
}
/**
* <p>The ID of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>3cc04a47-7229-418c-8101-f10a2887****</p>
*/
public Builder honeypotPresetId(String honeypotPresetId) {
this.honeypotPresetId = honeypotPresetId;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>c94eff5b-ea48-4805-8b7f-e04d3509****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The custom name of the honeypot template.</p>
*
* <strong>example:</strong>
* <p>WebMin-online</p>
*/
public Builder presetName(String presetName) {
this.presetName = presetName;
return this;
}
/**
* <p>The type of the honeypot template. Valid values:</p>
* <ul>
* <li><strong>TEMP</strong>: automatically generated template</li>
* <li><strong>CUSTOM</strong>: custom template</li>
* <li><strong>DEFAULT</strong>: default template</li>
* </ul>
*
* <strong>example:</strong>
* <p>CUSTOM</p>
*/
public Builder presetType(String presetType) {
this.presetType = presetType;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListHoneypotPresetResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotPresetResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>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/ListHoneypotProbeRequest.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 ListHoneypotProbeRequest} extends {@link RequestModel}
*
* <p>ListHoneypotProbeRequest</p>
*/
public class ListHoneypotProbeRequest 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("DisplayName")
private String displayName;
@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("ProbeStatus")
private String probeStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProbeType")
private String probeType;
private ListHoneypotProbeRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.displayName = builder.displayName;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.probeStatus = builder.probeStatus;
this.probeType = builder.probeType;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotProbeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return probeStatus
*/
public String getProbeStatus() {
return this.probeStatus;
}
/**
* @return probeType
*/
public String getProbeType() {
return this.probeType;
}
public static final class Builder extends Request.Builder<ListHoneypotProbeRequest, Builder> {
private Integer currentPage;
private String displayName;
private String lang;
private Integer pageSize;
private String probeStatus;
private String probeType;
private Builder() {
super();
}
private Builder(ListHoneypotProbeRequest request) {
super(request);
this.currentPage = request.currentPage;
this.displayName = request.displayName;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.probeStatus = request.probeStatus;
this.probeType = request.probeType;
}
/**
* <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 name of the probe.</p>
*
* <strong>example:</strong>
* <p>probe-test</p>
*/
public Builder displayName(String displayName) {
this.putQueryParameter("DisplayName", displayName);
this.displayName = displayName;
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 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 status of the probe. Valid values:</p>
* <ul>
* <li><strong>installed</strong>: installed</li>
* <li><strong>install_failed</strong>: installation failed</li>
* <li><strong>online</strong>: online</li>
* <li><strong>offline</strong>: offline</li>
* <li><strong>unnormal</strong>: abnormal</li>
* <li><strong>unprobe</strong>: unauthorized</li>
* <li><strong>uninstalling</strong>: being uninstalled</li>
* <li><strong>uninstalled</strong>: uninstalled</li>
* <li><strong>uninstall_failed</strong>: uninstallation failed</li>
* <li><strong>not_exist</strong>: not installed</li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder probeStatus(String probeStatus) {
this.putQueryParameter("ProbeStatus", probeStatus);
this.probeStatus = probeStatus;
return this;
}
/**
* <p>The type of the probe. Valid values:</p>
* <ul>
* <li><strong>host_probe</strong>: host probe</li>
* <li><strong>vpc_black_hole_probe</strong>: VPC probe</li>
* </ul>
*
* <strong>example:</strong>
* <p>host_probe</p>
*/
public Builder probeType(String probeType) {
this.putQueryParameter("ProbeType", probeType);
this.probeType = probeType;
return this;
}
@Override
public ListHoneypotProbeRequest build() {
return new ListHoneypotProbeRequest(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/ListHoneypotProbeResponse.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 ListHoneypotProbeResponse} extends {@link TeaModel}
*
* <p>ListHoneypotProbeResponse</p>
*/
public class ListHoneypotProbeResponse 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 ListHoneypotProbeResponseBody body;
private ListHoneypotProbeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotProbeResponse 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 ListHoneypotProbeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotProbeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotProbeResponseBody body);
@Override
ListHoneypotProbeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotProbeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotProbeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotProbeResponse 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(ListHoneypotProbeResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotProbeResponse build() {
return new ListHoneypotProbeResponse(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/ListHoneypotProbeResponseBody.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 ListHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotProbeResponseBody</p>
*/
public class ListHoneypotProbeResponseBody 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 ListHoneypotProbeResponseBody(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 ListHoneypotProbeResponseBody 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(ListHoneypotProbeResponseBody 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 status code that is returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>An array that consists of the details about the probe.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>4BC9E610-21BE-537F-82EF-144A60D5A970</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 ListHoneypotProbeResponseBody build() {
return new ListHoneypotProbeResponseBody(this);
}
}
/**
*
* {@link ListHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotProbeResponseBody</p>
*/
public static class ControlNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EcsInstanceId")
private String ecsInstanceId;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
private ControlNode(Builder builder) {
this.ecsInstanceId = builder.ecsInstanceId;
this.nodeId = builder.nodeId;
this.nodeName = builder.nodeName;
}
public static Builder builder() {
return new Builder();
}
public static ControlNode create() {
return builder().build();
}
/**
* @return ecsInstanceId
*/
public String getEcsInstanceId() {
return this.ecsInstanceId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
public static final class Builder {
private String ecsInstanceId;
private String nodeId;
private String nodeName;
private Builder() {
}
private Builder(ControlNode model) {
this.ecsInstanceId = model.ecsInstanceId;
this.nodeId = model.nodeId;
this.nodeName = model.nodeName;
}
/**
* <p>The ID of the Elastic Compute Service (ECS) instance.</p>
*
* <strong>example:</strong>
* <p>i-uf6eq0rlvu1mkh0p****</p>
*/
public Builder ecsInstanceId(String ecsInstanceId) {
this.ecsInstanceId = ecsInstanceId;
return this;
}
/**
* <p>The ID of the node.</p>
*
* <strong>example:</strong>
* <p>8ec9da17-c0e7-4642-aad6-defc9722****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The name of the node.</p>
*
* <strong>example:</strong>
* <p>HoneypotNode1</p>
*/
public Builder nodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
public ControlNode build() {
return new ControlNode(this);
}
}
}
/**
*
* {@link ListHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotProbeResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ControlNode")
private ControlNode controlNode;
@com.aliyun.core.annotation.NameInMap("DeployTime")
private Long deployTime;
@com.aliyun.core.annotation.NameInMap("DisplayName")
private String displayName;
@com.aliyun.core.annotation.NameInMap("HostIp")
private String hostIp;
@com.aliyun.core.annotation.NameInMap("OsType")
private String osType;
@com.aliyun.core.annotation.NameInMap("ProbeId")
private String probeId;
@com.aliyun.core.annotation.NameInMap("ProbeType")
private String probeType;
@com.aliyun.core.annotation.NameInMap("ProbeVersion")
private String probeVersion;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private List(Builder builder) {
this.controlNode = builder.controlNode;
this.deployTime = builder.deployTime;
this.displayName = builder.displayName;
this.hostIp = builder.hostIp;
this.osType = builder.osType;
this.probeId = builder.probeId;
this.probeType = builder.probeType;
this.probeVersion = builder.probeVersion;
this.status = builder.status;
this.uuid = builder.uuid;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return controlNode
*/
public ControlNode getControlNode() {
return this.controlNode;
}
/**
* @return deployTime
*/
public Long getDeployTime() {
return this.deployTime;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return hostIp
*/
public String getHostIp() {
return this.hostIp;
}
/**
* @return osType
*/
public String getOsType() {
return this.osType;
}
/**
* @return probeId
*/
public String getProbeId() {
return this.probeId;
}
/**
* @return probeType
*/
public String getProbeType() {
return this.probeType;
}
/**
* @return probeVersion
*/
public String getProbeVersion() {
return this.probeVersion;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private ControlNode controlNode;
private Long deployTime;
private String displayName;
private String hostIp;
private String osType;
private String probeId;
private String probeType;
private String probeVersion;
private String status;
private String uuid;
private String vpcId;
private Builder() {
}
private Builder(List model) {
this.controlNode = model.controlNode;
this.deployTime = model.deployTime;
this.displayName = model.displayName;
this.hostIp = model.hostIp;
this.osType = model.osType;
this.probeId = model.probeId;
this.probeType = model.probeType;
this.probeVersion = model.probeVersion;
this.status = model.status;
this.uuid = model.uuid;
this.vpcId = model.vpcId;
}
/**
* <p>The information about the management node.</p>
*/
public Builder controlNode(ControlNode controlNode) {
this.controlNode = controlNode;
return this;
}
/**
* <p>The time when the probe was deployed.</p>
*
* <strong>example:</strong>
* <p>1669363825000</p>
*/
public Builder deployTime(Long deployTime) {
this.deployTime = deployTime;
return this;
}
/**
* <p>The name of the probe.</p>
*
* <strong>example:</strong>
* <p>prod-pinpoint-hd1b</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>The IP address of the server on which the probe is installed.</p>
*
* <strong>example:</strong>
* <p>33.53.XX.XX</p>
*/
public Builder hostIp(String hostIp) {
this.hostIp = hostIp;
return this;
}
/**
* <p>The operating system of the server on which the probe is deployed. Valid values:</p>
* <ul>
* <li>windows</li>
* <li>linux</li>
* </ul>
*
* <strong>example:</strong>
* <p>windows</p>
*/
public Builder osType(String osType) {
this.osType = osType;
return this;
}
/**
* <p>The ID of the probe.</p>
*
* <strong>example:</strong>
* <p>4d167bb3-dd09-4a6a-a179-d5d6a5b0****</p>
*/
public Builder probeId(String probeId) {
this.probeId = probeId;
return this;
}
/**
* <p>The type of the probe. Valid values:</p>
* <ul>
* <li><strong>host_probe</strong>: host probe</li>
* <li><strong>vpc_black_hole_probe</strong>: VPC probe</li>
* </ul>
*
* <strong>example:</strong>
* <p>host_probe</p>
*/
public Builder probeType(String probeType) {
this.probeType = probeType;
return this;
}
/**
* <p>The version of the probe.</p>
*
* <strong>example:</strong>
* <p>18060096</p>
*/
public Builder probeVersion(String probeVersion) {
this.probeVersion = probeVersion;
return this;
}
/**
* <p>The status of the probe. Valid values:</p>
* <ul>
* <li><strong>installed</strong>: installed</li>
* <li><strong>install_failed</strong>: installation failed</li>
* <li><strong>online</strong>: online</li>
* <li><strong>offline</strong>: offline</li>
* <li><strong>unnormal</strong>: abnormal</li>
* <li><strong>unprobe</strong>: unauthorized</li>
* <li><strong>uninstalling</strong>: being uninstalled</li>
* <li><strong>uninstalled</strong>: uninstalled</li>
* <li><strong>uninstall_failed</strong>: uninstallation failed</li>
* <li><strong>not_exist</strong>: not installed</li>
* </ul>
*
* <strong>example:</strong>
* <p>online</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the server to which the host probe is deployed.</p>
*
* <strong>example:</strong>
* <p>49e25e0f-bb51-4a5a-a1b3-13a4ddaa****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the VPC in which the VPC probe is deployed.</p>
*
* <strong>example:</strong>
* <p>vpc-5gu8iu68w9b472jbb****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListHoneypotProbeResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotProbeResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>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/ListHoneypotProbeUuidRequest.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 ListHoneypotProbeUuidRequest} extends {@link RequestModel}
*
* <p>ListHoneypotProbeUuidRequest</p>
*/
public class ListHoneypotProbeUuidRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ControlNodeId")
private String controlNodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProbeType")
private String probeType;
private ListHoneypotProbeUuidRequest(Builder builder) {
super(builder);
this.controlNodeId = builder.controlNodeId;
this.lang = builder.lang;
this.probeType = builder.probeType;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotProbeUuidRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return controlNodeId
*/
public String getControlNodeId() {
return this.controlNodeId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return probeType
*/
public String getProbeType() {
return this.probeType;
}
public static final class Builder extends Request.Builder<ListHoneypotProbeUuidRequest, Builder> {
private String controlNodeId;
private String lang;
private String probeType;
private Builder() {
super();
}
private Builder(ListHoneypotProbeUuidRequest request) {
super(request);
this.controlNodeId = request.controlNodeId;
this.lang = request.lang;
this.probeType = request.probeType;
}
/**
* <p>The ID of the management node.</p>
* <blockquote>
* <p> You can call the <a href="~~ListHoneypotNode~~">ListHoneypotNode</a> operation to obtain the ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>a882e590-b87b-45a6-87b9-d0a3e5a0****</p>
*/
public Builder controlNodeId(String controlNodeId) {
this.putQueryParameter("ControlNodeId", controlNodeId);
this.controlNodeId = controlNodeId;
return this;
}
/**
* <p>The language of the content within the request and the 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 type of the probe. Valid values:</p>
* <ul>
* <li><strong>host_probe</strong>: host probe</li>
* <li><strong>vpc_black_hole_probe</strong>: virtual private cloud (VPC) probe</li>
* </ul>
*
* <strong>example:</strong>
* <p>host_probe</p>
*/
public Builder probeType(String probeType) {
this.putQueryParameter("ProbeType", probeType);
this.probeType = probeType;
return this;
}
@Override
public ListHoneypotProbeUuidRequest build() {
return new ListHoneypotProbeUuidRequest(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/ListHoneypotProbeUuidResponse.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 ListHoneypotProbeUuidResponse} extends {@link TeaModel}
*
* <p>ListHoneypotProbeUuidResponse</p>
*/
public class ListHoneypotProbeUuidResponse 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 ListHoneypotProbeUuidResponseBody body;
private ListHoneypotProbeUuidResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotProbeUuidResponse 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 ListHoneypotProbeUuidResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotProbeUuidResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotProbeUuidResponseBody body);
@Override
ListHoneypotProbeUuidResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotProbeUuidResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotProbeUuidResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotProbeUuidResponse 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(ListHoneypotProbeUuidResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotProbeUuidResponse build() {
return new ListHoneypotProbeUuidResponse(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/ListHoneypotProbeUuidResponseBody.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 ListHoneypotProbeUuidResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotProbeUuidResponseBody</p>
*/
public class ListHoneypotProbeUuidResponseBody 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<String> 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 ListHoneypotProbeUuidResponseBody(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 ListHoneypotProbeUuidResponseBody 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<String> 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<String> data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(ListHoneypotProbeUuidResponseBody 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. 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>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The resources of the probe.</p>
*/
public Builder data(java.util.List<String> 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 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>32C9C2A6-B837-538E-921B-90746CB*****</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 ListHoneypotProbeUuidResponseBody build() {
return new ListHoneypotProbeUuidResponseBody(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/ListHoneypotRequest.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 ListHoneypotRequest} extends {@link RequestModel}
*
* <p>ListHoneypotRequest</p>
*/
public class ListHoneypotRequest 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("HoneypotIds")
private java.util.List<String> honeypotIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HoneypotName")
private String honeypotName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeName")
private String nodeName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private ListHoneypotRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.honeypotIds = builder.honeypotIds;
this.honeypotName = builder.honeypotName;
this.nodeId = builder.nodeId;
this.nodeName = builder.nodeName;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListHoneypotRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return honeypotIds
*/
public java.util.List<String> getHoneypotIds() {
return this.honeypotIds;
}
/**
* @return honeypotName
*/
public String getHoneypotName() {
return this.honeypotName;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeName
*/
public String getNodeName() {
return this.nodeName;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<ListHoneypotRequest, Builder> {
private Integer currentPage;
private java.util.List<String> honeypotIds;
private String honeypotName;
private String nodeId;
private String nodeName;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListHoneypotRequest request) {
super(request);
this.currentPage = request.currentPage;
this.honeypotIds = request.honeypotIds;
this.honeypotName = request.honeypotName;
this.nodeId = request.nodeId;
this.nodeName = request.nodeName;
this.pageSize = request.pageSize;
}
/**
* <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 IDs of the honeypots.</p>
*/
public Builder honeypotIds(java.util.List<String> honeypotIds) {
this.putQueryParameter("HoneypotIds", honeypotIds);
this.honeypotIds = honeypotIds;
return this;
}
/**
* <p>The name of the honeypot.</p>
*
* <strong>example:</strong>
* <p>mx-rouyi</p>
*/
public Builder honeypotName(String honeypotName) {
this.putQueryParameter("HoneypotName", honeypotName);
this.honeypotName = honeypotName;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>a882e590-b87b-45a6-87b9-d0a3e5a0****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>honeypot_master</p>
*/
public Builder nodeName(String nodeName) {
this.putQueryParameter("NodeName", nodeName);
this.nodeName = nodeName;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public ListHoneypotRequest build() {
return new ListHoneypotRequest(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/ListHoneypotResponse.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 ListHoneypotResponse} extends {@link TeaModel}
*
* <p>ListHoneypotResponse</p>
*/
public class ListHoneypotResponse 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 ListHoneypotResponseBody body;
private ListHoneypotResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHoneypotResponse 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 ListHoneypotResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHoneypotResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHoneypotResponseBody body);
@Override
ListHoneypotResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHoneypotResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHoneypotResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHoneypotResponse 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(ListHoneypotResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHoneypotResponse build() {
return new ListHoneypotResponse(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/ListHoneypotResponseBody.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 ListHoneypotResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotResponseBody</p>
*/
public class ListHoneypotResponseBody 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 ListHoneypotResponseBody(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 ListHoneypotResponseBody 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(ListHoneypotResponseBody 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 status code returned. The status code <strong>200</strong> indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>An array that consists of the information about the honeypots.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>C80AFF1F-CC20-502C-A4D4-F5433E529B69</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 ListHoneypotResponseBody build() {
return new ListHoneypotResponseBody(this);
}
}
/**
*
* {@link ListHoneypotResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ControlNodeName")
private String controlNodeName;
@com.aliyun.core.annotation.NameInMap("HoneypotId")
private String honeypotId;
@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("HoneypotName")
private String honeypotName;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("PresetId")
private String presetId;
@com.aliyun.core.annotation.NameInMap("State")
private java.util.List<String> state;
private List(Builder builder) {
this.controlNodeName = builder.controlNodeName;
this.honeypotId = builder.honeypotId;
this.honeypotImageDisplayName = builder.honeypotImageDisplayName;
this.honeypotImageId = builder.honeypotImageId;
this.honeypotImageName = builder.honeypotImageName;
this.honeypotName = builder.honeypotName;
this.nodeId = builder.nodeId;
this.presetId = builder.presetId;
this.state = builder.state;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return controlNodeName
*/
public String getControlNodeName() {
return this.controlNodeName;
}
/**
* @return honeypotId
*/
public String getHoneypotId() {
return this.honeypotId;
}
/**
* @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 honeypotName
*/
public String getHoneypotName() {
return this.honeypotName;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return presetId
*/
public String getPresetId() {
return this.presetId;
}
/**
* @return state
*/
public java.util.List<String> getState() {
return this.state;
}
public static final class Builder {
private String controlNodeName;
private String honeypotId;
private String honeypotImageDisplayName;
private String honeypotImageId;
private String honeypotImageName;
private String honeypotName;
private String nodeId;
private String presetId;
private java.util.List<String> state;
private Builder() {
}
private Builder(List model) {
this.controlNodeName = model.controlNodeName;
this.honeypotId = model.honeypotId;
this.honeypotImageDisplayName = model.honeypotImageDisplayName;
this.honeypotImageId = model.honeypotImageId;
this.honeypotImageName = model.honeypotImageName;
this.honeypotName = model.honeypotName;
this.nodeId = model.nodeId;
this.presetId = model.presetId;
this.state = model.state;
}
/**
* <p>The name of the management node.</p>
*
* <strong>example:</strong>
* <p>0804-pre</p>
*/
public Builder controlNodeName(String controlNodeName) {
this.controlNodeName = controlNodeName;
return this;
}
/**
* <p>The ID of the honeypot.</p>
*
* <strong>example:</strong>
* <p>76c2a1c72ef259777d96d55a7834e5f5d98f85666c49f76ad9caa447d8b7****</p>
*/
public Builder honeypotId(String honeypotId) {
this.honeypotId = honeypotId;
return this;
}
/**
* <p>The display name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>MongoDB</p>
*/
public Builder honeypotImageDisplayName(String honeypotImageDisplayName) {
this.honeypotImageDisplayName = honeypotImageDisplayName;
return this;
}
/**
* <p>The ID of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>sha256:eca5ced3757e46c24701e9ced4e652f2d730262d5685a4e001da22c4fb418fd4</p>
*/
public Builder honeypotImageId(String honeypotImageId) {
this.honeypotImageId = honeypotImageId;
return this;
}
/**
* <p>The name of the honeypot image.</p>
*
* <strong>example:</strong>
* <p>tcp_proxy</p>
*/
public Builder honeypotImageName(String honeypotImageName) {
this.honeypotImageName = honeypotImageName;
return this;
}
/**
* <p>The name of the honeypot.</p>
*
* <strong>example:</strong>
* <p>mx-rouyi</p>
*/
public Builder honeypotName(String honeypotName) {
this.honeypotName = honeypotName;
return this;
}
/**
* <p>The ID of the management node.</p>
*
* <strong>example:</strong>
* <p>c94eff5b-ea48-4805-8b7f-e04d3509b117</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The ID of the custom configuration for the honeypot.</p>
*
* <strong>example:</strong>
* <p>a882e590-b87b-45a6-87b9-d0a3e5a0****</p>
*/
public Builder presetId(String presetId) {
this.presetId = presetId;
return this;
}
/**
* <p>An array that consists of the status information about the honeypot.</p>
*/
public Builder state(java.util.List<String> state) {
this.state = state;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListHoneypotResponseBody} extends {@link TeaModel}
*
* <p>ListHoneypotResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/ListImageBuildRiskItemRequest.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 ListImageBuildRiskItemRequest} extends {@link RequestModel}
*
* <p>ListImageBuildRiskItemRequest</p>
*/
public class ListImageBuildRiskItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private ListImageBuildRiskItemRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static ListImageBuildRiskItemRequest 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<ListImageBuildRiskItemRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(ListImageBuildRiskItemRequest request) {
super(request);
this.lang = request.lang;
}
/**
* <p>The language of the content within the request and response. Default value: zh. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public ListImageBuildRiskItemRequest build() {
return new ListImageBuildRiskItemRequest(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/ListImageBuildRiskItemResponse.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 ListImageBuildRiskItemResponse} extends {@link TeaModel}
*
* <p>ListImageBuildRiskItemResponse</p>
*/
public class ListImageBuildRiskItemResponse 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 ListImageBuildRiskItemResponseBody body;
private ListImageBuildRiskItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListImageBuildRiskItemResponse 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 ListImageBuildRiskItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListImageBuildRiskItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListImageBuildRiskItemResponseBody body);
@Override
ListImageBuildRiskItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListImageBuildRiskItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListImageBuildRiskItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListImageBuildRiskItemResponse 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(ListImageBuildRiskItemResponseBody body) {
this.body = body;
return this;
}
@Override
public ListImageBuildRiskItemResponse build() {
return new ListImageBuildRiskItemResponse(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/ListImageBuildRiskItemResponseBody.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 ListImageBuildRiskItemResponseBody} extends {@link TeaModel}
*
* <p>ListImageBuildRiskItemResponseBody</p>
*/
public class ListImageBuildRiskItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListImageBuildRiskItemResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListImageBuildRiskItemResponseBody 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(ListImageBuildRiskItemResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The response parameters.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A3D7C47D-3F11-57BB-90E8-E5C20C619F37</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListImageBuildRiskItemResponseBody build() {
return new ListImageBuildRiskItemResponseBody(this);
}
}
/**
*
* {@link ListImageBuildRiskItemResponseBody} extends {@link TeaModel}
*
* <p>ListImageBuildRiskItemResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ItemKey")
private String itemKey;
@com.aliyun.core.annotation.NameInMap("ItemName")
private String itemName;
private Data(Builder builder) {
this.itemKey = builder.itemKey;
this.itemName = builder.itemName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return itemKey
*/
public String getItemKey() {
return this.itemKey;
}
/**
* @return itemName
*/
public String getItemName() {
return this.itemName;
}
public static final class Builder {
private String itemKey;
private String itemName;
private Builder() {
}
private Builder(Data model) {
this.itemKey = model.itemKey;
this.itemName = model.itemName;
}
/**
* <p>The type key of the risky build command.</p>
*
* <strong>example:</strong>
* <p>key</p>
*/
public Builder itemKey(String itemKey) {
this.itemKey = itemKey;
return this;
}
/**
* <p>The type name of the risky build command.</p>
*
* <strong>example:</strong>
* <p>itemName.</p>
*/
public Builder itemName(String itemName) {
this.itemName = itemName;
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/ListImageRegistryExtraRequest.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 ListImageRegistryExtraRequest} extends {@link RequestModel}
*
* <p>ListImageRegistryExtraRequest</p>
*/
public class ListImageRegistryExtraRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegistryId")
@com.aliyun.core.annotation.Validation(required = true)
private Long registryId;
private ListImageRegistryExtraRequest(Builder builder) {
super(builder);
this.registryId = builder.registryId;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRegistryExtraRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return registryId
*/
public Long getRegistryId() {
return this.registryId;
}
public static final class Builder extends Request.Builder<ListImageRegistryExtraRequest, Builder> {
private Long registryId;
private Builder() {
super();
}
private Builder(ListImageRegistryExtraRequest request) {
super(request);
this.registryId = request.registryId;
}
/**
* <p>Image registry ID.</p>
* <blockquote>
* <p>You can obtain this parameter by calling the <a href="~~PageImageRegistry~~">PageImageRegistry</a> interface.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>25363</p>
*/
public Builder registryId(Long registryId) {
this.putQueryParameter("RegistryId", registryId);
this.registryId = registryId;
return this;
}
@Override
public ListImageRegistryExtraRequest build() {
return new ListImageRegistryExtraRequest(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/ListImageRegistryExtraResponse.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 ListImageRegistryExtraResponse} extends {@link TeaModel}
*
* <p>ListImageRegistryExtraResponse</p>
*/
public class ListImageRegistryExtraResponse 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 ListImageRegistryExtraResponseBody body;
private ListImageRegistryExtraResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListImageRegistryExtraResponse 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 ListImageRegistryExtraResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListImageRegistryExtraResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListImageRegistryExtraResponseBody body);
@Override
ListImageRegistryExtraResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListImageRegistryExtraResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListImageRegistryExtraResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListImageRegistryExtraResponse 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(ListImageRegistryExtraResponseBody body) {
this.body = body;
return this;
}
@Override
public ListImageRegistryExtraResponse build() {
return new ListImageRegistryExtraResponse(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/ListImageRegistryExtraResponseBody.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 ListImageRegistryExtraResponseBody} extends {@link TeaModel}
*
* <p>ListImageRegistryExtraResponseBody</p>
*/
public class ListImageRegistryExtraResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageRegistryExtraInfos")
private java.util.List<ImageRegistryExtraInfos> imageRegistryExtraInfos;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListImageRegistryExtraResponseBody(Builder builder) {
this.imageRegistryExtraInfos = builder.imageRegistryExtraInfos;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRegistryExtraResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageRegistryExtraInfos
*/
public java.util.List<ImageRegistryExtraInfos> getImageRegistryExtraInfos() {
return this.imageRegistryExtraInfos;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ImageRegistryExtraInfos> imageRegistryExtraInfos;
private String requestId;
private Builder() {
}
private Builder(ListImageRegistryExtraResponseBody model) {
this.imageRegistryExtraInfos = model.imageRegistryExtraInfos;
this.requestId = model.requestId;
}
/**
* <p>Additional configuration information for the image registry.</p>
*/
public Builder imageRegistryExtraInfos(java.util.List<ImageRegistryExtraInfos> imageRegistryExtraInfos) {
this.imageRegistryExtraInfos = imageRegistryExtraInfos;
return this;
}
/**
* <p>The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues.</p>
*
* <strong>example:</strong>
* <p>09969D2C-4FAD-429E-BFBF-9A60DEF8****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListImageRegistryExtraResponseBody build() {
return new ListImageRegistryExtraResponseBody(this);
}
}
/**
*
* {@link ListImageRegistryExtraResponseBody} extends {@link TeaModel}
*
* <p>ListImageRegistryExtraResponseBody</p>
*/
public static class ImageRegistryExtraInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("AuthToken")
private String authToken;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.NameInMap("RegistryId")
private Long registryId;
@com.aliyun.core.annotation.NameInMap("RegistryType")
private String registryType;
private ImageRegistryExtraInfos(Builder builder) {
this.aliUid = builder.aliUid;
this.authToken = builder.authToken;
this.id = builder.id;
this.namespace = builder.namespace;
this.registryId = builder.registryId;
this.registryType = builder.registryType;
}
public static Builder builder() {
return new Builder();
}
public static ImageRegistryExtraInfos create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return authToken
*/
public String getAuthToken() {
return this.authToken;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return registryId
*/
public Long getRegistryId() {
return this.registryId;
}
/**
* @return registryType
*/
public String getRegistryType() {
return this.registryType;
}
public static final class Builder {
private Long aliUid;
private String authToken;
private Long id;
private String namespace;
private Long registryId;
private String registryType;
private Builder() {
}
private Builder(ImageRegistryExtraInfos model) {
this.aliUid = model.aliUid;
this.authToken = model.authToken;
this.id = model.id;
this.namespace = model.namespace;
this.registryId = model.registryId;
this.registryType = model.registryType;
}
/**
* <p>Alibaba Cloud account ID.</p>
*
* <strong>example:</strong>
* <p>176618589410****</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>Authorization token.</p>
*
* <strong>example:</strong>
* <p>64ad8ddf-6a4c-46b5-8dea-b105a06bd534</p>
*/
public Builder authToken(String authToken) {
this.authToken = authToken;
return this;
}
/**
* <p>Configuration ID.</p>
*
* <strong>example:</strong>
* <p>113441</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>Namespace of the image.</p>
*
* <strong>example:</strong>
* <p>public-goods</p>
*/
public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>Image registry ID.</p>
*
* <strong>example:</strong>
* <p>25363</p>
*/
public Builder registryId(Long registryId) {
this.registryId = registryId;
return this;
}
/**
* <p>Image registry type. Values:</p>
* <ul>
* <li><strong>acr</strong>: ACR</li>
* <li><strong>harbor</strong>: Harbor</li>
* <li><strong>quay</strong>: Quay</li>
* <li><strong>CI/CD</strong>: Jenkins</li>
* </ul>
*
* <strong>example:</strong>
* <p>harbor</p>
*/
public Builder registryType(String registryType) {
this.registryType = registryType;
return this;
}
public ImageRegistryExtraInfos build() {
return new ImageRegistryExtraInfos(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/ListImageRegistryRegionRequest.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 ListImageRegistryRegionRequest} extends {@link RequestModel}
*
* <p>ListImageRegistryRegionRequest</p>
*/
public class ListImageRegistryRegionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private ListImageRegistryRegionRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRegistryRegionRequest 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<ListImageRegistryRegionRequest, Builder> {
private String lang;
private Builder() {
super();
}
private Builder(ListImageRegistryRegionRequest request) {
super(request);
this.lang = request.lang;
}
/**
* Lang.
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public ListImageRegistryRegionRequest build() {
return new ListImageRegistryRegionRequest(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/ListImageRegistryRegionResponse.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 ListImageRegistryRegionResponse} extends {@link TeaModel}
*
* <p>ListImageRegistryRegionResponse</p>
*/
public class ListImageRegistryRegionResponse 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 ListImageRegistryRegionResponseBody body;
private ListImageRegistryRegionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListImageRegistryRegionResponse 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 ListImageRegistryRegionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListImageRegistryRegionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListImageRegistryRegionResponseBody body);
@Override
ListImageRegistryRegionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListImageRegistryRegionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListImageRegistryRegionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListImageRegistryRegionResponse 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(ListImageRegistryRegionResponseBody body) {
this.body = body;
return this;
}
@Override
public ListImageRegistryRegionResponse build() {
return new ListImageRegistryRegionResponse(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/ListImageRegistryRegionResponseBody.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 ListImageRegistryRegionResponseBody} extends {@link TeaModel}
*
* <p>ListImageRegistryRegionResponseBody</p>
*/
public class ListImageRegistryRegionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Regions")
private java.util.List<Regions> regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListImageRegistryRegionResponseBody(Builder builder) {
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRegistryRegionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regions
*/
public java.util.List<Regions> getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Regions> regions;
private String requestId;
private Builder() {
}
private Builder(ListImageRegistryRegionResponseBody model) {
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of regions.</p>
*/
public Builder regions(java.util.List<Regions> regions) {
this.regions = regions;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>291B49F9-1685-4005-9D34-606B6F78****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListImageRegistryRegionResponseBody build() {
return new ListImageRegistryRegionResponseBody(this);
}
}
/**
*
* {@link ListImageRegistryRegionResponseBody} extends {@link TeaModel}
*
* <p>ListImageRegistryRegionResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegionName")
private String regionName;
private Regions(Builder builder) {
this.regionId = builder.regionId;
this.regionName = builder.regionName;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return regionName
*/
public String getRegionName() {
return this.regionName;
}
public static final class Builder {
private String regionId;
private String regionName;
private Builder() {
}
private Builder(Regions model) {
this.regionId = model.regionId;
this.regionName = model.regionName;
}
/**
* <p>The region ID of the image.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The name of the region.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionName(String regionName) {
this.regionName = regionName;
return this;
}
public Regions build() {
return new Regions(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/ListImageRiskRequest.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 ListImageRiskRequest} extends {@link RequestModel}
*
* <p>ListImageRiskRequest</p>
*/
public class ListImageRiskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageName")
private String imageName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private ListImageRiskRequest(Builder builder) {
super(builder);
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.currentPage = builder.currentPage;
this.imageName = builder.imageName;
this.namespace = builder.namespace;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRiskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return imageName
*/
public String getImageName() {
return this.imageName;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<ListImageRiskRequest, Builder> {
private String appName;
private String clusterId;
private Integer currentPage;
private String imageName;
private String namespace;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListImageRiskRequest request) {
super(request);
this.appName = request.appName;
this.clusterId = request.clusterId;
this.currentPage = request.currentPage;
this.imageName = request.imageName;
this.namespace = request.namespace;
this.pageSize = request.pageSize;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>e****</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>The ID of the container cluster.</p>
* <blockquote>
* <p>You can call the <a href="~~DescribeGroupedContainerInstances~~">DescribeGroupedContainerInstances</a> operation to query the ID of the container cluster.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>c80f79959fd724a888e1187779b13****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
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 name of the image.</p>
*
* <strong>example:</strong>
* <p>container-<em><strong>:</strong></em>*</p>
*/
public Builder imageName(String imageName) {
this.putQueryParameter("ImageName", imageName);
this.imageName = imageName;
return this;
}
/**
* <p>The name of the namespace to which the repository belongs.</p>
*
* <strong>example:</strong>
* <p>kube-sy****</p>
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public ListImageRiskRequest build() {
return new ListImageRiskRequest(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/ListImageRiskResponse.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 ListImageRiskResponse} extends {@link TeaModel}
*
* <p>ListImageRiskResponse</p>
*/
public class ListImageRiskResponse 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 ListImageRiskResponseBody body;
private ListImageRiskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListImageRiskResponse 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 ListImageRiskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListImageRiskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListImageRiskResponseBody body);
@Override
ListImageRiskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListImageRiskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListImageRiskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListImageRiskResponse 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(ListImageRiskResponseBody body) {
this.body = body;
return this;
}
@Override
public ListImageRiskResponse build() {
return new ListImageRiskResponse(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/ListImageRiskResponseBody.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 ListImageRiskResponseBody} extends {@link TeaModel}
*
* <p>ListImageRiskResponseBody</p>
*/
public class ListImageRiskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageRiskList")
private java.util.List<ImageRiskList> imageRiskList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListImageRiskResponseBody(Builder builder) {
this.imageRiskList = builder.imageRiskList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListImageRiskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageRiskList
*/
public java.util.List<ImageRiskList> getImageRiskList() {
return this.imageRiskList;
}
/**
* @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<ImageRiskList> imageRiskList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListImageRiskResponseBody model) {
this.imageRiskList = model.imageRiskList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of security information about the image.</p>
*/
public Builder imageRiskList(java.util.List<ImageRiskList> imageRiskList) {
this.imageRiskList = imageRiskList;
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>050ACC7A-D4FD-55C6-B861-BA9569C1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListImageRiskResponseBody build() {
return new ListImageRiskResponseBody(this);
}
}
/**
*
* {@link ListImageRiskResponseBody} extends {@link TeaModel}
*
* <p>ListImageRiskResponseBody</p>
*/
public static class EndPointList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domains")
private java.util.List<String> domains;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private EndPointList(Builder builder) {
this.domains = builder.domains;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static EndPointList create() {
return builder().build();
}
/**
* @return domains
*/
public java.util.List<String> getDomains() {
return this.domains;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private java.util.List<String> domains;
private String type;
private Builder() {
}
private Builder(EndPointList model) {
this.domains = model.domains;
this.type = model.type;
}
/**
* <p>An array that consists the details of the domain name in the endpoint.</p>
*/
public Builder domains(java.util.List<String> domains) {
this.domains = domains;
return this;
}
/**
* <p>The type of the domain name in the endpoint. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: Internet</li>
* <li><strong>intranet</strong>: internal network</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public EndPointList build() {
return new EndPointList(this);
}
}
}
/**
*
* {@link ListImageRiskResponseBody} extends {@link TeaModel}
*
* <p>ListImageRiskResponseBody</p>
*/
public static class ImageRiskList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Digest")
private String digest;
@com.aliyun.core.annotation.NameInMap("EndPointList")
private java.util.List<EndPointList> endPointList;
@com.aliyun.core.annotation.NameInMap("Endpoints")
private String endpoints;
@com.aliyun.core.annotation.NameInMap("Image")
private String image;
@com.aliyun.core.annotation.NameInMap("ImageAccessType")
private String imageAccessType;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("InternetURLs")
private String internetURLs;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegistryType")
private String registryType;
@com.aliyun.core.annotation.NameInMap("RepoId")
private String repoId;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.NameInMap("RepoType")
private String repoType;
@com.aliyun.core.annotation.NameInMap("Statistics")
private String statistics;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("TagImmutable")
private Integer tagImmutable;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VpcURLs")
private String vpcURLs;
private ImageRiskList(Builder builder) {
this.digest = builder.digest;
this.endPointList = builder.endPointList;
this.endpoints = builder.endpoints;
this.image = builder.image;
this.imageAccessType = builder.imageAccessType;
this.imageId = builder.imageId;
this.internetURLs = builder.internetURLs;
this.regionId = builder.regionId;
this.registryType = builder.registryType;
this.repoId = builder.repoId;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.repoType = builder.repoType;
this.statistics = builder.statistics;
this.tag = builder.tag;
this.tagImmutable = builder.tagImmutable;
this.uuid = builder.uuid;
this.vpcURLs = builder.vpcURLs;
}
public static Builder builder() {
return new Builder();
}
public static ImageRiskList create() {
return builder().build();
}
/**
* @return digest
*/
public String getDigest() {
return this.digest;
}
/**
* @return endPointList
*/
public java.util.List<EndPointList> getEndPointList() {
return this.endPointList;
}
/**
* @return endpoints
*/
public String getEndpoints() {
return this.endpoints;
}
/**
* @return image
*/
public String getImage() {
return this.image;
}
/**
* @return imageAccessType
*/
public String getImageAccessType() {
return this.imageAccessType;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return internetURLs
*/
public String getInternetURLs() {
return this.internetURLs;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return registryType
*/
public String getRegistryType() {
return this.registryType;
}
/**
* @return repoId
*/
public String getRepoId() {
return this.repoId;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return repoType
*/
public String getRepoType() {
return this.repoType;
}
/**
* @return statistics
*/
public String getStatistics() {
return this.statistics;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return tagImmutable
*/
public Integer getTagImmutable() {
return this.tagImmutable;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vpcURLs
*/
public String getVpcURLs() {
return this.vpcURLs;
}
public static final class Builder {
private String digest;
private java.util.List<EndPointList> endPointList;
private String endpoints;
private String image;
private String imageAccessType;
private String imageId;
private String internetURLs;
private String regionId;
private String registryType;
private String repoId;
private String repoName;
private String repoNamespace;
private String repoType;
private String statistics;
private String tag;
private Integer tagImmutable;
private String uuid;
private String vpcURLs;
private Builder() {
}
private Builder(ImageRiskList model) {
this.digest = model.digest;
this.endPointList = model.endPointList;
this.endpoints = model.endpoints;
this.image = model.image;
this.imageAccessType = model.imageAccessType;
this.imageId = model.imageId;
this.internetURLs = model.internetURLs;
this.regionId = model.regionId;
this.registryType = model.registryType;
this.repoId = model.repoId;
this.repoName = model.repoName;
this.repoNamespace = model.repoNamespace;
this.repoType = model.repoType;
this.statistics = model.statistics;
this.tag = model.tag;
this.tagImmutable = model.tagImmutable;
this.uuid = model.uuid;
this.vpcURLs = model.vpcURLs;
}
/**
* <p>The digest value of the image.</p>
*
* <strong>example:</strong>
* <p>3f8efc2184cf1d24936b49c27286a284714b77be34c80c9ee38ca6bf322445****</p>
*/
public Builder digest(String digest) {
this.digest = digest;
return this;
}
/**
* <p>An array that consists of the details of the endpoint.</p>
*/
public Builder endPointList(java.util.List<EndPointList> endPointList) {
this.endPointList = endPointList;
return this;
}
/**
* <p>The endpoint of Container Registry.</p>
*
* <strong>example:</strong>
* <p><a href="https://172.20.XXX.XXX/test">https://172.20.XXX.XXX/test</a></p>
*/
public Builder endpoints(String endpoints) {
this.endpoints = endpoints;
return this;
}
/**
* <p>The image of the container.</p>
*
* <strong>example:</strong>
* <p>.aliyuncs.com/sas_test/baseline:exploit</p>
*/
public Builder image(String image) {
this.image = image;
return this;
}
/**
* <p>The registration status of the image repository. Valid values:</p>
* <ul>
* <li><strong>IN_SAS</strong>: The image repository is registered with Security Center.</li>
* <li><strong>NOT_IN_SAS</strong>: The image repository is not registered with Security Center.</li>
* </ul>
*
* <strong>example:</strong>
* <p>IN_SAS</p>
*/
public Builder imageAccessType(String imageAccessType) {
this.imageAccessType = imageAccessType;
return this;
}
/**
* <p>The ID of the image.</p>
*
* <strong>example:</strong>
* <p>f922bfeb6960436fe3f0e7b62fc6b9a0b47980986669c367c22433269404****</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The public endpoint of the image repository.</p>
*
* <strong>example:</strong>
* <p><strong><strong>registry-registry.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-</strong></strong></p>
*/
public Builder internetURLs(String internetURLs) {
this.internetURLs = internetURLs;
return this;
}
/**
* <p>The region of the image repository.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The type of the image repository. Valid values:</p>
* <ul>
* <li><strong>acr</strong></li>
* <li><strong>harbor</strong></li>
* <li><strong>quay</strong></li>
* <li><strong>CI/CD</strong>: Jenkins</li>
* </ul>
*
* <strong>example:</strong>
* <p>harbor</p>
*/
public Builder registryType(String registryType) {
this.registryType = registryType;
return this;
}
/**
* <p>The ID of the image repository.</p>
*
* <strong>example:</strong>
* <p>crr-bk2l746eyxca1****</p>
*/
public Builder repoId(String repoId) {
this.repoId = repoId;
return this;
}
/**
* <p>The name of the image repository.</p>
*
* <strong>example:</strong>
* <p>scan_test</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The name of the namespace to which the repository belongs.</p>
*
* <strong>example:</strong>
* <p>vultar***</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The type of the repository. Valid values:</p>
* <ul>
* <li><code>PUBLIC</code></li>
* <li><code>PRIVATE</code></li>
* </ul>
*
* <strong>example:</strong>
* <p>PRIVATE</p>
*/
public Builder repoType(String repoType) {
this.repoType = repoType;
return this;
}
/**
* <p>The statistics on a security event.</p>
*
* <strong>example:</strong>
* <p>{
* "baselineNum": 0,
* "newSuspicious": 0,
* "vul": 0
* }</p>
*/
public Builder statistics(String statistics) {
this.statistics = statistics;
return this;
}
/**
* <p>The tag that is added to the image.</p>
*
* <strong>example:</strong>
* <p>0.1.0</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>Indicates whether the image version is immutable. If the image version is immutable, only the image of the latest version in the image repository can be overwritten. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The image version is mutable.</li>
* <li><strong>1</strong>: The image version is immutable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder tagImmutable(Integer tagImmutable) {
this.tagImmutable = tagImmutable;
return this;
}
/**
* <p>The UUID of the image.</p>
*
* <strong>example:</strong>
* <p>624778f3-5bf2-423c-ac0c-47a62c05****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The endpoint of the image repository in the VPC.</p>
*
* <strong>example:</strong>
* <p><strong><strong>-registry-registry-vpc.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-</strong></strong></p>
*/
public Builder vpcURLs(String vpcURLs) {
this.vpcURLs = vpcURLs;
return this;
}
public ImageRiskList build() {
return new ImageRiskList(this);
}
}
}
/**
*
* {@link ListImageRiskResponseBody} extends {@link TeaModel}
*
* <p>ListImageRiskResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</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>23</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/ListInstanceCatalogRequest.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 ListInstanceCatalogRequest} extends {@link RequestModel}
*
* <p>ListInstanceCatalogRequest</p>
*/
public class ListInstanceCatalogRequest 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("OnlyCustom")
private Boolean onlyCustom;
@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("StandardIds")
private java.util.List<Long> standardIds;
@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;
private ListInstanceCatalogRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.onlyCustom = builder.onlyCustom;
this.regionId = builder.regionId;
this.requirementIds = builder.requirementIds;
this.standardIds = builder.standardIds;
this.taskSources = builder.taskSources;
this.types = builder.types;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceCatalogRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return onlyCustom
*/
public Boolean getOnlyCustom() {
return this.onlyCustom;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requirementIds
*/
public java.util.List<Long> getRequirementIds() {
return this.requirementIds;
}
/**
* @return standardIds
*/
public java.util.List<Long> getStandardIds() {
return this.standardIds;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return types
*/
public java.util.List<String> getTypes() {
return this.types;
}
public static final class Builder extends Request.Builder<ListInstanceCatalogRequest, Builder> {
private String lang;
private Boolean onlyCustom;
private String regionId;
private java.util.List<Long> requirementIds;
private java.util.List<Long> standardIds;
private java.util.List<String> taskSources;
private java.util.List<String> types;
private Builder() {
super();
}
private Builder(ListInstanceCatalogRequest request) {
super(request);
this.lang = request.lang;
this.onlyCustom = request.onlyCustom;
this.regionId = request.regionId;
this.requirementIds = request.requirementIds;
this.standardIds = request.standardIds;
this.taskSources = request.taskSources;
this.types = request.types;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>Specifies whether to filter the assets that support custom checks. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Filter assets that support custom checks.</li>
* <li><strong>false</strong>: All assets are selected. This is the default value.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder onlyCustom(Boolean onlyCustom) {
this.putQueryParameter("OnlyCustom", onlyCustom);
this.onlyCustom = onlyCustom;
return this;
}
/**
* <p>The ID of the region in which the asset resides. 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 requirement items.</p>
*/
public Builder requirementIds(java.util.List<Long> requirementIds) {
this.putQueryParameter("RequirementIds", requirementIds);
this.requirementIds = requirementIds;
return this;
}
/**
* <p>The IDs of standards.</p>
*/
public Builder standardIds(java.util.List<Long> standardIds) {
this.putQueryParameter("StandardIds", standardIds);
this.standardIds = standardIds;
return this;
}
/**
* TaskSources.
*/
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;
}
@Override
public ListInstanceCatalogRequest build() {
return new ListInstanceCatalogRequest(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/ListInstanceCatalogResponse.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 ListInstanceCatalogResponse} extends {@link TeaModel}
*
* <p>ListInstanceCatalogResponse</p>
*/
public class ListInstanceCatalogResponse 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 ListInstanceCatalogResponseBody body;
private ListInstanceCatalogResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInstanceCatalogResponse 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 ListInstanceCatalogResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInstanceCatalogResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInstanceCatalogResponseBody body);
@Override
ListInstanceCatalogResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInstanceCatalogResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInstanceCatalogResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInstanceCatalogResponse 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(ListInstanceCatalogResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInstanceCatalogResponse build() {
return new ListInstanceCatalogResponse(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/ListInstanceCatalogResponseBody.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 ListInstanceCatalogResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceCatalogResponseBody</p>
*/
public class ListInstanceCatalogResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Vendors")
private java.util.List<Vendors> vendors;
private ListInstanceCatalogResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vendors = builder.vendors;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceCatalogResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vendors
*/
public java.util.List<Vendors> getVendors() {
return this.vendors;
}
public static final class Builder {
private String requestId;
private java.util.List<Vendors> vendors;
private Builder() {
}
private Builder(ListInstanceCatalogResponseBody model) {
this.requestId = model.requestId;
this.vendors = model.vendors;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0D42A83F-CE33-5F54-A5AE-05DA39F59E1B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The asset types by service provider.</p>
*/
public Builder vendors(java.util.List<Vendors> vendors) {
this.vendors = vendors;
return this;
}
public ListInstanceCatalogResponseBody build() {
return new ListInstanceCatalogResponseBody(this);
}
}
/**
*
* {@link ListInstanceCatalogResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceCatalogResponseBody</p>
*/
public static class InstanceSubTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private Integer value;
private InstanceSubTypes(Builder builder) {
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static InstanceSubTypes create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public Integer getValue() {
return this.value;
}
public static final class Builder {
private String name;
private Integer value;
private Builder() {
}
private Builder(InstanceSubTypes model) {
this.name = model.name;
this.value = model.value;
}
/**
* <p>The name of the asset subtype.</p>
*
* <strong>example:</strong>
* <p>SECURITY_GROUP</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the asset subtype.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(Integer value) {
this.value = value;
return this;
}
public InstanceSubTypes build() {
return new InstanceSubTypes(this);
}
}
}
/**
*
* {@link ListInstanceCatalogResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceCatalogResponseBody</p>
*/
public static class InstanceTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceSubTypes")
private java.util.List<InstanceSubTypes> instanceSubTypes;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private Integer value;
private InstanceTypes(Builder builder) {
this.instanceSubTypes = builder.instanceSubTypes;
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static InstanceTypes create() {
return builder().build();
}
/**
* @return instanceSubTypes
*/
public java.util.List<InstanceSubTypes> getInstanceSubTypes() {
return this.instanceSubTypes;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public Integer getValue() {
return this.value;
}
public static final class Builder {
private java.util.List<InstanceSubTypes> instanceSubTypes;
private String name;
private Integer value;
private Builder() {
}
private Builder(InstanceTypes model) {
this.instanceSubTypes = model.instanceSubTypes;
this.name = model.name;
this.value = model.value;
}
/**
* <p>The asset subtypes.</p>
*/
public Builder instanceSubTypes(java.util.List<InstanceSubTypes> instanceSubTypes) {
this.instanceSubTypes = instanceSubTypes;
return this;
}
/**
* <p>The name of the asset type.</p>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the asset type. 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 (MongoDB)</li>
* <li><strong>5</strong>: Tair (Redis OSS-compatible)</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 (CDN)</li>
* <li><strong>13</strong>: Certificate Management Service (formerly SSL Certificates Service)</li>
* <li><strong>14</strong>: Alibaba Cloud DevOps</li>
* <li><strong>15</strong>: Resource Access Management (RAM)</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>: Apsara 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) - Enterprise Identity Access Management (EIAM)</li>
* <li><strong>26</strong>: PolarDB for Xscale (PolarDB-X)</li>
* <li><strong>27</strong>: Elasticsearch</li>
* </ul>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder value(Integer value) {
this.value = value;
return this;
}
public InstanceTypes build() {
return new InstanceTypes(this);
}
}
}
/**
*
* {@link ListInstanceCatalogResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceCatalogResponseBody</p>
*/
public static class Vendors extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceTypes")
private java.util.List<InstanceTypes> instanceTypes;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Value")
private Integer value;
private Vendors(Builder builder) {
this.instanceTypes = builder.instanceTypes;
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Vendors create() {
return builder().build();
}
/**
* @return instanceTypes
*/
public java.util.List<InstanceTypes> getInstanceTypes() {
return this.instanceTypes;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public Integer getValue() {
return this.value;
}
public static final class Builder {
private java.util.List<InstanceTypes> instanceTypes;
private String name;
private Integer value;
private Builder() {
}
private Builder(Vendors model) {
this.instanceTypes = model.instanceTypes;
this.name = model.name;
this.value = model.value;
}
/**
* <p>The asset types.</p>
*/
public Builder instanceTypes(java.util.List<InstanceTypes> instanceTypes) {
this.instanceTypes = instanceTypes;
return this;
}
/**
* <p>The name of the service provider.</p>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the service provider type. 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>: an asset from a third-party cloud service provider</li>
* <li><strong>8</strong>: a lightweight cloud asset</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder value(Integer value) {
this.value = value;
return this;
}
public Vendors build() {
return new Vendors(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/ListInstanceRiskLevelsRequest.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 ListInstanceRiskLevelsRequest} extends {@link RequestModel}
*
* <p>ListInstanceRiskLevelsRequest</p>
*/
public class ListInstanceRiskLevelsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceList")
private java.util.List<InstanceList> instanceList;
private ListInstanceRiskLevelsRequest(Builder builder) {
super(builder);
this.instanceList = builder.instanceList;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRiskLevelsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceList
*/
public java.util.List<InstanceList> getInstanceList() {
return this.instanceList;
}
public static final class Builder extends Request.Builder<ListInstanceRiskLevelsRequest, Builder> {
private java.util.List<InstanceList> instanceList;
private Builder() {
super();
}
private Builder(ListInstanceRiskLevelsRequest request) {
super(request);
this.instanceList = request.instanceList;
}
/**
* <p>The instances.</p>
*/
public Builder instanceList(java.util.List<InstanceList> instanceList) {
this.putQueryParameter("InstanceList", instanceList);
this.instanceList = instanceList;
return this;
}
@Override
public ListInstanceRiskLevelsRequest build() {
return new ListInstanceRiskLevelsRequest(this);
}
}
/**
*
* {@link ListInstanceRiskLevelsRequest} extends {@link TeaModel}
*
* <p>ListInstanceRiskLevelsRequest</p>
*/
public static class InstanceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private InstanceList(Builder builder) {
this.instanceId = builder.instanceId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static InstanceList create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String instanceId;
private String uuid;
private Builder() {
}
private Builder(InstanceList model) {
this.instanceId = model.instanceId;
this.uuid = model.uuid;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-m5efigezp50l2cmb****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The serial number of the instance.</p>
*
* <strong>example:</strong>
* <p>f2d6e901-1004-4ca8-9dae-53ec04a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
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/ListInstanceRiskLevelsResponse.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 ListInstanceRiskLevelsResponse} extends {@link TeaModel}
*
* <p>ListInstanceRiskLevelsResponse</p>
*/
public class ListInstanceRiskLevelsResponse 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 ListInstanceRiskLevelsResponseBody body;
private ListInstanceRiskLevelsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInstanceRiskLevelsResponse 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 ListInstanceRiskLevelsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInstanceRiskLevelsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInstanceRiskLevelsResponseBody body);
@Override
ListInstanceRiskLevelsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInstanceRiskLevelsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInstanceRiskLevelsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInstanceRiskLevelsResponse 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(ListInstanceRiskLevelsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInstanceRiskLevelsResponse build() {
return new ListInstanceRiskLevelsResponse(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/ListInstanceRiskLevelsResponseBody.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 ListInstanceRiskLevelsResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskLevelsResponseBody</p>
*/
public class ListInstanceRiskLevelsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceRiskLevels")
private java.util.List<InstanceRiskLevels> instanceRiskLevels;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListInstanceRiskLevelsResponseBody(Builder builder) {
this.instanceRiskLevels = builder.instanceRiskLevels;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRiskLevelsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceRiskLevels
*/
public java.util.List<InstanceRiskLevels> getInstanceRiskLevels() {
return this.instanceRiskLevels;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<InstanceRiskLevels> instanceRiskLevels;
private String requestId;
private Builder() {
}
private Builder(ListInstanceRiskLevelsResponseBody model) {
this.instanceRiskLevels = model.instanceRiskLevels;
this.requestId = model.requestId;
}
/**
* <p>The risk levels of instances.</p>
*/
public Builder instanceRiskLevels(java.util.List<InstanceRiskLevels> instanceRiskLevels) {
this.instanceRiskLevels = instanceRiskLevels;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F5CF78A7-30AA-59DB-847F-13EE3AE7****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListInstanceRiskLevelsResponseBody build() {
return new ListInstanceRiskLevelsResponseBody(this);
}
}
/**
*
* {@link ListInstanceRiskLevelsResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskLevelsResponseBody</p>
*/
public static class InstanceRiskLevels extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Level")
private String level;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private InstanceRiskLevels(Builder builder) {
this.instanceId = builder.instanceId;
this.level = builder.level;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static InstanceRiskLevels create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return level
*/
public String getLevel() {
return this.level;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String instanceId;
private String level;
private String uuid;
private Builder() {
}
private Builder(InstanceRiskLevels model) {
this.instanceId = model.instanceId;
this.level = model.level;
this.uuid = model.uuid;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-m5efigezp50l2cmb****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* <li><strong>none</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>high</p>
*/
public Builder level(String level) {
this.level = level;
return this;
}
/**
* <p>The UUID of the server for which you want to modify the defense rule. You can call the <a href="https://help.aliyun.com/document_detail/141932.html">DescribeCloudCenterInstances</a> operation to query the UUIDs of servers.</p>
*
* <strong>example:</strong>
* <p>f2d6e901-1004-4ca8-9dae-53ec04a92765</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public InstanceRiskLevels build() {
return new InstanceRiskLevels(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/ListInstanceRiskNumRequest.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 ListInstanceRiskNumRequest} extends {@link RequestModel}
*
* <p>ListInstanceRiskNumRequest</p>
*/
public class ListInstanceRiskNumRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceList")
private java.util.List<InstanceList> instanceList;
private ListInstanceRiskNumRequest(Builder builder) {
super(builder);
this.instanceList = builder.instanceList;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRiskNumRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceList
*/
public java.util.List<InstanceList> getInstanceList() {
return this.instanceList;
}
public static final class Builder extends Request.Builder<ListInstanceRiskNumRequest, Builder> {
private java.util.List<InstanceList> instanceList;
private Builder() {
super();
}
private Builder(ListInstanceRiskNumRequest request) {
super(request);
this.instanceList = request.instanceList;
}
/**
* <p>The instances.</p>
*/
public Builder instanceList(java.util.List<InstanceList> instanceList) {
this.putQueryParameter("InstanceList", instanceList);
this.instanceList = instanceList;
return this;
}
@Override
public ListInstanceRiskNumRequest build() {
return new ListInstanceRiskNumRequest(this);
}
}
/**
*
* {@link ListInstanceRiskNumRequest} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumRequest</p>
*/
public static class InstanceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private InstanceList(Builder builder) {
this.instanceId = builder.instanceId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static InstanceList create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String instanceId;
private String uuid;
private Builder() {
}
private Builder(InstanceList model) {
this.instanceId = model.instanceId;
this.uuid = model.uuid;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-wz9fdluqx20mp2x7****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The UUID of the instance.</p>
*
* <strong>example:</strong>
* <p>f2d6e901-1004-4ca8-9dae-53ec04a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
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/ListInstanceRiskNumResponse.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 ListInstanceRiskNumResponse} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumResponse</p>
*/
public class ListInstanceRiskNumResponse 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 ListInstanceRiskNumResponseBody body;
private ListInstanceRiskNumResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInstanceRiskNumResponse 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 ListInstanceRiskNumResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInstanceRiskNumResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInstanceRiskNumResponseBody body);
@Override
ListInstanceRiskNumResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInstanceRiskNumResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInstanceRiskNumResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInstanceRiskNumResponse 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(ListInstanceRiskNumResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInstanceRiskNumResponse build() {
return new ListInstanceRiskNumResponse(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/ListInstanceRiskNumResponseBody.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 ListInstanceRiskNumResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumResponseBody</p>
*/
public class ListInstanceRiskNumResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceRiskNum")
private java.util.List<InstanceRiskNum> instanceRiskNum;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListInstanceRiskNumResponseBody(Builder builder) {
this.instanceRiskNum = builder.instanceRiskNum;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRiskNumResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceRiskNum
*/
public java.util.List<InstanceRiskNum> getInstanceRiskNum() {
return this.instanceRiskNum;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<InstanceRiskNum> instanceRiskNum;
private String requestId;
private Builder() {
}
private Builder(ListInstanceRiskNumResponseBody model) {
this.instanceRiskNum = model.instanceRiskNum;
this.requestId = model.requestId;
}
/**
* <p>The information about the risks in the instance.</p>
*/
public Builder instanceRiskNum(java.util.List<InstanceRiskNum> instanceRiskNum) {
this.instanceRiskNum = instanceRiskNum;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>291B49F9-1685-4005-9D34-606B6F78****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListInstanceRiskNumResponseBody build() {
return new ListInstanceRiskNumResponseBody(this);
}
}
/**
*
* {@link ListInstanceRiskNumResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumResponseBody</p>
*/
public static class InstanceItem extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private InstanceItem(Builder builder) {
this.instanceId = builder.instanceId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static InstanceItem create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String instanceId;
private String uuid;
private Builder() {
}
private Builder(InstanceItem model) {
this.instanceId = model.instanceId;
this.uuid = model.uuid;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>i-wz9fdluqx20mp2x7****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The UUID of the instance.</p>
*
* <strong>example:</strong>
* <p>f2d6e901-1004-4ca8-9dae-53ec04a9****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public InstanceItem build() {
return new InstanceItem(this);
}
}
}
/**
*
* {@link ListInstanceRiskNumResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumResponseBody</p>
*/
public static class RiskNumEntity extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SuspiciousHighCount")
private Integer suspiciousHighCount;
@com.aliyun.core.annotation.NameInMap("SuspiciousLowCount")
private Integer suspiciousLowCount;
@com.aliyun.core.annotation.NameInMap("SuspiciousMediumCount")
private Integer suspiciousMediumCount;
@com.aliyun.core.annotation.NameInMap("VulHighCount")
private Integer vulHighCount;
@com.aliyun.core.annotation.NameInMap("VulLowCount")
private Integer vulLowCount;
@com.aliyun.core.annotation.NameInMap("VulMediumCount")
private Integer vulMediumCount;
@com.aliyun.core.annotation.NameInMap("WeakPassWordCount")
private Integer weakPassWordCount;
private RiskNumEntity(Builder builder) {
this.suspiciousHighCount = builder.suspiciousHighCount;
this.suspiciousLowCount = builder.suspiciousLowCount;
this.suspiciousMediumCount = builder.suspiciousMediumCount;
this.vulHighCount = builder.vulHighCount;
this.vulLowCount = builder.vulLowCount;
this.vulMediumCount = builder.vulMediumCount;
this.weakPassWordCount = builder.weakPassWordCount;
}
public static Builder builder() {
return new Builder();
}
public static RiskNumEntity create() {
return builder().build();
}
/**
* @return suspiciousHighCount
*/
public Integer getSuspiciousHighCount() {
return this.suspiciousHighCount;
}
/**
* @return suspiciousLowCount
*/
public Integer getSuspiciousLowCount() {
return this.suspiciousLowCount;
}
/**
* @return suspiciousMediumCount
*/
public Integer getSuspiciousMediumCount() {
return this.suspiciousMediumCount;
}
/**
* @return vulHighCount
*/
public Integer getVulHighCount() {
return this.vulHighCount;
}
/**
* @return vulLowCount
*/
public Integer getVulLowCount() {
return this.vulLowCount;
}
/**
* @return vulMediumCount
*/
public Integer getVulMediumCount() {
return this.vulMediumCount;
}
/**
* @return weakPassWordCount
*/
public Integer getWeakPassWordCount() {
return this.weakPassWordCount;
}
public static final class Builder {
private Integer suspiciousHighCount;
private Integer suspiciousLowCount;
private Integer suspiciousMediumCount;
private Integer vulHighCount;
private Integer vulLowCount;
private Integer vulMediumCount;
private Integer weakPassWordCount;
private Builder() {
}
private Builder(RiskNumEntity model) {
this.suspiciousHighCount = model.suspiciousHighCount;
this.suspiciousLowCount = model.suspiciousLowCount;
this.suspiciousMediumCount = model.suspiciousMediumCount;
this.vulHighCount = model.vulHighCount;
this.vulLowCount = model.vulLowCount;
this.vulMediumCount = model.vulMediumCount;
this.weakPassWordCount = model.weakPassWordCount;
}
/**
* <p>The number of high-risk alerts.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder suspiciousHighCount(Integer suspiciousHighCount) {
this.suspiciousHighCount = suspiciousHighCount;
return this;
}
/**
* <p>The number of low-risk alerts.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder suspiciousLowCount(Integer suspiciousLowCount) {
this.suspiciousLowCount = suspiciousLowCount;
return this;
}
/**
* <p>The number of medium-risk alerts.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder suspiciousMediumCount(Integer suspiciousMediumCount) {
this.suspiciousMediumCount = suspiciousMediumCount;
return this;
}
/**
* <p>The number of high-risk vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder vulHighCount(Integer vulHighCount) {
this.vulHighCount = vulHighCount;
return this;
}
/**
* <p>The number of low-risk vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder vulLowCount(Integer vulLowCount) {
this.vulLowCount = vulLowCount;
return this;
}
/**
* <p>The number of medium-risk vulnerabilities.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder vulMediumCount(Integer vulMediumCount) {
this.vulMediumCount = vulMediumCount;
return this;
}
/**
* <p>The number of weak passwords exposed on the Internet.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder weakPassWordCount(Integer weakPassWordCount) {
this.weakPassWordCount = weakPassWordCount;
return this;
}
public RiskNumEntity build() {
return new RiskNumEntity(this);
}
}
}
/**
*
* {@link ListInstanceRiskNumResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRiskNumResponseBody</p>
*/
public static class InstanceRiskNum extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceItem")
private InstanceItem instanceItem;
@com.aliyun.core.annotation.NameInMap("RiskNumEntity")
private RiskNumEntity riskNumEntity;
private InstanceRiskNum(Builder builder) {
this.instanceItem = builder.instanceItem;
this.riskNumEntity = builder.riskNumEntity;
}
public static Builder builder() {
return new Builder();
}
public static InstanceRiskNum create() {
return builder().build();
}
/**
* @return instanceItem
*/
public InstanceItem getInstanceItem() {
return this.instanceItem;
}
/**
* @return riskNumEntity
*/
public RiskNumEntity getRiskNumEntity() {
return this.riskNumEntity;
}
public static final class Builder {
private InstanceItem instanceItem;
private RiskNumEntity riskNumEntity;
private Builder() {
}
private Builder(InstanceRiskNum model) {
this.instanceItem = model.instanceItem;
this.riskNumEntity = model.riskNumEntity;
}
/**
* <p>The information about the instance.</p>
*/
public Builder instanceItem(InstanceItem instanceItem) {
this.instanceItem = instanceItem;
return this;
}
/**
* <p>The statistics about the risks.</p>
*/
public Builder riskNumEntity(RiskNumEntity riskNumEntity) {
this.riskNumEntity = riskNumEntity;
return this;
}
public InstanceRiskNum build() {
return new InstanceRiskNum(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/ListInterceptionHistoryRequest.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 ListInterceptionHistoryRequest} extends {@link RequestModel}
*
* <p>ListInterceptionHistoryRequest</p>
*/
public class ListInterceptionHistoryRequest 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("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("HistoryName")
private String historyName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InterceptionTypes")
private java.util.List<Integer> interceptionTypes;
@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("StartTime")
private Long startTime;
private ListInterceptionHistoryRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.currentPage = builder.currentPage;
this.endTime = builder.endTime;
this.historyName = builder.historyName;
this.interceptionTypes = builder.interceptionTypes;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionHistoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return historyName
*/
public String getHistoryName() {
return this.historyName;
}
/**
* @return interceptionTypes
*/
public java.util.List<Integer> getInterceptionTypes() {
return this.interceptionTypes;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<ListInterceptionHistoryRequest, Builder> {
private String clusterId;
private Integer currentPage;
private Long endTime;
private String historyName;
private java.util.List<Integer> interceptionTypes;
private String lang;
private Integer pageSize;
private Long startTime;
private Builder() {
super();
}
private Builder(ListInterceptionHistoryRequest request) {
super(request);
this.clusterId = request.clusterId;
this.currentPage = request.currentPage;
this.endTime = request.endTime;
this.historyName = request.historyName;
this.interceptionTypes = request.interceptionTypes;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.startTime = request.startTime;
}
/**
* <p>The ID of the container cluster.</p>
*
* <strong>example:</strong>
* <p>c7c190a82d9a048be9038d352840f****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
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 end of the time range to query. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1635575219000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The name of the alert.</p>
*
* <strong>example:</strong>
* <p>Abnormal access</p>
*/
public Builder historyName(String historyName) {
this.putQueryParameter("HistoryName", historyName);
this.historyName = historyName;
return this;
}
/**
* <p>The types of exceptions.</p>
*/
public Builder interceptionTypes(java.util.List<Integer> interceptionTypes) {
this.putQueryParameter("InterceptionTypes", interceptionTypes);
this.interceptionTypes = interceptionTypes;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The start of the time range to query. The value is a UNIX timestamp.</p>
*
* <strong>example:</strong>
* <p>1651290987000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public ListInterceptionHistoryRequest build() {
return new ListInterceptionHistoryRequest(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/ListInterceptionHistoryResponse.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 ListInterceptionHistoryResponse} extends {@link TeaModel}
*
* <p>ListInterceptionHistoryResponse</p>
*/
public class ListInterceptionHistoryResponse 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 ListInterceptionHistoryResponseBody body;
private ListInterceptionHistoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInterceptionHistoryResponse 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 ListInterceptionHistoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInterceptionHistoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInterceptionHistoryResponseBody body);
@Override
ListInterceptionHistoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInterceptionHistoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInterceptionHistoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInterceptionHistoryResponse 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(ListInterceptionHistoryResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInterceptionHistoryResponse build() {
return new ListInterceptionHistoryResponse(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/ListInterceptionHistoryResponseBody.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 ListInterceptionHistoryResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionHistoryResponseBody</p>
*/
public class ListInterceptionHistoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InterceptionHistoryList")
private java.util.List<InterceptionHistoryList> interceptionHistoryList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListInterceptionHistoryResponseBody(Builder builder) {
this.interceptionHistoryList = builder.interceptionHistoryList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionHistoryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return interceptionHistoryList
*/
public java.util.List<InterceptionHistoryList> getInterceptionHistoryList() {
return this.interceptionHistoryList;
}
/**
* @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<InterceptionHistoryList> interceptionHistoryList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListInterceptionHistoryResponseBody model) {
this.interceptionHistoryList = model.interceptionHistoryList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the alerts generated by defense rules.</p>
*/
public Builder interceptionHistoryList(java.util.List<InterceptionHistoryList> interceptionHistoryList) {
this.interceptionHistoryList = interceptionHistoryList;
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>D81DD78E-E006-5C65-A171-C8CB0904****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListInterceptionHistoryResponseBody build() {
return new ListInterceptionHistoryResponseBody(this);
}
}
/**
*
* {@link ListInterceptionHistoryResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionHistoryResponseBody</p>
*/
public static class InterceptionHistoryList 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("DstAppName")
private String dstAppName;
@com.aliyun.core.annotation.NameInMap("DstNamespace")
private String dstNamespace;
@com.aliyun.core.annotation.NameInMap("DstPort")
private Long dstPort;
@com.aliyun.core.annotation.NameInMap("DstRuleTargetName")
private String dstRuleTargetName;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InterceptionName")
private Long interceptionName;
@com.aliyun.core.annotation.NameInMap("InterceptionType")
private Integer interceptionType;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("RealDstAppName")
private String realDstAppName;
@com.aliyun.core.annotation.NameInMap("RealDstImageName")
private String realDstImageName;
@com.aliyun.core.annotation.NameInMap("RealDstNamespace")
private String realDstNamespace;
@com.aliyun.core.annotation.NameInMap("RealDstPodName")
private String realDstPodName;
@com.aliyun.core.annotation.NameInMap("RealInterceptionType")
private Integer realInterceptionType;
@com.aliyun.core.annotation.NameInMap("RealSrcAppName")
private String realSrcAppName;
@com.aliyun.core.annotation.NameInMap("RealSrcImageName")
private String realSrcImageName;
@com.aliyun.core.annotation.NameInMap("RealSrcNamespace")
private String realSrcNamespace;
@com.aliyun.core.annotation.NameInMap("RealSrcPodName")
private String realSrcPodName;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private Long riskLevel;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SrcAppName")
private String srcAppName;
@com.aliyun.core.annotation.NameInMap("SrcNamespace")
private String srcNamespace;
@com.aliyun.core.annotation.NameInMap("SrcRuleTargetName")
private String srcRuleTargetName;
@com.aliyun.core.annotation.NameInMap("Status")
private Long status;
@com.aliyun.core.annotation.NameInMap("TryCount")
private Integer tryCount;
private InterceptionHistoryList(Builder builder) {
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.dstAppName = builder.dstAppName;
this.dstNamespace = builder.dstNamespace;
this.dstPort = builder.dstPort;
this.dstRuleTargetName = builder.dstRuleTargetName;
this.firstTime = builder.firstTime;
this.id = builder.id;
this.interceptionName = builder.interceptionName;
this.interceptionType = builder.interceptionType;
this.lastTime = builder.lastTime;
this.realDstAppName = builder.realDstAppName;
this.realDstImageName = builder.realDstImageName;
this.realDstNamespace = builder.realDstNamespace;
this.realDstPodName = builder.realDstPodName;
this.realInterceptionType = builder.realInterceptionType;
this.realSrcAppName = builder.realSrcAppName;
this.realSrcImageName = builder.realSrcImageName;
this.realSrcNamespace = builder.realSrcNamespace;
this.realSrcPodName = builder.realSrcPodName;
this.riskLevel = builder.riskLevel;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.srcAppName = builder.srcAppName;
this.srcNamespace = builder.srcNamespace;
this.srcRuleTargetName = builder.srcRuleTargetName;
this.status = builder.status;
this.tryCount = builder.tryCount;
}
public static Builder builder() {
return new Builder();
}
public static InterceptionHistoryList create() {
return builder().build();
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return dstAppName
*/
public String getDstAppName() {
return this.dstAppName;
}
/**
* @return dstNamespace
*/
public String getDstNamespace() {
return this.dstNamespace;
}
/**
* @return dstPort
*/
public Long getDstPort() {
return this.dstPort;
}
/**
* @return dstRuleTargetName
*/
public String getDstRuleTargetName() {
return this.dstRuleTargetName;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return interceptionName
*/
public Long getInterceptionName() {
return this.interceptionName;
}
/**
* @return interceptionType
*/
public Integer getInterceptionType() {
return this.interceptionType;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return realDstAppName
*/
public String getRealDstAppName() {
return this.realDstAppName;
}
/**
* @return realDstImageName
*/
public String getRealDstImageName() {
return this.realDstImageName;
}
/**
* @return realDstNamespace
*/
public String getRealDstNamespace() {
return this.realDstNamespace;
}
/**
* @return realDstPodName
*/
public String getRealDstPodName() {
return this.realDstPodName;
}
/**
* @return realInterceptionType
*/
public Integer getRealInterceptionType() {
return this.realInterceptionType;
}
/**
* @return realSrcAppName
*/
public String getRealSrcAppName() {
return this.realSrcAppName;
}
/**
* @return realSrcImageName
*/
public String getRealSrcImageName() {
return this.realSrcImageName;
}
/**
* @return realSrcNamespace
*/
public String getRealSrcNamespace() {
return this.realSrcNamespace;
}
/**
* @return realSrcPodName
*/
public String getRealSrcPodName() {
return this.realSrcPodName;
}
/**
* @return riskLevel
*/
public Long getRiskLevel() {
return this.riskLevel;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return srcAppName
*/
public String getSrcAppName() {
return this.srcAppName;
}
/**
* @return srcNamespace
*/
public String getSrcNamespace() {
return this.srcNamespace;
}
/**
* @return srcRuleTargetName
*/
public String getSrcRuleTargetName() {
return this.srcRuleTargetName;
}
/**
* @return status
*/
public Long getStatus() {
return this.status;
}
/**
* @return tryCount
*/
public Integer getTryCount() {
return this.tryCount;
}
public static final class Builder {
private String clusterId;
private String clusterName;
private String dstAppName;
private String dstNamespace;
private Long dstPort;
private String dstRuleTargetName;
private Long firstTime;
private Long id;
private Long interceptionName;
private Integer interceptionType;
private Long lastTime;
private String realDstAppName;
private String realDstImageName;
private String realDstNamespace;
private String realDstPodName;
private Integer realInterceptionType;
private String realSrcAppName;
private String realSrcImageName;
private String realSrcNamespace;
private String realSrcPodName;
private Long riskLevel;
private Long ruleId;
private String ruleName;
private String srcAppName;
private String srcNamespace;
private String srcRuleTargetName;
private Long status;
private Integer tryCount;
private Builder() {
}
private Builder(InterceptionHistoryList model) {
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.dstAppName = model.dstAppName;
this.dstNamespace = model.dstNamespace;
this.dstPort = model.dstPort;
this.dstRuleTargetName = model.dstRuleTargetName;
this.firstTime = model.firstTime;
this.id = model.id;
this.interceptionName = model.interceptionName;
this.interceptionType = model.interceptionType;
this.lastTime = model.lastTime;
this.realDstAppName = model.realDstAppName;
this.realDstImageName = model.realDstImageName;
this.realDstNamespace = model.realDstNamespace;
this.realDstPodName = model.realDstPodName;
this.realInterceptionType = model.realInterceptionType;
this.realSrcAppName = model.realSrcAppName;
this.realSrcImageName = model.realSrcImageName;
this.realSrcNamespace = model.realSrcNamespace;
this.realSrcPodName = model.realSrcPodName;
this.riskLevel = model.riskLevel;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.srcAppName = model.srcAppName;
this.srcNamespace = model.srcNamespace;
this.srcRuleTargetName = model.srcRuleTargetName;
this.status = model.status;
this.tryCount = model.tryCount;
}
/**
* <p>The ID of the container cluster.</p>
*
* <strong>example:</strong>
* <p>c556c8133b5ad4378b7fc533ddbda****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>opa-terway-nonet****</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* <p>The name of the destination application.</p>
*
* <strong>example:</strong>
* <p>sas-web****</p>
*/
public Builder dstAppName(String dstAppName) {
this.dstAppName = dstAppName;
return this;
}
/**
* <p>The destination namespace.</p>
*
* <strong>example:</strong>
* <p>service****</p>
*/
public Builder dstNamespace(String dstNamespace) {
this.dstNamespace = dstNamespace;
return this;
}
/**
* <p>The destination port range configured for the defense rule.</p>
*
* <strong>example:</strong>
* <p>33</p>
*/
public Builder dstPort(Long dstPort) {
this.dstPort = dstPort;
return this;
}
/**
* <p>The name of the destination network object.</p>
*
* <strong>example:</strong>
* <p>sas-web****</p>
*/
public Builder dstRuleTargetName(String dstRuleTargetName) {
this.dstRuleTargetName = dstRuleTargetName;
return this;
}
/**
* <p>The timestamp when the alert was first generated on the current day.</p>
*
* <strong>example:</strong>
* <p>1639718858000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>The ID of the alert.</p>
*
* <strong>example:</strong>
* <p>1126</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the alert.</p>
*
* <strong>example:</strong>
* <p>Abnormal access</p>
*/
public Builder interceptionName(Long interceptionName) {
this.interceptionName = interceptionName;
return this;
}
/**
* <p>The handling type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: monitor</li>
* <li><strong>1</strong>: intercept</li>
* <li><strong>2</strong>: generate alert</li>
* <li><strong>3</strong>: allow</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder interceptionType(Integer interceptionType) {
this.interceptionType = interceptionType;
return this;
}
/**
* <p>The timestamp when the alert was last generated on the current day.</p>
*
* <strong>example:</strong>
* <p>1639731078000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The name of the destination application.</p>
*
* <strong>example:</strong>
* <p>sas-service****</p>
*/
public Builder realDstAppName(String realDstAppName) {
this.realDstAppName = realDstAppName;
return this;
}
/**
* <p>The name of the destination image.</p>
*
* <strong>example:</strong>
* <p>sas-servi****</p>
*/
public Builder realDstImageName(String realDstImageName) {
this.realDstImageName = realDstImageName;
return this;
}
/**
* <p>The destination namespace.</p>
*
* <strong>example:</strong>
* <p>service****</p>
*/
public Builder realDstNamespace(String realDstNamespace) {
this.realDstNamespace = realDstNamespace;
return this;
}
/**
* <p>The destination pod.</p>
*
* <strong>example:</strong>
* <p>sas-web-84cc7dd9****</p>
*/
public Builder realDstPodName(String realDstPodName) {
this.realDstPodName = realDstPodName;
return this;
}
/**
* <p>The handling type of actual hits. Valid values:</p>
* <ul>
* <li><strong>0</strong>: monitor</li>
* <li><strong>1</strong>: intercept</li>
* <li><strong>2</strong>: generate alert</li>
* <li><strong>3</strong>: allow</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder realInterceptionType(Integer realInterceptionType) {
this.realInterceptionType = realInterceptionType;
return this;
}
/**
* <p>The name of the source application.</p>
*
* <strong>example:</strong>
* <p>sas-service****</p>
*/
public Builder realSrcAppName(String realSrcAppName) {
this.realSrcAppName = realSrcAppName;
return this;
}
/**
* <p>The name of the source image.</p>
*
* <strong>example:</strong>
* <p>sas-servi****</p>
*/
public Builder realSrcImageName(String realSrcImageName) {
this.realSrcImageName = realSrcImageName;
return this;
}
/**
* <p>The source namespace.</p>
*
* <strong>example:</strong>
* <p>service****</p>
*/
public Builder realSrcNamespace(String realSrcNamespace) {
this.realSrcNamespace = realSrcNamespace;
return this;
}
/**
* <p>The source pod.</p>
*
* <strong>example:</strong>
* <p>sas-service-757b9d****</p>
*/
public Builder realSrcPodName(String realSrcPodName) {
this.realSrcPodName = realSrcPodName;
return this;
}
/**
* <p>The risk level. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: unknown</li>
* <li><strong>0</strong>: none</li>
* <li><strong>1</strong>: low</li>
* <li><strong>2</strong>: medium</li>
* <li><strong>3</strong>: high</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskLevel(Long riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The ID of the defense rule based on which the alert was generated.</p>
*
* <strong>example:</strong>
* <p>136</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the defense rule.</p>
*
* <strong>example:</strong>
* <p>all****</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The name of the source application.</p>
*
* <strong>example:</strong>
* <p>sas-web****</p>
*/
public Builder srcAppName(String srcAppName) {
this.srcAppName = srcAppName;
return this;
}
/**
* <p>The source namespace.</p>
*
* <strong>example:</strong>
* <p>service****</p>
*/
public Builder srcNamespace(String srcNamespace) {
this.srcNamespace = srcNamespace;
return this;
}
/**
* <p>The name of the source network object.</p>
*
* <strong>example:</strong>
* <p>sas-web****</p>
*/
public Builder srcRuleTargetName(String srcRuleTargetName) {
this.srcRuleTargetName = srcRuleTargetName;
return this;
}
/**
* <p>The handling status. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unhandled</li>
* <li><strong>1</strong>: handled</li>
* <li><strong>2</strong>: manually handled</li>
* <li><strong>3</strong>: ignored</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder status(Long status) {
this.status = status;
return this;
}
/**
* <p>The number of attempts.</p>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder tryCount(Integer tryCount) {
this.tryCount = tryCount;
return this;
}
public InterceptionHistoryList build() {
return new InterceptionHistoryList(this);
}
}
}
/**
*
* {@link ListInterceptionHistoryResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionHistoryResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>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/ListInterceptionRulePageRequest.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 ListInterceptionRulePageRequest} extends {@link RequestModel}
*
* <p>ListInterceptionRulePageRequest</p>
*/
public class ListInterceptionRulePageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Criteria")
private String criteria;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CriteriaType")
private String criteriaType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@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;
private ListInterceptionRulePageRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.criteria = builder.criteria;
this.criteriaType = builder.criteriaType;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionRulePageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return criteria
*/
public String getCriteria() {
return this.criteria;
}
/**
* @return criteriaType
*/
public String getCriteriaType() {
return this.criteriaType;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<ListInterceptionRulePageRequest, Builder> {
private String clusterId;
private String criteria;
private String criteriaType;
private Integer currentPage;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListInterceptionRulePageRequest request) {
super(request);
this.clusterId = request.clusterId;
this.criteria = request.criteria;
this.criteriaType = request.criteriaType;
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
}
/**
* <p>The ID of the container cluster.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cc41de13ab5474210bc0ce772a009****</p>
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* <p>The query condition.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder criteria(String criteria) {
this.putQueryParameter("Criteria", criteria);
this.criteria = criteria;
return this;
}
/**
* <p>The type of the query condition. Valid values:</p>
* <ul>
* <li><strong>ID</strong></li>
* <li><strong>RULE_NAME</strong></li>
* <li><strong>SRC_TARGET</strong></li>
* <li><strong>DST_TARGET</strong></li>
* <li><strong>DST_PORT</strong></li>
* <li><strong>RULE_SWITCH</strong></li>
* <li><strong>INTERCEPTOR_TYPE</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>DST_PORT</p>
*/
public Builder criteriaType(String criteriaType) {
this.putQueryParameter("CriteriaType", criteriaType);
this.criteriaType = criteriaType;
return this;
}
/**
* <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 number of entries to return on each page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public ListInterceptionRulePageRequest build() {
return new ListInterceptionRulePageRequest(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/ListInterceptionRulePageResponse.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 ListInterceptionRulePageResponse} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponse</p>
*/
public class ListInterceptionRulePageResponse 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 ListInterceptionRulePageResponseBody body;
private ListInterceptionRulePageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInterceptionRulePageResponse 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 ListInterceptionRulePageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInterceptionRulePageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInterceptionRulePageResponseBody body);
@Override
ListInterceptionRulePageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInterceptionRulePageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInterceptionRulePageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInterceptionRulePageResponse 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(ListInterceptionRulePageResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInterceptionRulePageResponse build() {
return new ListInterceptionRulePageResponse(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/ListInterceptionRulePageResponseBody.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 ListInterceptionRulePageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponseBody</p>
*/
public class ListInterceptionRulePageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InterceptionRuleList")
private java.util.List<InterceptionRuleList> interceptionRuleList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListInterceptionRulePageResponseBody(Builder builder) {
this.interceptionRuleList = builder.interceptionRuleList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionRulePageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return interceptionRuleList
*/
public java.util.List<InterceptionRuleList> getInterceptionRuleList() {
return this.interceptionRuleList;
}
/**
* @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<InterceptionRuleList> interceptionRuleList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListInterceptionRulePageResponseBody model) {
this.interceptionRuleList = model.interceptionRuleList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of information about the defense rules.</p>
*/
public Builder interceptionRuleList(java.util.List<InterceptionRuleList> interceptionRuleList) {
this.interceptionRuleList = interceptionRuleList;
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>ACF97412-FD09-4D1F-994F-34DF12BR****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListInterceptionRulePageResponseBody build() {
return new ListInterceptionRulePageResponseBody(this);
}
}
/**
*
* {@link ListInterceptionRulePageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponseBody</p>
*/
public static class DstTarget extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ImageList")
private java.util.List<String> imageList;
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.NameInMap("Ports")
private java.util.List<String> ports;
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
@com.aliyun.core.annotation.NameInMap("TagList")
private java.util.List<String> tagList;
@com.aliyun.core.annotation.NameInMap("TargetId")
private Integer targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private DstTarget(Builder builder) {
this.appName = builder.appName;
this.imageList = builder.imageList;
this.namespace = builder.namespace;
this.ports = builder.ports;
this.ruleType = builder.ruleType;
this.tagList = builder.tagList;
this.targetId = builder.targetId;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static DstTarget create() {
return builder().build();
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return imageList
*/
public java.util.List<String> getImageList() {
return this.imageList;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return ports
*/
public java.util.List<String> getPorts() {
return this.ports;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return tagList
*/
public java.util.List<String> getTagList() {
return this.tagList;
}
/**
* @return targetId
*/
public Integer getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder {
private String appName;
private java.util.List<String> imageList;
private String namespace;
private java.util.List<String> ports;
private String ruleType;
private java.util.List<String> tagList;
private Integer targetId;
private String targetName;
private String targetType;
private Builder() {
}
private Builder(DstTarget model) {
this.appName = model.appName;
this.imageList = model.imageList;
this.namespace = model.namespace;
this.ports = model.ports;
this.ruleType = model.ruleType;
this.tagList = model.tagList;
this.targetId = model.targetId;
this.targetName = model.targetName;
this.targetType = model.targetType;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>console</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>An array that consists of the affected images.</p>
*/
public Builder imageList(java.util.List<String> imageList) {
this.imageList = imageList;
return this;
}
/**
* <p>The namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>An array that consists of information about the ports used by the destination server.</p>
*/
public Builder ports(java.util.List<String> ports) {
this.ports = ports;
return this;
}
/**
* <p>The type of the defense rule. Valid values:</p>
* <ul>
* <li><strong>suggest</strong>: intelligently recommended rule</li>
* <li><strong>customize</strong>: custom rule</li>
* <li><strong>system</strong>: system rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>customize</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>An array that consists of tags added to the destination network object.</p>
*/
public Builder tagList(java.util.List<String> tagList) {
this.tagList = tagList;
return this;
}
/**
* <p>The ID of the network object.</p>
*
* <strong>example:</strong>
* <p>302001</p>
*/
public Builder targetId(Integer targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the network object.</p>
*
* <strong>example:</strong>
* <p>demo4****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The type of the network object.</p>
*
* <strong>example:</strong>
* <p>IMAGE</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
public DstTarget build() {
return new DstTarget(this);
}
}
}
/**
*
* {@link ListInterceptionRulePageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponseBody</p>
*/
public static class SrcTarget extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ImageList")
private java.util.List<String> imageList;
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
@com.aliyun.core.annotation.NameInMap("TagList")
private java.util.List<String> tagList;
@com.aliyun.core.annotation.NameInMap("TargetId")
private Integer targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private SrcTarget(Builder builder) {
this.appName = builder.appName;
this.imageList = builder.imageList;
this.namespace = builder.namespace;
this.ruleType = builder.ruleType;
this.tagList = builder.tagList;
this.targetId = builder.targetId;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static SrcTarget create() {
return builder().build();
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return imageList
*/
public java.util.List<String> getImageList() {
return this.imageList;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return tagList
*/
public java.util.List<String> getTagList() {
return this.tagList;
}
/**
* @return targetId
*/
public Integer getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder {
private String appName;
private java.util.List<String> imageList;
private String namespace;
private String ruleType;
private java.util.List<String> tagList;
private Integer targetId;
private String targetName;
private String targetType;
private Builder() {
}
private Builder(SrcTarget model) {
this.appName = model.appName;
this.imageList = model.imageList;
this.namespace = model.namespace;
this.ruleType = model.ruleType;
this.tagList = model.tagList;
this.targetId = model.targetId;
this.targetName = model.targetName;
this.targetType = model.targetType;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>ack-jenkins-lawr****</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>An array that consists of the images of the network object.</p>
*/
public Builder imageList(java.util.List<String> imageList) {
this.imageList = imageList;
return this;
}
/**
* <p>The namespace.</p>
*
* <strong>example:</strong>
* <p>jenkins</p>
*/
public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>The type of the defense rule. Valid values:</p>
* <ul>
* <li><strong>suggest</strong>: intelligently recommended rule</li>
* <li><strong>customize</strong>: custom rule</li>
* <li><strong>system</strong>: system rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>customize</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>An array that consists of tags added to the source network object.</p>
*/
public Builder tagList(java.util.List<String> tagList) {
this.tagList = tagList;
return this;
}
/**
* <p>The ID of the network object.</p>
*
* <strong>example:</strong>
* <p>40****</p>
*/
public Builder targetId(Integer targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the network object.</p>
*
* <strong>example:</strong>
* <p>mhh-te****</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The type of the affected assets.</p>
*
* <strong>example:</strong>
* <p>containerId</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
public SrcTarget build() {
return new SrcTarget(this);
}
}
}
/**
*
* {@link ListInterceptionRulePageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponseBody</p>
*/
public static class InterceptionRuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstTarget")
private DstTarget dstTarget;
@com.aliyun.core.annotation.NameInMap("InterceptType")
private Long interceptType;
@com.aliyun.core.annotation.NameInMap("OrderIndex")
private Long orderIndex;
@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 String ruleType;
@com.aliyun.core.annotation.NameInMap("SrcTarget")
private SrcTarget srcTarget;
private InterceptionRuleList(Builder builder) {
this.dstTarget = builder.dstTarget;
this.interceptType = builder.interceptType;
this.orderIndex = builder.orderIndex;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.ruleSwitch = builder.ruleSwitch;
this.ruleType = builder.ruleType;
this.srcTarget = builder.srcTarget;
}
public static Builder builder() {
return new Builder();
}
public static InterceptionRuleList create() {
return builder().build();
}
/**
* @return dstTarget
*/
public DstTarget getDstTarget() {
return this.dstTarget;
}
/**
* @return interceptType
*/
public Long getInterceptType() {
return this.interceptType;
}
/**
* @return orderIndex
*/
public Long getOrderIndex() {
return this.orderIndex;
}
/**
* @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 String getRuleType() {
return this.ruleType;
}
/**
* @return srcTarget
*/
public SrcTarget getSrcTarget() {
return this.srcTarget;
}
public static final class Builder {
private DstTarget dstTarget;
private Long interceptType;
private Long orderIndex;
private Long ruleId;
private String ruleName;
private Integer ruleSwitch;
private String ruleType;
private SrcTarget srcTarget;
private Builder() {
}
private Builder(InterceptionRuleList model) {
this.dstTarget = model.dstTarget;
this.interceptType = model.interceptType;
this.orderIndex = model.orderIndex;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.ruleSwitch = model.ruleSwitch;
this.ruleType = model.ruleType;
this.srcTarget = model.srcTarget;
}
/**
* <p>The destination network object.</p>
*/
public Builder dstTarget(DstTarget dstTarget) {
this.dstTarget = dstTarget;
return this;
}
/**
* <p>The interception mode. Valid values:</p>
* <ul>
* <li><strong>0</strong>: monitor</li>
* <li><strong>1</strong>: block</li>
* <li><strong>2</strong>: alert</li>
* <li><strong>3</strong>: allow</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder interceptType(Long interceptType) {
this.interceptType = interceptType;
return this;
}
/**
* <p>The order in which the entries are sorted.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder orderIndex(Long orderIndex) {
this.orderIndex = orderIndex;
return this;
}
/**
* <p>The ID of the defense rule.</p>
*
* <strong>example:</strong>
* <p>30****</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the defense rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The status of the defense rule. 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 ruleSwitch(Integer ruleSwitch) {
this.ruleSwitch = ruleSwitch;
return this;
}
/**
* <p>The type of the defense rule.</p>
*
* <strong>example:</strong>
* <p>customize</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>The source network object.</p>
*/
public Builder srcTarget(SrcTarget srcTarget) {
this.srcTarget = srcTarget;
return this;
}
public InterceptionRuleList build() {
return new InterceptionRuleList(this);
}
}
}
/**
*
* {@link ListInterceptionRulePageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionRulePageResponseBody</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>19</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>2</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/ListInterceptionTargetPageRequest.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 ListInterceptionTargetPageRequest} extends {@link RequestModel}
*
* <p>ListInterceptionTargetPageRequest</p>
*/
public class ListInterceptionTargetPageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageList")
private java.util.List<String> imageList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TagList")
private java.util.List<String> tagList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private ListInterceptionTargetPageRequest(Builder builder) {
super(builder);
this.appName = builder.appName;
this.currentPage = builder.currentPage;
this.imageList = builder.imageList;
this.namespace = builder.namespace;
this.pageSize = builder.pageSize;
this.tagList = builder.tagList;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionTargetPageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return imageList
*/
public java.util.List<String> getImageList() {
return this.imageList;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return tagList
*/
public java.util.List<String> getTagList() {
return this.tagList;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder extends Request.Builder<ListInterceptionTargetPageRequest, Builder> {
private String appName;
private Integer currentPage;
private java.util.List<String> imageList;
private String namespace;
private Integer pageSize;
private java.util.List<String> tagList;
private String targetName;
private String targetType;
private Builder() {
super();
}
private Builder(ListInterceptionTargetPageRequest request) {
super(request);
this.appName = request.appName;
this.currentPage = request.currentPage;
this.imageList = request.imageList;
this.namespace = request.namespace;
this.pageSize = request.pageSize;
this.tagList = request.tagList;
this.targetName = request.targetName;
this.targetType = request.targetType;
}
/**
* <p>The name of the application to which the network object belongs.</p>
*
* <strong>example:</strong>
* <p>frontend</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
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 images of the network object.</p>
*/
public Builder imageList(java.util.List<String> imageList) {
this.putQueryParameter("ImageList", imageList);
this.imageList = imageList;
return this;
}
/**
* <p>The namespace to which the network object belongs.</p>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 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 labels specified for the network object.</p>
*/
public Builder tagList(java.util.List<String> tagList) {
this.putQueryParameter("TagList", tagList);
this.tagList = tagList;
return this;
}
/**
* <p>The name of the network object.</p>
*
* <strong>example:</strong>
* <p>source-test-obj-0****</p>
*/
public Builder targetName(String targetName) {
this.putQueryParameter("TargetName", targetName);
this.targetName = targetName;
return this;
}
/**
* <p>The type of the network object. Valid values:</p>
* <ul>
* <li>IMAGE</li>
* </ul>
*
* <strong>example:</strong>
* <p>IMAGE</p>
*/
public Builder targetType(String targetType) {
this.putQueryParameter("TargetType", targetType);
this.targetType = targetType;
return this;
}
@Override
public ListInterceptionTargetPageRequest build() {
return new ListInterceptionTargetPageRequest(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/ListInterceptionTargetPageResponse.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 ListInterceptionTargetPageResponse} extends {@link TeaModel}
*
* <p>ListInterceptionTargetPageResponse</p>
*/
public class ListInterceptionTargetPageResponse 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 ListInterceptionTargetPageResponseBody body;
private ListInterceptionTargetPageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInterceptionTargetPageResponse 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 ListInterceptionTargetPageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInterceptionTargetPageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInterceptionTargetPageResponseBody body);
@Override
ListInterceptionTargetPageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInterceptionTargetPageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInterceptionTargetPageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInterceptionTargetPageResponse 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(ListInterceptionTargetPageResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInterceptionTargetPageResponse build() {
return new ListInterceptionTargetPageResponse(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/ListInterceptionTargetPageResponseBody.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 ListInterceptionTargetPageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionTargetPageResponseBody</p>
*/
public class ListInterceptionTargetPageResponseBody 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("RuleTargetList")
private java.util.List<RuleTargetList> ruleTargetList;
private ListInterceptionTargetPageResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.ruleTargetList = builder.ruleTargetList;
}
public static Builder builder() {
return new Builder();
}
public static ListInterceptionTargetPageResponseBody 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 ruleTargetList
*/
public java.util.List<RuleTargetList> getRuleTargetList() {
return this.ruleTargetList;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<RuleTargetList> ruleTargetList;
private Builder() {
}
private Builder(ListInterceptionTargetPageResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.ruleTargetList = model.ruleTargetList;
}
/**
* <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-48C9ED6B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the network objects.</p>
*/
public Builder ruleTargetList(java.util.List<RuleTargetList> ruleTargetList) {
this.ruleTargetList = ruleTargetList;
return this;
}
public ListInterceptionTargetPageResponseBody build() {
return new ListInterceptionTargetPageResponseBody(this);
}
}
/**
*
* {@link ListInterceptionTargetPageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionTargetPageResponseBody</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>45</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link ListInterceptionTargetPageResponseBody} extends {@link TeaModel}
*
* <p>ListInterceptionTargetPageResponseBody</p>
*/
public static class RuleTargetList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("ClusterName")
private String clusterName;
@com.aliyun.core.annotation.NameInMap("ImageList")
private java.util.List<String> imageList;
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
@com.aliyun.core.annotation.NameInMap("TagList")
private java.util.List<String> tagList;
@com.aliyun.core.annotation.NameInMap("TargetId")
private Long targetId;
@com.aliyun.core.annotation.NameInMap("TargetName")
private String targetName;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
private RuleTargetList(Builder builder) {
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.imageList = builder.imageList;
this.namespace = builder.namespace;
this.ruleType = builder.ruleType;
this.tagList = builder.tagList;
this.targetId = builder.targetId;
this.targetName = builder.targetName;
this.targetType = builder.targetType;
}
public static Builder builder() {
return new Builder();
}
public static RuleTargetList create() {
return builder().build();
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return imageList
*/
public java.util.List<String> getImageList() {
return this.imageList;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return tagList
*/
public java.util.List<String> getTagList() {
return this.tagList;
}
/**
* @return targetId
*/
public Long getTargetId() {
return this.targetId;
}
/**
* @return targetName
*/
public String getTargetName() {
return this.targetName;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
public static final class Builder {
private String appName;
private String clusterId;
private String clusterName;
private java.util.List<String> imageList;
private String namespace;
private String ruleType;
private java.util.List<String> tagList;
private Long targetId;
private String targetName;
private String targetType;
private Builder() {
}
private Builder(RuleTargetList model) {
this.appName = model.appName;
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.imageList = model.imageList;
this.namespace = model.namespace;
this.ruleType = model.ruleType;
this.tagList = model.tagList;
this.targetId = model.targetId;
this.targetName = model.targetName;
this.targetType = model.targetType;
}
/**
* <p>The name of the application of the network object.</p>
*
* <strong>example:</strong>
* <p>frontend</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The ID of the container cluster.</p>
*
* <strong>example:</strong>
* <p>c3e2eae03eb064d2ebf940cd5e1b17****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the container cluster.</p>
*
* <strong>example:</strong>
* <p>sas-test-cnnf</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* <p>The images of the network object.</p>
*/
public Builder imageList(java.util.List<String> imageList) {
this.imageList = imageList;
return this;
}
/**
* <p>The namespace to which the network object belongs.</p>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* <p>The type of the rule. Valid value:</p>
* <ul>
* <li>customize: custom rule</li>
* </ul>
*
* <strong>example:</strong>
* <p>customize</p>
*/
public Builder ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* <p>The tags specified for the network object.</p>
*/
public Builder tagList(java.util.List<String> tagList) {
this.tagList = tagList;
return this;
}
/**
* <p>The ID of the network object.</p>
* <blockquote>
* <p>You can call the <a href="~~ListInterceptionTargetPage~~">ListInterceptionTargetPage</a> operation to query the IDs of network objects.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>400914</p>
*/
public Builder targetId(Long targetId) {
this.targetId = targetId;
return this;
}
/**
* <p>The name of the network object.</p>
*
* <strong>example:</strong>
* <p>destination-test-obj-Na3cF</p>
*/
public Builder targetName(String targetName) {
this.targetName = targetName;
return this;
}
/**
* <p>The type of the network object. Valid value:</p>
* <ul>
* <li>IMAGE</li>
* </ul>
*
* <strong>example:</strong>
* <p>IMAGE</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
public RuleTargetList build() {
return new RuleTargetList(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/ListK8sAccessInfoRequest.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 ListK8sAccessInfoRequest} extends {@link RequestModel}
*
* <p>ListK8sAccessInfoRequest</p>
*/
public class ListK8sAccessInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AliyunYundunGatewayApiName")
private String aliyunYundunGatewayApiName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AliyunYundunGatewayPopName")
private String aliyunYundunGatewayPopName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AliyunYundunGatewayProjectName")
private String aliyunYundunGatewayProjectName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private ListK8sAccessInfoRequest(Builder builder) {
super(builder);
this.aliyunYundunGatewayApiName = builder.aliyunYundunGatewayApiName;
this.aliyunYundunGatewayPopName = builder.aliyunYundunGatewayPopName;
this.aliyunYundunGatewayProjectName = builder.aliyunYundunGatewayProjectName;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static ListK8sAccessInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aliyunYundunGatewayApiName
*/
public String getAliyunYundunGatewayApiName() {
return this.aliyunYundunGatewayApiName;
}
/**
* @return aliyunYundunGatewayPopName
*/
public String getAliyunYundunGatewayPopName() {
return this.aliyunYundunGatewayPopName;
}
/**
* @return aliyunYundunGatewayProjectName
*/
public String getAliyunYundunGatewayProjectName() {
return this.aliyunYundunGatewayProjectName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<ListK8sAccessInfoRequest, Builder> {
private String aliyunYundunGatewayApiName;
private String aliyunYundunGatewayPopName;
private String aliyunYundunGatewayProjectName;
private String lang;
private Builder() {
super();
}
private Builder(ListK8sAccessInfoRequest request) {
super(request);
this.aliyunYundunGatewayApiName = request.aliyunYundunGatewayApiName;
this.aliyunYundunGatewayPopName = request.aliyunYundunGatewayPopName;
this.aliyunYundunGatewayProjectName = request.aliyunYundunGatewayProjectName;
this.lang = request.lang;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder aliyunYundunGatewayApiName(String aliyunYundunGatewayApiName) {
this.putQueryParameter("AliyunYundunGatewayApiName", aliyunYundunGatewayApiName);
this.aliyunYundunGatewayApiName = aliyunYundunGatewayApiName;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder aliyunYundunGatewayPopName(String aliyunYundunGatewayPopName) {
this.putQueryParameter("AliyunYundunGatewayPopName", aliyunYundunGatewayPopName);
this.aliyunYundunGatewayPopName = aliyunYundunGatewayPopName;
return this;
}
/**
* <p>This parameter is deprecated.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder aliyunYundunGatewayProjectName(String aliyunYundunGatewayProjectName) {
this.putQueryParameter("AliyunYundunGatewayProjectName", aliyunYundunGatewayProjectName);
this.aliyunYundunGatewayProjectName = aliyunYundunGatewayProjectName;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public ListK8sAccessInfoRequest build() {
return new ListK8sAccessInfoRequest(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/ListK8sAccessInfoResponse.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 ListK8sAccessInfoResponse} extends {@link TeaModel}
*
* <p>ListK8sAccessInfoResponse</p>
*/
public class ListK8sAccessInfoResponse 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 ListK8sAccessInfoResponseBody body;
private ListK8sAccessInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListK8sAccessInfoResponse 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 ListK8sAccessInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListK8sAccessInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListK8sAccessInfoResponseBody body);
@Override
ListK8sAccessInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListK8sAccessInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListK8sAccessInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListK8sAccessInfoResponse 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(ListK8sAccessInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public ListK8sAccessInfoResponse build() {
return new ListK8sAccessInfoResponse(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/ListK8sAccessInfoResponseBody.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 ListK8sAccessInfoResponseBody} extends {@link TeaModel}
*
* <p>ListK8sAccessInfoResponseBody</p>
*/
public class ListK8sAccessInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("K8sAccessInfos")
private java.util.List<K8sAccessInfos> k8sAccessInfos;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListK8sAccessInfoResponseBody(Builder builder) {
this.k8sAccessInfos = builder.k8sAccessInfos;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListK8sAccessInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return k8sAccessInfos
*/
public java.util.List<K8sAccessInfos> getK8sAccessInfos() {
return this.k8sAccessInfos;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<K8sAccessInfos> k8sAccessInfos;
private String requestId;
private Builder() {
}
private Builder(ListK8sAccessInfoResponseBody model) {
this.k8sAccessInfos = model.k8sAccessInfos;
this.requestId = model.requestId;
}
/**
* <p>The information about the Kubernetes clusters.</p>
*/
public Builder k8sAccessInfos(java.util.List<K8sAccessInfos> k8sAccessInfos) {
this.k8sAccessInfos = k8sAccessInfos;
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 ListK8sAccessInfoResponseBody build() {
return new ListK8sAccessInfoResponseBody(this);
}
}
/**
*
* {@link ListK8sAccessInfoResponseBody} extends {@link TeaModel}
*
* <p>ListK8sAccessInfoResponseBody</p>
*/
public static class K8sAccessInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("AuditLogStore")
private String auditLogStore;
@com.aliyun.core.annotation.NameInMap("AuditProject")
private String auditProject;
@com.aliyun.core.annotation.NameInMap("AuditRegionId")
private String auditRegionId;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("ClusterName")
private String clusterName;
@com.aliyun.core.annotation.NameInMap("CpuArch")
private String cpuArch;
@com.aliyun.core.annotation.NameInMap("ExpireDate")
private Long expireDate;
@com.aliyun.core.annotation.NameInMap("GroupId")
private String groupId;
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InstallKey")
private String installKey;
@com.aliyun.core.annotation.NameInMap("Vendor")
private String vendor;
private K8sAccessInfos(Builder builder) {
this.aliUid = builder.aliUid;
this.auditLogStore = builder.auditLogStore;
this.auditProject = builder.auditProject;
this.auditRegionId = builder.auditRegionId;
this.clusterId = builder.clusterId;
this.clusterName = builder.clusterName;
this.cpuArch = builder.cpuArch;
this.expireDate = builder.expireDate;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
this.id = builder.id;
this.installKey = builder.installKey;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static K8sAccessInfos create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return auditLogStore
*/
public String getAuditLogStore() {
return this.auditLogStore;
}
/**
* @return auditProject
*/
public String getAuditProject() {
return this.auditProject;
}
/**
* @return auditRegionId
*/
public String getAuditRegionId() {
return this.auditRegionId;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return cpuArch
*/
public String getCpuArch() {
return this.cpuArch;
}
/**
* @return expireDate
*/
public Long getExpireDate() {
return this.expireDate;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return installKey
*/
public String getInstallKey() {
return this.installKey;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
public static final class Builder {
private Long aliUid;
private String auditLogStore;
private String auditProject;
private String auditRegionId;
private String clusterId;
private String clusterName;
private String cpuArch;
private Long expireDate;
private String groupId;
private String groupName;
private Long id;
private String installKey;
private String vendor;
private Builder() {
}
private Builder(K8sAccessInfos model) {
this.aliUid = model.aliUid;
this.auditLogStore = model.auditLogStore;
this.auditProject = model.auditProject;
this.auditRegionId = model.auditRegionId;
this.clusterId = model.clusterId;
this.clusterName = model.clusterName;
this.cpuArch = model.cpuArch;
this.expireDate = model.expireDate;
this.groupId = model.groupId;
this.groupName = model.groupName;
this.id = model.id;
this.installKey = model.installKey;
this.vendor = model.vendor;
}
/**
* <p>The ID of the Alibaba Cloud account.</p>
*
* <strong>example:</strong>
* <p>1960721413485****</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The Simple Log Service Logstore that is used to store the audit logs.</p>
*
* <strong>example:</strong>
* <p>audit-cf6baf6afa106eca665296fdf68b****</p>
*/
public Builder auditLogStore(String auditLogStore) {
this.auditLogStore = auditLogStore;
return this;
}
/**
* <p>The Simple Log Service project that is used to store the audit logs.</p>
*
* <strong>example:</strong>
* <p>k8s-log-custom-your-project-sd89eh****</p>
*/
public Builder auditProject(String auditProject) {
this.auditProject = auditProject;
return this;
}
/**
* <p>The ID of the region in which the server is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder auditRegionId(String auditRegionId) {
this.auditRegionId = auditRegionId;
return this;
}
/**
* <p>The ID of the cluster.</p>
*
* <strong>example:</strong>
* <p>c0da5e4cb82a848c4a57c4dc9f49a****</p>
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The name of the cluster.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* CpuArch.
*/
public Builder cpuArch(String cpuArch) {
this.cpuArch = cpuArch;
return this;
}
/**
* <p>The expiration time.</p>
*
* <strong>example:</strong>
* <p>1690596321613</p>
*/
public Builder expireDate(Long expireDate) {
this.expireDate = expireDate;
return this;
}
/**
* <p>The ID of the server group.</p>
*
* <strong>example:</strong>
* <p>11088522</p>
*/
public Builder groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The name of the server group.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* <p>The UUID of the access information.</p>
*
* <strong>example:</strong>
* <p>67070</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The installation key of the Kubernetes cluster.</p>
*
* <strong>example:</strong>
* <p>xxx</p>
*/
public Builder installKey(String installKey) {
this.installKey = installKey;
return this;
}
/**
* <p>The service provider.</p>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendor(String vendor) {
this.vendor = vendor;
return this;
}
public K8sAccessInfos build() {
return new K8sAccessInfos(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/ListLogShipperRegionsRequest.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 ListLogShipperRegionsRequest} extends {@link RequestModel}
*
* <p>ListLogShipperRegionsRequest</p>
*/
public class ListLogShipperRegionsRequest extends Request {
private ListLogShipperRegionsRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static ListLogShipperRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<ListLogShipperRegionsRequest, Builder> {
private Builder() {
super();
}
private Builder(ListLogShipperRegionsRequest request) {
super(request);
}
@Override
public ListLogShipperRegionsRequest build() {
return new ListLogShipperRegionsRequest(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/ListLogShipperRegionsResponse.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 ListLogShipperRegionsResponse} extends {@link TeaModel}
*
* <p>ListLogShipperRegionsResponse</p>
*/
public class ListLogShipperRegionsResponse 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 ListLogShipperRegionsResponseBody body;
private ListLogShipperRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListLogShipperRegionsResponse 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 ListLogShipperRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListLogShipperRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListLogShipperRegionsResponseBody body);
@Override
ListLogShipperRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListLogShipperRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListLogShipperRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListLogShipperRegionsResponse 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(ListLogShipperRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListLogShipperRegionsResponse build() {
return new ListLogShipperRegionsResponse(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/ListLogShipperRegionsResponseBody.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 ListLogShipperRegionsResponseBody} extends {@link TeaModel}
*
* <p>ListLogShipperRegionsResponseBody</p>
*/
public class ListLogShipperRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LogShipperRegionList")
private java.util.List<LogShipperRegionList> logShipperRegionList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListLogShipperRegionsResponseBody(Builder builder) {
this.logShipperRegionList = builder.logShipperRegionList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListLogShipperRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logShipperRegionList
*/
public java.util.List<LogShipperRegionList> getLogShipperRegionList() {
return this.logShipperRegionList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<LogShipperRegionList> logShipperRegionList;
private String requestId;
private Builder() {
}
private Builder(ListLogShipperRegionsResponseBody model) {
this.logShipperRegionList = model.logShipperRegionList;
this.requestId = model.requestId;
}
/**
* <p>The regions supported by the log delivery feature.</p>
*/
public Builder logShipperRegionList(java.util.List<LogShipperRegionList> logShipperRegionList) {
this.logShipperRegionList = logShipperRegionList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F9C4DE22-D242-5ABA-87EC-325ECBDC****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListLogShipperRegionsResponseBody build() {
return new ListLogShipperRegionsResponseBody(this);
}
}
/**
*
* {@link ListLogShipperRegionsResponseBody} extends {@link TeaModel}
*
* <p>ListLogShipperRegionsResponseBody</p>
*/
public static class LogShipperRegionList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private LogShipperRegionList(Builder builder) {
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static LogShipperRegionList create() {
return builder().build();
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String regionId;
private Builder() {
}
private Builder(LogShipperRegionList model) {
this.regionId = model.regionId;
}
/**
* <p>The ID of the region.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public LogShipperRegionList build() {
return new LogShipperRegionList(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/ListMachineAppsRequest.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 ListMachineAppsRequest} extends {@link RequestModel}
*
* <p>ListMachineAppsRequest</p>
*/
public class ListMachineAppsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppRegionId")
private String appRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthVersion")
private String authVersion;
@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("ResourceDirectoryUid")
private Long resourceDirectoryUid;
private ListMachineAppsRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.appName = builder.appName;
this.appRegionId = builder.appRegionId;
this.authVersion = builder.authVersion;
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.resourceDirectoryUid = builder.resourceDirectoryUid;
}
public static Builder builder() {
return new Builder();
}
public static ListMachineAppsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appRegionId
*/
public String getAppRegionId() {
return this.appRegionId;
}
/**
* @return authVersion
*/
public String getAuthVersion() {
return this.authVersion;
}
/**
* @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 resourceDirectoryUid
*/
public Long getResourceDirectoryUid() {
return this.resourceDirectoryUid;
}
public static final class Builder extends Request.Builder<ListMachineAppsRequest, Builder> {
private String appId;
private String appName;
private String appRegionId;
private String authVersion;
private Integer currentPage;
private String lang;
private Integer pageSize;
private Long resourceDirectoryUid;
private Builder() {
super();
}
private Builder(ListMachineAppsRequest request) {
super(request);
this.appId = request.appId;
this.appName = request.appName;
this.appRegionId = request.appRegionId;
this.authVersion = request.authVersion;
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.resourceDirectoryUid = request.resourceDirectoryUid;
}
/**
* <p>SAE application ID.</p>
*
* <strong>example:</strong>
* <p>5b41f4bf-349f-4263-89b1-9234c034****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>SAE application name.</p>
*
* <strong>example:</strong>
* <p>agent-commprice-shop</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>Region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder appRegionId(String appRegionId) {
this.putQueryParameter("AppRegionId", appRegionId);
this.appRegionId = appRegionId;
return this;
}
/**
* <p>The authorization version of the asset. Values:</p>
* <ul>
* <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 Service Edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder authVersion(String authVersion) {
this.putQueryParameter("AuthVersion", authVersion);
this.authVersion = authVersion;
return this;
}
/**
* <p>The page number to display 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>The language type for request and response, 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>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The maximum number of items to display per page in a paginated query.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The UID of the resource directory.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder resourceDirectoryUid(Long resourceDirectoryUid) {
this.putQueryParameter("ResourceDirectoryUid", resourceDirectoryUid);
this.resourceDirectoryUid = resourceDirectoryUid;
return this;
}
@Override
public ListMachineAppsRequest build() {
return new ListMachineAppsRequest(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/ListMachineAppsResponse.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 ListMachineAppsResponse} extends {@link TeaModel}
*
* <p>ListMachineAppsResponse</p>
*/
public class ListMachineAppsResponse 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 ListMachineAppsResponseBody body;
private ListMachineAppsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListMachineAppsResponse 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 ListMachineAppsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListMachineAppsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListMachineAppsResponseBody body);
@Override
ListMachineAppsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListMachineAppsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListMachineAppsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListMachineAppsResponse 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(ListMachineAppsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListMachineAppsResponse build() {
return new ListMachineAppsResponse(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/ListMachineAppsResponseBody.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 ListMachineAppsResponseBody} extends {@link TeaModel}
*
* <p>ListMachineAppsResponseBody</p>
*/
public class ListMachineAppsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppList")
private java.util.List<AppList> appList;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListMachineAppsResponseBody(Builder builder) {
this.appList = builder.appList;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListMachineAppsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appList
*/
public java.util.List<AppList> getAppList() {
return this.appList;
}
/**
* @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<AppList> appList;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(ListMachineAppsResponseBody model) {
this.appList = model.appList;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>Application list.</p>
*/
public Builder appList(java.util.List<AppList> appList) {
this.appList = appList;
return this;
}
/**
* <p>Pagination information of the query result.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used to troubleshoot and pinpoint issues.</p>
*
* <strong>example:</strong>
* <p>028CF634-5268-5660-9575-48C9ED6B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListMachineAppsResponseBody build() {
return new ListMachineAppsResponseBody(this);
}
}
/**
*
* {@link ListMachineAppsResponseBody} extends {@link TeaModel}
*
* <p>ListMachineAppsResponseBody</p>
*/
public static class AppList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("AppRegionId")
private String appRegionId;
private AppList(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.appRegionId = builder.appRegionId;
}
public static Builder builder() {
return new Builder();
}
public static AppList create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appRegionId
*/
public String getAppRegionId() {
return this.appRegionId;
}
public static final class Builder {
private String appId;
private String appName;
private String appRegionId;
private Builder() {
}
private Builder(AppList model) {
this.appId = model.appId;
this.appName = model.appName;
this.appRegionId = model.appRegionId;
}
/**
* <p>SAE application ID.</p>
*
* <strong>example:</strong>
* <p>5b41f4bf-349f-4263-89b1-9234c034****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>SAE application name.</p>
*
* <strong>example:</strong>
* <p>app-ubuntu</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>Region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder appRegionId(String appRegionId) {
this.appRegionId = appRegionId;
return this;
}
public AppList build() {
return new AppList(this);
}
}
}
/**
*
* {@link ListMachineAppsResponseBody} extends {@link TeaModel}
*
* <p>ListMachineAppsResponseBody</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 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>The maximum number of items to display per page in a paginated query.</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>263</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/ListMaliciousFileWhitelistConfigsRequest.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 ListMaliciousFileWhitelistConfigsRequest} extends {@link RequestModel}
*
* <p>ListMaliciousFileWhitelistConfigsRequest</p>
*/
public class ListMaliciousFileWhitelistConfigsRequest 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("EventName")
private String eventName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
private ListMaliciousFileWhitelistConfigsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.eventName = builder.eventName;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.source = builder.source;
}
public static Builder builder() {
return new Builder();
}
public static ListMaliciousFileWhitelistConfigsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
public static final class Builder extends Request.Builder<ListMaliciousFileWhitelistConfigsRequest, Builder> {
private Integer currentPage;
private String eventName;
private String lang;
private Integer pageSize;
private String source;
private Builder() {
super();
}
private Builder(ListMaliciousFileWhitelistConfigsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.eventName = request.eventName;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.source = request.source;
}
/**
* <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 name of the alert.</p>
* <ul>
* <li>Set the value to ALL, which indicates all alert types.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder eventName(String eventName) {
this.putQueryParameter("EventName", eventName);
this.eventName = eventName;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries per page. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The feature to which this operation belongs. If you leave this parameter empty, the default value agentless is used.</p>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
@Override
public ListMaliciousFileWhitelistConfigsRequest build() {
return new ListMaliciousFileWhitelistConfigsRequest(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/ListMaliciousFileWhitelistConfigsResponse.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 ListMaliciousFileWhitelistConfigsResponse} extends {@link TeaModel}
*
* <p>ListMaliciousFileWhitelistConfigsResponse</p>
*/
public class ListMaliciousFileWhitelistConfigsResponse 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 ListMaliciousFileWhitelistConfigsResponseBody body;
private ListMaliciousFileWhitelistConfigsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListMaliciousFileWhitelistConfigsResponse 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 ListMaliciousFileWhitelistConfigsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListMaliciousFileWhitelistConfigsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListMaliciousFileWhitelistConfigsResponseBody body);
@Override
ListMaliciousFileWhitelistConfigsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListMaliciousFileWhitelistConfigsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListMaliciousFileWhitelistConfigsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListMaliciousFileWhitelistConfigsResponse 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(ListMaliciousFileWhitelistConfigsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListMaliciousFileWhitelistConfigsResponse build() {
return new ListMaliciousFileWhitelistConfigsResponse(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/ListMaliciousFileWhitelistConfigsResponseBody.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 ListMaliciousFileWhitelistConfigsResponseBody} extends {@link TeaModel}
*
* <p>ListMaliciousFileWhitelistConfigsResponseBody</p>
*/
public class ListMaliciousFileWhitelistConfigsResponseBody 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 ListMaliciousFileWhitelistConfigsResponseBody(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 ListMaliciousFileWhitelistConfigsResponseBody 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(ListMaliciousFileWhitelistConfigsResponseBody 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.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The alert whitelist rules of sensitive files that are detected by using the agentless detection feature.</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>F5CF78A7-30AA-59DB-847F-13EE3AE7****</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 ListMaliciousFileWhitelistConfigsResponseBody build() {
return new ListMaliciousFileWhitelistConfigsResponseBody(this);
}
}
/**
*
* {@link ListMaliciousFileWhitelistConfigsResponseBody} extends {@link TeaModel}
*
* <p>ListMaliciousFileWhitelistConfigsResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private String count;
@com.aliyun.core.annotation.NameInMap("EventName")
private String eventName;
@com.aliyun.core.annotation.NameInMap("Field")
private String field;
@com.aliyun.core.annotation.NameInMap("FieldValue")
private String fieldValue;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Operator")
private String operator;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("TargetType")
private String targetType;
@com.aliyun.core.annotation.NameInMap("TargetValue")
private String targetValue;
private List(Builder builder) {
this.count = builder.count;
this.eventName = builder.eventName;
this.field = builder.field;
this.fieldValue = builder.fieldValue;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.id = builder.id;
this.operator = builder.operator;
this.source = builder.source;
this.targetType = builder.targetType;
this.targetValue = builder.targetValue;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return count
*/
public String getCount() {
return this.count;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return field
*/
public String getField() {
return this.field;
}
/**
* @return fieldValue
*/
public String getFieldValue() {
return this.fieldValue;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return operator
*/
public String getOperator() {
return this.operator;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return targetType
*/
public String getTargetType() {
return this.targetType;
}
/**
* @return targetValue
*/
public String getTargetValue() {
return this.targetValue;
}
public static final class Builder {
private String count;
private String eventName;
private String field;
private String fieldValue;
private String gmtCreate;
private String gmtModified;
private Long id;
private String operator;
private String source;
private String targetType;
private String targetValue;
private Builder() {
}
private Builder(List model) {
this.count = model.count;
this.eventName = model.eventName;
this.field = model.field;
this.fieldValue = model.fieldValue;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.id = model.id;
this.operator = model.operator;
this.source = model.source;
this.targetType = model.targetType;
this.targetValue = model.targetValue;
}
/**
* <p>The number of the assets on which the rule takes effect.</p>
* <blockquote>
* <p> The value of this parameter is returned only if the value of TargetType is SELECTION_KEY.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder count(String count) {
this.count = count;
return this;
}
/**
* <p>The name of the alert.</p>
* <ul>
* <li>The value is fixed as ALL, which indicates all alert types.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>fileMd5</p>
*/
public Builder field(String field) {
this.field = field;
return this;
}
/**
* <p>The value of the field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>b2cf9747ee49d8d9b105cf16e078cc16</p>
*/
public Builder fieldValue(String fieldValue) {
this.fieldValue = fieldValue;
return this;
}
/**
* <p>The time when the rule was created.</p>
*
* <strong>example:</strong>
* <p>1691719662000</p>
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The time when the rule was modified.</p>
*
* <strong>example:</strong>
* <p>1691719662000</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The logical operator of the whitelist rule.</p>
* <ul>
* <li>The value is fixed as strEqual, which indicates the equality operator (=).</li>
* </ul>
*
* <strong>example:</strong>
* <p>strEqual</p>
*/
public Builder operator(String operator) {
this.operator = operator;
return this;
}
/**
* <p>The feature to which this operation belongs.</p>
* <ul>
* <li>The value is fixed as agentless, which indicates the agentless detection feature.</li>
* </ul>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The type of the assets on which the rule takes effect. Valid values:</p>
* <ul>
* <li>ALL: all assets</li>
* <li>SELECTION_KEY: selected assets</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder targetType(String targetType) {
this.targetType = targetType;
return this;
}
/**
* <p>The assets on which the rule takes effect. Valid values:</p>
* <ul>
* <li>ALL: all assets</li>
* <li>Others: selected assets</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder targetValue(String targetValue) {
this.targetValue = targetValue;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListMaliciousFileWhitelistConfigsResponseBody} extends {@link TeaModel}
*
* <p>ListMaliciousFileWhitelistConfigsResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>29</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/ListObjectScanEventRequest.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 ListObjectScanEventRequest} extends {@link RequestModel}
*
* <p>ListObjectScanEventRequest</p>
*/
public class ListObjectScanEventRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BucketName")
private String bucketName;
@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("EventName")
private String eventName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Md5")
private String md5;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OssKey")
private String ossKey;
@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("ParentEventId")
private Long parentEventId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeEnd")
private Long timeEnd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeStart")
private Long timeStart;
private ListObjectScanEventRequest(Builder builder) {
super(builder);
this.bucketName = builder.bucketName;
this.currentPage = builder.currentPage;
this.eventName = builder.eventName;
this.lang = builder.lang;
this.md5 = builder.md5;
this.ossKey = builder.ossKey;
this.pageSize = builder.pageSize;
this.parentEventId = builder.parentEventId;
this.riskLevel = builder.riskLevel;
this.source = builder.source;
this.timeEnd = builder.timeEnd;
this.timeStart = builder.timeStart;
}
public static Builder builder() {
return new Builder();
}
public static ListObjectScanEventRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return md5
*/
public String getMd5() {
return this.md5;
}
/**
* @return ossKey
*/
public String getOssKey() {
return this.ossKey;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return parentEventId
*/
public Long getParentEventId() {
return this.parentEventId;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return timeEnd
*/
public Long getTimeEnd() {
return this.timeEnd;
}
/**
* @return timeStart
*/
public Long getTimeStart() {
return this.timeStart;
}
public static final class Builder extends Request.Builder<ListObjectScanEventRequest, Builder> {
private String bucketName;
private Integer currentPage;
private String eventName;
private String lang;
private String md5;
private String ossKey;
private Integer pageSize;
private Long parentEventId;
private String riskLevel;
private String source;
private Long timeEnd;
private Long timeStart;
private Builder() {
super();
}
private Builder(ListObjectScanEventRequest request) {
super(request);
this.bucketName = request.bucketName;
this.currentPage = request.currentPage;
this.eventName = request.eventName;
this.lang = request.lang;
this.md5 = request.md5;
this.ossKey = request.ossKey;
this.pageSize = request.pageSize;
this.parentEventId = request.parentEventId;
this.riskLevel = request.riskLevel;
this.source = request.source;
this.timeEnd = request.timeEnd;
this.timeStart = request.timeStart;
}
/**
* <p>The name of the OSS bucket.</p>
*
* <strong>example:</strong>
* <p>ltrbuck****</p>
*/
public Builder bucketName(String bucketName) {
this.putQueryParameter("BucketName", bucketName);
this.bucketName = bucketName;
return this;
}
/**
* <p>The page number.</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 alert.</p>
*
* <strong>example:</strong>
* <p>WebShell</p>
*/
public Builder eventName(String eventName) {
this.putQueryParameter("EventName", eventName);
this.eventName = eventName;
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 MD5 hash value of the file.</p>
*
* <strong>example:</strong>
* <p>0552c44e243abdea1729d4507bce****</p>
*/
public Builder md5(String md5) {
this.putQueryParameter("Md5", md5);
this.md5 = md5;
return this;
}
/**
* <p>The key of the file that is stored in an OSS bucket.</p>
*
* <strong>example:</strong>
* <p>1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8****</p>
*/
public Builder ossKey(String ossKey) {
this.putQueryParameter("OssKey", ossKey);
this.ossKey = ossKey;
return this;
}
/**
* <p>The number of entries per 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 ID of the alert that is generated for the package to which the subfile belongs.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder parentEventId(Long parentEventId) {
this.putQueryParameter("ParentEventId", parentEventId);
this.parentEventId = parentEventId;
return this;
}
/**
* <p>The risk level of the alert. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>low</p>
*/
public Builder riskLevel(String riskLevel) {
this.putQueryParameter("RiskLevel", riskLevel);
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The method that is used to detect the malicious file. Valid values:</p>
* <ul>
* <li><strong>API</strong>: uses API operations.</li>
* <li><strong>OSS</strong>: uses Object Storage Service (OSS) file check.</li>
* </ul>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The end of the time range during which the exception is detected.</p>
*
* <strong>example:</strong>
* <p>1683862286000</p>
*/
public Builder timeEnd(Long timeEnd) {
this.putQueryParameter("TimeEnd", timeEnd);
this.timeEnd = timeEnd;
return this;
}
/**
* <p>The beginning of the time range during which the exception is detected.</p>
*
* <strong>example:</strong>
* <p>1683603086000</p>
*/
public Builder timeStart(Long timeStart) {
this.putQueryParameter("TimeStart", timeStart);
this.timeStart = timeStart;
return this;
}
@Override
public ListObjectScanEventRequest build() {
return new ListObjectScanEventRequest(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/ListObjectScanEventResponse.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 ListObjectScanEventResponse} extends {@link TeaModel}
*
* <p>ListObjectScanEventResponse</p>
*/
public class ListObjectScanEventResponse 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 ListObjectScanEventResponseBody body;
private ListObjectScanEventResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListObjectScanEventResponse 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 ListObjectScanEventResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListObjectScanEventResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListObjectScanEventResponseBody body);
@Override
ListObjectScanEventResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListObjectScanEventResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListObjectScanEventResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListObjectScanEventResponse 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(ListObjectScanEventResponseBody body) {
this.body = body;
return this;
}
@Override
public ListObjectScanEventResponse build() {
return new ListObjectScanEventResponse(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/ListObjectScanEventResponseBody.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 ListObjectScanEventResponseBody} extends {@link TeaModel}
*
* <p>ListObjectScanEventResponseBody</p>
*/
public class ListObjectScanEventResponseBody 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 ListObjectScanEventResponseBody(Builder builder) {
this.data = builder.data;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListObjectScanEventResponseBody 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(ListObjectScanEventResponseBody 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>7BC55C8F-226E-5AF5-9A2C-2EC43864****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListObjectScanEventResponseBody build() {
return new ListObjectScanEventResponseBody(this);
}
}
/**
*
* {@link ListObjectScanEventResponseBody} extends {@link TeaModel}
*
* <p>ListObjectScanEventResponseBody</p>
*/
public static class Details extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NameDisplay")
private String nameDisplay;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
@com.aliyun.core.annotation.NameInMap("ValueDisplay")
private String valueDisplay;
private Details(Builder builder) {
this.name = builder.name;
this.nameDisplay = builder.nameDisplay;
this.type = builder.type;
this.value = builder.value;
this.valueDisplay = builder.valueDisplay;
}
public static Builder builder() {
return new Builder();
}
public static Details create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nameDisplay
*/
public String getNameDisplay() {
return this.nameDisplay;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
/**
* @return valueDisplay
*/
public String getValueDisplay() {
return this.valueDisplay;
}
public static final class Builder {
private String name;
private String nameDisplay;
private String type;
private String value;
private String valueDisplay;
private Builder() {
}
private Builder(Details model) {
this.name = model.name;
this.nameDisplay = model.nameDisplay;
this.type = model.type;
this.value = model.value;
this.valueDisplay = model.valueDisplay;
}
/**
* <p>The name of the parameter in the file details.</p>
*
* <strong>example:</strong>
* <p>DownloadUrl</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The display name of the alert.</p>
*
* <strong>example:</strong>
* <p>DownloadUrl</p>
*/
public Builder nameDisplay(String nameDisplay) {
this.nameDisplay = nameDisplay;
return this;
}
/**
* <p>The value type of the parameter in the file details.</p>
*
* <strong>example:</strong>
* <p>html</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The value of the parameter.</p>
*
* <strong>example:</strong>
* <p><a href="http://gcx.cn-hangzhou.aliyuncs.com/">http://gcx.cn-hangzhou.aliyuncs.com/</a>****</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
/**
* <p>The value of the parameter.</p>
*
* <strong>example:</strong>
* <p><a href="http://gcx.cn-hangzhou.aliyuncs.com/">http://gcx.cn-hangzhou.aliyuncs.com/</a>****</p>
*/
public Builder valueDisplay(String valueDisplay) {
this.valueDisplay = valueDisplay;
return this;
}
public Details build() {
return new Details(this);
}
}
}
/**
*
* {@link ListObjectScanEventResponseBody} extends {@link TeaModel}
*
* <p>ListObjectScanEventResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("Details")
private java.util.List<Details> details;
@com.aliyun.core.annotation.NameInMap("DisplaySandboxResult")
private String displaySandboxResult;
@com.aliyun.core.annotation.NameInMap("EventId")
private Long eventId;
@com.aliyun.core.annotation.NameInMap("EventName")
private String eventName;
@com.aliyun.core.annotation.NameInMap("FilePath")
private String filePath;
@com.aliyun.core.annotation.NameInMap("FirstTime")
private Long firstTime;
@com.aliyun.core.annotation.NameInMap("HasSubEvent")
private Boolean hasSubEvent;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("Md5")
private String md5;
@com.aliyun.core.annotation.NameInMap("OssKey")
private String ossKey;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("Sha1")
private String sha1;
@com.aliyun.core.annotation.NameInMap("Sha256")
private String sha256;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
private Data(Builder builder) {
this.bucketName = builder.bucketName;
this.details = builder.details;
this.displaySandboxResult = builder.displaySandboxResult;
this.eventId = builder.eventId;
this.eventName = builder.eventName;
this.filePath = builder.filePath;
this.firstTime = builder.firstTime;
this.hasSubEvent = builder.hasSubEvent;
this.lastTime = builder.lastTime;
this.md5 = builder.md5;
this.ossKey = builder.ossKey;
this.riskLevel = builder.riskLevel;
this.sha1 = builder.sha1;
this.sha256 = builder.sha256;
this.source = builder.source;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return details
*/
public java.util.List<Details> getDetails() {
return this.details;
}
/**
* @return displaySandboxResult
*/
public String getDisplaySandboxResult() {
return this.displaySandboxResult;
}
/**
* @return eventId
*/
public Long getEventId() {
return this.eventId;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return filePath
*/
public String getFilePath() {
return this.filePath;
}
/**
* @return firstTime
*/
public Long getFirstTime() {
return this.firstTime;
}
/**
* @return hasSubEvent
*/
public Boolean getHasSubEvent() {
return this.hasSubEvent;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return md5
*/
public String getMd5() {
return this.md5;
}
/**
* @return ossKey
*/
public String getOssKey() {
return this.ossKey;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return sha1
*/
public String getSha1() {
return this.sha1;
}
/**
* @return sha256
*/
public String getSha256() {
return this.sha256;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
public static final class Builder {
private String bucketName;
private java.util.List<Details> details;
private String displaySandboxResult;
private Long eventId;
private String eventName;
private String filePath;
private Long firstTime;
private Boolean hasSubEvent;
private Long lastTime;
private String md5;
private String ossKey;
private String riskLevel;
private String sha1;
private String sha256;
private String source;
private Builder() {
}
private Builder(Data model) {
this.bucketName = model.bucketName;
this.details = model.details;
this.displaySandboxResult = model.displaySandboxResult;
this.eventId = model.eventId;
this.eventName = model.eventName;
this.filePath = model.filePath;
this.firstTime = model.firstTime;
this.hasSubEvent = model.hasSubEvent;
this.lastTime = model.lastTime;
this.md5 = model.md5;
this.ossKey = model.ossKey;
this.riskLevel = model.riskLevel;
this.sha1 = model.sha1;
this.sha256 = model.sha256;
this.source = model.source;
}
/**
* <p>The name of the OSS bucket.</p>
*
* <strong>example:</strong>
* <p>hz-new01****</p>
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* <p>The details of the file.</p>
*/
public Builder details(java.util.List<Details> details) {
this.details = details;
return this;
}
/**
* <p>Indicates whether the file can be detected by cloud sandbox. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder displaySandboxResult(String displaySandboxResult) {
this.displaySandboxResult = displaySandboxResult;
return this;
}
/**
* <p>The ID of the alert.</p>
*
* <strong>example:</strong>
* <p>911273</p>
*/
public Builder eventId(Long eventId) {
this.eventId = eventId;
return this;
}
/**
* <p>The name of the alert.</p>
*
* <strong>example:</strong>
* <p>WebShell</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The path to the file.</p>
*
* <strong>example:</strong>
* <p>/usr/local****</p>
*/
public Builder filePath(String filePath) {
this.filePath = filePath;
return this;
}
/**
* <p>The timestamp at which the alert was first detected.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder firstTime(Long firstTime) {
this.firstTime = firstTime;
return this;
}
/**
* <p>Indicates whether an alert is generated for the file extracted from the package. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hasSubEvent(Boolean hasSubEvent) {
this.hasSubEvent = hasSubEvent;
return this;
}
/**
* <p>The timestamp at which the alert was last detected.</p>
*
* <strong>example:</strong>
* <p>1694576692000</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The MD5 hash value of the file.</p>
*
* <strong>example:</strong>
* <p>5b394b54ca632fe51c4ab4a6dbaf****</p>
*/
public Builder md5(String md5) {
this.md5 = md5;
return this;
}
/**
* <p>The key of the file that is stored in the OSS bucket.</p>
*
* <strong>example:</strong>
* <p>1/2023/07/21/10/18/16899059356518bcf6c64-a04e-492d-a421-4ae8b888****</p>
*/
public Builder ossKey(String ossKey) {
this.ossKey = ossKey;
return this;
}
/**
* <p>The risk level of the alert. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>medium</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The SHA-1 hash value of the file.</p>
*
* <strong>example:</strong>
* <p>3c01bdbb26f358bab27f267924aa2c9a03fc****</p>
*/
public Builder sha1(String sha1) {
this.sha1 = sha1;
return this;
}
/**
* <p>The SHA-256 hash value of the file.</p>
*
* <strong>example:</strong>
* <p>3a6fed5fc11392b3ee9f81caf017b48640d7458766a8eb0382899a605b41****</p>
*/
public Builder sha256(String sha256) {
this.sha256 = sha256;
return this;
}
/**
* <p>The method that is used to detect the malicious file. Valid values:</p>
* <ul>
* <li><strong>API</strong>: uses API operations.</li>
* <li><strong>OSS</strong>: uses OSS file check.</li>
* </ul>
*
* <strong>example:</strong>
* <p>OSS</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link ListObjectScanEventResponseBody} extends {@link TeaModel}
*
* <p>ListObjectScanEventResponseBody</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>253</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/ListOpaClusterStrategyNewRequest.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 ListOpaClusterStrategyNewRequest} extends {@link RequestModel}
*
* <p>ListOpaClusterStrategyNewRequest</p>
*/
public class ListOpaClusterStrategyNewRequest 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("ImageName")
private java.util.List<String> imageName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Label")
private java.util.List<String> label;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StrategyName")
private java.util.List<String> strategyName;
private ListOpaClusterStrategyNewRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.imageName = builder.imageName;
this.label = builder.label;
this.pageSize = builder.pageSize;
this.strategyName = builder.strategyName;
}
public static Builder builder() {
return new Builder();
}
public static ListOpaClusterStrategyNewRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return imageName
*/
public java.util.List<String> getImageName() {
return this.imageName;
}
/**
* @return label
*/
public java.util.List<String> getLabel() {
return this.label;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return strategyName
*/
public java.util.List<String> getStrategyName() {
return this.strategyName;
}
public static final class Builder extends Request.Builder<ListOpaClusterStrategyNewRequest, Builder> {
private Integer currentPage;
private java.util.List<String> imageName;
private java.util.List<String> label;
private Integer pageSize;
private java.util.List<String> strategyName;
private Builder() {
super();
}
private Builder(ListOpaClusterStrategyNewRequest request) {
super(request);
this.currentPage = request.currentPage;
this.imageName = request.imageName;
this.label = request.label;
this.pageSize = request.pageSize;
this.strategyName = request.strategyName;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The image names.</p>
*/
public Builder imageName(java.util.List<String> imageName) {
this.putQueryParameter("ImageName", imageName);
this.imageName = imageName;
return this;
}
/**
* <p>The tags that are added to the container.</p>
*/
public Builder label(java.util.List<String> label) {
this.putQueryParameter("Label", label);
this.label = label;
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 rule names.</p>
*/
public Builder strategyName(java.util.List<String> strategyName) {
this.putQueryParameter("StrategyName", strategyName);
this.strategyName = strategyName;
return this;
}
@Override
public ListOpaClusterStrategyNewRequest build() {
return new ListOpaClusterStrategyNewRequest(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/ListOpaClusterStrategyNewResponse.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 ListOpaClusterStrategyNewResponse} extends {@link TeaModel}
*
* <p>ListOpaClusterStrategyNewResponse</p>
*/
public class ListOpaClusterStrategyNewResponse 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 ListOpaClusterStrategyNewResponseBody body;
private ListOpaClusterStrategyNewResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOpaClusterStrategyNewResponse 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 ListOpaClusterStrategyNewResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOpaClusterStrategyNewResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOpaClusterStrategyNewResponseBody body);
@Override
ListOpaClusterStrategyNewResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOpaClusterStrategyNewResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOpaClusterStrategyNewResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOpaClusterStrategyNewResponse 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(ListOpaClusterStrategyNewResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOpaClusterStrategyNewResponse build() {
return new ListOpaClusterStrategyNewResponse(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/ListOpaClusterStrategyNewResponseBody.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 ListOpaClusterStrategyNewResponseBody} extends {@link TeaModel}
*
* <p>ListOpaClusterStrategyNewResponseBody</p>
*/
public class ListOpaClusterStrategyNewResponseBody 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 ListOpaClusterStrategyNewResponseBody(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 ListOpaClusterStrategyNewResponseBody 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(ListOpaClusterStrategyNewResponseBody 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.</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 message that shows the export task result. The value is fixed as <strong>success</strong>, which indicates that the export task is successful.</p>
*
* <strong>example:</strong>
* <p>success</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>7DFD947C-9172-5129-B783-DD14C55191D2</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 ListOpaClusterStrategyNewResponseBody build() {
return new ListOpaClusterStrategyNewResponseBody(this);
}
}
/**
*
* {@link ListOpaClusterStrategyNewResponseBody} extends {@link TeaModel}
*
* <p>ListOpaClusterStrategyNewResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private Integer action;
@com.aliyun.core.annotation.NameInMap("ClusterCount")
private Integer clusterCount;
@com.aliyun.core.annotation.NameInMap("ClusterIdList")
private java.util.List<String> clusterIdList;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ImageName")
private java.util.List<String> imageName;
@com.aliyun.core.annotation.NameInMap("Label")
private java.util.List<String> label;
@com.aliyun.core.annotation.NameInMap("MaliciousImage")
private Boolean maliciousImage;
@com.aliyun.core.annotation.NameInMap("StrategyId")
private Long strategyId;
@com.aliyun.core.annotation.NameInMap("StrategyName")
private String strategyName;
@com.aliyun.core.annotation.NameInMap("UnScanedImage")
private Boolean unScanedImage;
private List(Builder builder) {
this.action = builder.action;
this.clusterCount = builder.clusterCount;
this.clusterIdList = builder.clusterIdList;
this.description = builder.description;
this.imageName = builder.imageName;
this.label = builder.label;
this.maliciousImage = builder.maliciousImage;
this.strategyId = builder.strategyId;
this.strategyName = builder.strategyName;
this.unScanedImage = builder.unScanedImage;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return action
*/
public Integer getAction() {
return this.action;
}
/**
* @return clusterCount
*/
public Integer getClusterCount() {
return this.clusterCount;
}
/**
* @return clusterIdList
*/
public java.util.List<String> getClusterIdList() {
return this.clusterIdList;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return imageName
*/
public java.util.List<String> getImageName() {
return this.imageName;
}
/**
* @return label
*/
public java.util.List<String> getLabel() {
return this.label;
}
/**
* @return maliciousImage
*/
public Boolean getMaliciousImage() {
return this.maliciousImage;
}
/**
* @return strategyId
*/
public Long getStrategyId() {
return this.strategyId;
}
/**
* @return strategyName
*/
public String getStrategyName() {
return this.strategyName;
}
/**
* @return unScanedImage
*/
public Boolean getUnScanedImage() {
return this.unScanedImage;
}
public static final class Builder {
private Integer action;
private Integer clusterCount;
private java.util.List<String> clusterIdList;
private String description;
private java.util.List<String> imageName;
private java.util.List<String> label;
private Boolean maliciousImage;
private Long strategyId;
private String strategyName;
private Boolean unScanedImage;
private Builder() {
}
private Builder(List model) {
this.action = model.action;
this.clusterCount = model.clusterCount;
this.clusterIdList = model.clusterIdList;
this.description = model.description;
this.imageName = model.imageName;
this.label = model.label;
this.maliciousImage = model.maliciousImage;
this.strategyId = model.strategyId;
this.strategyName = model.strategyName;
this.unScanedImage = model.unScanedImage;
}
/**
* <p>The action of the rule. Valid values:</p>
* <ul>
* <li><strong>1</strong>: trigger alerts</li>
* <li><strong>2</strong>: block</li>
* <li><strong>3</strong>: allow</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder action(Integer action) {
this.action = action;
return this;
}
/**
* <p>The number of clusters on which the rule takes effect.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder clusterCount(Integer clusterCount) {
this.clusterCount = clusterCount;
return this;
}
/**
* <p>The clusters on which the rule takes effect.</p>
*/
public Builder clusterIdList(java.util.List<String> clusterIdList) {
this.clusterIdList = clusterIdList;
return this;
}
/**
* <p>The description.</p>
*
* <strong>example:</strong>
* <p>Config the Event Audit policys</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The image names.</p>
*/
public Builder imageName(java.util.List<String> imageName) {
this.imageName = imageName;
return this;
}
/**
* <p>The tags that are added to the container.</p>
*/
public Builder label(java.util.List<String> label) {
this.label = label;
return this;
}
/**
* <p>Indicates whether the rule supports malicious Internet images. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder maliciousImage(Boolean maliciousImage) {
this.maliciousImage = maliciousImage;
return this;
}
/**
* <p>The rule ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder strategyId(Long strategyId) {
this.strategyId = strategyId;
return this;
}
/**
* <p>The rule name.</p>
*
* <strong>example:</strong>
* <p>auto-strategy-vohuiq</p>
*/
public Builder strategyName(String strategyName) {
this.strategyName = strategyName;
return this;
}
/**
* <p>Indicates whether the rule supports unscanned images. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder unScanedImage(Boolean unScanedImage) {
this.unScanedImage = unScanedImage;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link ListOpaClusterStrategyNewResponseBody} extends {@link TeaModel}
*
* <p>ListOpaClusterStrategyNewResponseBody</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>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/ListOperationCheckRequest.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 ListOperationCheckRequest} extends {@link RequestModel}
*
* <p>ListOperationCheckRequest</p>
*/
public class ListOperationCheckRequest 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("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("OperationTaskInstances")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<OperationTaskInstances> operationTaskInstances;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private ListOperationCheckRequest(Builder builder) {
super(builder);
this.checkId = builder.checkId;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.operationTaskInstances = builder.operationTaskInstances;
this.startTime = builder.startTime;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationCheckRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return operationTaskInstances
*/
public java.util.List<OperationTaskInstances> getOperationTaskInstances() {
return this.operationTaskInstances;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<ListOperationCheckRequest, Builder> {
private Long checkId;
private Long endTime;
private String lang;
private java.util.List<OperationTaskInstances> operationTaskInstances;
private Long startTime;
private String type;
private Builder() {
super();
}
private Builder(ListOperationCheckRequest request) {
super(request);
this.checkId = request.checkId;
this.endTime = request.endTime;
this.lang = request.lang;
this.operationTaskInstances = request.operationTaskInstances;
this.startTime = request.startTime;
this.type = request.type;
}
/**
* <p>Check item ID.</p>
* <blockquote>
* <p>Obtain this parameter by calling the <a href="~~ListCheckResult~~">ListCheckResult</a> interface.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder checkId(Long checkId) {
this.putQueryParameter("CheckId", checkId);
this.checkId = checkId;
return this;
}
/**
* <p>Timestamp (in milliseconds) of the end time of the queried task.</p>
*
* <strong>example:</strong>
* <p>1719923175001</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>Language type for request and response messages, default value is zh. 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>Information about the operated instances.</p>
* <p>This parameter is required.</p>
*/
public Builder operationTaskInstances(java.util.List<OperationTaskInstances> operationTaskInstances) {
this.putQueryParameter("OperationTaskInstances", operationTaskInstances);
this.operationTaskInstances = operationTaskInstances;
return this;
}
/**
* <p>Timestamp (in milliseconds) of the start time of the queried task.</p>
*
* <strong>example:</strong>
* <p>1719923175000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>Task type corresponding to the task:</p>
* <ul>
* <li><strong>REPAIR</strong>: Repair task</li>
* <li><strong>ROLLBACK</strong>: Rollback task</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>REPAIR</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public ListOperationCheckRequest build() {
return new ListOperationCheckRequest(this);
}
}
/**
*
* {@link ListOperationCheckRequest} extends {@link TeaModel}
*
* <p>ListOperationCheckRequest</p>
*/
public static class OperationTaskInstances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Vendor")
private String vendor;
private OperationTaskInstances(Builder builder) {
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.vendor = builder.vendor;
}
public static Builder builder() {
return new Builder();
}
public static OperationTaskInstances create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vendor
*/
public String getVendor() {
return this.vendor;
}
public static final class Builder {
private String instanceId;
private String regionId;
private String vendor;
private Builder() {
}
private Builder(OperationTaskInstances model) {
this.instanceId = model.instanceId;
this.regionId = model.regionId;
this.vendor = model.vendor;
}
/**
* <p>Cloud asset instance ID.</p>
*
* <strong>example:</strong>
* <p>r-bp1642ib4bg2bm****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Asset vendor. Values:</p>
* <ul>
* <li><strong>ALIYUN</strong>: Alibaba Cloud</li>
* </ul>
*
* <strong>example:</strong>
* <p>ALIYUN</p>
*/
public Builder vendor(String vendor) {
this.vendor = vendor;
return this;
}
public OperationTaskInstances build() {
return new OperationTaskInstances(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/ListOperationCheckResponse.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 ListOperationCheckResponse} extends {@link TeaModel}
*
* <p>ListOperationCheckResponse</p>
*/
public class ListOperationCheckResponse 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 ListOperationCheckResponseBody body;
private ListOperationCheckResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationCheckResponse 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 ListOperationCheckResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationCheckResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationCheckResponseBody body);
@Override
ListOperationCheckResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationCheckResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationCheckResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationCheckResponse 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(ListOperationCheckResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationCheckResponse build() {
return new ListOperationCheckResponse(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/ListOperationCheckResponseBody.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 ListOperationCheckResponseBody} extends {@link TeaModel}
*
* <p>ListOperationCheckResponseBody</p>
*/
public class ListOperationCheckResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OperationTaskInstanceDetails")
private java.util.List<OperationTaskInstanceDetails> operationTaskInstanceDetails;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListOperationCheckResponseBody(Builder builder) {
this.operationTaskInstanceDetails = builder.operationTaskInstanceDetails;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationCheckResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return operationTaskInstanceDetails
*/
public java.util.List<OperationTaskInstanceDetails> getOperationTaskInstanceDetails() {
return this.operationTaskInstanceDetails;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<OperationTaskInstanceDetails> operationTaskInstanceDetails;
private String requestId;
private Builder() {
}
private Builder(ListOperationCheckResponseBody model) {
this.operationTaskInstanceDetails = model.operationTaskInstanceDetails;
this.requestId = model.requestId;
}
/**
* <p>Detailed information about the operation instances.</p>
*/
public Builder operationTaskInstanceDetails(java.util.List<OperationTaskInstanceDetails> operationTaskInstanceDetails) {
this.operationTaskInstanceDetails = operationTaskInstanceDetails;
return this;
}
/**
* <p>The ID of the current call 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>A3D7C47D-3F11-57BB-90E8-E5C20C61****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListOperationCheckResponseBody build() {
return new ListOperationCheckResponseBody(this);
}
}
/**
*
* {@link ListOperationCheckResponseBody} extends {@link TeaModel}
*
* <p>ListOperationCheckResponseBody</p>
*/
public static class RepairConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FlowId")
private String flowId;
@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 RepairConfigs(Builder builder) {
this.flowId = builder.flowId;
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 RepairConfigs create() {
return builder().build();
}
/**
* @return flowId
*/
public String getFlowId() {
return this.flowId;
}
/**
* @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 flowId;
private String name;
private String showName;
private String typeDefine;
private String value;
private Builder() {
}
private Builder(RepairConfigs model) {
this.flowId = model.flowId;
this.name = model.name;
this.showName = model.showName;
this.typeDefine = model.typeDefine;
this.value = model.value;
}
/**
* <p>ID of the repair process during the repair operation.</p>
*
* <strong>example:</strong>
* <p>cd7c4d34c1034de08308535d6cee***</p>
*/
public Builder flowId(String flowId) {
this.flowId = flowId;
return this;
}
/**
* <p>Name of the repair parameter.</p>
*
* <strong>example:</strong>
* <p>IpList</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>Display name.</p>
*
* <strong>example:</strong>
* <p>IP List</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>JSON string for the custom configuration type of the check item.</p>
*
* <strong>example:</strong>
* <p>{"type":"STRING","range":[0,64]}</p>
*/
public Builder typeDefine(String typeDefine) {
this.typeDefine = typeDefine;
return this;
}
/**
* <p>Real-time value of the parameter for the instance.</p>
*
* <strong>example:</strong>
* <p>192.168.1XX.1XX</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public RepairConfigs build() {
return new RepairConfigs(this);
}
}
}
/**
*
* {@link ListOperationCheckResponseBody} extends {@link TeaModel}
*
* <p>ListOperationCheckResponseBody</p>
*/
public static class Repair extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OperateTime")
private Long operateTime;
@com.aliyun.core.annotation.NameInMap("RepairConfigs")
private java.util.List<RepairConfigs> repairConfigs;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StatusShowName")
private String statusShowName;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private Repair(Builder builder) {
this.operateTime = builder.operateTime;
this.repairConfigs = builder.repairConfigs;
this.status = builder.status;
this.statusShowName = builder.statusShowName;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static Repair create() {
return builder().build();
}
/**
* @return operateTime
*/
public Long getOperateTime() {
return this.operateTime;
}
/**
* @return repairConfigs
*/
public java.util.List<RepairConfigs> getRepairConfigs() {
return this.repairConfigs;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return statusShowName
*/
public String getStatusShowName() {
return this.statusShowName;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private Long operateTime;
private java.util.List<RepairConfigs> repairConfigs;
private String status;
private String statusShowName;
private String taskId;
private Builder() {
}
private Builder(Repair model) {
this.operateTime = model.operateTime;
this.repairConfigs = model.repairConfigs;
this.status = model.status;
this.statusShowName = model.statusShowName;
this.taskId = model.taskId;
}
/**
* <p>Timestamp for processing the risk. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1719923175000</p>
*/
public Builder operateTime(Long operateTime) {
this.operateTime = operateTime;
return this;
}
/**
* <p>Fix the corresponding configuration information.</p>
*/
public Builder repairConfigs(java.util.List<RepairConfigs> repairConfigs) {
this.repairConfigs = repairConfigs;
return this;
}
/**
* <p>Status of the corresponding task.</p>
*
* <strong>example:</strong>
* <p>REPAIR_SUCCESS_VERIFIED</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>Display name of the repair task status.</p>
*
* <strong>example:</strong>
* <p>repair success verified</p>
*/
public Builder statusShowName(String statusShowName) {
this.statusShowName = statusShowName;
return this;
}
/**
* <p>TaskId of the operation task.</p>
*
* <strong>example:</strong>
* <p>6a829841e335b0fb6e0014463284****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public Repair build() {
return new Repair(this);
}
}
}
/**
*
* {@link ListOperationCheckResponseBody} extends {@link TeaModel}
*
* <p>ListOperationCheckResponseBody</p>
*/
public static class OperationTaskInstanceDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Repair")
private java.util.List<Repair> repair;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private OperationTaskInstanceDetails(Builder builder) {
this.checkId = builder.checkId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.repair = builder.repair;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static OperationTaskInstanceDetails create() {
return builder().build();
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return repair
*/
public java.util.List<Repair> getRepair() {
return this.repair;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long checkId;
private String instanceId;
private String regionId;
private java.util.List<Repair> repair;
private String type;
private Builder() {
}
private Builder(OperationTaskInstanceDetails model) {
this.checkId = model.checkId;
this.instanceId = model.instanceId;
this.regionId = model.regionId;
this.repair = model.repair;
this.type = model.type;
}
/**
* <p>Check item ID.</p>
*
* <strong>example:</strong>
* <p>58</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>Instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-2zefdwrre8ey8ewr0****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>Region ID.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>Information about the repair task.</p>
*/
public Builder repair(java.util.List<Repair> repair) {
this.repair = repair;
return this;
}
/**
* <p>The operation type of the corresponding task:</p>
* <ul>
* <li><strong>REPAIR</strong>: Repair task </li>
* <li><strong>ROLLBACK</strong>: Rollback task</li>
* </ul>
*
* <strong>example:</strong>
* <p>REPAIR</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public OperationTaskInstanceDetails build() {
return new OperationTaskInstanceDetails(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/ListOperationProcessDetailRequest.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 ListOperationProcessDetailRequest} extends {@link RequestModel}
*
* <p>ListOperationProcessDetailRequest</p>
*/
public class ListOperationProcessDetailRequest 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("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")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatusCodes")
private java.util.List<Integer> statusCodes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskIds")
private java.util.List<String> taskIds;
private ListOperationProcessDetailRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.endTime = builder.endTime;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.startTime = builder.startTime;
this.statusCodes = builder.statusCodes;
this.taskIds = builder.taskIds;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationProcessDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return statusCodes
*/
public java.util.List<Integer> getStatusCodes() {
return this.statusCodes;
}
/**
* @return taskIds
*/
public java.util.List<String> getTaskIds() {
return this.taskIds;
}
public static final class Builder extends Request.Builder<ListOperationProcessDetailRequest, Builder> {
private Integer currentPage;
private Long endTime;
private String lang;
private Integer pageSize;
private Long startTime;
private java.util.List<Integer> statusCodes;
private java.util.List<String> taskIds;
private Builder() {
super();
}
private Builder(ListOperationProcessDetailRequest request) {
super(request);
this.currentPage = request.currentPage;
this.endTime = request.endTime;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.startTime = request.startTime;
this.statusCodes = request.statusCodes;
this.taskIds = request.taskIds;
}
/**
* <p>The page number. 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 end of the time range to query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1731555850000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
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 beginning of the time range to query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1731469330000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The subtask status codes.</p>
*/
public Builder statusCodes(java.util.List<Integer> statusCodes) {
this.putQueryParameter("StatusCodes", statusCodes);
this.statusCodes = statusCodes;
return this;
}
/**
* <p>The IDs of operation tasks.</p>
*/
public Builder taskIds(java.util.List<String> taskIds) {
this.putQueryParameter("TaskIds", taskIds);
this.taskIds = taskIds;
return this;
}
@Override
public ListOperationProcessDetailRequest build() {
return new ListOperationProcessDetailRequest(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/ListOperationProcessDetailResponse.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 ListOperationProcessDetailResponse} extends {@link TeaModel}
*
* <p>ListOperationProcessDetailResponse</p>
*/
public class ListOperationProcessDetailResponse 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 ListOperationProcessDetailResponseBody body;
private ListOperationProcessDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationProcessDetailResponse 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 ListOperationProcessDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationProcessDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationProcessDetailResponseBody body);
@Override
ListOperationProcessDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationProcessDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationProcessDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationProcessDetailResponse 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(ListOperationProcessDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationProcessDetailResponse build() {
return new ListOperationProcessDetailResponse(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/ListOperationProcessDetailResponseBody.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 ListOperationProcessDetailResponseBody} extends {@link TeaModel}
*
* <p>ListOperationProcessDetailResponseBody</p>
*/
public class ListOperationProcessDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("ProcessDetails")
private java.util.List<ProcessDetails> processDetails;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListOperationProcessDetailResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.processDetails = builder.processDetails;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationProcessDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return processDetails
*/
public java.util.List<ProcessDetails> getProcessDetails() {
return this.processDetails;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<ProcessDetails> processDetails;
private String requestId;
private Builder() {
}
private Builder(ListOperationProcessDetailResponseBody model) {
this.pageInfo = model.pageInfo;
this.processDetails = model.processDetails;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The information about the operation subtasks.</p>
*/
public Builder processDetails(java.util.List<ProcessDetails> processDetails) {
this.processDetails = processDetails;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>CE500770-42D3-442E-9DDD-156E0F9F3***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListOperationProcessDetailResponseBody build() {
return new ListOperationProcessDetailResponseBody(this);
}
}
/**
*
* {@link ListOperationProcessDetailResponseBody} extends {@link TeaModel}
*
* <p>ListOperationProcessDetailResponseBody</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.</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.</p>
*
* <strong>example:</strong>
* <p>19</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link ListOperationProcessDetailResponseBody} extends {@link TeaModel}
*
* <p>ListOperationProcessDetailResponseBody</p>
*/
public static class Checks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckShowName")
private String checkShowName;
private Checks(Builder builder) {
this.checkId = builder.checkId;
this.checkShowName = builder.checkShowName;
}
public static Builder builder() {
return new Builder();
}
public static Checks create() {
return builder().build();
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkShowName
*/
public String getCheckShowName() {
return this.checkShowName;
}
public static final class Builder {
private Long checkId;
private String checkShowName;
private Builder() {
}
private Builder(Checks model) {
this.checkId = model.checkId;
this.checkShowName = model.checkShowName;
}
/**
* <p>The ID of the check item associated with the operation subtask.</p>
*
* <strong>example:</strong>
* <p>133</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The name of the check item associated with the operation subtask.</p>
*
* <strong>example:</strong>
* <p>Check for Security Center Agent Status</p>
*/
public Builder checkShowName(String checkShowName) {
this.checkShowName = checkShowName;
return this;
}
public Checks build() {
return new Checks(this);
}
}
}
/**
*
* {@link ListOperationProcessDetailResponseBody} extends {@link TeaModel}
*
* <p>ListOperationProcessDetailResponseBody</p>
*/
public static class ProcessDetails 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("Checks")
private java.util.List<Checks> checks;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("DetailTaskId")
private String detailTaskId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("StatusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private ProcessDetails(Builder builder) {
this.assetSubType = builder.assetSubType;
this.assetType = builder.assetType;
this.assetVendor = builder.assetVendor;
this.checks = builder.checks;
this.createTime = builder.createTime;
this.detailTaskId = builder.detailTaskId;
this.endTime = builder.endTime;
this.startTime = builder.startTime;
this.statusCode = builder.statusCode;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static ProcessDetails 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 checks
*/
public java.util.List<Checks> getChecks() {
return this.checks;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return detailTaskId
*/
public String getDetailTaskId() {
return this.detailTaskId;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private Integer assetSubType;
private Integer assetType;
private Integer assetVendor;
private java.util.List<Checks> checks;
private Long createTime;
private String detailTaskId;
private Long endTime;
private Long startTime;
private Integer statusCode;
private String taskId;
private Builder() {
}
private Builder(ProcessDetails model) {
this.assetSubType = model.assetSubType;
this.assetType = model.assetType;
this.assetVendor = model.assetVendor;
this.checks = model.checks;
this.createTime = model.createTime;
this.detailTaskId = model.detailTaskId;
this.endTime = model.endTime;
this.startTime = model.startTime;
this.statusCode = model.statusCode;
this.taskId = model.taskId;
}
/**
* <p>The subtype of the asset associated with the operation subtask.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetSubType(Integer assetSubType) {
this.assetSubType = assetSubType;
return this;
}
/**
* <p>The type of the asset associated with the operation subtask.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder assetType(Integer assetType) {
this.assetType = assetType;
return this;
}
/**
* <p>The vendor of the asset associated with the operation subtask.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assetVendor(Integer assetVendor) {
this.assetVendor = assetVendor;
return this;
}
/**
* <p>The check items associated with the operation subtask.</p>
*/
public Builder checks(java.util.List<Checks> checks) {
this.checks = checks;
return this;
}
/**
* <p>The timestamp when the task was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1706544199000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the operation subtask.</p>
*
* <strong>example:</strong>
* <p>fb4bcd41-a916-46bc-ab1a-65fd383be***</p>
*/
public Builder detailTaskId(String detailTaskId) {
this.detailTaskId = detailTaskId;
return this;
}
/**
* <p>The end timestamp of the operation subtask. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1706544199000</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The start timestamp of the operation subtask. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1730335622000</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The subtask status code. Enumerated values:</p>
* <ul>
* <li>0: not started.</li>
* <li>1: running.</li>
* <li>2: successful.</li>
* <li>3: times out.</li>
* <li>4: failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* <p>The ID of the operation subtask.</p>
*
* <strong>example:</strong>
* <p>v34578b8-e567-47ec-2345-3e5b077ca***</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public ProcessDetails build() {
return new ProcessDetails(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/ListOperationProcessRequest.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 ListOperationProcessRequest} extends {@link RequestModel}
*
* <p>ListOperationProcessRequest</p>
*/
public class ListOperationProcessRequest 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("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatusCodes")
private java.util.List<Integer> statusCodes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskIds")
private java.util.List<String> taskIds;
@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("TaskTypes")
private java.util.List<String> taskTypes;
private ListOperationProcessRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.endTime = builder.endTime;
this.pageSize = builder.pageSize;
this.startTime = builder.startTime;
this.statusCodes = builder.statusCodes;
this.taskIds = builder.taskIds;
this.taskSources = builder.taskSources;
this.taskTypes = builder.taskTypes;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationProcessRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return statusCodes
*/
public java.util.List<Integer> getStatusCodes() {
return this.statusCodes;
}
/**
* @return taskIds
*/
public java.util.List<String> getTaskIds() {
return this.taskIds;
}
/**
* @return taskSources
*/
public java.util.List<String> getTaskSources() {
return this.taskSources;
}
/**
* @return taskTypes
*/
public java.util.List<String> getTaskTypes() {
return this.taskTypes;
}
public static final class Builder extends Request.Builder<ListOperationProcessRequest, Builder> {
private Integer currentPage;
private Long endTime;
private Integer pageSize;
private Long startTime;
private java.util.List<Integer> statusCodes;
private java.util.List<String> taskIds;
private java.util.List<String> taskSources;
private java.util.List<String> taskTypes;
private Builder() {
super();
}
private Builder(ListOperationProcessRequest request) {
super(request);
this.currentPage = request.currentPage;
this.endTime = request.endTime;
this.pageSize = request.pageSize;
this.startTime = request.startTime;
this.statusCodes = request.statusCodes;
this.taskIds = request.taskIds;
this.taskSources = request.taskSources;
this.taskTypes = request.taskTypes;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The end of the time range to query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1635575219000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The number of entries 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 beginning of the time range to query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1680919232000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The task status codes.</p>
*/
public Builder statusCodes(java.util.List<Integer> statusCodes) {
this.putQueryParameter("StatusCodes", statusCodes);
this.statusCodes = statusCodes;
return this;
}
/**
* <p>The task IDs.</p>
*/
public Builder taskIds(java.util.List<String> taskIds) {
this.putQueryParameter("TaskIds", taskIds);
this.taskIds = taskIds;
return this;
}
/**
* TaskSources.
*/
public Builder taskSources(java.util.List<String> taskSources) {
this.putQueryParameter("TaskSources", taskSources);
this.taskSources = taskSources;
return this;
}
/**
* <p>The task types. Valid values:</p>
* <ul>
* <li>CHECK_ALL: full check.</li>
* <li>CHECK_POLICY: policy-based check for which check items are configured.</li>
* <li>CHECK_SCHEDULE: scheduled check.</li>
* <li>CHECK_ITEM: specific check item-based check.</li>
* <li>CHECK_INSTANCE: specific check item-based check on specific instances.</li>
* </ul>
*/
public Builder taskTypes(java.util.List<String> taskTypes) {
this.putQueryParameter("TaskTypes", taskTypes);
this.taskTypes = taskTypes;
return this;
}
@Override
public ListOperationProcessRequest build() {
return new ListOperationProcessRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.