Skip to content

Commit 7a132ef

Browse files
committed
Generated java-async 2021-10-01 for waf-openapi.
1 parent 6494f8d commit 7a132ef

File tree

7 files changed

+748
-1
lines changed

7 files changed

+748
-1
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-06-17 Version: 5.0.11
2+
- Generated java-async 2021-10-01 for waf-openapi.
3+
14
2025-06-11 Version: 5.0.10
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.0modelVersion>
44
<groupId>com.aliyungroupId>
55
<artifactId>alibabacloud-waf_openapi20211001artifactId>
6-
<version>5.0.10version>
6+
<version>5.0.11version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-waf_openapi20211001name>
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
@@ -508,6 +508,12 @@ static AsyncClient create() {
508508
*/
509509
CompletableFuture<DescribeInstanceResponse> describeInstance(DescribeInstanceRequest request);
510510

511+
/**
512+
* @param request the request parameters of DescribeIpAbroadCountryInfos DescribeIpAbroadCountryInfosRequest
513+
* @return DescribeIpAbroadCountryInfosResponse
514+
*/
515+
CompletableFuture<DescribeIpAbroadCountryInfosResponse> describeIpAbroadCountryInfos(DescribeIpAbroadCountryInfosRequest request);
516+
511517
/**
512518
* @param request the request parameters of DescribeMajorProtectionBlackIps DescribeMajorProtectionBlackIpsRequest
513519
* @return DescribeMajorProtectionBlackIpsResponse

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
@@ -1525,6 +1525,24 @@ public CompletableFuture describeInstance(DescribeInst
15251525
}
15261526
}
15271527

1528+
/**
1529+
* @param request the request parameters of DescribeIpAbroadCountryInfos DescribeIpAbroadCountryInfosRequest
1530+
* @return DescribeIpAbroadCountryInfosResponse
1531+
*/
1532+
@Override
1533+
public CompletableFuture<DescribeIpAbroadCountryInfosResponse> describeIpAbroadCountryInfos(DescribeIpAbroadCountryInfosRequest request) {
1534+
try {
1535+
this.handler.validateRequestModel(request);
1536+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeIpAbroadCountryInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
1537+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeIpAbroadCountryInfosResponse.create());
1538+
return this.handler.execute(params);
1539+
} catch (Exception e) {
1540+
CompletableFuture<DescribeIpAbroadCountryInfosResponse> future = new CompletableFuture<>();
1541+
future.completeExceptionally(e);
1542+
return future;
1543+
}
1544+
}
1545+
15281546
/**
15291547
* @param request the request parameters of DescribeMajorProtectionBlackIps DescribeMajorProtectionBlackIpsRequest
15301548
* @return DescribeMajorProtectionBlackIpsResponse
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
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 DescribeIpAbroadCountryInfosRequest} extends {@link RequestModel}
16+
*
17+
*

DescribeIpAbroadCountryInfosRequest

18+
*/
19+
public class DescribeIpAbroadCountryInfosRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("AbroadRegion")
22+
private String abroadRegion;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("Country")
26+
private String country;
27+
28+
@com.aliyun.core.annotation.Query
29+
@com.aliyun.core.annotation.NameInMap("InstanceId")
30+
@com.aliyun.core.annotation.Validation(required = true)
31+
private String instanceId;
32+
33+
@com.aliyun.core.annotation.Query
34+
@com.aliyun.core.annotation.NameInMap("Language")
35+
private String language;
36+
37+
@com.aliyun.core.annotation.Query
38+
@com.aliyun.core.annotation.NameInMap("MaxResults")
39+
@com.aliyun.core.annotation.Validation(maximum = 500, minimum = 1)
40+
private Integer maxResults;
41+
42+
@com.aliyun.core.annotation.Query
43+
@com.aliyun.core.annotation.NameInMap("NextToken")
44+
private String nextToken;
45+
46+
@com.aliyun.core.annotation.Query
47+
@com.aliyun.core.annotation.NameInMap("RegionId")
48+
private String regionId;
49+
50+
@com.aliyun.core.annotation.Query
51+
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
52+
private String resourceManagerResourceGroupId;
53+
54+
private DescribeIpAbroadCountryInfosRequest(Builder builder) {
55+
super(builder);
56+
this.abroadRegion = builder.abroadRegion;
57+
this.country = builder.country;
58+
this.instanceId = builder.instanceId;
59+
this.language = builder.language;
60+
this.maxResults = builder.maxResults;
61+
this.nextToken = builder.nextToken;
62+
this.regionId = builder.regionId;
63+
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
64+
}
65+
66+
public static Builder builder() {
67+
return new Builder();
68+
}
69+
70+
public static DescribeIpAbroadCountryInfosRequest create() {
71+
return builder().build();
72+
}
73+
74+
@Override
75+
public Builder toBuilder() {
76+
return new Builder(this);
77+
}
78+
79+
/**
80+
* @return abroadRegion
81+
*/
82+
public String getAbroadRegion() {
83+
return this.abroadRegion;
84+
}
85+
86+
/**
87+
* @return country
88+
*/
89+
public String getCountry() {
90+
return this.country;
91+
}
92+
93+
/**
94+
* @return instanceId
95+
*/
96+
public String getInstanceId() {
97+
return this.instanceId;
98+
}
99+
100+
/**
101+
* @return language
102+
*/
103+
public String getLanguage() {
104+
return this.language;
105+
}
106+
107+
/**
108+
* @return maxResults
109+
*/
110+
public Integer getMaxResults() {
111+
return this.maxResults;
112+
}
113+
114+
/**
115+
* @return nextToken
116+
*/
117+
public String getNextToken() {
118+
return this.nextToken;
119+
}
120+
121+
/**
122+
* @return regionId
123+
*/
124+
public String getRegionId() {
125+
return this.regionId;
126+
}
127+
128+
/**
129+
* @return resourceManagerResourceGroupId
130+
*/
131+
public String getResourceManagerResourceGroupId() {
132+
return this.resourceManagerResourceGroupId;
133+
}
134+
135+
public static final class Builder extends Request.Builder<DescribeIpAbroadCountryInfosRequest, Builder> {
136+
private String abroadRegion;
137+
private String country;
138+
private String instanceId;
139+
private String language;
140+
private Integer maxResults;
141+
private String nextToken;
142+
private String regionId;
143+
private String resourceManagerResourceGroupId;
144+
145+
private Builder() {
146+
super();
147+
}
148+
149+
private Builder(DescribeIpAbroadCountryInfosRequest request) {
150+
super(request);
151+
this.abroadRegion = request.abroadRegion;
152+
this.country = request.country;
153+
this.instanceId = request.instanceId;
154+
this.language = request.language;
155+
this.maxResults = request.maxResults;
156+
this.nextToken = request.nextToken;
157+
this.regionId = request.regionId;
158+
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
159+
}
160+
161+
/**
162+
* AbroadRegion.
163+
*/
164+
public Builder abroadRegion(String abroadRegion) {
165+
this.putQueryParameter("AbroadRegion", abroadRegion);
166+
this.abroadRegion = abroadRegion;
167+
return this;
168+
}
169+
170+
/**
171+
* Country.
172+
*/
173+
public Builder country(String country) {
174+
this.putQueryParameter("Country", country);
175+
this.country = country;
176+
return this;
177+
}
178+
179+
/**
180+
*

This parameter is required.

181+
*
182+
* example:
183+
*

waf_elasticity-cn-0xl*******005

184+
*/
185+
public Builder instanceId(String instanceId) {
186+
this.putQueryParameter("InstanceId", instanceId);
187+
this.instanceId = instanceId;
188+
return this;
189+
}
190+
191+
/**
192+
* Language.
193+
*/
194+
public Builder language(String language) {
195+
this.putQueryParameter("Language", language);
196+
this.language = language;
197+
return this;
198+
}
199+
200+
/**
201+
* MaxResults.
202+
*/
203+
public Builder maxResults(Integer maxResults) {
204+
this.putQueryParameter("MaxResults", maxResults);
205+
this.maxResults = maxResults;
206+
return this;
207+
}
208+
209+
/**
210+
* NextToken.
211+
*/
212+
public Builder nextToken(String nextToken) {
213+
this.putQueryParameter("NextToken", nextToken);
214+
this.nextToken = nextToken;
215+
return this;
216+
}
217+
218+
/**
219+
* RegionId.
220+
*/
221+
public Builder regionId(String regionId) {
222+
this.putQueryParameter("RegionId", regionId);
223+
this.regionId = regionId;
224+
return this;
225+
}
226+
227+
/**
228+
* ResourceManagerResourceGroupId.
229+
*/
230+
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
231+
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
232+
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
233+
return this;
234+
}
235+
236+
@Override
237+
public DescribeIpAbroadCountryInfosRequest build() {
238+
return new DescribeIpAbroadCountryInfosRequest(this);
239+
}
240+
241+
}
242+
243+
}

0 commit comments

Comments
 (0)