Skip to content

Commit 50e490d

Browse files
committed
Generated java-async 2021-10-01 for waf-openapi.
1 parent 41b7b9c commit 50e490d

12 files changed

+502
-11
lines changed

waf-openapi-20211001/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-11 Version: 6.0.0
2+
- Generated java-async 2021-10-01 for waf-openapi.
3+
14
2025-06-27 Version: 5.0.14
25
- Generated java-async 2021-10-01 for waf-openapi.
36

waf-openapi-20211001/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-waf_openapi20211001</artifactId>
6-
<version>5.0.14</version>
6+
<version>6.0.0</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-waf_openapi20211001</name>
99
<description>Alibaba Cloud waf-openapi (20211001) Async SDK for Java

waf-openapi-20211001/src/main/java/com/aliyun/sdk/service/waf_openapi20211001/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ static AsyncClient create() {
154154
*/
155155
CompletableFuture<DeleteDefenseRuleResponse> deleteDefenseRule(DeleteDefenseRuleRequest request);
156156

157+
/**
158+
* @param request the request parameters of DeleteDefenseRuleBlockIp DeleteDefenseRuleBlockIpRequest
159+
* @return DeleteDefenseRuleBlockIpResponse
160+
*/
161+
CompletableFuture<DeleteDefenseRuleBlockIpResponse> deleteDefenseRuleBlockIp(DeleteDefenseRuleBlockIpRequest request);
162+
157163
/**
158164
* @param request the request parameters of DeleteDefenseTemplate DeleteDefenseTemplateRequest
159165
* @return DeleteDefenseTemplateResponse

waf-openapi-20211001/src/main/java/com/aliyun/sdk/service/waf_openapi20211001/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,24 @@ public CompletableFuture<DeleteDefenseRuleResponse> deleteDefenseRule(DeleteDefe
463463
}
464464
}
465465

466+
/**
467+
* @param request the request parameters of DeleteDefenseRuleBlockIp DeleteDefenseRuleBlockIpRequest
468+
* @return DeleteDefenseRuleBlockIpResponse
469+
*/
470+
@Override
471+
public CompletableFuture<DeleteDefenseRuleBlockIpResponse> deleteDefenseRuleBlockIp(DeleteDefenseRuleBlockIpRequest request) {
472+
try {
473+
this.handler.validateRequestModel(request);
474+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteDefenseRuleBlockIp").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
475+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDefenseRuleBlockIpResponse.create());
476+
return this.handler.execute(params);
477+
} catch (Exception e) {
478+
CompletableFuture<DeleteDefenseRuleBlockIpResponse> future = new CompletableFuture<>();
479+
future.completeExceptionally(e);
480+
return future;
481+
}
482+
}
483+
466484
/**
467485
* @param request the request parameters of DeleteDefenseTemplate DeleteDefenseTemplateRequest
468486
* @return DeleteDefenseTemplateResponse
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.waf_openapi20211001.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link DeleteDefenseRuleBlockIpRequest} extends {@link RequestModel}
16+
*
17+
* <p>DeleteDefenseRuleBlockIpRequest</p>
18+
*/
19+
public class DeleteDefenseRuleBlockIpRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("InstanceId")
22+
@com.aliyun.core.annotation.Validation(required = true)
23+
private String instanceId;
24+
25+
@com.aliyun.core.annotation.Query
26+
@com.aliyun.core.annotation.NameInMap("RegionId")
27+
private String regionId;
28+
29+
@com.aliyun.core.annotation.Query
30+
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
31+
private String resourceManagerResourceGroupId;
32+
33+
@com.aliyun.core.annotation.Query
34+
@com.aliyun.core.annotation.NameInMap("RuleId")
35+
@com.aliyun.core.annotation.Validation(required = true)
36+
private Long ruleId;
37+
38+
@com.aliyun.core.annotation.Query
39+
@com.aliyun.core.annotation.NameInMap("TemplateId")
40+
@com.aliyun.core.annotation.Validation(required = true)
41+
private Long templateId;
42+
43+
private DeleteDefenseRuleBlockIpRequest(Builder builder) {
44+
super(builder);
45+
this.instanceId = builder.instanceId;
46+
this.regionId = builder.regionId;
47+
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
48+
this.ruleId = builder.ruleId;
49+
this.templateId = builder.templateId;
50+
}
51+
52+
public static Builder builder() {
53+
return new Builder();
54+
}
55+
56+
public static DeleteDefenseRuleBlockIpRequest create() {
57+
return builder().build();
58+
}
59+
60+
@Override
61+
public Builder toBuilder() {
62+
return new Builder(this);
63+
}
64+
65+
/**
66+
* @return instanceId
67+
*/
68+
public String getInstanceId() {
69+
return this.instanceId;
70+
}
71+
72+
/**
73+
* @return regionId
74+
*/
75+
public String getRegionId() {
76+
return this.regionId;
77+
}
78+
79+
/**
80+
* @return resourceManagerResourceGroupId
81+
*/
82+
public String getResourceManagerResourceGroupId() {
83+
return this.resourceManagerResourceGroupId;
84+
}
85+
86+
/**
87+
* @return ruleId
88+
*/
89+
public Long getRuleId() {
90+
return this.ruleId;
91+
}
92+
93+
/**
94+
* @return templateId
95+
*/
96+
public Long getTemplateId() {
97+
return this.templateId;
98+
}
99+
100+
public static final class Builder extends Request.Builder<DeleteDefenseRuleBlockIpRequest, Builder> {
101+
private String instanceId;
102+
private String regionId;
103+
private String resourceManagerResourceGroupId;
104+
private Long ruleId;
105+
private Long templateId;
106+
107+
private Builder() {
108+
super();
109+
}
110+
111+
private Builder(DeleteDefenseRuleBlockIpRequest request) {
112+
super(request);
113+
this.instanceId = request.instanceId;
114+
this.regionId = request.regionId;
115+
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
116+
this.ruleId = request.ruleId;
117+
this.templateId = request.templateId;
118+
}
119+
120+
/**
121+
* <p>This parameter is required.</p>
122+
*
123+
* <strong>example:</strong>
124+
* <p>waf_v2_public_cn-9lb37yxse05</p>
125+
*/
126+
public Builder instanceId(String instanceId) {
127+
this.putQueryParameter("InstanceId", instanceId);
128+
this.instanceId = instanceId;
129+
return this;
130+
}
131+
132+
/**
133+
* RegionId.
134+
*/
135+
public Builder regionId(String regionId) {
136+
this.putQueryParameter("RegionId", regionId);
137+
this.regionId = regionId;
138+
return this;
139+
}
140+
141+
/**
142+
* ResourceManagerResourceGroupId.
143+
*/
144+
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
145+
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
146+
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
147+
return this;
148+
}
149+
150+
/**
151+
* <p>This parameter is required.</p>
152+
*
153+
* <strong>example:</strong>
154+
* <p>36998</p>
155+
*/
156+
public Builder ruleId(Long ruleId) {
157+
this.putQueryParameter("RuleId", ruleId);
158+
this.ruleId = ruleId;
159+
return this;
160+
}
161+
162+
/**
163+
* <p>This parameter is required.</p>
164+
*
165+
* <strong>example:</strong>
166+
* <p>4057</p>
167+
*/
168+
public Builder templateId(Long templateId) {
169+
this.putQueryParameter("TemplateId", templateId);
170+
this.templateId = templateId;
171+
return this;
172+
}
173+
174+
@Override
175+
public DeleteDefenseRuleBlockIpRequest build() {
176+
return new DeleteDefenseRuleBlockIpRequest(this);
177+
}
178+
179+
}
180+
181+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.waf_openapi20211001.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link DeleteDefenseRuleBlockIpResponse} extends {@link TeaModel}
16+
*
17+
* <p>DeleteDefenseRuleBlockIpResponse</p>
18+
*/
19+
public class DeleteDefenseRuleBlockIpResponse extends Response {
20+
@com.aliyun.core.annotation.NameInMap("headers")
21+
private java.util.Map<String, String> headers;
22+
23+
@com.aliyun.core.annotation.NameInMap("statusCode")
24+
private Integer statusCode;
25+
26+
@com.aliyun.core.annotation.NameInMap("body")
27+
private DeleteDefenseRuleBlockIpResponseBody body;
28+
29+
private DeleteDefenseRuleBlockIpResponse(BuilderImpl builder) {
30+
super(builder);
31+
this.headers = builder.headers;
32+
this.statusCode = builder.statusCode;
33+
this.body = builder.body;
34+
}
35+
36+
public static DeleteDefenseRuleBlockIpResponse create() {
37+
return new BuilderImpl().build();
38+
}
39+
40+
@Override
41+
public Builder toBuilder() {
42+
return new BuilderImpl(this);
43+
}
44+
45+
/**
46+
* @return headers
47+
*/
48+
public java.util.Map<String, String> getHeaders() {
49+
return this.headers;
50+
}
51+
52+
/**
53+
* @return statusCode
54+
*/
55+
public Integer getStatusCode() {
56+
return this.statusCode;
57+
}
58+
59+
/**
60+
* @return body
61+
*/
62+
public DeleteDefenseRuleBlockIpResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<DeleteDefenseRuleBlockIpResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(DeleteDefenseRuleBlockIpResponseBody body);
73+
74+
@Override
75+
DeleteDefenseRuleBlockIpResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<DeleteDefenseRuleBlockIpResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private DeleteDefenseRuleBlockIpResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(DeleteDefenseRuleBlockIpResponse response) {
91+
super(response);
92+
this.headers = response.headers;
93+
this.statusCode = response.statusCode;
94+
this.body = response.body;
95+
}
96+
97+
/**
98+
* headers.
99+
*/
100+
@Override
101+
public Builder headers(java.util.Map<String, String> headers) {
102+
this.headers = headers;
103+
return this;
104+
}
105+
106+
/**
107+
* statusCode.
108+
*/
109+
@Override
110+
public Builder statusCode(Integer statusCode) {
111+
this.statusCode = statusCode;
112+
return this;
113+
}
114+
115+
/**
116+
* body.
117+
*/
118+
@Override
119+
public Builder body(DeleteDefenseRuleBlockIpResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public DeleteDefenseRuleBlockIpResponse build() {
126+
return new DeleteDefenseRuleBlockIpResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)