index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApiExportsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApiExportsRequest} extends {@link RequestModel} * * <p>DescribeApiExportsRequest</p> */ public class DescribeApiExportsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApiExportsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.lang = builder.lang; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApiExportsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApiExportsRequest, Builder> { private String instanceId; private String lang; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApiExportsRequest request) { super(request); this.instanceId = request.instanceId; this.lang = request.lang; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-p****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>Language type. Valid values:</p> * <ul> * <li><strong>cn</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 page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the Web Application Firewall (WAF) instance. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApiExportsRequest build() { return new DescribeApiExportsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApiExportsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApiExportsResponse} extends {@link TeaModel} * * <p>DescribeApiExportsResponse</p> */ public class DescribeApiExportsResponse 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 DescribeApiExportsResponseBody body; private DescribeApiExportsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApiExportsResponse 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 DescribeApiExportsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApiExportsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApiExportsResponseBody body); @Override DescribeApiExportsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApiExportsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApiExportsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApiExportsResponse 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(DescribeApiExportsResponseBody body) { this.body = body; return this; } @Override public DescribeApiExportsResponse build() { return new DescribeApiExportsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApiExportsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApiExportsResponseBody} extends {@link TeaModel} * * <p>DescribeApiExportsResponseBody</p> */ public class DescribeApiExportsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiExports") private java.util.List<ApiExports> apiExports; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Total") private Long total; private DescribeApiExportsResponseBody(Builder builder) { this.apiExports = builder.apiExports; this.requestId = builder.requestId; this.total = builder.total; } public static Builder builder() { return new Builder(); } public static DescribeApiExportsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return apiExports */ public java.util.List<ApiExports> getApiExports() { return this.apiExports; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return total */ public Long getTotal() { return this.total; } public static final class Builder { private java.util.List<ApiExports> apiExports; private String requestId; private Long total; private Builder() { } private Builder(DescribeApiExportsResponseBody model) { this.apiExports = model.apiExports; this.requestId = model.requestId; this.total = model.total; } /** * <p>The returned data export tasks.</p> */ public Builder apiExports(java.util.List<ApiExports> apiExports) { this.apiExports = apiExports; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D9532525-E885-54E7-A178-D5554D563AFB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The status of the data export task. Valid values:</p> * <ul> * <li><strong>expired</strong>: The file is expired.</li> * <li><strong>exporting</strong>: Data is being exported.</li> * <li><strong>completed</strong>: Data is exported.</li> * </ul> * * <strong>example:</strong> * <p>7</p> */ public Builder total(Long total) { this.total = total; return this; } public DescribeApiExportsResponseBody build() { return new DescribeApiExportsResponseBody(this); } } /** * * {@link DescribeApiExportsResponseBody} extends {@link TeaModel} * * <p>DescribeApiExportsResponseBody</p> */ public static class ApiExports extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("FileName") private String fileName; @com.aliyun.core.annotation.NameInMap("FileUrl") private String fileUrl; @com.aliyun.core.annotation.NameInMap("Format") private String format; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ApiExports(Builder builder) { this.createTime = builder.createTime; this.fileName = builder.fileName; this.fileUrl = builder.fileUrl; this.format = builder.format; this.status = builder.status; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ApiExports create() { return builder().build(); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return fileName */ public String getFileName() { return this.fileName; } /** * @return fileUrl */ public String getFileUrl() { return this.fileUrl; } /** * @return format */ public String getFormat() { return this.format; } /** * @return status */ public String getStatus() { return this.status; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private Long createTime; private String fileName; private String fileUrl; private String format; private String status; private String type; private Builder() { } private Builder(ApiExports model) { this.createTime = model.createTime; this.fileName = model.fileName; this.fileUrl = model.fileUrl; this.format = model.format; this.status = model.status; this.type = model.type; } /** * <p>The time when the data export task was created. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1725604852</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The name of the file.</p> * * <strong>example:</strong> * <p>file_16109541456445334c0f01d9a7444e0e908***.csv</p> */ public Builder fileName(String fileName) { this.fileName = fileName; return this; } /** * <p>The download URL of the exported file.</p> * * <strong>example:</strong> * <p><a href="https://waf-api-sec-cn.***.aliyuncs.com/file_1610954145***.csv">https://waf-api-sec-cn.***.aliyuncs.com/file_1610954145***.csv</a></p> */ public Builder fileUrl(String fileUrl) { this.fileUrl = fileUrl; return this; } /** * <p>The format of the exported file.</p> * * <strong>example:</strong> * <p>CSV</p> */ public Builder format(String format) { this.format = format; return this; } /** * <p>The status of the data export task. Valid values:</p> * <ul> * <li><p><strong>expired</strong>: The file is expired.</p> * </li> * <li><p><strong>exporting</strong>: Data is being exported.</p> * </li> * <li><p><strong>completed</strong>: Data is exported.</p> * </li> * </ul> * * <strong>example:</strong> * <p>completed</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The type of the data export task. Valid values:</p> * <ul> * <li><p><strong>apisec_api</strong>: API tasks</p> * </li> * <li><p><strong>apisec_abnormal</strong>: API risk tasks</p> * </li> * <li><p><strong>apisec_event</strong>: API security event tasks</p> * </li> * </ul> * * <strong>example:</strong> * <p>apisec_api</p> */ public Builder type(String type) { this.type = type; return this; } public ApiExports build() { return new ApiExports(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalDomainStatisticRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalDomainStatisticRequest} extends {@link RequestModel} * * <p>DescribeApisecAbnormalDomainStatisticRequest</p> */ public class DescribeApisecAbnormalDomainStatisticRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; private DescribeApisecAbnormalDomainStatisticRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.orderWay = builder.orderWay; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeApisecAbnormalDomainStatisticRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeApisecAbnormalDomainStatisticRequest, Builder> { private String clusterId; private Long endTime; private String instanceId; private String orderWay; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Long startTime; private Builder() { super(); } private Builder(DescribeApisecAbnormalDomainStatisticRequest request) { super(request); this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.orderWay = request.orderWay; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p>For hybrid cloud scenarios only, you can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query the hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1687313820</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf-cn-45919n***</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The sorting order. Valid values:</p> * <ul> * <li><strong>asc</strong>: ascending order.</li> * <li><strong>desc</strong>: descending order.</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>5</strong>.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1682571600</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeApisecAbnormalDomainStatisticRequest build() { return new DescribeApisecAbnormalDomainStatisticRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalDomainStatisticResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalDomainStatisticResponse} extends {@link TeaModel} * * <p>DescribeApisecAbnormalDomainStatisticResponse</p> */ public class DescribeApisecAbnormalDomainStatisticResponse 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 DescribeApisecAbnormalDomainStatisticResponseBody body; private DescribeApisecAbnormalDomainStatisticResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecAbnormalDomainStatisticResponse 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 DescribeApisecAbnormalDomainStatisticResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecAbnormalDomainStatisticResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecAbnormalDomainStatisticResponseBody body); @Override DescribeApisecAbnormalDomainStatisticResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecAbnormalDomainStatisticResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecAbnormalDomainStatisticResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecAbnormalDomainStatisticResponse 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(DescribeApisecAbnormalDomainStatisticResponseBody body) { this.body = body; return this; } @Override public DescribeApisecAbnormalDomainStatisticResponse build() { return new DescribeApisecAbnormalDomainStatisticResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalDomainStatisticResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAbnormalDomainStatisticResponseBody</p> */ public class DescribeApisecAbnormalDomainStatisticResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecAbnormalDomainStatisticResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecAbnormalDomainStatisticResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecAbnormalDomainStatisticResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The response parameters.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>Id of the request.</p> * * <strong>example:</strong> * <p>66A98669-CC6E-4F3E-80A6-3014***B11AE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecAbnormalDomainStatisticResponseBody build() { return new DescribeApisecAbnormalDomainStatisticResponseBody(this); } } /** * * {@link DescribeApisecAbnormalDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAbnormalDomainStatisticResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiCount") private Long apiCount; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("High") private Long high; @com.aliyun.core.annotation.NameInMap("Low") private Long low; @com.aliyun.core.annotation.NameInMap("Medium") private Long medium; private Data(Builder builder) { this.apiCount = builder.apiCount; this.domain = builder.domain; this.high = builder.high; this.low = builder.low; this.medium = builder.medium; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apiCount */ public Long getApiCount() { return this.apiCount; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return high */ public Long getHigh() { return this.high; } /** * @return low */ public Long getLow() { return this.low; } /** * @return medium */ public Long getMedium() { return this.medium; } public static final class Builder { private Long apiCount; private String domain; private Long high; private Long low; private Long medium; private Builder() { } private Builder(Data model) { this.apiCount = model.apiCount; this.domain = model.domain; this.high = model.high; this.low = model.low; this.medium = model.medium; } /** * <p>The number of APIs.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder apiCount(Long apiCount) { this.apiCount = apiCount; return this; } /** * <p>The domain name.</p> * * <strong>example:</strong> * <p>ba.aliyun.com</p> */ public Builder domain(String domain) { this.domain = domain; return this; } /** * <p>The number of high-level risks.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder high(Long high) { this.high = high; return this; } /** * <p>The number of low-level risks.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder low(Long low) { this.low = low; return this; } /** * <p>The number of medium-level risks.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder medium(Long medium) { this.medium = medium; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalsRequest} extends {@link RequestModel} * * <p>DescribeApisecAbnormalsRequest</p> */ public class DescribeApisecAbnormalsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AbnormalId") private String abnormalId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AbnormalLevel") private String abnormalLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AbnormalTag") private String abnormalTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderKey") private String orderKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Origin") private String origin; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserStatus") private String userStatus; private DescribeApisecAbnormalsRequest(Builder builder) { super(builder); this.abnormalId = builder.abnormalId; this.abnormalLevel = builder.abnormalLevel; this.abnormalTag = builder.abnormalTag; this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiTag = builder.apiTag; this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.matchedHost = builder.matchedHost; this.orderKey = builder.orderKey; this.orderWay = builder.orderWay; this.origin = builder.origin; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; this.userStatus = builder.userStatus; } public static Builder builder() { return new Builder(); } public static DescribeApisecAbnormalsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return abnormalId */ public String getAbnormalId() { return this.abnormalId; } /** * @return abnormalLevel */ public String getAbnormalLevel() { return this.abnormalLevel; } /** * @return abnormalTag */ public String getAbnormalTag() { return this.abnormalTag; } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return orderKey */ public String getOrderKey() { return this.orderKey; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return origin */ public String getOrigin() { return this.origin; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return userStatus */ public String getUserStatus() { return this.userStatus; } public static final class Builder extends Request.Builder<DescribeApisecAbnormalsRequest, Builder> { private String abnormalId; private String abnormalLevel; private String abnormalTag; private String apiFormat; private String apiId; private String apiTag; private String clusterId; private String endTime; private String instanceId; private String matchedHost; private String orderKey; private String orderWay; private String origin; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private String startTime; private String userStatus; private Builder() { super(); } private Builder(DescribeApisecAbnormalsRequest request) { super(request); this.abnormalId = request.abnormalId; this.abnormalLevel = request.abnormalLevel; this.abnormalTag = request.abnormalTag; this.apiFormat = request.apiFormat; this.apiId = request.apiId; this.apiTag = request.apiTag; this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.matchedHost = request.matchedHost; this.orderKey = request.orderKey; this.orderWay = request.orderWay; this.origin = request.origin; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; this.userStatus = request.userStatus; } /** * <p>The ID of the risk.</p> * * <strong>example:</strong> * <p>29c6401****99a2bad3943e26d8</p> */ public Builder abnormalId(String abnormalId) { this.putQueryParameter("AbnormalId", abnormalId); this.abnormalId = abnormalId; return this; } /** * <p>The level of the risk. 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 abnormalLevel(String abnormalLevel) { this.putQueryParameter("AbnormalLevel", abnormalLevel); this.abnormalLevel = abnormalLevel; return this; } /** * <p>The type of the risk.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported types of risks.</p> * </blockquote> * * <strong>example:</strong> * <p>LackOfSpeedLimit</p> */ public Builder abnormalTag(String abnormalTag) { this.putQueryParameter("AbnormalTag", abnormalTag); this.abnormalTag = abnormalTag; return this; } /** * <p>The risk-related API.</p> * * <strong>example:</strong> * <p>/api/users/login</p> */ public Builder apiFormat(String apiFormat) { this.putQueryParameter("ApiFormat", apiFormat); this.apiFormat = apiFormat; return this; } /** * <p>The ID of the risk-related API.</p> * * <strong>example:</strong> * <p>bd9efb8ad******d9ca6</p> */ public Builder apiId(String apiId) { this.putQueryParameter("ApiId", apiId); this.apiId = apiId; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>RegisterAPI</p> */ public Builder apiTag(String apiTag) { this.putQueryParameter("ApiTag", apiTag); this.apiTag = apiTag; return this; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p> This parameter is available only in hybrid cloud scenarios. You can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>546</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684382100</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-z***9g301</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.putQueryParameter("MatchedHost", matchedHost); this.matchedHost = matchedHost; return this; } /** * <p>The name of the sorting field. Valid values:</p> * <ul> * <li><strong>discoverTime</strong> (default): indicates the time when a risk was first detected.</li> * <li><strong>abnormalLevel</strong>: indicates the level of a risk.</li> * <li><strong>latestDiscoverTime</strong>: indicates the time when a risk was last detected.</li> * </ul> * * <strong>example:</strong> * <p>allCnt</p> */ public Builder orderKey(String orderKey) { this.putQueryParameter("OrderKey", orderKey); this.orderKey = orderKey; return this; } /** * <p>The sorting method. Valid values:</p> * <ul> * <li><strong>desc (default)</strong>: in descending order</li> * <li><strong>asc</strong>: in ascending order</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The source of the risk type. Valid values:</p> * <ul> * <li><strong>custom</strong></li> * <li><strong>default</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder origin(String origin) { this.putQueryParameter("Origin", origin); this.origin = origin; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the WAF instance. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</li> * </ul> * * <strong>example:</strong> * <p>cn-qingdao</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684252800</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The status of the risk. Valid values:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>toBeFixed</strong></li> * <li><strong>fixed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>Confirmed</p> */ public Builder userStatus(String userStatus) { this.putQueryParameter("UserStatus", userStatus); this.userStatus = userStatus; return this; } @Override public DescribeApisecAbnormalsRequest build() { return new DescribeApisecAbnormalsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalsResponse} extends {@link TeaModel} * * <p>DescribeApisecAbnormalsResponse</p> */ public class DescribeApisecAbnormalsResponse 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 DescribeApisecAbnormalsResponseBody body; private DescribeApisecAbnormalsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecAbnormalsResponse 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 DescribeApisecAbnormalsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecAbnormalsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecAbnormalsResponseBody body); @Override DescribeApisecAbnormalsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecAbnormalsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecAbnormalsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecAbnormalsResponse 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(DescribeApisecAbnormalsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecAbnormalsResponse build() { return new DescribeApisecAbnormalsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAbnormalsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAbnormalsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAbnormalsResponseBody</p> */ public class DescribeApisecAbnormalsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecAbnormalsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecAbnormalsResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecAbnormalsResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The risks.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9469646C-F2CC-5F0F-8401-C53***4F46</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>35</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecAbnormalsResponseBody build() { return new DescribeApisecAbnormalsResponseBody(this); } } /** * * {@link DescribeApisecAbnormalsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAbnormalsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("AbnormalEventNumber") private Long abnormalEventNumber; @com.aliyun.core.annotation.NameInMap("AbnormalId") private String abnormalId; @com.aliyun.core.annotation.NameInMap("AbnormalInfo") private String abnormalInfo; @com.aliyun.core.annotation.NameInMap("AbnormalLevel") private String abnormalLevel; @com.aliyun.core.annotation.NameInMap("AbnormalTag") private String abnormalTag; @com.aliyun.core.annotation.NameInMap("AbnromalStatus") private String abnromalStatus; @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.NameInMap("DiscoverTime") private Long discoverTime; @com.aliyun.core.annotation.NameInMap("Examples") private java.util.List<String> examples; @com.aliyun.core.annotation.NameInMap("FirstTime") private Long firstTime; @com.aliyun.core.annotation.NameInMap("Follow") private Long follow; @com.aliyun.core.annotation.NameInMap("IgnoreTime") private Long ignoreTime; @com.aliyun.core.annotation.NameInMap("LastestTime") private Long lastestTime; @com.aliyun.core.annotation.NameInMap("LatestDiscoverTime") private Long latestDiscoverTime; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("Origin") private String origin; @com.aliyun.core.annotation.NameInMap("UserStatus") private String userStatus; private Data(Builder builder) { this.abnormalEventNumber = builder.abnormalEventNumber; this.abnormalId = builder.abnormalId; this.abnormalInfo = builder.abnormalInfo; this.abnormalLevel = builder.abnormalLevel; this.abnormalTag = builder.abnormalTag; this.abnromalStatus = builder.abnromalStatus; this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiTag = builder.apiTag; this.discoverTime = builder.discoverTime; this.examples = builder.examples; this.firstTime = builder.firstTime; this.follow = builder.follow; this.ignoreTime = builder.ignoreTime; this.lastestTime = builder.lastestTime; this.latestDiscoverTime = builder.latestDiscoverTime; this.matchedHost = builder.matchedHost; this.note = builder.note; this.origin = builder.origin; this.userStatus = builder.userStatus; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return abnormalEventNumber */ public Long getAbnormalEventNumber() { return this.abnormalEventNumber; } /** * @return abnormalId */ public String getAbnormalId() { return this.abnormalId; } /** * @return abnormalInfo */ public String getAbnormalInfo() { return this.abnormalInfo; } /** * @return abnormalLevel */ public String getAbnormalLevel() { return this.abnormalLevel; } /** * @return abnormalTag */ public String getAbnormalTag() { return this.abnormalTag; } /** * @return abnromalStatus */ public String getAbnromalStatus() { return this.abnromalStatus; } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return discoverTime */ public Long getDiscoverTime() { return this.discoverTime; } /** * @return examples */ public java.util.List<String> getExamples() { return this.examples; } /** * @return firstTime */ public Long getFirstTime() { return this.firstTime; } /** * @return follow */ public Long getFollow() { return this.follow; } /** * @return ignoreTime */ public Long getIgnoreTime() { return this.ignoreTime; } /** * @return lastestTime */ public Long getLastestTime() { return this.lastestTime; } /** * @return latestDiscoverTime */ public Long getLatestDiscoverTime() { return this.latestDiscoverTime; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return note */ public String getNote() { return this.note; } /** * @return origin */ public String getOrigin() { return this.origin; } /** * @return userStatus */ public String getUserStatus() { return this.userStatus; } public static final class Builder { private Long abnormalEventNumber; private String abnormalId; private String abnormalInfo; private String abnormalLevel; private String abnormalTag; private String abnromalStatus; private String apiFormat; private String apiId; private String apiTag; private Long discoverTime; private java.util.List<String> examples; private Long firstTime; private Long follow; private Long ignoreTime; private Long lastestTime; private Long latestDiscoverTime; private String matchedHost; private String note; private String origin; private String userStatus; private Builder() { } private Builder(Data model) { this.abnormalEventNumber = model.abnormalEventNumber; this.abnormalId = model.abnormalId; this.abnormalInfo = model.abnormalInfo; this.abnormalLevel = model.abnormalLevel; this.abnormalTag = model.abnormalTag; this.abnromalStatus = model.abnromalStatus; this.apiFormat = model.apiFormat; this.apiId = model.apiId; this.apiTag = model.apiTag; this.discoverTime = model.discoverTime; this.examples = model.examples; this.firstTime = model.firstTime; this.follow = model.follow; this.ignoreTime = model.ignoreTime; this.lastestTime = model.lastestTime; this.latestDiscoverTime = model.latestDiscoverTime; this.matchedHost = model.matchedHost; this.note = model.note; this.origin = model.origin; this.userStatus = model.userStatus; } /** * <p>The number of risk-related security events.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder abnormalEventNumber(Long abnormalEventNumber) { this.abnormalEventNumber = abnormalEventNumber; return this; } /** * <p>The ID of the risk.</p> * * <strong>example:</strong> * <p>7c1431f27ae7e9c8cc64095***68e</p> */ public Builder abnormalId(String abnormalId) { this.abnormalId = abnormalId; return this; } /** * <p>The details of the risk. The value is a string that consists of multiple parameters in the JSON format. Valid values:</p> * <ul> * <li><strong>rule</strong>: risk-related rule</li> * <li><strong>data_type</strong>: sensitive data type</li> * <li><strong>custom_rule_name</strong>: custom rule name</li> * <li><strong>rule_name</strong>: built-in rule name</li> * </ul> * * <strong>example:</strong> * <p>{ &quot;data_type&quot;: [&quot;1005&quot;,&quot;1004&quot;], &quot;rule&quot;: { &quot;parent&quot;: &quot;RiskType_Permission&quot;, &quot;code&quot;: &quot;Risk_UnauthSensitive&quot;, &quot;level&quot;: &quot;high&quot;, &quot;origin&quot;: &quot;default&quot;, &quot;name&quot;: &quot;Risk_UnauthSensitive&quot; } }</p> */ public Builder abnormalInfo(String abnormalInfo) { this.abnormalInfo = abnormalInfo; return this; } /** * <p>The level of the risk. Valid values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder abnormalLevel(String abnormalLevel) { this.abnormalLevel = abnormalLevel; return this; } /** * <p>The type of the risk.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported types of risks.</p> * </blockquote> * * <strong>example:</strong> * <p>LackOfSpeedLimit</p> */ public Builder abnormalTag(String abnormalTag) { this.abnormalTag = abnormalTag; return this; } /** * <p>The status of the risk.</p> * * <strong>example:</strong> * <p>unresolved</p> */ public Builder abnromalStatus(String abnromalStatus) { this.abnromalStatus = abnromalStatus; return this; } /** * <p>The risk-related API.</p> * * <strong>example:</strong> * <p>/api/login</p> */ public Builder apiFormat(String apiFormat) { this.apiFormat = apiFormat; return this; } /** * <p>The ID of the risk-related API.</p> * * <strong>example:</strong> * <p>09559c0d71ca2ffc996b81***836d8</p> */ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>SendMail</p> */ public Builder apiTag(String apiTag) { this.apiTag = apiTag; return this; } /** * <p>The time at which the risk was first detected. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684252800</p> */ public Builder discoverTime(Long discoverTime) { this.discoverTime = discoverTime; return this; } /** * <p>The risk-related samples.</p> */ public Builder examples(java.util.List<String> examples) { this.examples = examples; return this; } /** * <p>The time at which the API was first detected. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1701138088</p> */ public Builder firstTime(Long firstTime) { this.firstTime = firstTime; return this; } /** * <p>Indicates whether the API is followed. Valid values:</p> * <ul> * <li><strong>1</strong>: yes</li> * <li><strong>0</strong>(default): no</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder follow(Long follow) { this.follow = follow; return this; } /** * <p>The time at which the risk was marked as ignored. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684252800</p> */ public Builder ignoreTime(Long ignoreTime) { this.ignoreTime = ignoreTime; return this; } /** * <p>The time at which the API was last accessed. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684252800</p> */ public Builder lastestTime(Long lastestTime) { this.lastestTime = lastestTime; return this; } /** * <p>The time at which the risk was last detected. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1684252800</p> */ public Builder latestDiscoverTime(Long latestDiscoverTime) { this.latestDiscoverTime = latestDiscoverTime; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.matchedHost = matchedHost; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>Business side notified</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The source of the risk type. Valid values:</p> * <ul> * <li><strong>custom</strong></li> * <li><strong>default</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder origin(String origin) { this.origin = origin; return this; } /** * <p>The status of the risk. Valid values:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>toBeFixed</strong></li> * <li><strong>fixed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>Confirmed</p> */ public Builder userStatus(String userStatus) { this.userStatus = userStatus; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecApiResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecApiResourcesRequest} extends {@link RequestModel} * * <p>DescribeApisecApiResourcesRequest</p> */ public class DescribeApisecApiResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiMethod") private String apiMethod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiStatus") private String apiStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiType") private String apiType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthFlag") private String authFlag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Follow") private Long follow; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderKey") private String orderKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RequestSensitiveType") private String requestSensitiveType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SensitiveLevel") private String sensitiveLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SensitiveType") private String sensitiveType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private DescribeApisecApiResourcesRequest(Builder builder) { super(builder); this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiMethod = builder.apiMethod; this.apiStatus = builder.apiStatus; this.apiTag = builder.apiTag; this.apiType = builder.apiType; this.authFlag = builder.authFlag; this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.follow = builder.follow; this.instanceId = builder.instanceId; this.matchedHost = builder.matchedHost; this.note = builder.note; this.orderKey = builder.orderKey; this.orderWay = builder.orderWay; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.requestSensitiveType = builder.requestSensitiveType; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.sensitiveLevel = builder.sensitiveLevel; this.sensitiveType = builder.sensitiveType; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeApisecApiResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiMethod */ public String getApiMethod() { return this.apiMethod; } /** * @return apiStatus */ public String getApiStatus() { return this.apiStatus; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return apiType */ public String getApiType() { return this.apiType; } /** * @return authFlag */ public String getAuthFlag() { return this.authFlag; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return follow */ public Long getFollow() { return this.follow; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return note */ public String getNote() { return this.note; } /** * @return orderKey */ public String getOrderKey() { return this.orderKey; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestSensitiveType */ public String getRequestSensitiveType() { return this.requestSensitiveType; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return sensitiveLevel */ public String getSensitiveLevel() { return this.sensitiveLevel; } /** * @return sensitiveType */ public String getSensitiveType() { return this.sensitiveType; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeApisecApiResourcesRequest, Builder> { private String apiFormat; private String apiId; private String apiMethod; private String apiStatus; private String apiTag; private String apiType; private String authFlag; private String clusterId; private String endTime; private Long follow; private String instanceId; private String matchedHost; private String note; private String orderKey; private String orderWay; private Long pageNumber; private Long pageSize; private String regionId; private String requestSensitiveType; private String resourceManagerResourceGroupId; private String sensitiveLevel; private String sensitiveType; private String startTime; private Builder() { super(); } private Builder(DescribeApisecApiResourcesRequest request) { super(request); this.apiFormat = request.apiFormat; this.apiId = request.apiId; this.apiMethod = request.apiMethod; this.apiStatus = request.apiStatus; this.apiTag = request.apiTag; this.apiType = request.apiType; this.authFlag = request.authFlag; this.clusterId = request.clusterId; this.endTime = request.endTime; this.follow = request.follow; this.instanceId = request.instanceId; this.matchedHost = request.matchedHost; this.note = request.note; this.orderKey = request.orderKey; this.orderWay = request.orderWay; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.requestSensitiveType = request.requestSensitiveType; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.sensitiveLevel = request.sensitiveLevel; this.sensitiveType = request.sensitiveType; this.startTime = request.startTime; } /** * <p>The API.</p> * * <strong>example:</strong> * <p>/auth/login</p> */ public Builder apiFormat(String apiFormat) { this.putQueryParameter("ApiFormat", apiFormat); this.apiFormat = apiFormat; return this; } /** * <p>The ID of the API.</p> * * <strong>example:</strong> * <p>867ade***24ee6e205b8da82b8f84</p> */ public Builder apiId(String apiId) { this.putQueryParameter("ApiId", apiId); this.apiId = apiId; return this; } /** * <p>The request method of the API. Valid values:</p> * <ul> * <li><strong>GET</strong></li> * <li><strong>POST</strong></li> * <li><strong>HEAD</strong></li> * <li><strong>PUT</strong></li> * <li><strong>DELETE</strong></li> * <li><strong>CONNECT</strong></li> * <li><strong>PATCH</strong></li> * <li><strong>OPTIONS</strong></li> * </ul> * * <strong>example:</strong> * <p>POST</p> */ public Builder apiMethod(String apiMethod) { this.putQueryParameter("ApiMethod", apiMethod); this.apiMethod = apiMethod; return this; } /** * <p>The API status. Valid values:</p> * <ul> * <li><strong>NewbornInterface</strong>: The API is newly added.</li> * <li><strong>OfflineInterface</strong>: The API is inactive.</li> * <li><strong>normal</strong>: The API is normal.</li> * </ul> * * <strong>example:</strong> * <p>OfflineInterface</p> */ public Builder apiStatus(String apiStatus) { this.putQueryParameter("ApiStatus", apiStatus); this.apiStatus = apiStatus; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>SendMail</p> */ public Builder apiTag(String apiTag) { this.putQueryParameter("ApiTag", apiTag); this.apiTag = apiTag; return this; } /** * <p>The service object. Valid values:</p> * <ul> * <li><strong>PublicAPI</strong>: public services</li> * <li><strong>ThirdpartAPI</strong>: cooperation with third-party partners</li> * <li><strong>InternalAPI</strong>: internal office</li> * </ul> * * <strong>example:</strong> * <p>innerAPI</p> */ public Builder apiType(String apiType) { this.putQueryParameter("ApiType", apiType); this.apiType = apiType; return this; } /** * <p>Specifies whether authentication is required. Valid values:</p> * <ul> * <li><strong>0</strong>: Authentication is required.</li> * <li><strong>1</strong>: Authentication is not required.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder authFlag(String authFlag) { this.putQueryParameter("AuthFlag", authFlag); this.authFlag = authFlag; return this; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p> This parameter is available only in hybrid cloud scenarios. You can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>740</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683388800</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>Specifies whether to follow the API. Valid values:</p> * <ul> * <li><strong>1</strong>: follows the API.</li> * <li><strong>0</strong>: does not follow the API.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder follow(Long follow) { this.putQueryParameter("Follow", follow); this.follow = follow; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-u***gr20j</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.putQueryParameter("MatchedHost", matchedHost); this.matchedHost = matchedHost; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>API for logon</p> */ public Builder note(String note) { this.putQueryParameter("Note", note); this.note = note; return this; } /** * <p>The name of the sorting field. Valid values:</p> * <ul> * <li><strong>allCnt</strong>: the total number of calls to the API in the previous 30 days</li> * <li><strong>botCnt</strong>: the number of bot-initiated requests in the previous 30 days</li> * <li><strong>crossBorderCnt</strong>: the number of cross-border requests in the previous 30 days</li> * <li><strong>abnormalNum</strong>: the number of API-related risks</li> * <li><strong>eventNum</strong>: the number of API-related security events</li> * <li><strong>farthestTs</strong>: the time when the API was first detected</li> * <li><strong>lastestTs</strong>: the time of the most recent access to the API</li> * </ul> * * <strong>example:</strong> * <p>allCnt</p> */ public Builder orderKey(String orderKey) { this.putQueryParameter("OrderKey", orderKey); this.orderKey = orderKey; return this; } /** * <p>The sorting method. Valid values:</p> * <ul> * <li><strong>desc</strong> (default): descending order</li> * <li><strong>asc</strong>: ascending order</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the WAF instance. Value:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 sensitive data type in the request.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported sensitive data types.</p> * </blockquote> * * <strong>example:</strong> * <p>1004,1005</p> */ public Builder requestSensitiveType(String requestSensitiveType) { this.putQueryParameter("RequestSensitiveType", requestSensitiveType); this.requestSensitiveType = requestSensitiveType; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The sensitivity level of the API. Valid values:</p> * <ul> * <li><strong>L1</strong>: high sensitivity</li> * <li><strong>L2</strong>: moderate sensitivity</li> * <li><strong>L3</strong>: low sensitivity</li> * <li><strong>N</strong>: non-sensitivity</li> * </ul> * * <strong>example:</strong> * <p>L3</p> */ public Builder sensitiveLevel(String sensitiveLevel) { this.putQueryParameter("SensitiveLevel", sensitiveLevel); this.sensitiveLevel = sensitiveLevel; return this; } /** * <p>The sensitive data type in the response.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported sensitive data types.</p> * </blockquote> * * <strong>example:</strong> * <p>1004</p> */ public Builder sensitiveType(String sensitiveType) { this.putQueryParameter("SensitiveType", sensitiveType); this.sensitiveType = sensitiveType; return this; } /** * <p>The beginning of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1681833600</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeApisecApiResourcesRequest build() { return new DescribeApisecApiResourcesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecApiResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecApiResourcesResponse} extends {@link TeaModel} * * <p>DescribeApisecApiResourcesResponse</p> */ public class DescribeApisecApiResourcesResponse 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 DescribeApisecApiResourcesResponseBody body; private DescribeApisecApiResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecApiResourcesResponse 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 DescribeApisecApiResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecApiResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecApiResourcesResponseBody body); @Override DescribeApisecApiResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecApiResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecApiResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecApiResourcesResponse 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(DescribeApisecApiResourcesResponseBody body) { this.body = body; return this; } @Override public DescribeApisecApiResourcesResponse build() { return new DescribeApisecApiResourcesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecApiResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecApiResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecApiResourcesResponseBody</p> */ public class DescribeApisecApiResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecApiResourcesResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecApiResourcesResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecApiResourcesResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The API assets.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2EFCFE18-78F8-5079-B312-07***48B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecApiResourcesResponseBody build() { return new DescribeApisecApiResourcesResponseBody(this); } } /** * * {@link DescribeApisecApiResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecApiResourcesResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("AbnormalNum") private Long abnormalNum; @com.aliyun.core.annotation.NameInMap("AllCnt") private Long allCnt; @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.NameInMap("ApiInfo") private String apiInfo; @com.aliyun.core.annotation.NameInMap("ApiMethod") private String apiMethod; @com.aliyun.core.annotation.NameInMap("ApiSensitive") private String apiSensitive; @com.aliyun.core.annotation.NameInMap("ApiSensitiveRequest") private String apiSensitiveRequest; @com.aliyun.core.annotation.NameInMap("ApiSensitiveResponse") private String apiSensitiveResponse; @com.aliyun.core.annotation.NameInMap("ApiStatus") private String apiStatus; @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.NameInMap("ApiType") private String apiType; @com.aliyun.core.annotation.NameInMap("AuthFlag") private String authFlag; @com.aliyun.core.annotation.NameInMap("BotCnt") private Long botCnt; @com.aliyun.core.annotation.NameInMap("CrossBorderCnt") private Long crossBorderCnt; @com.aliyun.core.annotation.NameInMap("EventNum") private Long eventNum; @com.aliyun.core.annotation.NameInMap("Examples") private java.util.List<String> examples; @com.aliyun.core.annotation.NameInMap("FarthestTs") private Long farthestTs; @com.aliyun.core.annotation.NameInMap("Follow") private Integer follow; @com.aliyun.core.annotation.NameInMap("LastestTs") private Long lastestTs; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.List<String> resources; private Data(Builder builder) { this.abnormalNum = builder.abnormalNum; this.allCnt = builder.allCnt; this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiInfo = builder.apiInfo; this.apiMethod = builder.apiMethod; this.apiSensitive = builder.apiSensitive; this.apiSensitiveRequest = builder.apiSensitiveRequest; this.apiSensitiveResponse = builder.apiSensitiveResponse; this.apiStatus = builder.apiStatus; this.apiTag = builder.apiTag; this.apiType = builder.apiType; this.authFlag = builder.authFlag; this.botCnt = builder.botCnt; this.crossBorderCnt = builder.crossBorderCnt; this.eventNum = builder.eventNum; this.examples = builder.examples; this.farthestTs = builder.farthestTs; this.follow = builder.follow; this.lastestTs = builder.lastestTs; this.matchedHost = builder.matchedHost; this.note = builder.note; this.resources = builder.resources; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return abnormalNum */ public Long getAbnormalNum() { return this.abnormalNum; } /** * @return allCnt */ public Long getAllCnt() { return this.allCnt; } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiInfo */ public String getApiInfo() { return this.apiInfo; } /** * @return apiMethod */ public String getApiMethod() { return this.apiMethod; } /** * @return apiSensitive */ public String getApiSensitive() { return this.apiSensitive; } /** * @return apiSensitiveRequest */ public String getApiSensitiveRequest() { return this.apiSensitiveRequest; } /** * @return apiSensitiveResponse */ public String getApiSensitiveResponse() { return this.apiSensitiveResponse; } /** * @return apiStatus */ public String getApiStatus() { return this.apiStatus; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return apiType */ public String getApiType() { return this.apiType; } /** * @return authFlag */ public String getAuthFlag() { return this.authFlag; } /** * @return botCnt */ public Long getBotCnt() { return this.botCnt; } /** * @return crossBorderCnt */ public Long getCrossBorderCnt() { return this.crossBorderCnt; } /** * @return eventNum */ public Long getEventNum() { return this.eventNum; } /** * @return examples */ public java.util.List<String> getExamples() { return this.examples; } /** * @return farthestTs */ public Long getFarthestTs() { return this.farthestTs; } /** * @return follow */ public Integer getFollow() { return this.follow; } /** * @return lastestTs */ public Long getLastestTs() { return this.lastestTs; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return note */ public String getNote() { return this.note; } /** * @return resources */ public java.util.List<String> getResources() { return this.resources; } public static final class Builder { private Long abnormalNum; private Long allCnt; private String apiFormat; private String apiId; private String apiInfo; private String apiMethod; private String apiSensitive; private String apiSensitiveRequest; private String apiSensitiveResponse; private String apiStatus; private String apiTag; private String apiType; private String authFlag; private Long botCnt; private Long crossBorderCnt; private Long eventNum; private java.util.List<String> examples; private Long farthestTs; private Integer follow; private Long lastestTs; private String matchedHost; private String note; private java.util.List<String> resources; private Builder() { } private Builder(Data model) { this.abnormalNum = model.abnormalNum; this.allCnt = model.allCnt; this.apiFormat = model.apiFormat; this.apiId = model.apiId; this.apiInfo = model.apiInfo; this.apiMethod = model.apiMethod; this.apiSensitive = model.apiSensitive; this.apiSensitiveRequest = model.apiSensitiveRequest; this.apiSensitiveResponse = model.apiSensitiveResponse; this.apiStatus = model.apiStatus; this.apiTag = model.apiTag; this.apiType = model.apiType; this.authFlag = model.authFlag; this.botCnt = model.botCnt; this.crossBorderCnt = model.crossBorderCnt; this.eventNum = model.eventNum; this.examples = model.examples; this.farthestTs = model.farthestTs; this.follow = model.follow; this.lastestTs = model.lastestTs; this.matchedHost = model.matchedHost; this.note = model.note; this.resources = model.resources; } /** * <p>The number of API-related risks.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder abnormalNum(Long abnormalNum) { this.abnormalNum = abnormalNum; return this; } /** * <p>The total number of calls to this API in the previous 30 days.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder allCnt(Long allCnt) { this.allCnt = allCnt; return this; } /** * <p>The API.</p> * * <strong>example:</strong> * <p>/v1/etl/finddatabyvid</p> */ public Builder apiFormat(String apiFormat) { this.apiFormat = apiFormat; return this; } /** * <p>The ID of the API.</p> * * <strong>example:</strong> * <p>867ade***24ee6e205b8da82b8f84</p> */ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** * <p>The API-related information. The value of this parameter is a JSON string that contains multiple parameters. The value includes the following parameters:</p> * <ul> * <li><strong>param_num</strong>: the number of API parameters</li> * <li><strong>request_method</strong>: the request method</li> * <li><strong>protocol</strong>: the request protocol</li> * <li><strong>api_url</strong>: the request URL</li> * <li><strong>poc_payload</strong>: the request</li> * <li><strong>request</strong>: the sample request</li> * <li><strong>response</strong>: the sample response</li> * <li><strong>param</strong>: the request parameters</li> * </ul> */ public Builder apiInfo(String apiInfo) { this.apiInfo = apiInfo; return this; } /** * <p>The request method of the API. Valid values:</p> * <ul> * <li><strong>GET</strong></li> * <li><strong>POST</strong></li> * <li><strong>HEAD</strong></li> * <li><strong>PUT</strong></li> * <li><strong>DELETE</strong></li> * <li><strong>CONNECT</strong></li> * <li><strong>PATCH</strong></li> * <li><strong>OPTIONS</strong></li> * </ul> * * <strong>example:</strong> * <p>POST</p> */ public Builder apiMethod(String apiMethod) { this.apiMethod = apiMethod; return this; } /** * <p>The API-related sensitive information. The value of this parameter is a JSON string that contains multiple parameters. The value includes the following parameters:</p> * <ul> * <li><strong>request_sensitive_list</strong>: the sensitive data type in the request</li> * <li><strong>response_sensitive_list</strong>: the sensitive data type in the response</li> * <li><strong>sensitive_list</strong>: sensitive data types</li> * <li><strong>sensitive_level</strong>: sensitivity level</li> * </ul> * * <strong>example:</strong> * <p>{ * &quot;sensitive_list&quot;: [&quot;1003&quot;,&quot;1005&quot;], * &quot;sensitive_level&quot;: &quot;L2&quot;, * &quot;request_sensitive_list&quot;: [&quot;1003&quot;], * &quot;response_sensitive_list&quot;: [&quot;1005&quot;] * }</p> */ public Builder apiSensitive(String apiSensitive) { this.apiSensitive = apiSensitive; return this; } /** * <p>The sensitive data type in the request.</p> * * <strong>example:</strong> * <p>[&quot;1002&quot;,&quot;1005&quot;]</p> */ public Builder apiSensitiveRequest(String apiSensitiveRequest) { this.apiSensitiveRequest = apiSensitiveRequest; return this; } /** * <p>The sensitive data type in the response.</p> * * <strong>example:</strong> * <p>[&quot;1002&quot;,&quot;1005&quot;]</p> */ public Builder apiSensitiveResponse(String apiSensitiveResponse) { this.apiSensitiveResponse = apiSensitiveResponse; return this; } /** * <p>The API status. Valid values:</p> * <ul> * <li><strong>NewbornInterface</strong>: The API is newly added.</li> * <li><strong>OfflineInterface</strong>: The API is inactive.</li> * <li><strong>normal</strong>: The API is normal.</li> * </ul> * * <strong>example:</strong> * <p>NewbornInterface</p> */ public Builder apiStatus(String apiStatus) { this.apiStatus = apiStatus; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>SendMail</p> */ public Builder apiTag(String apiTag) { this.apiTag = apiTag; return this; } /** * <p>The service object. Valid values:</p> * <ul> * <li><strong>PublicAPI</strong>: public services</li> * <li><strong>ThirdpartAPI</strong>: cooperation with third-party partners</li> * <li><strong>InternalAPI</strong>: internal office</li> * </ul> * * <strong>example:</strong> * <p>PublicAPI</p> */ public Builder apiType(String apiType) { this.apiType = apiType; return this; } /** * <p>Indicates whether authentication is required. Valid values:</p> * <ul> * <li><strong>0</strong>: Authentication is required.</li> * <li><strong>1</strong>: Authentication is not required.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder authFlag(String authFlag) { this.authFlag = authFlag; return this; } /** * <p>The number of bot-initiated requests in the previous 30 days.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder botCnt(Long botCnt) { this.botCnt = botCnt; return this; } /** * <p>The number of the cross-border requests in the previous 30 days.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder crossBorderCnt(Long crossBorderCnt) { this.crossBorderCnt = crossBorderCnt; return this; } /** * <p>The number of API-related security events.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder eventNum(Long eventNum) { this.eventNum = eventNum; return this; } /** * <p>The sample APIs.</p> */ public Builder examples(java.util.List<String> examples) { this.examples = examples; return this; } /** * <p>The time when the API asset was first detected. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683388800</p> */ public Builder farthestTs(Long farthestTs) { this.farthestTs = farthestTs; return this; } /** * <p>Specifies whether to follow the API. Valid values:</p> * <ul> * <li><strong>1</strong>: follows the API.</li> * <li><strong>0</strong>: does not follow the API.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder follow(Integer follow) { this.follow = follow; return this; } /** * <p>The time at which the API was last accessed. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683388800</p> */ public Builder lastestTs(Long lastestTs) { this.lastestTs = lastestTs; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.matchedHost = matchedHost; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>Password changed</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The list of protection objects corresponding to this asset.</p> */ public Builder resources(java.util.List<String> resources) { this.resources = resources; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAssetTrendRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAssetTrendRequest} extends {@link RequestModel} * * <p>DescribeApisecAssetTrendRequest</p> */ public class DescribeApisecAssetTrendRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; private DescribeApisecAssetTrendRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeApisecAssetTrendRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeApisecAssetTrendRequest, Builder> { private String clusterId; private Long endTime; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Long startTime; private Builder() { super(); } private Builder(DescribeApisecAssetTrendRequest request) { super(request); this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; } /** * <p>The ID of the hybrid cloud cluster.</p> * * <strong>example:</strong> * <p>590</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683183599</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-ww**b06</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aek**7uq</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1668496310</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeApisecAssetTrendRequest build() { return new DescribeApisecAssetTrendRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAssetTrendResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAssetTrendResponse} extends {@link TeaModel} * * <p>DescribeApisecAssetTrendResponse</p> */ public class DescribeApisecAssetTrendResponse 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 DescribeApisecAssetTrendResponseBody body; private DescribeApisecAssetTrendResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecAssetTrendResponse 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 DescribeApisecAssetTrendResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecAssetTrendResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecAssetTrendResponseBody body); @Override DescribeApisecAssetTrendResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecAssetTrendResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecAssetTrendResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecAssetTrendResponse 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(DescribeApisecAssetTrendResponseBody body) { this.body = body; return this; } @Override public DescribeApisecAssetTrendResponse build() { return new DescribeApisecAssetTrendResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecAssetTrendResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecAssetTrendResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAssetTrendResponseBody</p> */ public class DescribeApisecAssetTrendResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecAssetTrendResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecAssetTrendResponseBody 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(DescribeApisecAssetTrendResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The data returned.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>Id of the request.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19****5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecAssetTrendResponseBody build() { return new DescribeApisecAssetTrendResponseBody(this); } } /** * * {@link DescribeApisecAssetTrendResponseBody} extends {@link TeaModel} * * <p>DescribeApisecAssetTrendResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssetActive") private Long assetActive; @com.aliyun.core.annotation.NameInMap("AssetCount") private Long assetCount; @com.aliyun.core.annotation.NameInMap("AssetOffline") private Long assetOffline; @com.aliyun.core.annotation.NameInMap("Timestamp") private Long timestamp; private Data(Builder builder) { this.assetActive = builder.assetActive; this.assetCount = builder.assetCount; this.assetOffline = builder.assetOffline; this.timestamp = builder.timestamp; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return assetActive */ public Long getAssetActive() { return this.assetActive; } /** * @return assetCount */ public Long getAssetCount() { return this.assetCount; } /** * @return assetOffline */ public Long getAssetOffline() { return this.assetOffline; } /** * @return timestamp */ public Long getTimestamp() { return this.timestamp; } public static final class Builder { private Long assetActive; private Long assetCount; private Long assetOffline; private Long timestamp; private Builder() { } private Builder(Data model) { this.assetActive = model.assetActive; this.assetCount = model.assetCount; this.assetOffline = model.assetOffline; this.timestamp = model.timestamp; } /** * <p>The number of active assets.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder assetActive(Long assetActive) { this.assetActive = assetActive; return this; } /** * <p>The total number of assets.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder assetCount(Long assetCount) { this.assetCount = assetCount; return this; } /** * <p>The number of deactivated assets.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder assetOffline(Long assetOffline) { this.assetOffline = assetOffline; return this; } /** * <p>The time for statistics. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683600042</p> */ public Builder timestamp(Long timestamp) { this.timestamp = timestamp; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventDomainStatisticRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventDomainStatisticRequest} extends {@link RequestModel} * * <p>DescribeApisecEventDomainStatisticRequest</p> */ public class DescribeApisecEventDomainStatisticRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; private DescribeApisecEventDomainStatisticRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.orderWay = builder.orderWay; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeApisecEventDomainStatisticRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeApisecEventDomainStatisticRequest, Builder> { private String clusterId; private Long endTime; private String instanceId; private String orderWay; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Long startTime; private Builder() { super(); } private Builder(DescribeApisecEventDomainStatisticRequest request) { super(request); this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.orderWay = request.orderWay; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p>For hybrid cloud scenarios only, you can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query the hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1686895256</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_elasticity-cn-0xldbqt****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The sorting order. Valid values:</p> * <ul> * <li><strong>asc</strong>: ascending order.</li> * <li><strong>desc</strong>: descending order.</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>5</strong>.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfmvyknl****fa</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. Specify a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1668496310</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeApisecEventDomainStatisticRequest build() { return new DescribeApisecEventDomainStatisticRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventDomainStatisticResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventDomainStatisticResponse} extends {@link TeaModel} * * <p>DescribeApisecEventDomainStatisticResponse</p> */ public class DescribeApisecEventDomainStatisticResponse 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 DescribeApisecEventDomainStatisticResponseBody body; private DescribeApisecEventDomainStatisticResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecEventDomainStatisticResponse 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 DescribeApisecEventDomainStatisticResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecEventDomainStatisticResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecEventDomainStatisticResponseBody body); @Override DescribeApisecEventDomainStatisticResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecEventDomainStatisticResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecEventDomainStatisticResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecEventDomainStatisticResponse 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(DescribeApisecEventDomainStatisticResponseBody body) { this.body = body; return this; } @Override public DescribeApisecEventDomainStatisticResponse build() { return new DescribeApisecEventDomainStatisticResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventDomainStatisticResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecEventDomainStatisticResponseBody</p> */ public class DescribeApisecEventDomainStatisticResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecEventDomainStatisticResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecEventDomainStatisticResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecEventDomainStatisticResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The response parameters.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>Id of the request.</p> * * <strong>example:</strong> * <p>66A98669-*******-80A6-3014697B11AE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecEventDomainStatisticResponseBody build() { return new DescribeApisecEventDomainStatisticResponseBody(this); } } /** * * {@link DescribeApisecEventDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecEventDomainStatisticResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiCount") private Long apiCount; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("High") private Long high; @com.aliyun.core.annotation.NameInMap("Low") private Long low; @com.aliyun.core.annotation.NameInMap("Medium") private Long medium; private Data(Builder builder) { this.apiCount = builder.apiCount; this.domain = builder.domain; this.high = builder.high; this.low = builder.low; this.medium = builder.medium; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apiCount */ public Long getApiCount() { return this.apiCount; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return high */ public Long getHigh() { return this.high; } /** * @return low */ public Long getLow() { return this.low; } /** * @return medium */ public Long getMedium() { return this.medium; } public static final class Builder { private Long apiCount; private String domain; private Long high; private Long low; private Long medium; private Builder() { } private Builder(Data model) { this.apiCount = model.apiCount; this.domain = model.domain; this.high = model.high; this.low = model.low; this.medium = model.medium; } /** * <p>The number of APIs.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder apiCount(Long apiCount) { this.apiCount = apiCount; return this; } /** * <p>The domain name.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder domain(String domain) { this.domain = domain; return this; } /** * <p>The number of high-risk security events.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder high(Long high) { this.high = high; return this; } /** * <p>The number of low-risk security events.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder low(Long low) { this.low = low; return this; } /** * <p>The number of medium-risk security events.</p> * * <strong>example:</strong> * <p>6</p> */ public Builder medium(Long medium) { this.medium = medium; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventsRequest} extends {@link RequestModel} * * <p>DescribeApisecEventsRequest</p> */ public class DescribeApisecEventsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AttackIp") private String attackIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTs") private Long endTs; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventId") private String eventId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventLevel") private String eventLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EventTag") private String eventTag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderKey") private String orderKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Origin") private String origin; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTs") private Long startTs; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserStatus") private String userStatus; private DescribeApisecEventsRequest(Builder builder) { super(builder); this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiTag = builder.apiTag; this.attackIp = builder.attackIp; this.clusterId = builder.clusterId; this.endTs = builder.endTs; this.eventId = builder.eventId; this.eventLevel = builder.eventLevel; this.eventTag = builder.eventTag; this.instanceId = builder.instanceId; this.matchedHost = builder.matchedHost; this.orderKey = builder.orderKey; this.orderWay = builder.orderWay; this.origin = builder.origin; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTs = builder.startTs; this.userStatus = builder.userStatus; } public static Builder builder() { return new Builder(); } public static DescribeApisecEventsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return attackIp */ public String getAttackIp() { return this.attackIp; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTs */ public Long getEndTs() { return this.endTs; } /** * @return eventId */ public String getEventId() { return this.eventId; } /** * @return eventLevel */ public String getEventLevel() { return this.eventLevel; } /** * @return eventTag */ public String getEventTag() { return this.eventTag; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return orderKey */ public String getOrderKey() { return this.orderKey; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return origin */ public String getOrigin() { return this.origin; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTs */ public Long getStartTs() { return this.startTs; } /** * @return userStatus */ public String getUserStatus() { return this.userStatus; } public static final class Builder extends Request.Builder<DescribeApisecEventsRequest, Builder> { private String apiFormat; private String apiId; private String apiTag; private String attackIp; private String clusterId; private Long endTs; private String eventId; private String eventLevel; private String eventTag; private String instanceId; private String matchedHost; private String orderKey; private String orderWay; private String origin; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Long startTs; private String userStatus; private Builder() { super(); } private Builder(DescribeApisecEventsRequest request) { super(request); this.apiFormat = request.apiFormat; this.apiId = request.apiId; this.apiTag = request.apiTag; this.attackIp = request.attackIp; this.clusterId = request.clusterId; this.endTs = request.endTs; this.eventId = request.eventId; this.eventLevel = request.eventLevel; this.eventTag = request.eventTag; this.instanceId = request.instanceId; this.matchedHost = request.matchedHost; this.orderKey = request.orderKey; this.orderWay = request.orderWay; this.origin = request.origin; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTs = request.startTs; this.userStatus = request.userStatus; } /** * <p>The API.</p> * * <strong>example:</strong> * <p>/apisec/v1/register.php</p> */ public Builder apiFormat(String apiFormat) { this.putQueryParameter("ApiFormat", apiFormat); this.apiFormat = apiFormat; return this; } /** * <p>The ID of the event-related API.</p> * * <strong>example:</strong> * <p>820b860***6205da93b935b28</p> */ public Builder apiId(String apiId) { this.putQueryParameter("ApiId", apiId); this.apiId = apiId; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>SendMail</p> */ public Builder apiTag(String apiTag) { this.putQueryParameter("ApiTag", apiTag); this.apiTag = apiTag; return this; } /** * <p>The Attack source IP.</p> * * <strong>example:</strong> * <p>42.224.<em>.</em></p> */ public Builder attackIp(String attackIp) { this.putQueryParameter("AttackIp", attackIp); this.attackIp = attackIp; return this; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p> This parameter is available only in hybrid cloud scenarios. You can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683703260</p> */ public Builder endTs(Long endTs) { this.putQueryParameter("EndTs", endTs); this.endTs = endTs; return this; } /** * <p>The ID of the API security event.</p> * * <strong>example:</strong> * <p>18ba94fea9***e66ba0557b7b91</p> */ public Builder eventId(String eventId) { this.putQueryParameter("EventId", eventId); this.eventId = eventId; return this; } /** * <p>The severity level of the event. 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 eventLevel(String eventLevel) { this.putQueryParameter("EventLevel", eventLevel); this.eventLevel = eventLevel; return this; } /** * <p>The type of the event.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported event types.</p> * </blockquote> * * <strong>example:</strong> * <p>ObtainSensitiveUnauthorized</p> */ public Builder eventTag(String eventTag) { this.putQueryParameter("EventTag", eventTag); this.eventTag = eventTag; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-5y***d31</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.putQueryParameter("MatchedHost", matchedHost); this.matchedHost = matchedHost; return this; } /** * <p>The name of the sorting field. Valid values:</p> * <ul> * <li><strong>allCnt</strong>: the number of attacks</li> * <li><strong>startTs</strong>: the start time of the event</li> * <li><strong>endTs</strong>: the end time of the event</li> * </ul> * * <strong>example:</strong> * <p>startTs</p> */ public Builder orderKey(String orderKey) { this.putQueryParameter("OrderKey", orderKey); this.orderKey = orderKey; return this; } /** * <p>The sorting method. Valid values:</p> * <ul> * <li><strong>desc</strong> (default): descending order</li> * <li><strong>asc</strong>: ascending order</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The source of the event type. Valid values:</p> * <ul> * <li><strong>custom</strong></li> * <li><strong>default</strong></li> * </ul> * * <strong>example:</strong> * <p>default</p> */ public Builder origin(String origin) { this.putQueryParameter("Origin", origin); this.origin = origin; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the WAF instance. Value:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683648000</p> */ public Builder startTs(Long startTs) { this.putQueryParameter("StartTs", startTs); this.startTs = startTs; return this; } /** * <p>The event status. Valid values:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>Ignore</p> */ public Builder userStatus(String userStatus) { this.putQueryParameter("UserStatus", userStatus); this.userStatus = userStatus; return this; } @Override public DescribeApisecEventsRequest build() { return new DescribeApisecEventsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventsResponse} extends {@link TeaModel} * * <p>DescribeApisecEventsResponse</p> */ public class DescribeApisecEventsResponse 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 DescribeApisecEventsResponseBody body; private DescribeApisecEventsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecEventsResponse 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 DescribeApisecEventsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecEventsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecEventsResponseBody body); @Override DescribeApisecEventsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecEventsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecEventsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecEventsResponse 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(DescribeApisecEventsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecEventsResponse build() { return new DescribeApisecEventsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecEventsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecEventsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecEventsResponseBody</p> */ public class DescribeApisecEventsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecEventsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecEventsResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecEventsResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The security events.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecEventsResponseBody build() { return new DescribeApisecEventsResponseBody(this); } } /** * * {@link DescribeApisecEventsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecEventsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("AllCnt") private Long allCnt; @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.NameInMap("ApiTag") private String apiTag; @com.aliyun.core.annotation.NameInMap("AttackClient") private String attackClient; @com.aliyun.core.annotation.NameInMap("AttackCntInfo") private String attackCntInfo; @com.aliyun.core.annotation.NameInMap("AttackIp") private String attackIp; @com.aliyun.core.annotation.NameInMap("AttackIpInfo") private String attackIpInfo; @com.aliyun.core.annotation.NameInMap("AttackIps") private java.util.List<String> attackIps; @com.aliyun.core.annotation.NameInMap("EndTs") private Long endTs; @com.aliyun.core.annotation.NameInMap("EventId") private String eventId; @com.aliyun.core.annotation.NameInMap("EventInfo") private String eventInfo; @com.aliyun.core.annotation.NameInMap("EventLevel") private String eventLevel; @com.aliyun.core.annotation.NameInMap("EventTag") private String eventTag; @com.aliyun.core.annotation.NameInMap("Follow") private Integer follow; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("Origin") private String origin; @com.aliyun.core.annotation.NameInMap("RemoteCountry") private String remoteCountry; @com.aliyun.core.annotation.NameInMap("RemoteRegion") private String remoteRegion; @com.aliyun.core.annotation.NameInMap("RequestData") private String requestData; @com.aliyun.core.annotation.NameInMap("ResponseData") private String responseData; @com.aliyun.core.annotation.NameInMap("StartTs") private Long startTs; @com.aliyun.core.annotation.NameInMap("UserStatus") private String userStatus; private Data(Builder builder) { this.allCnt = builder.allCnt; this.apiFormat = builder.apiFormat; this.apiId = builder.apiId; this.apiTag = builder.apiTag; this.attackClient = builder.attackClient; this.attackCntInfo = builder.attackCntInfo; this.attackIp = builder.attackIp; this.attackIpInfo = builder.attackIpInfo; this.attackIps = builder.attackIps; this.endTs = builder.endTs; this.eventId = builder.eventId; this.eventInfo = builder.eventInfo; this.eventLevel = builder.eventLevel; this.eventTag = builder.eventTag; this.follow = builder.follow; this.matchedHost = builder.matchedHost; this.note = builder.note; this.origin = builder.origin; this.remoteCountry = builder.remoteCountry; this.remoteRegion = builder.remoteRegion; this.requestData = builder.requestData; this.responseData = builder.responseData; this.startTs = builder.startTs; this.userStatus = builder.userStatus; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return allCnt */ public Long getAllCnt() { return this.allCnt; } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiTag */ public String getApiTag() { return this.apiTag; } /** * @return attackClient */ public String getAttackClient() { return this.attackClient; } /** * @return attackCntInfo */ public String getAttackCntInfo() { return this.attackCntInfo; } /** * @return attackIp */ public String getAttackIp() { return this.attackIp; } /** * @return attackIpInfo */ public String getAttackIpInfo() { return this.attackIpInfo; } /** * @return attackIps */ public java.util.List<String> getAttackIps() { return this.attackIps; } /** * @return endTs */ public Long getEndTs() { return this.endTs; } /** * @return eventId */ public String getEventId() { return this.eventId; } /** * @return eventInfo */ public String getEventInfo() { return this.eventInfo; } /** * @return eventLevel */ public String getEventLevel() { return this.eventLevel; } /** * @return eventTag */ public String getEventTag() { return this.eventTag; } /** * @return follow */ public Integer getFollow() { return this.follow; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return note */ public String getNote() { return this.note; } /** * @return origin */ public String getOrigin() { return this.origin; } /** * @return remoteCountry */ public String getRemoteCountry() { return this.remoteCountry; } /** * @return remoteRegion */ public String getRemoteRegion() { return this.remoteRegion; } /** * @return requestData */ public String getRequestData() { return this.requestData; } /** * @return responseData */ public String getResponseData() { return this.responseData; } /** * @return startTs */ public Long getStartTs() { return this.startTs; } /** * @return userStatus */ public String getUserStatus() { return this.userStatus; } public static final class Builder { private Long allCnt; private String apiFormat; private String apiId; private String apiTag; private String attackClient; private String attackCntInfo; private String attackIp; private String attackIpInfo; private java.util.List<String> attackIps; private Long endTs; private String eventId; private String eventInfo; private String eventLevel; private String eventTag; private Integer follow; private String matchedHost; private String note; private String origin; private String remoteCountry; private String remoteRegion; private String requestData; private String responseData; private Long startTs; private String userStatus; private Builder() { } private Builder(Data model) { this.allCnt = model.allCnt; this.apiFormat = model.apiFormat; this.apiId = model.apiId; this.apiTag = model.apiTag; this.attackClient = model.attackClient; this.attackCntInfo = model.attackCntInfo; this.attackIp = model.attackIp; this.attackIpInfo = model.attackIpInfo; this.attackIps = model.attackIps; this.endTs = model.endTs; this.eventId = model.eventId; this.eventInfo = model.eventInfo; this.eventLevel = model.eventLevel; this.eventTag = model.eventTag; this.follow = model.follow; this.matchedHost = model.matchedHost; this.note = model.note; this.origin = model.origin; this.remoteCountry = model.remoteCountry; this.remoteRegion = model.remoteRegion; this.requestData = model.requestData; this.responseData = model.responseData; this.startTs = model.startTs; this.userStatus = model.userStatus; } /** * <p>The number of attacks.</p> * <blockquote> * <p>Notice: The parameter has been deprecated, please use the Attackips parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder allCnt(Long allCnt) { this.allCnt = allCnt; return this; } /** * <p>The API.</p> * * <strong>example:</strong> * <p>/apisec/v1/register.php</p> */ public Builder apiFormat(String apiFormat) { this.apiFormat = apiFormat; return this; } /** * <p>The ID of the API that is associated with the security event.</p> * * <strong>example:</strong> * <p>2ecc1cf67b91853bc55545052ccf06a8</p> */ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** * <p>The business purpose of the API.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the business purposes of APIs.</p> * </blockquote> * * <strong>example:</strong> * <p>SendMail</p> */ public Builder apiTag(String apiTag) { this.apiTag = apiTag; return this; } /** * <p>The client that is attacked.</p> * * <strong>example:</strong> * <p>Chrome</p> */ public Builder attackClient(String attackClient) { this.attackClient = attackClient; return this; } /** * <p>The information about the number of attacks. The value of this parameter is a JSON string that contains multiple parameters. Key indicates the timestamp in seconds, and Value indicates the number of attacks.</p> * * <strong>example:</strong> * <p>{&quot;1717498320&quot;:500,&quot;1717498380&quot;:529,&quot;1717498440&quot;:20,&quot;1717498260&quot;:518,&quot;1717498200&quot;:481,&quot;1717498140&quot;:52}</p> */ public Builder attackCntInfo(String attackCntInfo) { this.attackCntInfo = attackCntInfo; return this; } /** * <p>The source IP address of the attack.</p> * * <strong>example:</strong> * <p>104.234.140.33</p> */ public Builder attackIp(String attackIp) { this.attackIp = attackIp; return this; } /** * <p>The information about the attack source IP address. The value of this parameter is a JSON string that contains multiple parameters. The value includes the following parameters:</p> * <ul> * <li><strong>ip</strong>: the IP address</li> * <li><strong>country_id</strong>: the country ID</li> * <li><strong>region_id</strong>: the region ID</li> * <li><strong>cnt</strong>: the number of attacks</li> * </ul> * * <strong>example:</strong> * <p>[{&quot;ip&quot;:&quot;72.<em>.</em>.119&quot;,&quot;country_id&quot;:&quot;US&quot;,&quot;region_id&quot;:&quot;&quot;,&quot;cnt&quot;:&quot;2100&quot;}]</p> */ public Builder attackIpInfo(String attackIpInfo) { this.attackIpInfo = attackIpInfo; return this; } /** * <p>The source IP addresses of the attacks.</p> */ public Builder attackIps(java.util.List<String> attackIps) { this.attackIps = attackIps; return this; } /** * <p>The end of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683703260</p> */ public Builder endTs(Long endTs) { this.endTs = endTs; return this; } /** * <p>The ID of the event.</p> * * <strong>example:</strong> * <p>c82cb276847e9c96f9597d9f4b0cdcff</p> */ public Builder eventId(String eventId) { this.eventId = eventId; return this; } /** * <p>The details of the event. The value of this parameter is a JSON string that contains multiple parameters. The value includes the following parameters:</p> * <ul> * <li><strong>ip_info</strong>: the information about the attack source IP address. This parameter corresponds to the <strong>AttackIpInfo</strong> response parameter.</li> * <li><strong>rule_id</strong>: the ID of the rule corresponding to the event.</li> * <li><strong>rule_tag</strong>: the information about the rule corresponding to the event.</li> * </ul> * * <strong>example:</strong> * <p>{}</p> */ public Builder eventInfo(String eventInfo) { this.eventInfo = eventInfo; return this; } /** * <p>The severity level of the event. 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 eventLevel(String eventLevel) { this.eventLevel = eventLevel; return this; } /** * <p>The type of the event.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported event types.</p> * </blockquote> * * <strong>example:</strong> * <p>ObtainSensitiveUnauthorized</p> */ public Builder eventTag(String eventTag) { this.eventTag = eventTag; return this; } /** * <p>Indicates whether the API is followed. Valid values:</p> * <ul> * <li><strong>1</strong>: The API is followed.</li> * <li><strong>0</strong>: The API is not followed.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder follow(Integer follow) { this.follow = follow; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.matchedHost = matchedHost; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>Notified</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The source of the event type. Valid values:</p> * <ul> * <li><strong>custom</strong></li> * <li><strong>default</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder origin(String origin) { this.origin = origin; return this; } /** * <p>The country to which the attack source IP address belongs.</p> * * <strong>example:</strong> * <p>US</p> */ public Builder remoteCountry(String remoteCountry) { this.remoteCountry = remoteCountry; return this; } /** * <p>The region to which the attack source IP address belongs.</p> * * <strong>example:</strong> * <p>110000</p> */ public Builder remoteRegion(String remoteRegion) { this.remoteRegion = remoteRegion; return this; } /** * <p>The sample API request. The value of this parameter is a JSON string that contains multiple parameters.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder requestData(String requestData) { this.requestData = requestData; return this; } /** * <p>The sample API response. The value of this parameter is a JSON string that contains multiple parameters.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder responseData(String responseData) { this.responseData = responseData; return this; } /** * <p>The beginning of the time range to query. This value is a UNIX timestamp in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1683648000</p> */ public Builder startTs(Long startTs) { this.startTs = startTs; return this; } /** * <p>The event status. Valid values:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>Ignore</p> */ public Builder userStatus(String userStatus) { this.userStatus = userStatus; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecLogDeliveriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecLogDeliveriesRequest} extends {@link RequestModel} * * <p>DescribeApisecLogDeliveriesRequest</p> */ public class DescribeApisecLogDeliveriesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecLogDeliveriesRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecLogDeliveriesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecLogDeliveriesRequest, Builder> { private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecLogDeliveriesRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3_public_cn-uqm2z****0a</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region where the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecLogDeliveriesRequest build() { return new DescribeApisecLogDeliveriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecLogDeliveriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecLogDeliveriesResponse} extends {@link TeaModel} * * <p>DescribeApisecLogDeliveriesResponse</p> */ public class DescribeApisecLogDeliveriesResponse 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 DescribeApisecLogDeliveriesResponseBody body; private DescribeApisecLogDeliveriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecLogDeliveriesResponse 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 DescribeApisecLogDeliveriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecLogDeliveriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecLogDeliveriesResponseBody body); @Override DescribeApisecLogDeliveriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecLogDeliveriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecLogDeliveriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecLogDeliveriesResponse 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(DescribeApisecLogDeliveriesResponseBody body) { this.body = body; return this; } @Override public DescribeApisecLogDeliveriesResponse build() { return new DescribeApisecLogDeliveriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecLogDeliveriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecLogDeliveriesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecLogDeliveriesResponseBody</p> */ public class DescribeApisecLogDeliveriesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DeliveryConfigs") private java.util.List<DeliveryConfigs> deliveryConfigs; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecLogDeliveriesResponseBody(Builder builder) { this.deliveryConfigs = builder.deliveryConfigs; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecLogDeliveriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return deliveryConfigs */ public java.util.List<DeliveryConfigs> getDeliveryConfigs() { return this.deliveryConfigs; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<DeliveryConfigs> deliveryConfigs; private String requestId; private Builder() { } private Builder(DescribeApisecLogDeliveriesResponseBody model) { this.deliveryConfigs = model.deliveryConfigs; this.requestId = model.requestId; } /** * <p>The configurations of API security log subscription.</p> */ public Builder deliveryConfigs(java.util.List<DeliveryConfigs> deliveryConfigs) { this.deliveryConfigs = deliveryConfigs; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>2EFCFE18-78F8-5079-B312-07***48B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecLogDeliveriesResponseBody build() { return new DescribeApisecLogDeliveriesResponseBody(this); } } /** * * {@link DescribeApisecLogDeliveriesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecLogDeliveriesResponseBody</p> */ public static class DeliveryConfigs extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssertKey") private String assertKey; @com.aliyun.core.annotation.NameInMap("LogRegionId") private String logRegionId; @com.aliyun.core.annotation.NameInMap("LogStoreName") private String logStoreName; @com.aliyun.core.annotation.NameInMap("ProjectName") private String projectName; @com.aliyun.core.annotation.NameInMap("Status") private Boolean status; private DeliveryConfigs(Builder builder) { this.assertKey = builder.assertKey; this.logRegionId = builder.logRegionId; this.logStoreName = builder.logStoreName; this.projectName = builder.projectName; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DeliveryConfigs create() { return builder().build(); } /** * @return assertKey */ public String getAssertKey() { return this.assertKey; } /** * @return logRegionId */ public String getLogRegionId() { return this.logRegionId; } /** * @return logStoreName */ public String getLogStoreName() { return this.logStoreName; } /** * @return projectName */ public String getProjectName() { return this.projectName; } /** * @return status */ public Boolean getStatus() { return this.status; } public static final class Builder { private String assertKey; private String logRegionId; private String logStoreName; private String projectName; private Boolean status; private Builder() { } private Builder(DeliveryConfigs model) { this.assertKey = model.assertKey; this.logRegionId = model.logRegionId; this.logStoreName = model.logStoreName; this.projectName = model.projectName; this.status = model.status; } /** * <p>The type of the log subscription. Valid values:</p> * <ul> * <li><strong>risk</strong>: risk information.</li> * <li><strong>event</strong>: attack event information.</li> * <li><strong>asset</strong>: asset information.</li> * </ul> * * <strong>example:</strong> * <p>risk</p> */ public Builder assertKey(String assertKey) { this.assertKey = assertKey; return this; } /** * <p>The ID of the region where logs are stored.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder logRegionId(String logRegionId) { this.logRegionId = logRegionId; return this; } /** * <p>The name of the Logstore in Simple Log Service.</p> * * <strong>example:</strong> * <p>apisec-logstore***</p> */ public Builder logStoreName(String logStoreName) { this.logStoreName = logStoreName; return this; } /** * <p>The name of the project in Simple Log Service.</p> * * <strong>example:</strong> * <p>apisec-project-14316572********</p> */ public Builder projectName(String projectName) { this.projectName = projectName; return this; } /** * <p>The status of API security log subscription. Valid values:</p> * <ul> * <li><strong>true</strong>: enabled.</li> * <li><strong>false</strong>: disabled.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder status(Boolean status) { this.status = status; return this; } public DeliveryConfigs build() { return new DeliveryConfigs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecMatchedHostsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecMatchedHostsRequest} extends {@link RequestModel} * * <p>DescribeApisecMatchedHostsRequest</p> */ public class DescribeApisecMatchedHostsRequest 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("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private String pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; private DescribeApisecMatchedHostsRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.instanceId = builder.instanceId; this.matchedHost = builder.matchedHost; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeApisecMatchedHostsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return pageNumber */ public String getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeApisecMatchedHostsRequest, Builder> { private String clusterId; private String instanceId; private String matchedHost; private String pageNumber; private String pageSize; private String regionId; private String resourceManagerResourceGroupId; private String type; private Builder() { super(); } private Builder(DescribeApisecMatchedHostsRequest request) { super(request); this.clusterId = request.clusterId; this.instanceId = request.instanceId; this.matchedHost = request.matchedHost; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.type = request.type; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p>For hybrid cloud scenarios only, you can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query the hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>433</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-x0r37plpl0g</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The domain name or IP address.</p> * * <strong>example:</strong> * <p>bc.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.putQueryParameter("MatchedHost", matchedHost); this.matchedHost = matchedHost; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(String pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aekz5qqo7jthcsa</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The detection type. Valid values:</p> * <ul> * <li><strong>api</strong>: API-related domain names</li> * <li><strong>abnormal</strong>: risk-related domain names</li> * <li><strong>event</strong>: security event-related domain names</li> * </ul> * * <strong>example:</strong> * <p>event</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeApisecMatchedHostsRequest build() { return new DescribeApisecMatchedHostsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecMatchedHostsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecMatchedHostsResponse} extends {@link TeaModel} * * <p>DescribeApisecMatchedHostsResponse</p> */ public class DescribeApisecMatchedHostsResponse 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 DescribeApisecMatchedHostsResponseBody body; private DescribeApisecMatchedHostsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecMatchedHostsResponse 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 DescribeApisecMatchedHostsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecMatchedHostsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecMatchedHostsResponseBody body); @Override DescribeApisecMatchedHostsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecMatchedHostsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecMatchedHostsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecMatchedHostsResponse 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(DescribeApisecMatchedHostsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecMatchedHostsResponse build() { return new DescribeApisecMatchedHostsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecMatchedHostsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecMatchedHostsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecMatchedHostsResponseBody</p> */ public class DescribeApisecMatchedHostsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private String totalCount; private DescribeApisecMatchedHostsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecMatchedHostsResponseBody 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; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private String totalCount; private Builder() { } private Builder(DescribeApisecMatchedHostsResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The domain names.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8D4CA088-F72B-5658-BD5B-ECE8B8F0C7BB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecMatchedHostsResponseBody build() { return new DescribeApisecMatchedHostsResponseBody(this); } } /** * * {@link DescribeApisecMatchedHostsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecMatchedHostsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; private Data(Builder builder) { this.count = builder.count; this.matchedHost = builder.matchedHost; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return count */ public Long getCount() { return this.count; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } public static final class Builder { private Long count; private String matchedHost; private Builder() { } private Builder(Data model) { this.count = model.count; this.matchedHost = model.matchedHost; } /** * <p>The number of APIs related to the domain name.</p> * * <strong>example:</strong> * <p>31</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The domain name or IP address.</p> * * <strong>example:</strong> * <p>bc.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.matchedHost = matchedHost; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionGroupsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionGroupsRequest} extends {@link RequestModel} * * <p>DescribeApisecProtectionGroupsRequest</p> */ public class DescribeApisecProtectionGroupsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApisecStatus") private Integer apisecStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 60, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroup") private String resourceGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecProtectionGroupsRequest(Builder builder) { super(builder); this.apisecStatus = builder.apisecStatus; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroup = builder.resourceGroup; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecProtectionGroupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apisecStatus */ public Integer getApisecStatus() { return this.apisecStatus; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroup */ public String getResourceGroup() { return this.resourceGroup; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecProtectionGroupsRequest, Builder> { private Integer apisecStatus; private String instanceId; private Long pageNumber; private Long pageSize; private String regionId; private String resourceGroup; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecProtectionGroupsRequest request) { super(request); this.apisecStatus = request.apisecStatus; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroup = request.resourceGroup; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The switch of the API security module.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder apisecStatus(Integer apisecStatus) { this.putQueryParameter("ApisecStatus", apisecStatus); this.apisecStatus = apisecStatus; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_elasticity-cn-0xldbqt****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 name of the protected object group to which the protected object belongs.</p> * * <strong>example:</strong> * <p>group1</p> */ public Builder resourceGroup(String resourceGroup) { this.putQueryParameter("ResourceGroup", resourceGroup); this.resourceGroup = resourceGroup; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecProtectionGroupsRequest build() { return new DescribeApisecProtectionGroupsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionGroupsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionGroupsResponse} extends {@link TeaModel} * * <p>DescribeApisecProtectionGroupsResponse</p> */ public class DescribeApisecProtectionGroupsResponse 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 DescribeApisecProtectionGroupsResponseBody body; private DescribeApisecProtectionGroupsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecProtectionGroupsResponse 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 DescribeApisecProtectionGroupsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecProtectionGroupsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecProtectionGroupsResponseBody body); @Override DescribeApisecProtectionGroupsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecProtectionGroupsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecProtectionGroupsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecProtectionGroupsResponse 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(DescribeApisecProtectionGroupsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecProtectionGroupsResponse build() { return new DescribeApisecProtectionGroupsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionGroupsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionGroupsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecProtectionGroupsResponseBody</p> */ public class DescribeApisecProtectionGroupsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecProtectionGroupsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecProtectionGroupsResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecProtectionGroupsResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The protected object groups.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19****5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of protected object groups.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecProtectionGroupsResponseBody build() { return new DescribeApisecProtectionGroupsResponseBody(this); } } /** * * {@link DescribeApisecProtectionGroupsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecProtectionGroupsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApisecStatus") private Long apisecStatus; @com.aliyun.core.annotation.NameInMap("ReportStatus") private Long reportStatus; @com.aliyun.core.annotation.NameInMap("ResourceGroup") private String resourceGroup; @com.aliyun.core.annotation.NameInMap("TraceStatus") private Long traceStatus; private Data(Builder builder) { this.apisecStatus = builder.apisecStatus; this.reportStatus = builder.reportStatus; this.resourceGroup = builder.resourceGroup; this.traceStatus = builder.traceStatus; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apisecStatus */ public Long getApisecStatus() { return this.apisecStatus; } /** * @return reportStatus */ public Long getReportStatus() { return this.reportStatus; } /** * @return resourceGroup */ public String getResourceGroup() { return this.resourceGroup; } /** * @return traceStatus */ public Long getTraceStatus() { return this.traceStatus; } public static final class Builder { private Long apisecStatus; private Long reportStatus; private String resourceGroup; private Long traceStatus; private Builder() { } private Builder(Data model) { this.apisecStatus = model.apisecStatus; this.reportStatus = model.reportStatus; this.resourceGroup = model.resourceGroup; this.traceStatus = model.traceStatus; } /** * <p>The switch of the API security module.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder apisecStatus(Long apisecStatus) { this.apisecStatus = apisecStatus; return this; } /** * <p>The switch of the compliance check feature.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder reportStatus(Long reportStatus) { this.reportStatus = reportStatus; return this; } /** * <p>The name of the protected object group.</p> * * <strong>example:</strong> * <p>group1</p> */ public Builder resourceGroup(String resourceGroup) { this.resourceGroup = resourceGroup; return this; } /** * <p>The switch of the tracing and auditing feature.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder traceStatus(Long traceStatus) { this.traceStatus = traceStatus; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionResourcesRequest} extends {@link RequestModel} * * <p>DescribeApisecProtectionResourcesRequest</p> */ public class DescribeApisecProtectionResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApisecStatus") private Integer apisecStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @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("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Resource") private String resource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecProtectionResourcesRequest(Builder builder) { super(builder); this.apisecStatus = builder.apisecStatus; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resource = builder.resource; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecProtectionResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apisecStatus */ public Integer getApisecStatus() { return this.apisecStatus; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resource */ public String getResource() { return this.resource; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecProtectionResourcesRequest, Builder> { private Integer apisecStatus; private String instanceId; private Long pageNumber; private Long pageSize; private String regionId; private String resource; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecProtectionResourcesRequest request) { super(request); this.apisecStatus = request.apisecStatus; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resource = request.resource; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The switch of the API security module.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder apisecStatus(Integer apisecStatus) { this.putQueryParameter("ApisecStatus", apisecStatus); this.apisecStatus = apisecStatus; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf-cn-0xldbqt****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 name of the protected object.</p> * * <strong>example:</strong> * <p>cwaf-***-waf</p> */ public Builder resource(String resource) { this.putQueryParameter("Resource", resource); this.resource = resource; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecProtectionResourcesRequest build() { return new DescribeApisecProtectionResourcesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionResourcesResponse} extends {@link TeaModel} * * <p>DescribeApisecProtectionResourcesResponse</p> */ public class DescribeApisecProtectionResourcesResponse 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 DescribeApisecProtectionResourcesResponseBody body; private DescribeApisecProtectionResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecProtectionResourcesResponse 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 DescribeApisecProtectionResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecProtectionResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecProtectionResourcesResponseBody body); @Override DescribeApisecProtectionResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecProtectionResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecProtectionResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecProtectionResourcesResponse 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(DescribeApisecProtectionResourcesResponseBody body) { this.body = body; return this; } @Override public DescribeApisecProtectionResourcesResponse build() { return new DescribeApisecProtectionResourcesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecProtectionResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecProtectionResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecProtectionResourcesResponseBody</p> */ public class DescribeApisecProtectionResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecProtectionResourcesResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecProtectionResourcesResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecProtectionResourcesResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The protected objects.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2EFCFE18-78F8-5079-B312-07***48B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecProtectionResourcesResponseBody build() { return new DescribeApisecProtectionResourcesResponseBody(this); } } /** * * {@link DescribeApisecProtectionResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecProtectionResourcesResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApisecStatus") private Long apisecStatus; @com.aliyun.core.annotation.NameInMap("ReportStatus") private Long reportStatus; @com.aliyun.core.annotation.NameInMap("Resource") private String resource; @com.aliyun.core.annotation.NameInMap("TraceStatus") private Long traceStatus; private Data(Builder builder) { this.apisecStatus = builder.apisecStatus; this.reportStatus = builder.reportStatus; this.resource = builder.resource; this.traceStatus = builder.traceStatus; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apisecStatus */ public Long getApisecStatus() { return this.apisecStatus; } /** * @return reportStatus */ public Long getReportStatus() { return this.reportStatus; } /** * @return resource */ public String getResource() { return this.resource; } /** * @return traceStatus */ public Long getTraceStatus() { return this.traceStatus; } public static final class Builder { private Long apisecStatus; private Long reportStatus; private String resource; private Long traceStatus; private Builder() { } private Builder(Data model) { this.apisecStatus = model.apisecStatus; this.reportStatus = model.reportStatus; this.resource = model.resource; this.traceStatus = model.traceStatus; } /** * <p>The switch of the API security module.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder apisecStatus(Long apisecStatus) { this.apisecStatus = apisecStatus; return this; } /** * <p>The switch of the compliance check feature.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder reportStatus(Long reportStatus) { this.reportStatus = reportStatus; return this; } /** * <p>The protected object.</p> * * <strong>example:</strong> * <p>cwaf-***-waf</p> */ public Builder resource(String resource) { this.resource = resource; return this; } /** * <p>The switch of the tracing and auditing feature.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder traceStatus(Long traceStatus) { this.traceStatus = traceStatus; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecRulesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecRulesRequest} extends {@link RequestModel} * * <p>DescribeApisecRulesRequest</p> */ public class DescribeApisecRulesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Level") private String level; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Origin") private String origin; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private Long status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private DescribeApisecRulesRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.lang = builder.lang; this.level = builder.level; this.name = builder.name; this.origin = builder.origin; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.status = builder.status; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeApisecRulesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return level */ public String getLevel() { return this.level; } /** * @return name */ public String getName() { return this.name; } /** * @return origin */ public String getOrigin() { return this.origin; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return status */ public Long getStatus() { return this.status; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeApisecRulesRequest, Builder> { private String instanceId; private String lang; private String level; private String name; private String origin; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Long status; private String type; private Builder() { super(); } private Builder(DescribeApisecRulesRequest request) { super(request); this.instanceId = request.instanceId; this.lang = request.lang; this.level = request.level; this.name = request.name; this.origin = request.origin; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.status = request.status; this.type = request.type; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_elasticity-cn-0x***</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * Lang. */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * <p>The level of the policy.</p> * <p>If Type is set to risk or event, you can set this parameter to one of the following values:</p> * <ul> * <li><strong>high</strong></li> * <li><strong>medium</strong></li> * <li><strong>low</strong></li> * </ul> * <p>If Type is set to sensitive_word, you can set this parameter to one of the following values:</p> * <ul> * <li><strong>S1</strong></li> * <li><strong>S2</strong></li> * <li><strong>S3</strong></li> * <li><strong>S4</strong></li> * </ul> * * <strong>example:</strong> * <p>high</p> */ public Builder level(String level) { this.putQueryParameter("Level", level); this.level = level; return this; } /** * <p>The name of the policy.</p> * * <strong>example:</strong> * <p>Information Leak</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The source of the policy. Valid values:</p> * <ul> * <li><strong>custom</strong></li> * <li><strong>default</strong></li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder origin(String origin) { this.putQueryParameter("Origin", origin); this.origin = origin; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The status of the policy. Valid values:</p> * <ul> * <li><strong>1</strong>: enabled</li> * <li><strong>0</strong>: disabled</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Long status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The type of the policy. Valid values:</p> * <ul> * <li><strong>risk</strong>: risk detection</li> * <li><strong>event</strong>: security event</li> * <li><strong>sensitive_word</strong>: sensitive data</li> * <li><strong>auth_flag</strong>: authentication credential</li> * <li><strong>api_tag</strong>: business purpose</li> * <li><strong>desensitization</strong>: masking</li> * <li><strong>whitelist</strong>: whitelist</li> * <li><strong>recognition</strong>: API recognition</li> * <li><strong>offline_api</strong>: lifecycle management</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>risk</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeApisecRulesRequest build() { return new DescribeApisecRulesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecRulesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecRulesResponse} extends {@link TeaModel} * * <p>DescribeApisecRulesResponse</p> */ public class DescribeApisecRulesResponse 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 DescribeApisecRulesResponseBody body; private DescribeApisecRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecRulesResponse 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 DescribeApisecRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecRulesResponseBody body); @Override DescribeApisecRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecRulesResponse 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(DescribeApisecRulesResponseBody body) { this.body = body; return this; } @Override public DescribeApisecRulesResponse build() { return new DescribeApisecRulesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecRulesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecRulesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecRulesResponseBody</p> */ public class DescribeApisecRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecRulesResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecRulesResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecRulesResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The policies.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19160D5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>6</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecRulesResponseBody build() { return new DescribeApisecRulesResponseBody(this); } } /** * * {@link DescribeApisecRulesResponseBody} extends {@link TeaModel} * * <p>DescribeApisecRulesResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Rule") private String rule; @com.aliyun.core.annotation.NameInMap("Status") private Long status; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("UpdateTime") private Long updateTime; private Data(Builder builder) { this.id = builder.id; this.rule = builder.rule; this.status = builder.status; this.type = builder.type; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return id */ public Long getId() { return this.id; } /** * @return rule */ public String getRule() { return this.rule; } /** * @return status */ public Long getStatus() { return this.status; } /** * @return type */ public String getType() { return this.type; } /** * @return updateTime */ public Long getUpdateTime() { return this.updateTime; } public static final class Builder { private Long id; private String rule; private Long status; private String type; private Long updateTime; private Builder() { } private Builder(Data model) { this.id = model.id; this.rule = model.rule; this.status = model.status; this.type = model.type; this.updateTime = model.updateTime; } /** * <p>The ID of the policy.</p> * * <strong>example:</strong> * <p>34933</p> */ public Builder id(Long id) { this.id = id; return this; } /** * <p>The details of the policy. The value is a string that consists of multiple parameters in the JSON format.</p> * * <strong>example:</strong> * <p>{ * &quot;ext&quot;: &quot;Date&quot;, * &quot;regex&quot;: &quot;-&quot;, * &quot;code&quot;: &quot;2009&quot;, * &quot;level&quot;: &quot;S1&quot;, * &quot;origin&quot;: &quot;default&quot;, * &quot;name&quot;: &quot;2009&quot; * }</p> */ public Builder rule(String rule) { this.rule = rule; return this; } /** * <p>The status of the policy. Valid values:</p> * <ul> * <li><strong>1</strong>: enabled</li> * <li><strong>0</strong>: disabled</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Long status) { this.status = status; return this; } /** * <p>The type of the policy. Valid values:</p> * <ul> * <li><strong>risk</strong>: risk detection</li> * <li><strong>event</strong>: security event</li> * <li><strong>sensitive_word</strong>: sensitive data</li> * <li><strong>auth_flag</strong>: authentication credential</li> * <li><strong>api_tag</strong>: business purpose</li> * <li><strong>desensitization</strong>: data masking</li> * <li><strong>whitelist</strong>: whitelist</li> * <li><strong>recognition</strong>: API recognition</li> * <li><strong>offline_api</strong>: lifecycle management</li> * </ul> * * <strong>example:</strong> * <p>risk</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The time when the policy was updated. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1721095301</p> */ public Builder updateTime(Long updateTime) { this.updateTime = updateTime; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSensitiveDomainStatisticRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSensitiveDomainStatisticRequest} extends {@link RequestModel} * * <p>DescribeApisecSensitiveDomainStatisticRequest</p> */ public class DescribeApisecSensitiveDomainStatisticRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderWay") private String orderWay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @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") private String type; private DescribeApisecSensitiveDomainStatisticRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.orderWay = builder.orderWay; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeApisecSensitiveDomainStatisticRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return orderWay */ public String getOrderWay() { return this.orderWay; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeApisecSensitiveDomainStatisticRequest, Builder> { private String clusterId; private Long endTime; private String instanceId; private String orderWay; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Long startTime; private String type; private Builder() { super(); } private Builder(DescribeApisecSensitiveDomainStatisticRequest request) { super(request); this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.orderWay = request.orderWay; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; this.type = request.type; } /** * <p>The ID of the hybrid cloud cluster.</p> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The end of the time range to query. Specify a UNIX timestamp in UTC. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1686895256</p> */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/140857.html">DescribeInstanceInfo</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_cdnsdf3****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The sorting order. Valid values:</p> * <ul> * <li><strong>asc</strong>: ascending order.</li> * <li><strong>desc</strong>: descending order.</li> * </ul> * * <strong>example:</strong> * <p>desc</p> */ public Builder orderWay(String orderWay) { this.putQueryParameter("OrderWay", orderWay); this.orderWay = orderWay; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>5</strong>.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The beginning of the time range to query. Specify a UNIX timestamp in UTC. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1668496310</p> */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The sensitive data type. Valid values:</p> * <ul> * <li><strong>request</strong>: sensitive data in requests.</li> * <li><strong>response</strong>: sensitive data in responses.</li> * </ul> * * <strong>example:</strong> * <p>request</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeApisecSensitiveDomainStatisticRequest build() { return new DescribeApisecSensitiveDomainStatisticRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSensitiveDomainStatisticResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSensitiveDomainStatisticResponse} extends {@link TeaModel} * * <p>DescribeApisecSensitiveDomainStatisticResponse</p> */ public class DescribeApisecSensitiveDomainStatisticResponse 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 DescribeApisecSensitiveDomainStatisticResponseBody body; private DescribeApisecSensitiveDomainStatisticResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecSensitiveDomainStatisticResponse 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 DescribeApisecSensitiveDomainStatisticResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecSensitiveDomainStatisticResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecSensitiveDomainStatisticResponseBody body); @Override DescribeApisecSensitiveDomainStatisticResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecSensitiveDomainStatisticResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecSensitiveDomainStatisticResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecSensitiveDomainStatisticResponse 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(DescribeApisecSensitiveDomainStatisticResponseBody body) { this.body = body; return this; } @Override public DescribeApisecSensitiveDomainStatisticResponse build() { return new DescribeApisecSensitiveDomainStatisticResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSensitiveDomainStatisticResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSensitiveDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSensitiveDomainStatisticResponseBody</p> */ public class DescribeApisecSensitiveDomainStatisticResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecSensitiveDomainStatisticResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecSensitiveDomainStatisticResponseBody 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; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Data> data; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeApisecSensitiveDomainStatisticResponseBody model) { this.data = model.data; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <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>56B40D30-4960-4F19-B7D5-2B1F***6CB70</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>27</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecSensitiveDomainStatisticResponseBody build() { return new DescribeApisecSensitiveDomainStatisticResponseBody(this); } } /** * * {@link DescribeApisecSensitiveDomainStatisticResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSensitiveDomainStatisticResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiCount") private Long apiCount; @com.aliyun.core.annotation.NameInMap("DomainCount") private Long domainCount; @com.aliyun.core.annotation.NameInMap("SensitiveCode") private String sensitiveCode; @com.aliyun.core.annotation.NameInMap("SensitiveLevel") private String sensitiveLevel; @com.aliyun.core.annotation.NameInMap("SensitiveName") private String sensitiveName; private Data(Builder builder) { this.apiCount = builder.apiCount; this.domainCount = builder.domainCount; this.sensitiveCode = builder.sensitiveCode; this.sensitiveLevel = builder.sensitiveLevel; this.sensitiveName = builder.sensitiveName; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apiCount */ public Long getApiCount() { return this.apiCount; } /** * @return domainCount */ public Long getDomainCount() { return this.domainCount; } /** * @return sensitiveCode */ public String getSensitiveCode() { return this.sensitiveCode; } /** * @return sensitiveLevel */ public String getSensitiveLevel() { return this.sensitiveLevel; } /** * @return sensitiveName */ public String getSensitiveName() { return this.sensitiveName; } public static final class Builder { private Long apiCount; private Long domainCount; private String sensitiveCode; private String sensitiveLevel; private String sensitiveName; private Builder() { } private Builder(Data model) { this.apiCount = model.apiCount; this.domainCount = model.domainCount; this.sensitiveCode = model.sensitiveCode; this.sensitiveLevel = model.sensitiveLevel; this.sensitiveName = model.sensitiveName; } /** * <p>The number of APIs that are involved.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder apiCount(Long apiCount) { this.apiCount = apiCount; return this; } /** * <p>The number of sites that are involved.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder domainCount(Long domainCount) { this.domainCount = domainCount; return this; } /** * <p>The code of the sensitive data.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2859155.html">DescribeApisecRules</a> operation to query the supported sensitive data types.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder sensitiveCode(String sensitiveCode) { this.sensitiveCode = sensitiveCode; return this; } /** * <p>The sensitivity level of the sensitive data.Valid values:</p> * <ul> * <li><strong>S1</strong>: low sensitivity.</li> * <li><strong>S2</strong>: moderate sensitivity.</li> * <li><strong>S3</strong>: high sensitivity.</li> * </ul> * * <strong>example:</strong> * <p>L3</p> */ public Builder sensitiveLevel(String sensitiveLevel) { this.sensitiveLevel = sensitiveLevel; return this; } /** * <p>The name of the sensitive data.</p> * * <strong>example:</strong> * <p>1002</p> */ public Builder sensitiveName(String sensitiveName) { this.sensitiveName = sensitiveName; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsLogStoresRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsLogStoresRequest} extends {@link RequestModel} * * <p>DescribeApisecSlsLogStoresRequest</p> */ public class DescribeApisecSlsLogStoresRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogRegionId") @com.aliyun.core.annotation.Validation(required = true) private String logRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProjectName") @com.aliyun.core.annotation.Validation(required = true) private String projectName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecSlsLogStoresRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.logRegionId = builder.logRegionId; this.projectName = builder.projectName; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSlsLogStoresRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return logRegionId */ public String getLogRegionId() { return this.logRegionId; } /** * @return projectName */ public String getProjectName() { return this.projectName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecSlsLogStoresRequest, Builder> { private String instanceId; private String logRegionId; private String projectName; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecSlsLogStoresRequest request) { super(request); this.instanceId = request.instanceId; this.logRegionId = request.logRegionId; this.projectName = request.projectName; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3_public_cn-uqm2z****0a</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the region where logs are stored.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2712598.html">DescribeUserSlsLogRegions</a> operation to query available log storage regions.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder logRegionId(String logRegionId) { this.putQueryParameter("LogRegionId", logRegionId); this.logRegionId = logRegionId; return this; } /** * <p>The name of the project in Simple Log Service.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>apisec-project-14316572********</p> */ public Builder projectName(String projectName) { this.putQueryParameter("ProjectName", projectName); this.projectName = projectName; return this; } /** * <p>The region where the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecSlsLogStoresRequest build() { return new DescribeApisecSlsLogStoresRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsLogStoresResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsLogStoresResponse} extends {@link TeaModel} * * <p>DescribeApisecSlsLogStoresResponse</p> */ public class DescribeApisecSlsLogStoresResponse 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 DescribeApisecSlsLogStoresResponseBody body; private DescribeApisecSlsLogStoresResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecSlsLogStoresResponse 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 DescribeApisecSlsLogStoresResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecSlsLogStoresResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecSlsLogStoresResponseBody body); @Override DescribeApisecSlsLogStoresResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecSlsLogStoresResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecSlsLogStoresResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecSlsLogStoresResponse 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(DescribeApisecSlsLogStoresResponseBody body) { this.body = body; return this; } @Override public DescribeApisecSlsLogStoresResponse build() { return new DescribeApisecSlsLogStoresResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsLogStoresResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsLogStoresResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSlsLogStoresResponseBody</p> */ public class DescribeApisecSlsLogStoresResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogStores") private java.util.List<String> logStores; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecSlsLogStoresResponseBody(Builder builder) { this.logStores = builder.logStores; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSlsLogStoresResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return logStores */ public java.util.List<String> getLogStores() { return this.logStores; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> logStores; private String requestId; private Builder() { } private Builder(DescribeApisecSlsLogStoresResponseBody model) { this.logStores = model.logStores; this.requestId = model.requestId; } /** * <p>The names of the Logstores in Simple Log Service.</p> */ public Builder logStores(java.util.List<String> logStores) { this.logStores = logStores; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19****5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecSlsLogStoresResponseBody build() { return new DescribeApisecSlsLogStoresResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsProjectsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsProjectsRequest} extends {@link RequestModel} * * <p>DescribeApisecSlsProjectsRequest</p> */ public class DescribeApisecSlsProjectsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogRegionId") @com.aliyun.core.annotation.Validation(required = true) private String logRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecSlsProjectsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.logRegionId = builder.logRegionId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSlsProjectsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return logRegionId */ public String getLogRegionId() { return this.logRegionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecSlsProjectsRequest, Builder> { private String instanceId; private String logRegionId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecSlsProjectsRequest request) { super(request); this.instanceId = request.instanceId; this.logRegionId = request.logRegionId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3_public_cn-uqm2z****0a</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the region where logs are stored.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2712598.html">DescribeUserSlsLogRegions</a> operation to query available log storage regions.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder logRegionId(String logRegionId) { this.putQueryParameter("LogRegionId", logRegionId); this.logRegionId = logRegionId; return this; } /** * <p>The region where the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecSlsProjectsRequest build() { return new DescribeApisecSlsProjectsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsProjectsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsProjectsResponse} extends {@link TeaModel} * * <p>DescribeApisecSlsProjectsResponse</p> */ public class DescribeApisecSlsProjectsResponse 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 DescribeApisecSlsProjectsResponseBody body; private DescribeApisecSlsProjectsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecSlsProjectsResponse 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 DescribeApisecSlsProjectsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecSlsProjectsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecSlsProjectsResponseBody body); @Override DescribeApisecSlsProjectsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecSlsProjectsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecSlsProjectsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecSlsProjectsResponse 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(DescribeApisecSlsProjectsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecSlsProjectsResponse build() { return new DescribeApisecSlsProjectsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSlsProjectsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSlsProjectsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSlsProjectsResponseBody</p> */ public class DescribeApisecSlsProjectsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Projects") private java.util.List<String> projects; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecSlsProjectsResponseBody(Builder builder) { this.projects = builder.projects; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSlsProjectsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return projects */ public java.util.List<String> getProjects() { return this.projects; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> projects; private String requestId; private Builder() { } private Builder(DescribeApisecSlsProjectsResponseBody model) { this.projects = model.projects; this.requestId = model.requestId; } /** * <p>The names of the projects in Simple Log Service.</p> */ public Builder projects(java.util.List<String> projects) { this.projects = projects; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19****5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecSlsProjectsResponseBody build() { return new DescribeApisecSlsProjectsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecStatisticsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecStatisticsRequest} extends {@link RequestModel} * * <p>DescribeApisecStatisticsRequest</p> */ public class DescribeApisecStatisticsRequest 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("EndTime") private Long endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @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") private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserStatusList") private java.util.List<String> userStatusList; private DescribeApisecStatisticsRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.startTime = builder.startTime; this.type = builder.type; this.userStatusList = builder.userStatusList; } public static Builder builder() { return new Builder(); } public static DescribeApisecStatisticsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return type */ public String getType() { return this.type; } /** * @return userStatusList */ public java.util.List<String> getUserStatusList() { return this.userStatusList; } public static final class Builder extends Request.Builder<DescribeApisecStatisticsRequest, Builder> { private String clusterId; private Long endTime; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Long startTime; private String type; private java.util.List<String> userStatusList; private Builder() { super(); } private Builder(DescribeApisecStatisticsRequest request) { super(request); this.clusterId = request.clusterId; this.endTime = request.endTime; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.startTime = request.startTime; this.type = request.type; this.userStatusList = request.userStatusList; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p> This parameter is available only in hybrid cloud scenarios. You can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * EndTime. */ public Builder endTime(Long endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-uax***b09</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the WAF instance. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aek2***uwbs5q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * StartTime. */ public Builder startTime(Long startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>The type of the statistics. Valid values:</p> * <ul> * <li><strong>risk</strong>: risk-related statistics.</li> * <li><strong>event</strong>: event-related statistics.</li> * </ul> * * <strong>example:</strong> * <p>asset_num</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * UserStatusList. */ public Builder userStatusList(java.util.List<String> userStatusList) { this.putQueryParameter("UserStatusList", userStatusList); this.userStatusList = userStatusList; return this; } @Override public DescribeApisecStatisticsRequest build() { return new DescribeApisecStatisticsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecStatisticsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecStatisticsResponse} extends {@link TeaModel} * * <p>DescribeApisecStatisticsResponse</p> */ public class DescribeApisecStatisticsResponse 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 DescribeApisecStatisticsResponseBody body; private DescribeApisecStatisticsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecStatisticsResponse 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 DescribeApisecStatisticsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecStatisticsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecStatisticsResponseBody body); @Override DescribeApisecStatisticsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecStatisticsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecStatisticsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecStatisticsResponse 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(DescribeApisecStatisticsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecStatisticsResponse build() { return new DescribeApisecStatisticsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecStatisticsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecStatisticsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecStatisticsResponseBody</p> */ public class DescribeApisecStatisticsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecStatisticsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecStatisticsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return data */ public Data getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Data data; private String requestId; private Builder() { } private Builder(DescribeApisecStatisticsResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The returned results.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>221F0F14-54C6-59A1-9967-72***81B61A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecStatisticsResponseBody build() { return new DescribeApisecStatisticsResponseBody(this); } } /** * * {@link DescribeApisecStatisticsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecStatisticsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Actioned") private Long actioned; @com.aliyun.core.annotation.NameInMap("Api") private Long api; @com.aliyun.core.annotation.NameInMap("Confirmed") private Long confirmed; @com.aliyun.core.annotation.NameInMap("Domain") private Long domain; @com.aliyun.core.annotation.NameInMap("Fixed") private Long fixed; @com.aliyun.core.annotation.NameInMap("High") private Long high; @com.aliyun.core.annotation.NameInMap("Ignore") private Long ignore; @com.aliyun.core.annotation.NameInMap("Low") private Long low; @com.aliyun.core.annotation.NameInMap("Medium") private Long medium; @com.aliyun.core.annotation.NameInMap("NotFixed") private Long notFixed; @com.aliyun.core.annotation.NameInMap("SystemFixed") private Long systemFixed; @com.aliyun.core.annotation.NameInMap("ToBeConfirmed") private Long toBeConfirmed; @com.aliyun.core.annotation.NameInMap("ToBeFixed") private Long toBeFixed; @com.aliyun.core.annotation.NameInMap("ToBeVerified") private Long toBeVerified; @com.aliyun.core.annotation.NameInMap("TodayHigh") private String todayHigh; @com.aliyun.core.annotation.NameInMap("TodayLow") private Long todayLow; @com.aliyun.core.annotation.NameInMap("TodayMedium") private String todayMedium; @com.aliyun.core.annotation.NameInMap("TodayTotal") private String todayTotal; @com.aliyun.core.annotation.NameInMap("Total") private Long total; private Data(Builder builder) { this.actioned = builder.actioned; this.api = builder.api; this.confirmed = builder.confirmed; this.domain = builder.domain; this.fixed = builder.fixed; this.high = builder.high; this.ignore = builder.ignore; this.low = builder.low; this.medium = builder.medium; this.notFixed = builder.notFixed; this.systemFixed = builder.systemFixed; this.toBeConfirmed = builder.toBeConfirmed; this.toBeFixed = builder.toBeFixed; this.toBeVerified = builder.toBeVerified; this.todayHigh = builder.todayHigh; this.todayLow = builder.todayLow; this.todayMedium = builder.todayMedium; this.todayTotal = builder.todayTotal; this.total = builder.total; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return actioned */ public Long getActioned() { return this.actioned; } /** * @return api */ public Long getApi() { return this.api; } /** * @return confirmed */ public Long getConfirmed() { return this.confirmed; } /** * @return domain */ public Long getDomain() { return this.domain; } /** * @return fixed */ public Long getFixed() { return this.fixed; } /** * @return high */ public Long getHigh() { return this.high; } /** * @return ignore */ public Long getIgnore() { return this.ignore; } /** * @return low */ public Long getLow() { return this.low; } /** * @return medium */ public Long getMedium() { return this.medium; } /** * @return notFixed */ public Long getNotFixed() { return this.notFixed; } /** * @return systemFixed */ public Long getSystemFixed() { return this.systemFixed; } /** * @return toBeConfirmed */ public Long getToBeConfirmed() { return this.toBeConfirmed; } /** * @return toBeFixed */ public Long getToBeFixed() { return this.toBeFixed; } /** * @return toBeVerified */ public Long getToBeVerified() { return this.toBeVerified; } /** * @return todayHigh */ public String getTodayHigh() { return this.todayHigh; } /** * @return todayLow */ public Long getTodayLow() { return this.todayLow; } /** * @return todayMedium */ public String getTodayMedium() { return this.todayMedium; } /** * @return todayTotal */ public String getTodayTotal() { return this.todayTotal; } /** * @return total */ public Long getTotal() { return this.total; } public static final class Builder { private Long actioned; private Long api; private Long confirmed; private Long domain; private Long fixed; private Long high; private Long ignore; private Long low; private Long medium; private Long notFixed; private Long systemFixed; private Long toBeConfirmed; private Long toBeFixed; private Long toBeVerified; private String todayHigh; private Long todayLow; private String todayMedium; private String todayTotal; private Long total; private Builder() { } private Builder(Data model) { this.actioned = model.actioned; this.api = model.api; this.confirmed = model.confirmed; this.domain = model.domain; this.fixed = model.fixed; this.high = model.high; this.ignore = model.ignore; this.low = model.low; this.medium = model.medium; this.notFixed = model.notFixed; this.systemFixed = model.systemFixed; this.toBeConfirmed = model.toBeConfirmed; this.toBeFixed = model.toBeFixed; this.toBeVerified = model.toBeVerified; this.todayHigh = model.todayHigh; this.todayLow = model.todayLow; this.todayMedium = model.todayMedium; this.todayTotal = model.todayTotal; this.total = model.total; } /** * <p>The number of handled events.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder actioned(Long actioned) { this.actioned = actioned; return this; } /** * <p>The number of APIs.</p> * * <strong>example:</strong> * <p>/api/v1/login</p> */ public Builder api(Long api) { this.api = api; return this; } /** * <p>The number of confirmed events.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder confirmed(Long confirmed) { this.confirmed = confirmed; return this; } /** * <p>The number of domain names.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder domain(Long domain) { this.domain = domain; return this; } /** * <p>The number of fixed risks.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder fixed(Long fixed) { this.fixed = fixed; return this; } /** * <p>The number of high-risk events.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder high(Long high) { this.high = high; return this; } /** * <p>The number of ignored risks.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder ignore(Long ignore) { this.ignore = ignore; return this; } /** * <p>The number of low-risk events.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder low(Long low) { this.low = low; return this; } /** * <p>The number of moderate-risk events.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder medium(Long medium) { this.medium = medium; return this; } /** * NotFixed. */ public Builder notFixed(Long notFixed) { this.notFixed = notFixed; return this; } /** * SystemFixed. */ public Builder systemFixed(Long systemFixed) { this.systemFixed = systemFixed; return this; } /** * <p>The number of events to be confirmed.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder toBeConfirmed(Long toBeConfirmed) { this.toBeConfirmed = toBeConfirmed; return this; } /** * <p>The number of risks to be fixed.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder toBeFixed(Long toBeFixed) { this.toBeFixed = toBeFixed; return this; } /** * ToBeVerified. */ public Builder toBeVerified(Long toBeVerified) { this.toBeVerified = toBeVerified; return this; } /** * <p>The number of new high-risk events today.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder todayHigh(String todayHigh) { this.todayHigh = todayHigh; return this; } /** * <p>The number of new low-risk events today.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder todayLow(Long todayLow) { this.todayLow = todayLow; return this; } /** * <p>The number of new moderate-risk events today.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder todayMedium(String todayMedium) { this.todayMedium = todayMedium; return this; } /** * <p>The total number of new events today.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder todayTotal(String todayTotal) { this.todayTotal = todayTotal; return this; } /** * <p>The total number of events.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder total(Long total) { this.total = total; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSuggestionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSuggestionsRequest} extends {@link RequestModel} * * <p>DescribeApisecSuggestionsRequest</p> */ public class DescribeApisecSuggestionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiId") @com.aliyun.core.annotation.Validation(required = true) private String apiId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeApisecSuggestionsRequest(Builder builder) { super(builder); this.apiId = builder.apiId; this.clusterId = builder.clusterId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSuggestionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeApisecSuggestionsRequest, Builder> { private String apiId; private String clusterId; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeApisecSuggestionsRequest request) { super(request); this.apiId = request.apiId; this.clusterId = request.clusterId; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the API.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>a60fd7e3021fe371c06dc1dcb883def0</p> */ public Builder apiId(String apiId) { this.putQueryParameter("ApiId", apiId); this.apiId = apiId; return this; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p>For hybrid cloud scenarios only, you can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query the hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-pe336n43m04</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeApisecSuggestionsRequest build() { return new DescribeApisecSuggestionsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSuggestionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSuggestionsResponse} extends {@link TeaModel} * * <p>DescribeApisecSuggestionsResponse</p> */ public class DescribeApisecSuggestionsResponse 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 DescribeApisecSuggestionsResponseBody body; private DescribeApisecSuggestionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecSuggestionsResponse 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 DescribeApisecSuggestionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecSuggestionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecSuggestionsResponseBody body); @Override DescribeApisecSuggestionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecSuggestionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecSuggestionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecSuggestionsResponse 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(DescribeApisecSuggestionsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecSuggestionsResponse build() { return new DescribeApisecSuggestionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecSuggestionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecSuggestionsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSuggestionsResponseBody</p> */ public class DescribeApisecSuggestionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecSuggestionsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecSuggestionsResponseBody 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(DescribeApisecSuggestionsResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The protection suggestions.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-6B19160D5EB0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecSuggestionsResponseBody build() { return new DescribeApisecSuggestionsResponseBody(this); } } /** * * {@link DescribeApisecSuggestionsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecSuggestionsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.NameInMap("SuggestId") private String suggestId; @com.aliyun.core.annotation.NameInMap("SuggestRule") private String suggestRule; @com.aliyun.core.annotation.NameInMap("SuggestType") private String suggestType; private Data(Builder builder) { this.apiFormat = builder.apiFormat; this.matchedHost = builder.matchedHost; this.suggestId = builder.suggestId; this.suggestRule = builder.suggestRule; this.suggestType = builder.suggestType; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return suggestId */ public String getSuggestId() { return this.suggestId; } /** * @return suggestRule */ public String getSuggestRule() { return this.suggestRule; } /** * @return suggestType */ public String getSuggestType() { return this.suggestType; } public static final class Builder { private String apiFormat; private String matchedHost; private String suggestId; private String suggestRule; private String suggestType; private Builder() { } private Builder(Data model) { this.apiFormat = model.apiFormat; this.matchedHost = model.matchedHost; this.suggestId = model.suggestId; this.suggestRule = model.suggestRule; this.suggestType = model.suggestType; } /** * <p>The API.</p> * * <strong>example:</strong> * <p>/apisec/v1/saveinfo</p> */ public Builder apiFormat(String apiFormat) { this.apiFormat = apiFormat; return this; } /** * <p>The domain name or IP address of the API.</p> * * <strong>example:</strong> * <p>a.aliyun.com</p> */ public Builder matchedHost(String matchedHost) { this.matchedHost = matchedHost; return this; } /** * <p>The rule ID of the protection suggestion.</p> * * <strong>example:</strong> * <p>15060a1f8fed40130b7c4a7bf8d8733b</p> */ public Builder suggestId(String suggestId) { this.suggestId = suggestId; return this; } /** * <p>The rule content of the protection suggestion. The value is a string that consists of multiple parameters in the JSON format. Valid values:</p> * <ul> * <li><strong>event_tags</strong>: event type</li> * <li><strong>black_iplist</strong>: IP address blacklist</li> * <li><strong>ip_baseline</strong>: IP address</li> * <li><strong>freq_baseline</strong>: throttling frequency</li> * <li><strong>client_id_baseline</strong>: client information</li> * <li><strong>country_baseline</strong>: country information</li> * <li><strong>province_baseline</strong>: province information</li> * <li><strong>sensitive_type</strong>: sensitive information</li> * </ul> * * <strong>example:</strong> * <p>{ * &quot;rule&quot;: &quot;ClientRule&quot;, * &quot;client_id_baseline&quot;: [&quot;Edge&quot;] * }</p> */ public Builder suggestRule(String suggestRule) { this.suggestRule = suggestRule; return this; } /** * <p>The rule type of the protection suggestion. Valid values:</p> * <ul> * <li><strong>BotRule</strong>: bot management rules</li> * <li><strong>BlackIPRule</strong>: IP address blacklist rules</li> * <li><strong>WhiteIPRule</strong>: IP address whitelist rules</li> * <li><strong>RateLimitRule</strong>: throttling rules</li> * <li><strong>ClientRule</strong>: client rules</li> * <li><strong>GeoRule</strong>: region-related rules</li> * <li><strong>SensitiveRule</strong>: sensitive information rules</li> * <li><strong>UnauthRule</strong>: authentication rules</li> * </ul> * * <strong>example:</strong> * <p>WhiteIPRule</p> */ public Builder suggestType(String suggestType) { this.suggestType = suggestType; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecUserOperationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecUserOperationsRequest} extends {@link RequestModel} * * <p>DescribeApisecUserOperationsRequest</p> */ public class DescribeApisecUserOperationsRequest 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("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ObjectId") @com.aliyun.core.annotation.Validation(required = true) private String objectId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; private DescribeApisecUserOperationsRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.instanceId = builder.instanceId; this.objectId = builder.objectId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeApisecUserOperationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return objectId */ public String getObjectId() { return this.objectId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeApisecUserOperationsRequest, Builder> { private String clusterId; private String instanceId; private String objectId; private String regionId; private String resourceManagerResourceGroupId; private String type; private Builder() { super(); } private Builder(DescribeApisecUserOperationsRequest request) { super(request); this.clusterId = request.clusterId; this.instanceId = request.instanceId; this.objectId = request.objectId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.type = request.type; } /** * <p>The ID of the hybrid cloud cluster.</p> * <blockquote> * <p>For hybrid cloud scenarios only, you can call the <a href="https://help.aliyun.com/document_detail/2849376.html">DescribeHybridCloudClusters</a> operation to query the hybrid cloud clusters.</p> * </blockquote> * * <strong>example:</strong> * <p>428</p> */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-wwo36ksck1e</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The object ID of the operation record.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>fe8723e92e2037245014ab62161bbec8</p> */ public Builder objectId(String objectId) { this.putQueryParameter("ObjectId", objectId); this.objectId = objectId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aek2ax2y5****pi</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The type of the operation record. Valid values:</p> * <ul> * <li><strong>abnormal</strong>: risk detection</li> * <li><strong>event</strong>: security event</li> * </ul> * * <strong>example:</strong> * <p>event</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeApisecUserOperationsRequest build() { return new DescribeApisecUserOperationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecUserOperationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecUserOperationsResponse} extends {@link TeaModel} * * <p>DescribeApisecUserOperationsResponse</p> */ public class DescribeApisecUserOperationsResponse 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 DescribeApisecUserOperationsResponseBody body; private DescribeApisecUserOperationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeApisecUserOperationsResponse 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 DescribeApisecUserOperationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeApisecUserOperationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeApisecUserOperationsResponseBody body); @Override DescribeApisecUserOperationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeApisecUserOperationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeApisecUserOperationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeApisecUserOperationsResponse 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(DescribeApisecUserOperationsResponseBody body) { this.body = body; return this; } @Override public DescribeApisecUserOperationsResponse build() { return new DescribeApisecUserOperationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeApisecUserOperationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeApisecUserOperationsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecUserOperationsResponseBody</p> */ public class DescribeApisecUserOperationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeApisecUserOperationsResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeApisecUserOperationsResponseBody 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(DescribeApisecUserOperationsResponseBody model) { this.data = model.data; this.requestId = model.requestId; } /** * <p>The operation records.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C9825654-327B-5156-A570-847054B4CF10</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeApisecUserOperationsResponseBody build() { return new DescribeApisecUserOperationsResponseBody(this); } } /** * * {@link DescribeApisecUserOperationsResponseBody} extends {@link TeaModel} * * <p>DescribeApisecUserOperationsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("FromStatus") private String fromStatus; @com.aliyun.core.annotation.NameInMap("Note") private String note; @com.aliyun.core.annotation.NameInMap("ObjectId") private String objectId; @com.aliyun.core.annotation.NameInMap("OperationSource") private String operationSource; @com.aliyun.core.annotation.NameInMap("Time") private Long time; @com.aliyun.core.annotation.NameInMap("ToStatus") private String toStatus; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private Data(Builder builder) { this.fromStatus = builder.fromStatus; this.note = builder.note; this.objectId = builder.objectId; this.operationSource = builder.operationSource; this.time = builder.time; this.toStatus = builder.toStatus; this.type = builder.type; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return fromStatus */ public String getFromStatus() { return this.fromStatus; } /** * @return note */ public String getNote() { return this.note; } /** * @return objectId */ public String getObjectId() { return this.objectId; } /** * @return operationSource */ public String getOperationSource() { return this.operationSource; } /** * @return time */ public Long getTime() { return this.time; } /** * @return toStatus */ public String getToStatus() { return this.toStatus; } /** * @return type */ public String getType() { return this.type; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private String fromStatus; private String note; private String objectId; private String operationSource; private Long time; private String toStatus; private String type; private String userId; private Builder() { } private Builder(Data model) { this.fromStatus = model.fromStatus; this.note = model.note; this.objectId = model.objectId; this.operationSource = model.operationSource; this.time = model.time; this.toStatus = model.toStatus; this.type = model.type; this.userId = model.userId; } /** * <p>The state before the operation.</p> * <p>Valid values of the risk state:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>toBeFixed</strong></li> * <li><strong>fixed</strong></li> * <li><strong>ignored</strong></li> * </ul> * <p>Valid values of the event state:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>ignored</p> */ public Builder fromStatus(String fromStatus) { this.fromStatus = fromStatus; return this; } /** * <p>The remarks.</p> * * <strong>example:</strong> * <p>Handled</p> */ public Builder note(String note) { this.note = note; return this; } /** * <p>The object ID of the operation record.</p> * * <strong>example:</strong> * <p>24d997acc48a67a01e09b9c5ad861287</p> */ public Builder objectId(String objectId) { this.objectId = objectId; return this; } /** * OperationSource. */ public Builder operationSource(String operationSource) { this.operationSource = operationSource; return this; } /** * <p>The time at which the operation was performed. The value is a UNIX timestamp displayed in UTC. Unit: seconds.</p> * * <strong>example:</strong> * <p>1685072214</p> */ public Builder time(Long time) { this.time = time; return this; } /** * <p>The state after the operation.</p> * <p>Valid values of the risk state:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>toBeFixed</strong></li> * <li><strong>fixed</strong></li> * <li><strong>ignored</strong></li> * </ul> * <p>Valid values of the event state:</p> * <ul> * <li><strong>toBeConfirmed</strong></li> * <li><strong>confirmed</strong></li> * <li><strong>ignored</strong></li> * </ul> * * <strong>example:</strong> * <p>Confirmed</p> */ public Builder toStatus(String toStatus) { this.toStatus = toStatus; return this; } /** * <p>The type of the operation record. Valid values:</p> * <ul> * <li><strong>abnormal</strong>: risk detection</li> * <li><strong>event</strong>: security event</li> * </ul> * * <strong>example:</strong> * <p>abnormal</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The user ID.</p> * * <strong>example:</strong> * <p>1610954****</p> */ public Builder userId(String userId) { this.userId = userId; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeBaseSystemRulesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeBaseSystemRulesRequest} extends {@link RequestModel} * * <p>DescribeBaseSystemRulesRequest</p> */ public class DescribeBaseSystemRulesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DetectType") private String detectType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Lang") private String lang; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleAction") private String ruleAction; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleId") private Long ruleId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleName") private String ruleName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleStatus") private Integer ruleStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") private Long templateId; private DescribeBaseSystemRulesRequest(Builder builder) { super(builder); this.detectType = builder.detectType; this.instanceId = builder.instanceId; this.lang = builder.lang; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.riskLevel = builder.riskLevel; this.ruleAction = builder.ruleAction; this.ruleId = builder.ruleId; this.ruleName = builder.ruleName; this.ruleStatus = builder.ruleStatus; this.templateId = builder.templateId; } public static Builder builder() { return new Builder(); } public static DescribeBaseSystemRulesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return detectType */ public String getDetectType() { return this.detectType; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lang */ public String getLang() { return this.lang; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return ruleAction */ public String getRuleAction() { return this.ruleAction; } /** * @return ruleId */ public Long getRuleId() { return this.ruleId; } /** * @return ruleName */ public String getRuleName() { return this.ruleName; } /** * @return ruleStatus */ public Integer getRuleStatus() { return this.ruleStatus; } /** * @return templateId */ public Long getTemplateId() { return this.templateId; } public static final class Builder extends Request.Builder<DescribeBaseSystemRulesRequest, Builder> { private String detectType; private String instanceId; private String lang; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceManagerResourceGroupId; private String riskLevel; private String ruleAction; private Long ruleId; private String ruleName; private Integer ruleStatus; private Long templateId; private Builder() { super(); } private Builder(DescribeBaseSystemRulesRequest request) { super(request); this.detectType = request.detectType; this.instanceId = request.instanceId; this.lang = request.lang; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.riskLevel = request.riskLevel; this.ruleAction = request.ruleAction; this.ruleId = request.ruleId; this.ruleName = request.ruleName; this.ruleStatus = request.ruleStatus; this.templateId = request.templateId; } /** * DetectType. */ public Builder detectType(String detectType) { this.putQueryParameter("DetectType", detectType); this.detectType = detectType; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_cdnsdf3****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * Lang. */ public Builder lang(String lang) { this.putQueryParameter("Lang", lang); this.lang = lang; return this; } /** * PageNumber. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * PageSize. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceManagerResourceGroupId. */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * RiskLevel. */ public Builder riskLevel(String riskLevel) { this.putQueryParameter("RiskLevel", riskLevel); this.riskLevel = riskLevel; return this; } /** * RuleAction. */ public Builder ruleAction(String ruleAction) { this.putQueryParameter("RuleAction", ruleAction); this.ruleAction = ruleAction; return this; } /** * RuleId. */ public Builder ruleId(Long ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } /** * RuleName. */ public Builder ruleName(String ruleName) { this.putQueryParameter("RuleName", ruleName); this.ruleName = ruleName; return this; } /** * RuleStatus. */ public Builder ruleStatus(Integer ruleStatus) { this.putQueryParameter("RuleStatus", ruleStatus); this.ruleStatus = ruleStatus; return this; } /** * TemplateId. */ public Builder templateId(Long templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } @Override public DescribeBaseSystemRulesRequest build() { return new DescribeBaseSystemRulesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeBaseSystemRulesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeBaseSystemRulesResponse} extends {@link TeaModel} * * <p>DescribeBaseSystemRulesResponse</p> */ public class DescribeBaseSystemRulesResponse 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 DescribeBaseSystemRulesResponseBody body; private DescribeBaseSystemRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeBaseSystemRulesResponse 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 DescribeBaseSystemRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeBaseSystemRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeBaseSystemRulesResponseBody body); @Override DescribeBaseSystemRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeBaseSystemRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeBaseSystemRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeBaseSystemRulesResponse 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(DescribeBaseSystemRulesResponseBody body) { this.body = body; return this; } @Override public DescribeBaseSystemRulesResponse build() { return new DescribeBaseSystemRulesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeBaseSystemRulesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeBaseSystemRulesResponseBody} extends {@link TeaModel} * * <p>DescribeBaseSystemRulesResponseBody</p> */ public class DescribeBaseSystemRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Rules") private java.util.List<Rules> rules; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeBaseSystemRulesResponseBody(Builder builder) { this.requestId = builder.requestId; this.rules = builder.rules; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeBaseSystemRulesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return rules */ public java.util.List<Rules> getRules() { return this.rules; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private String requestId; private java.util.List<Rules> rules; private Long totalCount; private Builder() { } private Builder(DescribeBaseSystemRulesResponseBody model) { this.requestId = model.requestId; this.rules = model.rules; this.totalCount = model.totalCount; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Rules. */ public Builder rules(java.util.List<Rules> rules) { this.rules = rules; return this; } /** * TotalCount. */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeBaseSystemRulesResponseBody build() { return new DescribeBaseSystemRulesResponseBody(this); } } /** * * {@link DescribeBaseSystemRulesResponseBody} extends {@link TeaModel} * * <p>DescribeBaseSystemRulesResponseBody</p> */ public static class Rules extends TeaModel { @com.aliyun.core.annotation.NameInMap("CveId") private String cveId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DetectType") private String detectType; @com.aliyun.core.annotation.NameInMap("RiskLevel") private String riskLevel; @com.aliyun.core.annotation.NameInMap("RuleAction") private String ruleAction; @com.aliyun.core.annotation.NameInMap("RuleId") private Long ruleId; @com.aliyun.core.annotation.NameInMap("RuleName") private String ruleName; @com.aliyun.core.annotation.NameInMap("RuleStatus") private Integer ruleStatus; @com.aliyun.core.annotation.NameInMap("UpdateTime") private Long updateTime; private Rules(Builder builder) { this.cveId = builder.cveId; this.description = builder.description; this.detectType = builder.detectType; this.riskLevel = builder.riskLevel; this.ruleAction = builder.ruleAction; this.ruleId = builder.ruleId; this.ruleName = builder.ruleName; this.ruleStatus = builder.ruleStatus; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Rules create() { return builder().build(); } /** * @return cveId */ public String getCveId() { return this.cveId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return detectType */ public String getDetectType() { return this.detectType; } /** * @return riskLevel */ public String getRiskLevel() { return this.riskLevel; } /** * @return ruleAction */ public String getRuleAction() { return this.ruleAction; } /** * @return ruleId */ public Long getRuleId() { return this.ruleId; } /** * @return ruleName */ public String getRuleName() { return this.ruleName; } /** * @return ruleStatus */ public Integer getRuleStatus() { return this.ruleStatus; } /** * @return updateTime */ public Long getUpdateTime() { return this.updateTime; } public static final class Builder { private String cveId; private String description; private String detectType; private String riskLevel; private String ruleAction; private Long ruleId; private String ruleName; private Integer ruleStatus; private Long updateTime; private Builder() { } private Builder(Rules model) { this.cveId = model.cveId; this.description = model.description; this.detectType = model.detectType; this.riskLevel = model.riskLevel; this.ruleAction = model.ruleAction; this.ruleId = model.ruleId; this.ruleName = model.ruleName; this.ruleStatus = model.ruleStatus; this.updateTime = model.updateTime; } /** * CveId. */ public Builder cveId(String cveId) { this.cveId = cveId; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * DetectType. */ public Builder detectType(String detectType) { this.detectType = detectType; return this; } /** * RiskLevel. */ public Builder riskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } /** * RuleAction. */ public Builder ruleAction(String ruleAction) { this.ruleAction = ruleAction; return this; } /** * RuleId. */ public Builder ruleId(Long ruleId) { this.ruleId = ruleId; return this; } /** * RuleName. */ public Builder ruleName(String ruleName) { this.ruleName = ruleName; return this; } /** * RuleStatus. */ public Builder ruleStatus(Integer ruleStatus) { this.ruleStatus = ruleStatus; return this; } /** * UpdateTime. */ public Builder updateTime(Long updateTime) { this.updateTime = updateTime; return this; } public Rules build() { return new Rules(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertDetailRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertDetailRequest} extends {@link RequestModel} * * <p>DescribeCertDetailRequest</p> */ public class DescribeCertDetailRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CertIdentifier") @com.aliyun.core.annotation.Validation(required = true) private String certIdentifier; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCertDetailRequest(Builder builder) { super(builder); this.certIdentifier = builder.certIdentifier; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCertDetailRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return certIdentifier */ public String getCertIdentifier() { return this.certIdentifier; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCertDetailRequest, Builder> { private String certIdentifier; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCertDetailRequest request) { super(request); this.certIdentifier = request.certIdentifier; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the certificate.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123-cn-hangzhou</p> */ public Builder certIdentifier(String certIdentifier) { this.putQueryParameter("CertIdentifier", certIdentifier); this.certIdentifier = certIdentifier; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-uax****3k0e</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the Web Application Firewall (WAF) instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCertDetailRequest build() { return new DescribeCertDetailRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertDetailResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertDetailResponse} extends {@link TeaModel} * * <p>DescribeCertDetailResponse</p> */ public class DescribeCertDetailResponse 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 DescribeCertDetailResponseBody body; private DescribeCertDetailResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCertDetailResponse 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 DescribeCertDetailResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCertDetailResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCertDetailResponseBody body); @Override DescribeCertDetailResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCertDetailResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCertDetailResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCertDetailResponse 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(DescribeCertDetailResponseBody body) { this.body = body; return this; } @Override public DescribeCertDetailResponse build() { return new DescribeCertDetailResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertDetailResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertDetailResponseBody} extends {@link TeaModel} * * <p>DescribeCertDetailResponseBody</p> */ public class DescribeCertDetailResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CertDetail") private CertDetail certDetail; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeCertDetailResponseBody(Builder builder) { this.certDetail = builder.certDetail; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeCertDetailResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return certDetail */ public CertDetail getCertDetail() { return this.certDetail; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private CertDetail certDetail; private String requestId; private Builder() { } private Builder(DescribeCertDetailResponseBody model) { this.certDetail = model.certDetail; this.requestId = model.requestId; } /** * <p>The details of the certificate.</p> */ public Builder certDetail(CertDetail certDetail) { this.certDetail = certDetail; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>3C115DBE-8E53-5A12-9CAF-FD3F****CDF6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeCertDetailResponseBody build() { return new DescribeCertDetailResponseBody(this); } } /** * * {@link DescribeCertDetailResponseBody} extends {@link TeaModel} * * <p>DescribeCertDetailResponseBody</p> */ public static class CertDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("AfterDate") private Long afterDate; @com.aliyun.core.annotation.NameInMap("BeforeDate") private Long beforeDate; @com.aliyun.core.annotation.NameInMap("CertIdentifier") private String certIdentifier; @com.aliyun.core.annotation.NameInMap("CertName") private String certName; @com.aliyun.core.annotation.NameInMap("CommonName") private String commonName; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("Sans") private java.util.List<String> sans; private CertDetail(Builder builder) { this.afterDate = builder.afterDate; this.beforeDate = builder.beforeDate; this.certIdentifier = builder.certIdentifier; this.certName = builder.certName; this.commonName = builder.commonName; this.domain = builder.domain; this.sans = builder.sans; } public static Builder builder() { return new Builder(); } public static CertDetail create() { return builder().build(); } /** * @return afterDate */ public Long getAfterDate() { return this.afterDate; } /** * @return beforeDate */ public Long getBeforeDate() { return this.beforeDate; } /** * @return certIdentifier */ public String getCertIdentifier() { return this.certIdentifier; } /** * @return certName */ public String getCertName() { return this.certName; } /** * @return commonName */ public String getCommonName() { return this.commonName; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return sans */ public java.util.List<String> getSans() { return this.sans; } public static final class Builder { private Long afterDate; private Long beforeDate; private String certIdentifier; private String certName; private String commonName; private String domain; private java.util.List<String> sans; private Builder() { } private Builder(CertDetail model) { this.afterDate = model.afterDate; this.beforeDate = model.beforeDate; this.certIdentifier = model.certIdentifier; this.certName = model.certName; this.commonName = model.commonName; this.domain = model.domain; this.sans = model.sans; } /** * <p>The time when the certificate expires. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1976256736582</p> */ public Builder afterDate(Long afterDate) { this.afterDate = afterDate; return this; } /** * <p>The time when the certificate was issued. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1976256736582</p> */ public Builder beforeDate(Long beforeDate) { this.beforeDate = beforeDate; return this; } /** * <p>The ID of the certificate.</p> * * <strong>example:</strong> * <p>123-cn-hangzhou</p> */ public Builder certIdentifier(String certIdentifier) { this.certIdentifier = certIdentifier; return this; } /** * <p>The name of the certificate.</p> * * <strong>example:</strong> * <p>testCertName</p> */ public Builder certName(String certName) { this.certName = certName; return this; } /** * <p>The primary domain name, which is a common name.</p> * * <strong>example:</strong> * <p>*.xxxaliyun.com</p> */ public Builder commonName(String commonName) { this.commonName = commonName; return this; } /** * <p>The domain name that is associated with the certificate.</p> * * <strong>example:</strong> * <p>demo.xxxaliyun.com</p> */ public Builder domain(String domain) { this.domain = domain; return this; } /** * <p>The other domain names that are associated with the certificate.</p> */ public Builder sans(java.util.List<String> sans) { this.sans = sans; return this; } public CertDetail build() { return new CertDetail(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertsRequest} extends {@link RequestModel} * * <p>DescribeCertsRequest</p> */ public class DescribeCertsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Algorithm") private String algorithm; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 1000) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCertsRequest(Builder builder) { super(builder); this.algorithm = builder.algorithm; this.domain = builder.domain; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCertsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return algorithm */ public String getAlgorithm() { return this.algorithm; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCertsRequest, Builder> { private String algorithm; private String domain; private String instanceId; private Long pageNumber; private Long pageSize; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCertsRequest request) { super(request); this.algorithm = request.algorithm; this.domain = request.domain; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The type of the encryption algorithm. Valid values:</p> * <ul> * <li><strong>NotSM2</strong>: The encryption algorithm is not the SM2 algorithm. This is the default value.</li> * <li><strong>SM2</strong>: The encryption algorithm is the SM2 algorithm.</li> * </ul> * * <strong>example:</strong> * <p>SM2</p> */ public Builder algorithm(String algorithm) { this.putQueryParameter("Algorithm", algorithm); this.algorithm = algorithm; return this; } /** * <p>The domain name.</p> * * <strong>example:</strong> * <p>example.aliyun.com</p> */ public Builder domain(String domain) { this.putQueryParameter("Domain", domain); this.domain = domain; return this; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-5yd****tb02</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Valid values: 1 to 100. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: Outside the Chinese mainland.</li> * </ul> * * <strong>example:</strong> * <p>ap-southeast-1</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfmoiy****p2oq</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCertsRequest build() { return new DescribeCertsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertsResponse} extends {@link TeaModel} * * <p>DescribeCertsResponse</p> */ public class DescribeCertsResponse 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 DescribeCertsResponseBody body; private DescribeCertsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCertsResponse 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 DescribeCertsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCertsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCertsResponseBody body); @Override DescribeCertsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCertsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCertsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCertsResponse 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(DescribeCertsResponseBody body) { this.body = body; return this; } @Override public DescribeCertsResponse build() { return new DescribeCertsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCertsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCertsResponseBody} extends {@link TeaModel} * * <p>DescribeCertsResponseBody</p> */ public class DescribeCertsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Certs") private java.util.List<Certs> certs; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeCertsResponseBody(Builder builder) { this.certs = builder.certs; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCertsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return certs */ public java.util.List<Certs> getCerts() { return this.certs; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Certs> certs; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeCertsResponseBody model) { this.certs = model.certs; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The certificates.</p> */ public Builder certs(java.util.List<Certs> certs) { this.certs = certs; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>19511B0D-5AE0-5600-BB8A-DC2C8345****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeCertsResponseBody build() { return new DescribeCertsResponseBody(this); } } /** * * {@link DescribeCertsResponseBody} extends {@link TeaModel} * * <p>DescribeCertsResponseBody</p> */ public static class Certs extends TeaModel { @com.aliyun.core.annotation.NameInMap("AfterDate") private Long afterDate; @com.aliyun.core.annotation.NameInMap("BeforeDate") private Long beforeDate; @com.aliyun.core.annotation.NameInMap("CertIdentifier") private String certIdentifier; @com.aliyun.core.annotation.NameInMap("CertName") private String certName; @com.aliyun.core.annotation.NameInMap("CommonName") private String commonName; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("IsChainCompleted") private Boolean isChainCompleted; private Certs(Builder builder) { this.afterDate = builder.afterDate; this.beforeDate = builder.beforeDate; this.certIdentifier = builder.certIdentifier; this.certName = builder.certName; this.commonName = builder.commonName; this.domain = builder.domain; this.isChainCompleted = builder.isChainCompleted; } public static Builder builder() { return new Builder(); } public static Certs create() { return builder().build(); } /** * @return afterDate */ public Long getAfterDate() { return this.afterDate; } /** * @return beforeDate */ public Long getBeforeDate() { return this.beforeDate; } /** * @return certIdentifier */ public String getCertIdentifier() { return this.certIdentifier; } /** * @return certName */ public String getCertName() { return this.certName; } /** * @return commonName */ public String getCommonName() { return this.commonName; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return isChainCompleted */ public Boolean getIsChainCompleted() { return this.isChainCompleted; } public static final class Builder { private Long afterDate; private Long beforeDate; private String certIdentifier; private String certName; private String commonName; private String domain; private Boolean isChainCompleted; private Builder() { } private Builder(Certs model) { this.afterDate = model.afterDate; this.beforeDate = model.beforeDate; this.certIdentifier = model.certIdentifier; this.certName = model.certName; this.commonName = model.commonName; this.domain = model.domain; this.isChainCompleted = model.isChainCompleted; } /** * <p>The expiration time.</p> * * <strong>example:</strong> * <p>1976256736582</p> */ public Builder afterDate(Long afterDate) { this.afterDate = afterDate; return this; } /** * <p>The effective time.</p> * * <strong>example:</strong> * <p>1976256836582</p> */ public Builder beforeDate(Long beforeDate) { this.beforeDate = beforeDate; return this; } /** * <p>The globally unique ID of the certificate. The value follows a &quot;&lt;Certificate ID&gt;-ap-southeast-1&quot; format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-ap-southeast-1.</p> * * <strong>example:</strong> * <p>123-ap-southeast-1</p> */ public Builder certIdentifier(String certIdentifier) { this.certIdentifier = certIdentifier; return this; } /** * <p>The name of the certificate.</p> * * <strong>example:</strong> * <p>waf1234</p> */ public Builder certName(String certName) { this.certName = certName; return this; } /** * <p>The common name.</p> * * <strong>example:</strong> * <p>*.example.com</p> */ public Builder commonName(String commonName) { this.commonName = commonName; return this; } /** * <p>The domain that is supported by the certificate.</p> * * <strong>example:</strong> * <p><a href="http://www.example.com">www.example.com</a></p> */ public Builder domain(String domain) { this.domain = domain; return this; } /** * <p>Indicates whether the certificate chain is complete. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isChainCompleted(Boolean isChainCompleted) { this.isChainCompleted = isChainCompleted; return this; } public Certs build() { return new Certs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessPortDetailsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessPortDetailsRequest} extends {@link RequestModel} * * <p>DescribeCloudResourceAccessPortDetailsRequest</p> */ public class DescribeCloudResourceAccessPortDetailsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Protocol") private String protocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceProduct") private String resourceProduct; private DescribeCloudResourceAccessPortDetailsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.port = builder.port; this.protocol = builder.protocol; this.regionId = builder.regionId; this.resourceInstanceId = builder.resourceInstanceId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.resourceProduct = builder.resourceProduct; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourceAccessPortDetailsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return port */ public String getPort() { return this.port; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceInstanceId */ public String getResourceInstanceId() { return this.resourceInstanceId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return resourceProduct */ public String getResourceProduct() { return this.resourceProduct; } public static final class Builder extends Request.Builder<DescribeCloudResourceAccessPortDetailsRequest, Builder> { private String instanceId; private Integer pageNumber; private Integer pageSize; private String port; private String protocol; private String regionId; private String resourceInstanceId; private String resourceManagerResourceGroupId; private String resourceProduct; private Builder() { super(); } private Builder(DescribeCloudResourceAccessPortDetailsRequest request) { super(request); this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.port = request.port; this.protocol = request.protocol; this.regionId = request.regionId; this.resourceInstanceId = request.resourceInstanceId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.resourceProduct = request.resourceProduct; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf-cn-tl32ast****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The port of the cloud service that is added to WAF.</p> * * <strong>example:</strong> * <p>443</p> */ public Builder port(String port) { this.putQueryParameter("Port", port); this.port = port; return this; } /** * <p>The type of the protocol. Valid values:</p> * <ul> * <li><strong>http</strong></li> * <li><strong>https</strong></li> * </ul> * * <strong>example:</strong> * <p>https</p> */ public Builder protocol(String protocol) { this.putQueryParameter("Protocol", protocol); this.protocol = protocol; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: the Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 instance ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-2zeugkfj81jvo****4tqm</p> */ public Builder resourceInstanceId(String resourceInstanceId) { this.putQueryParameter("ResourceInstanceId", resourceInstanceId); this.resourceInstanceId = resourceInstanceId; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The cloud service. Valid values:</p> * <ul> * <li><strong>clb4</strong>: Layer 4 CLB.</li> * <li><strong>clb7</strong>: Layer 7 CLB.</li> * <li><strong>ecs</strong>: ECS.</li> * </ul> * * <strong>example:</strong> * <p>clb7</p> */ public Builder resourceProduct(String resourceProduct) { this.putQueryParameter("ResourceProduct", resourceProduct); this.resourceProduct = resourceProduct; return this; } @Override public DescribeCloudResourceAccessPortDetailsRequest build() { return new DescribeCloudResourceAccessPortDetailsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessPortDetailsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessPortDetailsResponse} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponse</p> */ public class DescribeCloudResourceAccessPortDetailsResponse 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 DescribeCloudResourceAccessPortDetailsResponseBody body; private DescribeCloudResourceAccessPortDetailsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudResourceAccessPortDetailsResponse 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 DescribeCloudResourceAccessPortDetailsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudResourceAccessPortDetailsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudResourceAccessPortDetailsResponseBody body); @Override DescribeCloudResourceAccessPortDetailsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudResourceAccessPortDetailsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudResourceAccessPortDetailsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudResourceAccessPortDetailsResponse 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(DescribeCloudResourceAccessPortDetailsResponseBody body) { this.body = body; return this; } @Override public DescribeCloudResourceAccessPortDetailsResponse build() { return new DescribeCloudResourceAccessPortDetailsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessPortDetailsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessPortDetailsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponseBody</p> */ public class DescribeCloudResourceAccessPortDetailsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPortDetails") private java.util.List<AccessPortDetails> accessPortDetails; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeCloudResourceAccessPortDetailsResponseBody(Builder builder) { this.accessPortDetails = builder.accessPortDetails; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourceAccessPortDetailsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return accessPortDetails */ public java.util.List<AccessPortDetails> getAccessPortDetails() { return this.accessPortDetails; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<AccessPortDetails> accessPortDetails; private String requestId; private Integer totalCount; private Builder() { } private Builder(DescribeCloudResourceAccessPortDetailsResponseBody model) { this.accessPortDetails = model.accessPortDetails; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The details of the ports of cloud services that are added to WAF.</p> */ public Builder accessPortDetails(java.util.List<AccessPortDetails> accessPortDetails) { this.accessPortDetails = accessPortDetails; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2EFCFE18-78F8-5079-B312-07***48B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeCloudResourceAccessPortDetailsResponseBody build() { return new DescribeCloudResourceAccessPortDetailsResponseBody(this); } } /** * * {@link DescribeCloudResourceAccessPortDetailsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponseBody</p> */ public static class Certificates extends TeaModel { @com.aliyun.core.annotation.NameInMap("AppliedType") private String appliedType; @com.aliyun.core.annotation.NameInMap("CertificateId") private String certificateId; @com.aliyun.core.annotation.NameInMap("CertificateName") private String certificateName; private Certificates(Builder builder) { this.appliedType = builder.appliedType; this.certificateId = builder.certificateId; this.certificateName = builder.certificateName; } public static Builder builder() { return new Builder(); } public static Certificates create() { return builder().build(); } /** * @return appliedType */ public String getAppliedType() { return this.appliedType; } /** * @return certificateId */ public String getCertificateId() { return this.certificateId; } /** * @return certificateName */ public String getCertificateName() { return this.certificateName; } public static final class Builder { private String appliedType; private String certificateId; private String certificateName; private Builder() { } private Builder(Certificates model) { this.appliedType = model.appliedType; this.certificateId = model.certificateId; this.certificateName = model.certificateName; } /** * <p>The type of the HTTPS certificate. Valid values:</p> * <ul> * <li><strong>default</strong>: default certificate.</li> * <li><strong>extension</strong>: additional certificate.</li> * </ul> * * <strong>example:</strong> * <p>default</p> */ public Builder appliedType(String appliedType) { this.appliedType = appliedType; return this; } /** * <p>The ID of the certificate.</p> * * <strong>example:</strong> * <p>123-cn-hangzhou</p> */ public Builder certificateId(String certificateId) { this.certificateId = certificateId; return this; } /** * <p>The name of the certificate.</p> * * <strong>example:</strong> * <p>cert-name1</p> */ public Builder certificateName(String certificateName) { this.certificateName = certificateName; return this; } public Certificates build() { return new Certificates(this); } } } /** * * {@link DescribeCloudResourceAccessPortDetailsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponseBody</p> */ public static class LogHeaders extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private LogHeaders(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static LogHeaders create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(LogHeaders model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the custom header field.</p> * * <strong>example:</strong> * <p>key1</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the custom header field.</p> * * <strong>example:</strong> * <p>value1</p> */ public Builder value(String value) { this.value = value; return this; } public LogHeaders build() { return new LogHeaders(this); } } } /** * * {@link DescribeCloudResourceAccessPortDetailsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponseBody</p> */ public static class SubStatusDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("AppliedType") private String appliedType; @com.aliyun.core.annotation.NameInMap("CertId") private String certId; @com.aliyun.core.annotation.NameInMap("CertName") private String certName; @com.aliyun.core.annotation.NameInMap("CommonName") private String commonName; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("ExpireTime") private Long expireTime; @com.aliyun.core.annotation.NameInMap("ProductCertId") private String productCertId; @com.aliyun.core.annotation.NameInMap("ProductCertName") private String productCertName; @com.aliyun.core.annotation.NameInMap("ReasonCode") private String reasonCode; private SubStatusDetails(Builder builder) { this.appliedType = builder.appliedType; this.certId = builder.certId; this.certName = builder.certName; this.commonName = builder.commonName; this.domain = builder.domain; this.expireTime = builder.expireTime; this.productCertId = builder.productCertId; this.productCertName = builder.productCertName; this.reasonCode = builder.reasonCode; } public static Builder builder() { return new Builder(); } public static SubStatusDetails create() { return builder().build(); } /** * @return appliedType */ public String getAppliedType() { return this.appliedType; } /** * @return certId */ public String getCertId() { return this.certId; } /** * @return certName */ public String getCertName() { return this.certName; } /** * @return commonName */ public String getCommonName() { return this.commonName; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return expireTime */ public Long getExpireTime() { return this.expireTime; } /** * @return productCertId */ public String getProductCertId() { return this.productCertId; } /** * @return productCertName */ public String getProductCertName() { return this.productCertName; } /** * @return reasonCode */ public String getReasonCode() { return this.reasonCode; } public static final class Builder { private String appliedType; private String certId; private String certName; private String commonName; private String domain; private Long expireTime; private String productCertId; private String productCertName; private String reasonCode; private Builder() { } private Builder(SubStatusDetails model) { this.appliedType = model.appliedType; this.certId = model.certId; this.certName = model.certName; this.commonName = model.commonName; this.domain = model.domain; this.expireTime = model.expireTime; this.productCertId = model.productCertId; this.productCertName = model.productCertName; this.reasonCode = model.reasonCode; } /** * <p>The type of the HTTPS certificate. Valid values:</p> * <ul> * <li><strong>default</strong>: default certificate.</li> * <li><strong>extension</strong>: additional certificate.</li> * </ul> * * <strong>example:</strong> * <p>default</p> */ public Builder appliedType(String appliedType) { this.appliedType = appliedType; return this; } /** * CertId. */ public Builder certId(String certId) { this.certId = certId; return this; } /** * CertName. */ public Builder certName(String certName) { this.certName = certName; return this; } /** * CommonName. */ public Builder commonName(String commonName) { this.commonName = commonName; return this; } /** * Domain. */ public Builder domain(String domain) { this.domain = domain; return this; } /** * ExpireTime. */ public Builder expireTime(Long expireTime) { this.expireTime = expireTime; return this; } /** * ProductCertId. */ public Builder productCertId(String productCertId) { this.productCertId = productCertId; return this; } /** * ProductCertName. */ public Builder productCertName(String productCertName) { this.productCertName = productCertName; return this; } /** * ReasonCode. */ public Builder reasonCode(String reasonCode) { this.reasonCode = reasonCode; return this; } public SubStatusDetails build() { return new SubStatusDetails(this); } } } /** * * {@link DescribeCloudResourceAccessPortDetailsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessPortDetailsResponseBody</p> */ public static class AccessPortDetails extends TeaModel { @com.aliyun.core.annotation.NameInMap("Certificates") private java.util.List<Certificates> certificates; @com.aliyun.core.annotation.NameInMap("CipherSuite") private Integer cipherSuite; @com.aliyun.core.annotation.NameInMap("CustomCiphers") private java.util.List<String> customCiphers; @com.aliyun.core.annotation.NameInMap("EnableTLSv3") private Boolean enableTLSv3; @com.aliyun.core.annotation.NameInMap("Http2Enabled") private Boolean http2Enabled; @com.aliyun.core.annotation.NameInMap("Keepalive") private Boolean keepalive; @com.aliyun.core.annotation.NameInMap("KeepaliveRequests") private Integer keepaliveRequests; @com.aliyun.core.annotation.NameInMap("KeepaliveTimeout") private Integer keepaliveTimeout; @com.aliyun.core.annotation.NameInMap("LogHeaders") private java.util.List<LogHeaders> logHeaders; @com.aliyun.core.annotation.NameInMap("OwnerUserId") private String ownerUserId; @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("Protocol") private String protocol; @com.aliyun.core.annotation.NameInMap("ReadTimeout") private Integer readTimeout; @com.aliyun.core.annotation.NameInMap("Status") private Integer status; @com.aliyun.core.annotation.NameInMap("SubStatus") private String subStatus; @com.aliyun.core.annotation.NameInMap("SubStatusDetails") private java.util.List<SubStatusDetails> subStatusDetails; @com.aliyun.core.annotation.NameInMap("TLSVersion") private String TLSVersion; @com.aliyun.core.annotation.NameInMap("WriteTimeout") private Integer writeTimeout; @com.aliyun.core.annotation.NameInMap("XffHeaderMode") private Integer xffHeaderMode; @com.aliyun.core.annotation.NameInMap("XffHeaders") private java.util.List<String> xffHeaders; @com.aliyun.core.annotation.NameInMap("XffProto") private Boolean xffProto; private AccessPortDetails(Builder builder) { this.certificates = builder.certificates; this.cipherSuite = builder.cipherSuite; this.customCiphers = builder.customCiphers; this.enableTLSv3 = builder.enableTLSv3; this.http2Enabled = builder.http2Enabled; this.keepalive = builder.keepalive; this.keepaliveRequests = builder.keepaliveRequests; this.keepaliveTimeout = builder.keepaliveTimeout; this.logHeaders = builder.logHeaders; this.ownerUserId = builder.ownerUserId; this.port = builder.port; this.protocol = builder.protocol; this.readTimeout = builder.readTimeout; this.status = builder.status; this.subStatus = builder.subStatus; this.subStatusDetails = builder.subStatusDetails; this.TLSVersion = builder.TLSVersion; this.writeTimeout = builder.writeTimeout; this.xffHeaderMode = builder.xffHeaderMode; this.xffHeaders = builder.xffHeaders; this.xffProto = builder.xffProto; } public static Builder builder() { return new Builder(); } public static AccessPortDetails create() { return builder().build(); } /** * @return certificates */ public java.util.List<Certificates> getCertificates() { return this.certificates; } /** * @return cipherSuite */ public Integer getCipherSuite() { return this.cipherSuite; } /** * @return customCiphers */ public java.util.List<String> getCustomCiphers() { return this.customCiphers; } /** * @return enableTLSv3 */ public Boolean getEnableTLSv3() { return this.enableTLSv3; } /** * @return http2Enabled */ public Boolean getHttp2Enabled() { return this.http2Enabled; } /** * @return keepalive */ public Boolean getKeepalive() { return this.keepalive; } /** * @return keepaliveRequests */ public Integer getKeepaliveRequests() { return this.keepaliveRequests; } /** * @return keepaliveTimeout */ public Integer getKeepaliveTimeout() { return this.keepaliveTimeout; } /** * @return logHeaders */ public java.util.List<LogHeaders> getLogHeaders() { return this.logHeaders; } /** * @return ownerUserId */ public String getOwnerUserId() { return this.ownerUserId; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return readTimeout */ public Integer getReadTimeout() { return this.readTimeout; } /** * @return status */ public Integer getStatus() { return this.status; } /** * @return subStatus */ public String getSubStatus() { return this.subStatus; } /** * @return subStatusDetails */ public java.util.List<SubStatusDetails> getSubStatusDetails() { return this.subStatusDetails; } /** * @return TLSVersion */ public String getTLSVersion() { return this.TLSVersion; } /** * @return writeTimeout */ public Integer getWriteTimeout() { return this.writeTimeout; } /** * @return xffHeaderMode */ public Integer getXffHeaderMode() { return this.xffHeaderMode; } /** * @return xffHeaders */ public java.util.List<String> getXffHeaders() { return this.xffHeaders; } /** * @return xffProto */ public Boolean getXffProto() { return this.xffProto; } public static final class Builder { private java.util.List<Certificates> certificates; private Integer cipherSuite; private java.util.List<String> customCiphers; private Boolean enableTLSv3; private Boolean http2Enabled; private Boolean keepalive; private Integer keepaliveRequests; private Integer keepaliveTimeout; private java.util.List<LogHeaders> logHeaders; private String ownerUserId; private Integer port; private String protocol; private Integer readTimeout; private Integer status; private String subStatus; private java.util.List<SubStatusDetails> subStatusDetails; private String TLSVersion; private Integer writeTimeout; private Integer xffHeaderMode; private java.util.List<String> xffHeaders; private Boolean xffProto; private Builder() { } private Builder(AccessPortDetails model) { this.certificates = model.certificates; this.cipherSuite = model.cipherSuite; this.customCiphers = model.customCiphers; this.enableTLSv3 = model.enableTLSv3; this.http2Enabled = model.http2Enabled; this.keepalive = model.keepalive; this.keepaliveRequests = model.keepaliveRequests; this.keepaliveTimeout = model.keepaliveTimeout; this.logHeaders = model.logHeaders; this.ownerUserId = model.ownerUserId; this.port = model.port; this.protocol = model.protocol; this.readTimeout = model.readTimeout; this.status = model.status; this.subStatus = model.subStatus; this.subStatusDetails = model.subStatusDetails; this.TLSVersion = model.TLSVersion; this.writeTimeout = model.writeTimeout; this.xffHeaderMode = model.xffHeaderMode; this.xffHeaders = model.xffHeaders; this.xffProto = model.xffProto; } /** * <p>The certificates that are associated with the ports of cloud services.</p> */ public Builder certificates(java.util.List<Certificates> certificates) { this.certificates = certificates; return this; } /** * <p>The type of the cipher suites. Valid values:</p> * <ul> * <li><strong>1</strong>: all cipher suites.</li> * <li><strong>2</strong>: strong cipher suites.</li> * <li><strong>99</strong>: custom cipher suites.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder cipherSuite(Integer cipherSuite) { this.cipherSuite = cipherSuite; return this; } /** * <p>The custom cipher suites that you want to add. This parameter is available only if you set <strong>CipherSuite</strong> to <strong>99</strong>.</p> */ public Builder customCiphers(java.util.List<String> customCiphers) { this.customCiphers = customCiphers; return this; } /** * <p>Indicates whether to support TLS 1.3. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTLSv3(Boolean enableTLSv3) { this.enableTLSv3 = enableTLSv3; return this; } /** * <p>Indicates whether to enable HTTP/2. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>True</p> */ public Builder http2Enabled(Boolean http2Enabled) { this.http2Enabled = http2Enabled; return this; } /** * <p>Indicates whether to enable the persistent connection feature. Valid values:</p> * <ul> * <li><strong>true</strong> (default)</li> * <li><strong>false:</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder keepalive(Boolean keepalive) { this.keepalive = keepalive; return this; } /** * <p>The number of reused persistent connections. Valid values: 60 to 1000.</p> * <blockquote> * <p> This parameter specifies the number of requests that reuse persistent connections after you enable the persistent connection feature.</p> * </blockquote> * * <strong>example:</strong> * <p>1000</p> */ public Builder keepaliveRequests(Integer keepaliveRequests) { this.keepaliveRequests = keepaliveRequests; return this; } /** * <p>The timeout period for idle persistent connections. Valid values: 10 to 3600. Default value: 15. Unit: seconds.</p> * <blockquote> * <p> If no new requests are initiated over the idle persistent connection within the specified timeout period, the connection is closed.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder keepaliveTimeout(Integer keepaliveTimeout) { this.keepaliveTimeout = keepaliveTimeout; return this; } /** * <p>The custom header field that you want to use to label requests that are processed by WAF.</p> * <blockquote> * <p> This parameter is returned only when the traffic marking feature is enabled for the domain name.</p> * </blockquote> */ public Builder logHeaders(java.util.List<LogHeaders> logHeaders) { this.logHeaders = logHeaders; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder ownerUserId(String ownerUserId) { this.ownerUserId = ownerUserId; return this; } /** * <p>The port of the cloud service that is added to WAF.</p> * * <strong>example:</strong> * <p>443</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The type of the protocol. Valid values:</p> * <ul> * <li><strong>http</strong></li> * <li><strong>https</strong></li> * </ul> * * <strong>example:</strong> * <p>https</p> */ public Builder protocol(String protocol) { this.protocol = protocol; return this; } /** * <p>The timeout period for read connections. Unit: seconds. Valid values: 1 to 3600.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder readTimeout(Integer readTimeout) { this.readTimeout = readTimeout; return this; } /** * <p>The status of the domain name. Valid values:</p> * <ul> * <li><strong>1</strong>: indicates that the port is available.</li> * <li><strong>2</strong>: indicates that the port is being created.</li> * <li><strong>3</strong>: indicates that the port is being modified.</li> * <li><strong>4</strong>: indicates that the port is being released.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(Integer status) { this.status = status; return this; } /** * SubStatus. */ public Builder subStatus(String subStatus) { this.subStatus = subStatus; return this; } /** * SubStatusDetails. */ public Builder subStatusDetails(java.util.List<SubStatusDetails> subStatusDetails) { this.subStatusDetails = subStatusDetails; return this; } /** * <p>The version of the Transport Layer Security (TLS) protocol. Valid values:</p> * <ul> * <li><strong>tlsv1</strong></li> * <li><strong>tlsv1.1</strong></li> * <li><strong>tlsv1.2</strong></li> * </ul> * * <strong>example:</strong> * <p>tlsv1</p> */ public Builder TLSVersion(String TLSVersion) { this.TLSVersion = TLSVersion; return this; } /** * <p>The timeout period for write connections. Unit: seconds. Valid values: 1 to 3600.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder writeTimeout(Integer writeTimeout) { this.writeTimeout = writeTimeout; return this; } /** * <p>The method that WAF uses to obtain the originating IP address of a client. Valid values:</p> * <ul> * <li><strong>0</strong>: No Layer 7 proxies are deployed in front of WAF.</li> * <li><strong>1</strong>: WAF reads the first value of the X-Forwarded-For (XFF) header field as the originating IP address of the client.</li> * <li><strong>2</strong>: WAF reads the value of a custom header field as the originating IP address of the client.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder xffHeaderMode(Integer xffHeaderMode) { this.xffHeaderMode = xffHeaderMode; return this; } /** * <p>The custom header field that is used to obtain the originating IP address of a client. Specify the value in the [&quot;header1&quot;,&quot;header2&quot;,...] format.</p> * <blockquote> * <p> This parameter is required only if you set <strong>XffHeaderMode</strong> to 2.</p> * </blockquote> */ public Builder xffHeaders(java.util.List<String> xffHeaders) { this.xffHeaders = xffHeaders; return this; } /** * <p>Indicates whether to use the X-Forward-For-Proto header to identify the protocol used by WAF to forward requests to the origin server. Valid values:</p> * <ul> * <li><strong>true</strong> (default)</li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder xffProto(Boolean xffProto) { this.xffProto = xffProto; return this; } public AccessPortDetails build() { return new AccessPortDetails(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessedPortsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessedPortsRequest} extends {@link RequestModel} * * <p>DescribeCloudResourceAccessedPortsRequest</p> */ public class DescribeCloudResourceAccessedPortsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCloudResourceAccessedPortsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceInstanceId = builder.resourceInstanceId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourceAccessedPortsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceInstanceId */ public String getResourceInstanceId() { return this.resourceInstanceId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCloudResourceAccessedPortsRequest, Builder> { private String instanceId; private String regionId; private String resourceInstanceId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCloudResourceAccessedPortsRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceInstanceId = request.resourceInstanceId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf-cn-tl32ast****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: the Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 instance ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1*****jqnnqk5uj2p</p> */ public Builder resourceInstanceId(String resourceInstanceId) { this.putQueryParameter("ResourceInstanceId", resourceInstanceId); this.resourceInstanceId = resourceInstanceId; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aekzwwkpn****5i</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCloudResourceAccessedPortsRequest build() { return new DescribeCloudResourceAccessedPortsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessedPortsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessedPortsResponse} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessedPortsResponse</p> */ public class DescribeCloudResourceAccessedPortsResponse 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 DescribeCloudResourceAccessedPortsResponseBody body; private DescribeCloudResourceAccessedPortsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudResourceAccessedPortsResponse 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 DescribeCloudResourceAccessedPortsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudResourceAccessedPortsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudResourceAccessedPortsResponseBody body); @Override DescribeCloudResourceAccessedPortsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudResourceAccessedPortsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudResourceAccessedPortsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudResourceAccessedPortsResponse 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(DescribeCloudResourceAccessedPortsResponseBody body) { this.body = body; return this; } @Override public DescribeCloudResourceAccessedPortsResponse build() { return new DescribeCloudResourceAccessedPortsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourceAccessedPortsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourceAccessedPortsResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourceAccessedPortsResponseBody</p> */ public class DescribeCloudResourceAccessedPortsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Http") private java.util.List<Integer> http; @com.aliyun.core.annotation.NameInMap("Https") private java.util.List<Integer> https; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeCloudResourceAccessedPortsResponseBody(Builder builder) { this.http = builder.http; this.https = builder.https; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourceAccessedPortsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return http */ public java.util.List<Integer> getHttp() { return this.http; } /** * @return https */ public java.util.List<Integer> getHttps() { return this.https; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Integer> http; private java.util.List<Integer> https; private String requestId; private Builder() { } private Builder(DescribeCloudResourceAccessedPortsResponseBody model) { this.http = model.http; this.https = model.https; this.requestId = model.requestId; } /** * <p>The HTTP ports.</p> */ public Builder http(java.util.List<Integer> http) { this.http = http; return this; } /** * <p>The HTTPS ports.</p> */ public Builder https(java.util.List<Integer> https) { this.https = https; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C1823E96-EF4B-5BD2-9E02-1D18****3ED8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeCloudResourceAccessedPortsResponseBody build() { return new DescribeCloudResourceAccessedPortsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourcesRequest} extends {@link RequestModel} * * <p>DescribeCloudResourcesRequest</p> */ public class DescribeCloudResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerUserId") private String ownerUserId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 10) private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceDomain") private String resourceDomain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceFunction") private String resourceFunction; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceInstanceId") private String resourceInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceInstanceName") private String resourceInstanceName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceName") @Deprecated private String resourceName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceProduct") private String resourceProduct; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceRouteName") private String resourceRouteName; private DescribeCloudResourcesRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.ownerUserId = builder.ownerUserId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceDomain = builder.resourceDomain; this.resourceFunction = builder.resourceFunction; this.resourceInstanceId = builder.resourceInstanceId; this.resourceInstanceName = builder.resourceInstanceName; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.resourceName = builder.resourceName; this.resourceProduct = builder.resourceProduct; this.resourceRegionId = builder.resourceRegionId; this.resourceRouteName = builder.resourceRouteName; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return ownerUserId */ public String getOwnerUserId() { return this.ownerUserId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceDomain */ public String getResourceDomain() { return this.resourceDomain; } /** * @return resourceFunction */ public String getResourceFunction() { return this.resourceFunction; } /** * @return resourceInstanceId */ public String getResourceInstanceId() { return this.resourceInstanceId; } /** * @return resourceInstanceName */ public String getResourceInstanceName() { return this.resourceInstanceName; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceProduct */ public String getResourceProduct() { return this.resourceProduct; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceRouteName */ public String getResourceRouteName() { return this.resourceRouteName; } public static final class Builder extends Request.Builder<DescribeCloudResourcesRequest, Builder> { private String instanceId; private String ownerUserId; private Long pageNumber; private Long pageSize; private String regionId; private String resourceDomain; private String resourceFunction; private String resourceInstanceId; private String resourceInstanceName; private String resourceManagerResourceGroupId; private String resourceName; private String resourceProduct; private String resourceRegionId; private String resourceRouteName; private Builder() { super(); } private Builder(DescribeCloudResourcesRequest request) { super(request); this.instanceId = request.instanceId; this.ownerUserId = request.ownerUserId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceDomain = request.resourceDomain; this.resourceFunction = request.resourceFunction; this.resourceInstanceId = request.resourceInstanceId; this.resourceInstanceName = request.resourceInstanceName; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.resourceName = request.resourceName; this.resourceProduct = request.resourceProduct; this.resourceRegionId = request.resourceRegionId; this.resourceRouteName = request.resourceRouteName; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-lbj****cn0c</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>11769793******</p> */ public Builder ownerUserId(String ownerUserId) { this.putQueryParameter("OwnerUserId", ownerUserId); this.ownerUserId = ownerUserId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 domain name. You can use this parameter if you set ResourceProduct to fc or sae.</p> * * <strong>example:</strong> * <p>fc-domain-test</p> */ public Builder resourceDomain(String resourceDomain) { this.putQueryParameter("ResourceDomain", resourceDomain); this.resourceDomain = resourceDomain; return this; } /** * <p>The function name. You can use this parameter if you set ResourceProduct to fc.</p> * * <strong>example:</strong> * <p>fc-test</p> */ public Builder resourceFunction(String resourceFunction) { this.putQueryParameter("ResourceFunction", resourceFunction); this.resourceFunction = resourceFunction; return this; } /** * <p>The ID of the resource.</p> * * <strong>example:</strong> * <p>alb-43glijk0fr****gths</p> */ public Builder resourceInstanceId(String resourceInstanceId) { this.putQueryParameter("ResourceInstanceId", resourceInstanceId); this.resourceInstanceId = resourceInstanceId; return this; } /** * <p>The name of the instance that is added to WAF.</p> * * <strong>example:</strong> * <p>test-name</p> */ public Builder resourceInstanceName(String resourceInstanceName) { this.putQueryParameter("ResourceInstanceName", resourceInstanceName); this.resourceInstanceName = resourceInstanceName; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm4gh****wela</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** * <p>The name of the resource.</p> * * <strong>example:</strong> * <p>alb-name</p> */ public Builder resourceName(String resourceName) { this.putQueryParameter("ResourceName", resourceName); this.resourceName = resourceName; return this; } /** * <p>The cloud service to which the resource belongs. If you do not specify this parameter, the system automatically returns the Application Load Balancer (ALB), Microservices Engine (MSE), Function Compute, and Serverless App Engine (SAE) resources that are added to WAF. Valid values:</p> * <ul> * <li><strong>alb</strong>: ALB.</li> * <li><strong>mse</strong>: MSE.</li> * <li><strong>fc</strong>: Function Compute.</li> * <li><strong>sae</strong>: SAE.</li> * <li><strong>ecs</strong>: Elastic Compute Service (ECS).</li> * <li><strong>clb4</strong>: Layer 4 Classic Load Balancer (CLB).</li> * <li><strong>clb7</strong>: Layer 7 CLB.</li> * <li><strong>nlb</strong>: Network Load Balancer (NLB).</li> * </ul> * <blockquote> * <p> Different cloud services are available in different regions. The specified cloud service must be available in the specified region.</p> * </blockquote> * * <strong>example:</strong> * <p>alb</p> */ public Builder resourceProduct(String resourceProduct) { this.putQueryParameter("ResourceProduct", resourceProduct); this.resourceProduct = resourceProduct; return this; } /** * <p>The region ID of the resource. For information about region IDs, see the following table.</p> * <blockquote> * <p> Different cloud services are available in different regions. The specified cloud service must be available in the specified region.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder resourceRegionId(String resourceRegionId) { this.putQueryParameter("ResourceRegionId", resourceRegionId); this.resourceRegionId = resourceRegionId; return this; } /** * <p>The route name. You can use this parameter if you set ResourceProduct to mse.</p> * * <strong>example:</strong> * <p>mse-default-traffic</p> */ public Builder resourceRouteName(String resourceRouteName) { this.putQueryParameter("ResourceRouteName", resourceRouteName); this.resourceRouteName = resourceRouteName; return this; } @Override public DescribeCloudResourcesRequest build() { return new DescribeCloudResourcesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourcesResponse} extends {@link TeaModel} * * <p>DescribeCloudResourcesResponse</p> */ public class DescribeCloudResourcesResponse 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 DescribeCloudResourcesResponseBody body; private DescribeCloudResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudResourcesResponse 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 DescribeCloudResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudResourcesResponseBody body); @Override DescribeCloudResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudResourcesResponse 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(DescribeCloudResourcesResponseBody body) { this.body = body; return this; } @Override public DescribeCloudResourcesResponse build() { return new DescribeCloudResourcesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCloudResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourcesResponseBody</p> */ public class DescribeCloudResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CloudResources") private java.util.List<CloudResources> cloudResources; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeCloudResourcesResponseBody(Builder builder) { this.cloudResources = builder.cloudResources; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCloudResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cloudResources */ public java.util.List<CloudResources> getCloudResources() { return this.cloudResources; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<CloudResources> cloudResources; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeCloudResourcesResponseBody model) { this.cloudResources = model.cloudResources; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The cloud service resources that are added to WAF.</p> */ public Builder cloudResources(java.util.List<CloudResources> cloudResources) { this.cloudResources = cloudResources; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C327F81A-CCE2-5B21-817C-F93E29C5****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of cloud service resources returned.</p> * * <strong>example:</strong> * <p>121</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeCloudResourcesResponseBody build() { return new DescribeCloudResourcesResponseBody(this); } } /** * * {@link DescribeCloudResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudResourcesResponseBody</p> */ public static class CloudResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("HttpPortCount") private Integer httpPortCount; @com.aliyun.core.annotation.NameInMap("HttpsPortCount") private Integer httpsPortCount; @com.aliyun.core.annotation.NameInMap("OwnerUserId") private String ownerUserId; @com.aliyun.core.annotation.NameInMap("ResourceDomain") private String resourceDomain; @com.aliyun.core.annotation.NameInMap("ResourceFunction") private String resourceFunction; @com.aliyun.core.annotation.NameInMap("ResourceInstance") @Deprecated private String resourceInstance; @com.aliyun.core.annotation.NameInMap("ResourceInstanceId") private String resourceInstanceId; @com.aliyun.core.annotation.NameInMap("ResourceInstanceIp") private String resourceInstanceIp; @com.aliyun.core.annotation.NameInMap("ResourceInstanceName") private String resourceInstanceName; @com.aliyun.core.annotation.NameInMap("ResourceName") @Deprecated private String resourceName; @com.aliyun.core.annotation.NameInMap("ResourceProduct") private String resourceProduct; @com.aliyun.core.annotation.NameInMap("ResourceRegionId") private String resourceRegionId; @com.aliyun.core.annotation.NameInMap("ResourceRouteName") private String resourceRouteName; @com.aliyun.core.annotation.NameInMap("ResourceService") private String resourceService; private CloudResources(Builder builder) { this.httpPortCount = builder.httpPortCount; this.httpsPortCount = builder.httpsPortCount; this.ownerUserId = builder.ownerUserId; this.resourceDomain = builder.resourceDomain; this.resourceFunction = builder.resourceFunction; this.resourceInstance = builder.resourceInstance; this.resourceInstanceId = builder.resourceInstanceId; this.resourceInstanceIp = builder.resourceInstanceIp; this.resourceInstanceName = builder.resourceInstanceName; this.resourceName = builder.resourceName; this.resourceProduct = builder.resourceProduct; this.resourceRegionId = builder.resourceRegionId; this.resourceRouteName = builder.resourceRouteName; this.resourceService = builder.resourceService; } public static Builder builder() { return new Builder(); } public static CloudResources create() { return builder().build(); } /** * @return httpPortCount */ public Integer getHttpPortCount() { return this.httpPortCount; } /** * @return httpsPortCount */ public Integer getHttpsPortCount() { return this.httpsPortCount; } /** * @return ownerUserId */ public String getOwnerUserId() { return this.ownerUserId; } /** * @return resourceDomain */ public String getResourceDomain() { return this.resourceDomain; } /** * @return resourceFunction */ public String getResourceFunction() { return this.resourceFunction; } /** * @return resourceInstance */ public String getResourceInstance() { return this.resourceInstance; } /** * @return resourceInstanceId */ public String getResourceInstanceId() { return this.resourceInstanceId; } /** * @return resourceInstanceIp */ public String getResourceInstanceIp() { return this.resourceInstanceIp; } /** * @return resourceInstanceName */ public String getResourceInstanceName() { return this.resourceInstanceName; } /** * @return resourceName */ public String getResourceName() { return this.resourceName; } /** * @return resourceProduct */ public String getResourceProduct() { return this.resourceProduct; } /** * @return resourceRegionId */ public String getResourceRegionId() { return this.resourceRegionId; } /** * @return resourceRouteName */ public String getResourceRouteName() { return this.resourceRouteName; } /** * @return resourceService */ public String getResourceService() { return this.resourceService; } public static final class Builder { private Integer httpPortCount; private Integer httpsPortCount; private String ownerUserId; private String resourceDomain; private String resourceFunction; private String resourceInstance; private String resourceInstanceId; private String resourceInstanceIp; private String resourceInstanceName; private String resourceName; private String resourceProduct; private String resourceRegionId; private String resourceRouteName; private String resourceService; private Builder() { } private Builder(CloudResources model) { this.httpPortCount = model.httpPortCount; this.httpsPortCount = model.httpsPortCount; this.ownerUserId = model.ownerUserId; this.resourceDomain = model.resourceDomain; this.resourceFunction = model.resourceFunction; this.resourceInstance = model.resourceInstance; this.resourceInstanceId = model.resourceInstanceId; this.resourceInstanceIp = model.resourceInstanceIp; this.resourceInstanceName = model.resourceInstanceName; this.resourceName = model.resourceName; this.resourceProduct = model.resourceProduct; this.resourceRegionId = model.resourceRegionId; this.resourceRouteName = model.resourceRouteName; this.resourceService = model.resourceService; } /** * <p>The number of the HTTP ports that are added to WAF.</p> * <blockquote> * <p> This parameter is returned only if the cloud service is ECS or CLB.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder httpPortCount(Integer httpPortCount) { this.httpPortCount = httpPortCount; return this; } /** * <p>The number of the HTTPS ports that are added to WAF.</p> * <blockquote> * <p> This parameter is returned only if the cloud service is ECS or CLB.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder httpsPortCount(Integer httpsPortCount) { this.httpsPortCount = httpsPortCount; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>11769793******</p> */ public Builder ownerUserId(String ownerUserId) { this.ownerUserId = ownerUserId; return this; } /** * <p>The domain name. This parameter has a value only if the value of ResourceProduct is fc or sae.</p> * * <strong>example:</strong> * <p>test-resource-domain</p> */ public Builder resourceDomain(String resourceDomain) { this.resourceDomain = resourceDomain; return this; } /** * <p>The function name. This parameter has a value only if the value of ResourceProduct is fc.</p> * * <strong>example:</strong> * <p>test-resource-function</p> */ public Builder resourceFunction(String resourceFunction) { this.resourceFunction = resourceFunction; return this; } /** * <p>The ID of the resource.</p> * * <strong>example:</strong> * <p>alb-ffff****</p> */ public Builder resourceInstance(String resourceInstance) { this.resourceInstance = resourceInstance; return this; } /** * <p>The ID of the instance that is added to WAF.</p> * * <strong>example:</strong> * <p>lb-uf60ub45fr9b***</p> */ public Builder resourceInstanceId(String resourceInstanceId) { this.resourceInstanceId = resourceInstanceId; return this; } /** * <p>The IP address of the instance that is added to WAF.</p> * * <strong>example:</strong> * <p>1.1.1.1</p> */ public Builder resourceInstanceIp(String resourceInstanceIp) { this.resourceInstanceIp = resourceInstanceIp; return this; } /** * <p>The name of the instance that is added to WAF.</p> * * <strong>example:</strong> * <p>test-name</p> */ public Builder resourceInstanceName(String resourceInstanceName) { this.resourceInstanceName = resourceInstanceName; return this; } /** * <p>The name of the resource.</p> * * <strong>example:</strong> * <p>test-resource-name</p> */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; return this; } /** * <p>The cloud service to which the resource belongs. Valid values:</p> * <ul> * <li><strong>alb</strong>: ALB.</li> * <li><strong>mse</strong>: MSE.</li> * <li><strong>fc</strong>: Function Compute.</li> * <li><strong>sae</strong>: SAE.</li> * <li><strong>ecs</strong>: ECS.</li> * <li><strong>clb4</strong>: Layer 4 CLB.</li> * <li><strong>clb7</strong>: Layer 7 CLB.</li> * </ul> * * <strong>example:</strong> * <p>alb</p> */ public Builder resourceProduct(String resourceProduct) { this.resourceProduct = resourceProduct; return this; } /** * <p>The region ID of the resource.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder resourceRegionId(String resourceRegionId) { this.resourceRegionId = resourceRegionId; return this; } /** * <p>The route name. This parameter has a value only if the value of ResourceProduct is mse.</p> * * <strong>example:</strong> * <p>test-route-name</p> */ public Builder resourceRouteName(String resourceRouteName) { this.resourceRouteName = resourceRouteName; return this; } /** * <p>The service name. This parameter has a value only if the value of ResourceProduct is fc.</p> * * <strong>example:</strong> * <p>test-resource-service</p> */ public Builder resourceService(String resourceService) { this.resourceService = resourceService; return this; } public CloudResources build() { return new CloudResources(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCnameCountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCnameCountRequest} extends {@link RequestModel} * * <p>DescribeCnameCountRequest</p> */ public class DescribeCnameCountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCnameCountRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCnameCountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCnameCountRequest, Builder> { private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCnameCountRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the WAF instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-***</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: the Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</li> * </ul> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>阿里云资源组ID。</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCnameCountRequest build() { return new DescribeCnameCountRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCnameCountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCnameCountResponse} extends {@link TeaModel} * * <p>DescribeCnameCountResponse</p> */ public class DescribeCnameCountResponse 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 DescribeCnameCountResponseBody body; private DescribeCnameCountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCnameCountResponse 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 DescribeCnameCountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCnameCountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCnameCountResponseBody body); @Override DescribeCnameCountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCnameCountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCnameCountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCnameCountResponse 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(DescribeCnameCountResponseBody body) { this.body = body; return this; } @Override public DescribeCnameCountResponse build() { return new DescribeCnameCountResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCnameCountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCnameCountResponseBody} extends {@link TeaModel} * * <p>DescribeCnameCountResponseBody</p> */ public class DescribeCnameCountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CnameCount") private CnameCount cnameCount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeCnameCountResponseBody(Builder builder) { this.cnameCount = builder.cnameCount; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeCnameCountResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cnameCount */ public CnameCount getCnameCount() { return this.cnameCount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private CnameCount cnameCount; private String requestId; private Builder() { } private Builder(DescribeCnameCountResponseBody model) { this.cnameCount = model.cnameCount; this.requestId = model.requestId; } /** * <p>The information about the number of domain names that are added to WAF in CNAME record mode and hybrid cloud reverse proxy mode.</p> */ public Builder cnameCount(CnameCount cnameCount) { this.cnameCount = cnameCount; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F35F45B0-5D6B-4238-BE02-A62D****E840</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeCnameCountResponseBody build() { return new DescribeCnameCountResponseBody(this); } } /** * * {@link DescribeCnameCountResponseBody} extends {@link TeaModel} * * <p>DescribeCnameCountResponseBody</p> */ public static class CnameCount extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cname") private Long cname; @com.aliyun.core.annotation.NameInMap("HybridCloudCname") private Long hybridCloudCname; @com.aliyun.core.annotation.NameInMap("Total") private Long total; private CnameCount(Builder builder) { this.cname = builder.cname; this.hybridCloudCname = builder.hybridCloudCname; this.total = builder.total; } public static Builder builder() { return new Builder(); } public static CnameCount create() { return builder().build(); } /** * @return cname */ public Long getCname() { return this.cname; } /** * @return hybridCloudCname */ public Long getHybridCloudCname() { return this.hybridCloudCname; } /** * @return total */ public Long getTotal() { return this.total; } public static final class Builder { private Long cname; private Long hybridCloudCname; private Long total; private Builder() { } private Builder(CnameCount model) { this.cname = model.cname; this.hybridCloudCname = model.hybridCloudCname; this.total = model.total; } /** * <p>The number of domain names that are added to WAF in CNAME record mode.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder cname(Long cname) { this.cname = cname; return this; } /** * <p>The number of domain names that are added to WAF in hybrid cloud reverse proxy mode.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hybridCloudCname(Long hybridCloudCname) { this.hybridCloudCname = hybridCloudCname; return this; } /** * <p>The total number of domain names that are added to WAF in CNAME record mode and hybrid cloud reverse proxy mode.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder total(Long total) { this.total = total; return this; } public CnameCount build() { return new CnameCount(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCommonLogFieldsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommonLogFieldsRequest} extends {@link RequestModel} * * <p>DescribeCommonLogFieldsRequest</p> */ public class DescribeCommonLogFieldsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsRequired") private Boolean isRequired; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogKeyList") private java.util.List<String> logKeyList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCommonLogFieldsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.isDefault = builder.isDefault; this.isRequired = builder.isRequired; this.logKeyList = builder.logKeyList; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCommonLogFieldsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return isRequired */ public Boolean getIsRequired() { return this.isRequired; } /** * @return logKeyList */ public java.util.List<String> getLogKeyList() { return this.logKeyList; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCommonLogFieldsRequest, Builder> { private String instanceId; private Boolean isDefault; private Boolean isRequired; private java.util.List<String> logKeyList; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCommonLogFieldsRequest request) { super(request); this.instanceId = request.instanceId; this.isDefault = request.isDefault; this.isRequired = request.isRequired; this.logKeyList = request.logKeyList; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-l*****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * IsDefault. */ public Builder isDefault(Boolean isDefault) { this.putQueryParameter("IsDefault", isDefault); this.isDefault = isDefault; return this; } /** * IsRequired. */ public Builder isRequired(Boolean isRequired) { this.putQueryParameter("IsRequired", isRequired); this.isRequired = isRequired; return this; } /** * LogKeyList. */ public Builder logKeyList(java.util.List<String> logKeyList) { String logKeyListShrink = shrink(logKeyList, "LogKeyList", "json"); this.putQueryParameter("LogKeyList", logKeyListShrink); this.logKeyList = logKeyList; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceManagerResourceGroupId. */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCommonLogFieldsRequest build() { return new DescribeCommonLogFieldsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCommonLogFieldsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommonLogFieldsResponse} extends {@link TeaModel} * * <p>DescribeCommonLogFieldsResponse</p> */ public class DescribeCommonLogFieldsResponse 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 DescribeCommonLogFieldsResponseBody body; private DescribeCommonLogFieldsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCommonLogFieldsResponse 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 DescribeCommonLogFieldsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCommonLogFieldsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCommonLogFieldsResponseBody body); @Override DescribeCommonLogFieldsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCommonLogFieldsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCommonLogFieldsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCommonLogFieldsResponse 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(DescribeCommonLogFieldsResponseBody body) { this.body = body; return this; } @Override public DescribeCommonLogFieldsResponse build() { return new DescribeCommonLogFieldsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCommonLogFieldsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommonLogFieldsResponseBody} extends {@link TeaModel} * * <p>DescribeCommonLogFieldsResponseBody</p> */ public class DescribeCommonLogFieldsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogFieldList") private java.util.List<LogFieldList> logFieldList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeCommonLogFieldsResponseBody(Builder builder) { this.logFieldList = builder.logFieldList; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCommonLogFieldsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return logFieldList */ public java.util.List<LogFieldList> getLogFieldList() { return this.logFieldList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<LogFieldList> logFieldList; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeCommonLogFieldsResponseBody model) { this.logFieldList = model.logFieldList; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * LogFieldList. */ public Builder logFieldList(java.util.List<LogFieldList> logFieldList) { this.logFieldList = logFieldList; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * TotalCount. */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeCommonLogFieldsResponseBody build() { return new DescribeCommonLogFieldsResponseBody(this); } } /** * * {@link DescribeCommonLogFieldsResponseBody} extends {@link TeaModel} * * <p>DescribeCommonLogFieldsResponseBody</p> */ public static class LogFieldList extends TeaModel { @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("IsRequired") private Boolean isRequired; @com.aliyun.core.annotation.NameInMap("LogKey") private String logKey; @com.aliyun.core.annotation.NameInMap("Status") private Boolean status; private LogFieldList(Builder builder) { this.isDefault = builder.isDefault; this.isRequired = builder.isRequired; this.logKey = builder.logKey; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static LogFieldList create() { return builder().build(); } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return isRequired */ public Boolean getIsRequired() { return this.isRequired; } /** * @return logKey */ public String getLogKey() { return this.logKey; } /** * @return status */ public Boolean getStatus() { return this.status; } public static final class Builder { private Boolean isDefault; private Boolean isRequired; private String logKey; private Boolean status; private Builder() { } private Builder(LogFieldList model) { this.isDefault = model.isDefault; this.isRequired = model.isRequired; this.logKey = model.logKey; this.status = model.status; } /** * IsDefault. */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * IsRequired. */ public Builder isRequired(Boolean isRequired) { this.isRequired = isRequired; return this; } /** * LogKey. */ public Builder logKey(String logKey) { this.logKey = logKey; return this; } /** * Status. */ public Builder status(Boolean status) { this.status = status; return this; } public LogFieldList build() { return new LogFieldList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCustomBaseRuleCompileResultRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCustomBaseRuleCompileResultRequest} extends {@link RequestModel} * * <p>DescribeCustomBaseRuleCompileResultRequest</p> */ public class DescribeCustomBaseRuleCompileResultRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeCustomBaseRuleCompileResultRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeCustomBaseRuleCompileResultRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeCustomBaseRuleCompileResultRequest, Builder> { private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeCustomBaseRuleCompileResultRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_cdnsdf3****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceManagerResourceGroupId. */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeCustomBaseRuleCompileResultRequest build() { return new DescribeCustomBaseRuleCompileResultRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCustomBaseRuleCompileResultResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCustomBaseRuleCompileResultResponse} extends {@link TeaModel} * * <p>DescribeCustomBaseRuleCompileResultResponse</p> */ public class DescribeCustomBaseRuleCompileResultResponse 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 DescribeCustomBaseRuleCompileResultResponseBody body; private DescribeCustomBaseRuleCompileResultResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCustomBaseRuleCompileResultResponse 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 DescribeCustomBaseRuleCompileResultResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCustomBaseRuleCompileResultResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCustomBaseRuleCompileResultResponseBody body); @Override DescribeCustomBaseRuleCompileResultResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCustomBaseRuleCompileResultResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCustomBaseRuleCompileResultResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCustomBaseRuleCompileResultResponse 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(DescribeCustomBaseRuleCompileResultResponseBody body) { this.body = body; return this; } @Override public DescribeCustomBaseRuleCompileResultResponse build() { return new DescribeCustomBaseRuleCompileResultResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeCustomBaseRuleCompileResultResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCustomBaseRuleCompileResultResponseBody} extends {@link TeaModel} * * <p>DescribeCustomBaseRuleCompileResultResponseBody</p> */ public class DescribeCustomBaseRuleCompileResultResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Result") private String result; private DescribeCustomBaseRuleCompileResultResponseBody(Builder builder) { this.requestId = builder.requestId; this.result = builder.result; } public static Builder builder() { return new Builder(); } public static DescribeCustomBaseRuleCompileResultResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return result */ public String getResult() { return this.result; } public static final class Builder { private String requestId; private String result; private Builder() { } private Builder(DescribeCustomBaseRuleCompileResultResponseBody model) { this.requestId = model.requestId; this.result = model.result; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Result. */ public Builder result(String result) { this.result = result; return this; } public DescribeCustomBaseRuleCompileResultResponseBody build() { return new DescribeCustomBaseRuleCompileResultResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDDoSStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDDoSStatusRequest} extends {@link RequestModel} * * <p>DescribeDDoSStatusRequest</p> */ public class DescribeDDoSStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDDoSStatusRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDDoSStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDDoSStatusRequest, Builder> { private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDDoSStatusRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the WAF instance that you want to query.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/140857.html">DescribeInstanceInfo</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-***</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDDoSStatusRequest build() { return new DescribeDDoSStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDDoSStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDDoSStatusResponse} extends {@link TeaModel} * * <p>DescribeDDoSStatusResponse</p> */ public class DescribeDDoSStatusResponse 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 DescribeDDoSStatusResponseBody body; private DescribeDDoSStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDDoSStatusResponse 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 DescribeDDoSStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDDoSStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDDoSStatusResponseBody body); @Override DescribeDDoSStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDDoSStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDDoSStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDDoSStatusResponse 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(DescribeDDoSStatusResponseBody body) { this.body = body; return this; } @Override public DescribeDDoSStatusResponse build() { return new DescribeDDoSStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDDoSStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDDoSStatusResponseBody} extends {@link TeaModel} * * <p>DescribeDDoSStatusResponseBody</p> */ public class DescribeDDoSStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DDoSStatus") private java.util.List<DDoSStatus> dDoSStatus; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeDDoSStatusResponseBody(Builder builder) { this.dDoSStatus = builder.dDoSStatus; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeDDoSStatusResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return dDoSStatus */ public java.util.List<DDoSStatus> getDDoSStatus() { return this.dDoSStatus; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<DDoSStatus> dDoSStatus; private String requestId; private Builder() { } private Builder(DescribeDDoSStatusResponseBody model) { this.dDoSStatus = model.dDoSStatus; this.requestId = model.requestId; } /** * <p>Indicates whether DDoS attacks occur on specific domain names.</p> */ public Builder dDoSStatus(java.util.List<DDoSStatus> dDoSStatus) { this.dDoSStatus = dDoSStatus; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D7861F61-5B61-46CE-A47C-***</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeDDoSStatusResponseBody build() { return new DescribeDDoSStatusResponseBody(this); } } /** * * {@link DescribeDDoSStatusResponseBody} extends {@link TeaModel} * * <p>DescribeDDoSStatusResponseBody</p> */ public static class DDoSStatus extends TeaModel { @com.aliyun.core.annotation.NameInMap("EventType") private String eventType; @com.aliyun.core.annotation.NameInMap("Status") private String status; private DDoSStatus(Builder builder) { this.eventType = builder.eventType; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DDoSStatus create() { return builder().build(); } /** * @return eventType */ public String getEventType() { return this.eventType; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String eventType; private String status; private Builder() { } private Builder(DDoSStatus model) { this.eventType = model.eventType; this.status = model.status; } /** * <p>The type of events that are triggered by DDoS attacks. Valid values:</p> * <ul> * <li>defense: traffic scrubbing events.</li> * <li>blackhole: blackhole filtering events.</li> * </ul> * * <strong>example:</strong> * <p>blackhole</p> */ public Builder eventType(String eventType) { this.eventType = eventType; return this; } /** * <p>Indicates whether DDoS attacks occur on specific domain names. Valid value:</p> * <ul> * <li><strong>doing</strong>: DDoS attacks occur on specific domain names.</li> * </ul> * * <strong>example:</strong> * <p>doing</p> */ public Builder status(String status) { this.status = status; return this; } public DDoSStatus build() { return new DDoSStatus(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefaultHttpsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefaultHttpsRequest} extends {@link RequestModel} * * <p>DescribeDefaultHttpsRequest</p> */ public class DescribeDefaultHttpsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefaultHttpsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefaultHttpsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefaultHttpsRequest, Builder> { private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefaultHttpsRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf-cn-7pp26f1****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: the Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefaultHttpsRequest build() { return new DescribeDefaultHttpsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefaultHttpsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefaultHttpsResponse} extends {@link TeaModel} * * <p>DescribeDefaultHttpsResponse</p> */ public class DescribeDefaultHttpsResponse 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 DescribeDefaultHttpsResponseBody body; private DescribeDefaultHttpsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDefaultHttpsResponse 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 DescribeDefaultHttpsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDefaultHttpsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDefaultHttpsResponseBody body); @Override DescribeDefaultHttpsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDefaultHttpsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDefaultHttpsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDefaultHttpsResponse 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(DescribeDefaultHttpsResponseBody body) { this.body = body; return this; } @Override public DescribeDefaultHttpsResponse build() { return new DescribeDefaultHttpsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefaultHttpsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefaultHttpsResponseBody} extends {@link TeaModel} * * <p>DescribeDefaultHttpsResponseBody</p> */ public class DescribeDefaultHttpsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DefaultHttps") private DefaultHttps defaultHttps; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeDefaultHttpsResponseBody(Builder builder) { this.defaultHttps = builder.defaultHttps; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeDefaultHttpsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return defaultHttps */ public DefaultHttps getDefaultHttps() { return this.defaultHttps; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private DefaultHttps defaultHttps; private String requestId; private Builder() { } private Builder(DescribeDefaultHttpsResponseBody model) { this.defaultHttps = model.defaultHttps; this.requestId = model.requestId; } /** * <p>The default SSL and TLS settings.</p> */ public Builder defaultHttps(DefaultHttps defaultHttps) { this.defaultHttps = defaultHttps; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F35F45B0-5D6B-4238-BE02-A62D****E840</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeDefaultHttpsResponseBody build() { return new DescribeDefaultHttpsResponseBody(this); } } /** * * {@link DescribeDefaultHttpsResponseBody} extends {@link TeaModel} * * <p>DescribeDefaultHttpsResponseBody</p> */ public static class DefaultHttps extends TeaModel { @com.aliyun.core.annotation.NameInMap("CertId") private String certId; @com.aliyun.core.annotation.NameInMap("CipherSuite") private String cipherSuite; @com.aliyun.core.annotation.NameInMap("CustomCiphers") private String customCiphers; @com.aliyun.core.annotation.NameInMap("EnableTLSv3") private Boolean enableTLSv3; @com.aliyun.core.annotation.NameInMap("TLSVersion") private String TLSVersion; private DefaultHttps(Builder builder) { this.certId = builder.certId; this.cipherSuite = builder.cipherSuite; this.customCiphers = builder.customCiphers; this.enableTLSv3 = builder.enableTLSv3; this.TLSVersion = builder.TLSVersion; } public static Builder builder() { return new Builder(); } public static DefaultHttps create() { return builder().build(); } /** * @return certId */ public String getCertId() { return this.certId; } /** * @return cipherSuite */ public String getCipherSuite() { return this.cipherSuite; } /** * @return customCiphers */ public String getCustomCiphers() { return this.customCiphers; } /** * @return enableTLSv3 */ public Boolean getEnableTLSv3() { return this.enableTLSv3; } /** * @return TLSVersion */ public String getTLSVersion() { return this.TLSVersion; } public static final class Builder { private String certId; private String cipherSuite; private String customCiphers; private Boolean enableTLSv3; private String TLSVersion; private Builder() { } private Builder(DefaultHttps model) { this.certId = model.certId; this.cipherSuite = model.cipherSuite; this.customCiphers = model.customCiphers; this.enableTLSv3 = model.enableTLSv3; this.TLSVersion = model.TLSVersion; } /** * <p>The certificate ID.</p> * * <strong>example:</strong> * <p>123-cn-hangzhou</p> */ public Builder certId(String certId) { this.certId = certId; return this; } /** * <p>The type of the cipher suites. Valid values:</p> * <ul> * <li><strong>1</strong>: all cipher suites.</li> * <li><strong>2</strong>: strong cipher suites.</li> * <li><strong>99</strong>: custom cipher suites.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder cipherSuite(String cipherSuite) { this.cipherSuite = cipherSuite; return this; } /** * <p>The custom cipher suite.</p> * * <strong>example:</strong> * <p>ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384</p> */ public Builder customCiphers(String customCiphers) { this.customCiphers = customCiphers; return this; } /** * <p>Indicates whether TLS 1.3 is supported. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTLSv3(Boolean enableTLSv3) { this.enableTLSv3 = enableTLSv3; return this; } /** * <p>The version of the TLS protocol. Valid values:</p> * <ul> * <li><strong>tlsv1</strong></li> * <li><strong>tlsv1.1</strong></li> * <li><strong>tlsv1.2</strong></li> * </ul> * * <strong>example:</strong> * <p>tlsv1</p> */ public Builder TLSVersion(String TLSVersion) { this.TLSVersion = TLSVersion; return this; } public DefaultHttps build() { return new DefaultHttps(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseGroupValidResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseGroupValidResourcesRequest} extends {@link RequestModel} * * <p>DescribeDefenseGroupValidResourcesRequest</p> */ public class DescribeDefenseGroupValidResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupName") private String groupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Resource") private String resource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefenseGroupValidResourcesRequest(Builder builder) { super(builder); this.groupName = builder.groupName; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resource = builder.resource; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseGroupValidResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resource */ public String getResource() { return this.resource; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefenseGroupValidResourcesRequest, Builder> { private String groupName; private String instanceId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resource; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefenseGroupValidResourcesRequest request) { super(request); this.groupName = request.groupName; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resource = request.resource; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * GroupName. */ public Builder groupName(String groupName) { this.putQueryParameter("GroupName", groupName); this.groupName = groupName; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-zxu****jc01</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * PageNumber. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * PageSize. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * Resource. */ public Builder resource(String resource) { this.putQueryParameter("Resource", resource); this.resource = resource; return this; } /** * ResourceManagerResourceGroupId. */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefenseGroupValidResourcesRequest build() { return new DescribeDefenseGroupValidResourcesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseGroupValidResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseGroupValidResourcesResponse} extends {@link TeaModel} * * <p>DescribeDefenseGroupValidResourcesResponse</p> */ public class DescribeDefenseGroupValidResourcesResponse 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 DescribeDefenseGroupValidResourcesResponseBody body; private DescribeDefenseGroupValidResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDefenseGroupValidResourcesResponse 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 DescribeDefenseGroupValidResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDefenseGroupValidResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDefenseGroupValidResourcesResponseBody body); @Override DescribeDefenseGroupValidResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDefenseGroupValidResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDefenseGroupValidResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDefenseGroupValidResourcesResponse 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(DescribeDefenseGroupValidResourcesResponseBody body) { this.body = body; return this; } @Override public DescribeDefenseGroupValidResourcesResponse build() { return new DescribeDefenseGroupValidResourcesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseGroupValidResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseGroupValidResourcesResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseGroupValidResourcesResponseBody</p> */ public class DescribeDefenseGroupValidResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Resources") private java.util.List<String> resources; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeDefenseGroupValidResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; this.resources = builder.resources; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDefenseGroupValidResourcesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resources */ public java.util.List<String> getResources() { return this.resources; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private String requestId; private java.util.List<String> resources; private Long totalCount; private Builder() { } private Builder(DescribeDefenseGroupValidResourcesResponseBody model) { this.requestId = model.requestId; this.resources = model.resources; this.totalCount = model.totalCount; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Resources. */ public Builder resources(java.util.List<String> resources) { this.resources = resources; return this; } /** * TotalCount. */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeDefenseGroupValidResourcesResponseBody build() { return new DescribeDefenseGroupValidResourcesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupNamesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupNamesRequest} extends {@link RequestModel} * * <p>DescribeDefenseResourceGroupNamesRequest</p> */ public class DescribeDefenseResourceGroupNamesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupNameLike") private String groupNameLike; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefenseResourceGroupNamesRequest(Builder builder) { super(builder); this.groupNameLike = builder.groupNameLike; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupNamesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return groupNameLike */ public String getGroupNameLike() { return this.groupNameLike; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefenseResourceGroupNamesRequest, Builder> { private String groupNameLike; private String instanceId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefenseResourceGroupNamesRequest request) { super(request); this.groupNameLike = request.groupNameLike; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The name of the protected object group. Fuzzy queries are supported.</p> * * <strong>example:</strong> * <p>example-group</p> */ public Builder groupNameLike(String groupNameLike) { this.putQueryParameter("GroupNameLike", groupNameLike); this.groupNameLike = groupNameLike; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v3prepaid_public_cn-lbj****cc03</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aekzwwk****cv5i</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefenseResourceGroupNamesRequest build() { return new DescribeDefenseResourceGroupNamesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupNamesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupNamesResponse} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupNamesResponse</p> */ public class DescribeDefenseResourceGroupNamesResponse 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 DescribeDefenseResourceGroupNamesResponseBody body; private DescribeDefenseResourceGroupNamesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDefenseResourceGroupNamesResponse 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 DescribeDefenseResourceGroupNamesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDefenseResourceGroupNamesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDefenseResourceGroupNamesResponseBody body); @Override DescribeDefenseResourceGroupNamesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDefenseResourceGroupNamesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDefenseResourceGroupNamesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDefenseResourceGroupNamesResponse 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(DescribeDefenseResourceGroupNamesResponseBody body) { this.body = body; return this; } @Override public DescribeDefenseResourceGroupNamesResponse build() { return new DescribeDefenseResourceGroupNamesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupNamesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupNamesResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupNamesResponseBody</p> */ public class DescribeDefenseResourceGroupNamesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("GroupNames") private java.util.List<String> groupNames; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeDefenseResourceGroupNamesResponseBody(Builder builder) { this.groupNames = builder.groupNames; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupNamesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return groupNames */ public java.util.List<String> getGroupNames() { return this.groupNames; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<String> groupNames; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeDefenseResourceGroupNamesResponseBody model) { this.groupNames = model.groupNames; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The names of the protected object groups.</p> */ public Builder groupNames(java.util.List<String> groupNames) { this.groupNames = groupNames; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>59DA4258-2F32-5095-B283-57AC****70B3</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeDefenseResourceGroupNamesResponseBody build() { return new DescribeDefenseResourceGroupNamesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupRequest} extends {@link RequestModel} * * <p>DescribeDefenseResourceGroupRequest</p> */ public class DescribeDefenseResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupName") @com.aliyun.core.annotation.Validation(required = true) private String groupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefenseResourceGroupRequest(Builder builder) { super(builder); this.groupName = builder.groupName; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefenseResourceGroupRequest, Builder> { private String groupName; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefenseResourceGroupRequest request) { super(request); this.groupName = request.groupName; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The name of the protected object group whose information you want to query.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>group221</p> */ public Builder groupName(String groupName) { this.putQueryParameter("GroupName", groupName); this.groupName = groupName; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to obtain the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_cdnsdf3****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region where the WAF instance resides. Valid values:</p> * <ul> * <li><strong>cn-hangzhou:</strong> the Chinese mainland.</li> * <li><strong>ap-southeast-1:</strong> outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfm***q</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefenseResourceGroupRequest build() { return new DescribeDefenseResourceGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupResponse} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupResponse</p> */ public class DescribeDefenseResourceGroupResponse 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 DescribeDefenseResourceGroupResponseBody body; private DescribeDefenseResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDefenseResourceGroupResponse 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 DescribeDefenseResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDefenseResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDefenseResourceGroupResponseBody body); @Override DescribeDefenseResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDefenseResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDefenseResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDefenseResourceGroupResponse 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(DescribeDefenseResourceGroupResponseBody body) { this.body = body; return this; } @Override public DescribeDefenseResourceGroupResponse build() { return new DescribeDefenseResourceGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupResponseBody</p> */ public class DescribeDefenseResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Group") private Group group; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeDefenseResourceGroupResponseBody(Builder builder) { this.group = builder.group; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return group */ public Group getGroup() { return this.group; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Group group; private String requestId; private Builder() { } private Builder(DescribeDefenseResourceGroupResponseBody model) { this.group = model.group; this.requestId = model.requestId; } /** * <p>The information about the protected object group.</p> */ public Builder group(Group group) { this.group = group; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>E67D21C6-5376-5F94-B745-70E08D03E3CB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeDefenseResourceGroupResponseBody build() { return new DescribeDefenseResourceGroupResponseBody(this); } } /** * * {@link DescribeDefenseResourceGroupResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupResponseBody</p> */ public static class Group extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("GroupName") private String groupName; @com.aliyun.core.annotation.NameInMap("ResourceList") private String resourceList; private Group(Builder builder) { this.description = builder.description; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.groupName = builder.groupName; this.resourceList = builder.resourceList; } public static Builder builder() { return new Builder(); } public static Group create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return resourceList */ public String getResourceList() { return this.resourceList; } public static final class Builder { private String description; private Long gmtCreate; private Long gmtModified; private String groupName; private String resourceList; private Builder() { } private Builder(Group model) { this.description = model.description; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.groupName = model.groupName; this.resourceList = model.resourceList; } /** * <p>The description of the protected object group.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The time when the protected object group was created.</p> * * <strong>example:</strong> * <p>23242312312</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The most recent time when the protected object group was modified.</p> * * <strong>example:</strong> * <p>23242312312</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The name of the protected object group.</p> * * <strong>example:</strong> * <p>group1</p> */ public Builder groupName(String groupName) { this.groupName = groupName; return this; } /** * <p>The protected objects in the protected object group. The protected objects are separated with commas (,).</p> * * <strong>example:</strong> * <p>test1.aliyundoc.com,test2.aliyundoc.com</p> */ public Builder resourceList(String resourceList) { this.resourceList = resourceList; return this; } public Group build() { return new Group(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupsRequest} extends {@link RequestModel} * * <p>DescribeDefenseResourceGroupsRequest</p> */ public class DescribeDefenseResourceGroupsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupNameLike") private String groupNameLike; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupNames") private String groupNames; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefenseResourceGroupsRequest(Builder builder) { super(builder); this.groupNameLike = builder.groupNameLike; this.groupNames = builder.groupNames; this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return groupNameLike */ public String getGroupNameLike() { return this.groupNameLike; } /** * @return groupNames */ public String getGroupNames() { return this.groupNames; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefenseResourceGroupsRequest, Builder> { private String groupNameLike; private String groupNames; private String instanceId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefenseResourceGroupsRequest request) { super(request); this.groupNameLike = request.groupNameLike; this.groupNames = request.groupNames; this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The name of the protected object group that you want to query. Fuzzy queries are supported.</p> * * <strong>example:</strong> * <p>demoGroupName</p> */ public Builder groupNameLike(String groupNameLike) { this.putQueryParameter("GroupNameLike", groupNameLike); this.groupNameLike = groupNameLike; return this; } /** * <p>The names of the protected object groups that you want to query. Separate multiple names with commas (,).</p> * * <strong>example:</strong> * <p>groupName1,groupName2</p> */ public Builder groupNames(String groupNames) { this.putQueryParameter("GroupNames", groupNames); this.groupNames = groupNames; return this; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-wwo36****0i</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxc7lf****eq</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefenseResourceGroupsRequest build() { return new DescribeDefenseResourceGroupsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupsResponse} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupsResponse</p> */ public class DescribeDefenseResourceGroupsResponse 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 DescribeDefenseResourceGroupsResponseBody body; private DescribeDefenseResourceGroupsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDefenseResourceGroupsResponse 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 DescribeDefenseResourceGroupsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDefenseResourceGroupsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDefenseResourceGroupsResponseBody body); @Override DescribeDefenseResourceGroupsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDefenseResourceGroupsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDefenseResourceGroupsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDefenseResourceGroupsResponse 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(DescribeDefenseResourceGroupsResponseBody body) { this.body = body; return this; } @Override public DescribeDefenseResourceGroupsResponse build() { return new DescribeDefenseResourceGroupsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceGroupsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceGroupsResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupsResponseBody</p> */ public class DescribeDefenseResourceGroupsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Groups") private java.util.List<Groups> groups; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeDefenseResourceGroupsResponseBody(Builder builder) { this.groups = builder.groups; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceGroupsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return groups */ public java.util.List<Groups> getGroups() { return this.groups; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Groups> groups; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeDefenseResourceGroupsResponseBody model) { this.groups = model.groups; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The list of protected object groups.</p> */ public Builder groups(java.util.List<Groups> groups) { this.groups = groups; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BFEC5C77-049B-5E88-A5B6-CB0C****B66E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeDefenseResourceGroupsResponseBody build() { return new DescribeDefenseResourceGroupsResponseBody(this); } } /** * * {@link DescribeDefenseResourceGroupsResponseBody} extends {@link TeaModel} * * <p>DescribeDefenseResourceGroupsResponseBody</p> */ public static class Groups extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("GmtCreate") private Long gmtCreate; @com.aliyun.core.annotation.NameInMap("GmtModified") private Long gmtModified; @com.aliyun.core.annotation.NameInMap("GroupName") private String groupName; @com.aliyun.core.annotation.NameInMap("ResourceList") private String resourceList; private Groups(Builder builder) { this.description = builder.description; this.gmtCreate = builder.gmtCreate; this.gmtModified = builder.gmtModified; this.groupName = builder.groupName; this.resourceList = builder.resourceList; } public static Builder builder() { return new Builder(); } public static Groups create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return gmtCreate */ public Long getGmtCreate() { return this.gmtCreate; } /** * @return gmtModified */ public Long getGmtModified() { return this.gmtModified; } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return resourceList */ public String getResourceList() { return this.resourceList; } public static final class Builder { private String description; private Long gmtCreate; private Long gmtModified; private String groupName; private String resourceList; private Builder() { } private Builder(Groups model) { this.description = model.description; this.gmtCreate = model.gmtCreate; this.gmtModified = model.gmtModified; this.groupName = model.groupName; this.resourceList = model.resourceList; } /** * <p>The description of the protected object group.</p> * * <strong>example:</strong> * <p>This is test description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The time when the protected object group was created. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1624343180000</p> */ public Builder gmtCreate(Long gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The most recent time when the protected object group was modified. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1701656305000</p> */ public Builder gmtModified(Long gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>The name of the protected object group.</p> * * <strong>example:</strong> * <p>apptest</p> */ public Builder groupName(String groupName) { this.groupName = groupName; return this; } /** * <p>The names of the protected objects that are added to the protected object group. Separate multiple protected objects with commas (,).</p> * * <strong>example:</strong> * <p>example02.aliyun-waf,example01.aliyun-waf</p> */ public Builder resourceList(String resourceList) { this.resourceList = resourceList; return this; } public Groups build() { return new Groups(this); } } } }
0
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001
java-sources/com/aliyun/alibabacloud-waf_openapi20211001/6.0.12/com/aliyun/sdk/service/waf_openapi20211001/models/DescribeDefenseResourceNamesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.waf_openapi20211001.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDefenseResourceNamesRequest} extends {@link RequestModel} * * <p>DescribeDefenseResourceNamesRequest</p> */ public class DescribeDefenseResourceNamesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Resource") private String resource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; private DescribeDefenseResourceNamesRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resource = builder.resource; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; } public static Builder builder() { return new Builder(); } public static DescribeDefenseResourceNamesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resource */ public String getResource() { return this.resource; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } public static final class Builder extends Request.Builder<DescribeDefenseResourceNamesRequest, Builder> { private String instanceId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resource; private String resourceManagerResourceGroupId; private Builder() { super(); } private Builder(DescribeDefenseResourceNamesRequest request) { super(request); this.instanceId = request.instanceId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resource = request.resource; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; } /** * <p>The ID of the Web Application Firewall (WAF) instance.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/433756.html">DescribeInstance</a> operation to query the ID of the WAF instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>waf_v2_public_cn-9lb****5s03</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The page number. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region in which the WAF instance is deployed. Valid values:</p> * <ul> * <li><strong>cn-hangzhou</strong>: Chinese mainland.</li> * <li><strong>ap-southeast-1</strong>: outside the Chinese mainland.</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 name of the protected object that you want to query.</p> * * <strong>example:</strong> * <p>example.xxxxaliyundoc.com</p> */ public Builder resource(String resource) { this.putQueryParameter("Resource", resource); this.resource = resource; return this; } /** * <p>The ID of the Alibaba Cloud resource group.</p> * * <strong>example:</strong> * <p>rg-aekzd4c****pdwy</p> */ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } @Override public DescribeDefenseResourceNamesRequest build() { return new DescribeDefenseResourceNamesRequest(this); } } }