Skip to content

Commit 882ffa9

Browse files
committed
Generated java-async 2020-04-01 for eventbridge.
1 parent 426ac19 commit 882ffa9

13 files changed

+1673
-1
lines changed

eventbridge-20200401/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-04-24 Version: 5.0.1
2+
- Generated java-async 2020-04-01 for eventbridge.
3+
14
2025-04-15 Version: 5.0.0
25
- Generated java-async 2020-04-01 for eventbridge.
36

eventbridge-20200401/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-eventbridge20200401</artifactId>
6-
<version>5.0.0</version>
6+
<version>5.0.1</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-eventbridge20200401</name>
99
<description>Alibaba Cloud eventbridge (20200401) Async SDK for Java

eventbridge-20200401/src/main/java/com/aliyun/sdk/service/eventbridge20200401/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ static AsyncClient create() {
1919
return builder().build();
2020
}
2121

22+
/**
23+
* @param request the request parameters of CheckServiceLinkedRoleForProduct CheckServiceLinkedRoleForProductRequest
24+
* @return CheckServiceLinkedRoleForProductResponse
25+
*/
26+
CompletableFuture<CheckServiceLinkedRoleForProductResponse> checkServiceLinkedRoleForProduct(CheckServiceLinkedRoleForProductRequest request);
27+
2228
/**
2329
* <b>description</b> :
2430
* <p>You can call this API operation to create an API destination.</p>

eventbridge-20200401/src/main/java/com/aliyun/sdk/service/eventbridge20200401/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ public void close() {
3939
this.handler.close();
4040
}
4141

42+
/**
43+
* @param request the request parameters of CheckServiceLinkedRoleForProduct CheckServiceLinkedRoleForProductRequest
44+
* @return CheckServiceLinkedRoleForProductResponse
45+
*/
46+
@Override
47+
public CompletableFuture<CheckServiceLinkedRoleForProductResponse> checkServiceLinkedRoleForProduct(CheckServiceLinkedRoleForProductRequest request) {
48+
try {
49+
this.handler.validateRequestModel(request);
50+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CheckServiceLinkedRoleForProduct").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
51+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CheckServiceLinkedRoleForProductResponse.create());
52+
return this.handler.execute(params);
53+
} catch (Exception e) {
54+
CompletableFuture<CheckServiceLinkedRoleForProductResponse> future = new CompletableFuture<>();
55+
future.completeExceptionally(e);
56+
return future;
57+
}
58+
}
59+
4260
/**
4361
* <b>description</b> :
4462
* <p>You can call this API operation to create an API destination.</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.eventbridge20200401.models;
3+
4+
import com.aliyun.sdk.gateway.eventbridge.*;
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.eventbridge.models.*;
12+
13+
/**
14+
*
15+
* {@link CheckServiceLinkedRoleForProductRequest} extends {@link RequestModel}
16+
*
17+
* <p>CheckServiceLinkedRoleForProductRequest</p>
18+
*/
19+
public class CheckServiceLinkedRoleForProductRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("ProductName")
22+
private String productName;
23+
24+
private CheckServiceLinkedRoleForProductRequest(Builder builder) {
25+
super(builder);
26+
this.productName = builder.productName;
27+
}
28+
29+
public static Builder builder() {
30+
return new Builder();
31+
}
32+
33+
public static CheckServiceLinkedRoleForProductRequest create() {
34+
return builder().build();
35+
}
36+
37+
@Override
38+
public Builder toBuilder() {
39+
return new Builder(this);
40+
}
41+
42+
/**
43+
* @return productName
44+
*/
45+
public String getProductName() {
46+
return this.productName;
47+
}
48+
49+
public static final class Builder extends Request.Builder<CheckServiceLinkedRoleForProductRequest, Builder> {
50+
private String productName;
51+
52+
private Builder() {
53+
super();
54+
}
55+
56+
private Builder(CheckServiceLinkedRoleForProductRequest request) {
57+
super(request);
58+
this.productName = request.productName;
59+
}
60+
61+
/**
62+
* ProductName.
63+
*/
64+
public Builder productName(String productName) {
65+
this.putQueryParameter("ProductName", productName);
66+
this.productName = productName;
67+
return this;
68+
}
69+
70+
@Override
71+
public CheckServiceLinkedRoleForProductRequest build() {
72+
return new CheckServiceLinkedRoleForProductRequest(this);
73+
}
74+
75+
}
76+
77+
}
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.eventbridge20200401.models;
3+
4+
import com.aliyun.sdk.gateway.eventbridge.*;
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.eventbridge.models.*;
12+
13+
/**
14+
*
15+
* {@link CheckServiceLinkedRoleForProductResponse} extends {@link TeaModel}
16+
*
17+
* <p>CheckServiceLinkedRoleForProductResponse</p>
18+
*/
19+
public class CheckServiceLinkedRoleForProductResponse 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 CheckServiceLinkedRoleForProductResponseBody body;
28+
29+
private CheckServiceLinkedRoleForProductResponse(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 CheckServiceLinkedRoleForProductResponse 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 CheckServiceLinkedRoleForProductResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<CheckServiceLinkedRoleForProductResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(CheckServiceLinkedRoleForProductResponseBody body);
73+
74+
@Override
75+
CheckServiceLinkedRoleForProductResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<CheckServiceLinkedRoleForProductResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private CheckServiceLinkedRoleForProductResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(CheckServiceLinkedRoleForProductResponse 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(CheckServiceLinkedRoleForProductResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public CheckServiceLinkedRoleForProductResponse build() {
126+
return new CheckServiceLinkedRoleForProductResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)