Skip to content

Commit ac80e51

Browse files
committed
Generated java-async 2021-09-01 for appstream-center.
1 parent 1103793 commit ac80e51

File tree

8 files changed

+336
-1
lines changed

8 files changed

+336
-1
lines changed

appstream-center-20210901/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-10-04 Version: 3.0.4
2+
- Generated java-async 2021-09-01 for appstream-center.
3+
14
2025-08-29 Version: 3.0.3
25
- Generated java-async 2021-09-01 for appstream-center.
36

appstream-center-20210901/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-appstream_center20210901</artifactId>
6-
<version>3.0.3</version>
6+
<version>3.0.4</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-appstream_center20210901</name>
99
<description>Alibaba Cloud appstream-center (20210901) Async SDK for Java

appstream-center-20210901/src/main/java/com/aliyun/sdk/service/appstream_center20210901/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ static AsyncClient create() {
6969
*/
7070
CompletableFuture<DeleteAppInstancesResponse> deleteAppInstances(DeleteAppInstancesRequest request);
7171

72+
/**
73+
* @param request the request parameters of DeleteWuyingServer DeleteWuyingServerRequest
74+
* @return DeleteWuyingServerResponse
75+
*/
76+
CompletableFuture<DeleteWuyingServerResponse> deleteWuyingServer(DeleteWuyingServerRequest request);
77+
7278
/**
7379
* @param request the request parameters of GetAppInstanceGroup GetAppInstanceGroupRequest
7480
* @return GetAppInstanceGroupResponse

appstream-center-20210901/src/main/java/com/aliyun/sdk/service/appstream_center20210901/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,24 @@ public CompletableFuture<DeleteAppInstancesResponse> deleteAppInstances(DeleteAp
173173
}
174174
}
175175

176+
/**
177+
* @param request the request parameters of DeleteWuyingServer DeleteWuyingServerRequest
178+
* @return DeleteWuyingServerResponse
179+
*/
180+
@Override
181+
public CompletableFuture<DeleteWuyingServerResponse> deleteWuyingServer(DeleteWuyingServerRequest request) {
182+
try {
183+
this.handler.validateRequestModel(request);
184+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteWuyingServer").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
185+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteWuyingServerResponse.create());
186+
return this.handler.execute(params);
187+
} catch (Exception e) {
188+
CompletableFuture<DeleteWuyingServerResponse> future = new CompletableFuture<>();
189+
future.completeExceptionally(e);
190+
return future;
191+
}
192+
}
193+
176194
/**
177195
* @param request the request parameters of GetAppInstanceGroup GetAppInstanceGroupRequest
178196
* @return GetAppInstanceGroupResponse

appstream-center-20210901/src/main/java/com/aliyun/sdk/service/appstream_center20210901/models/CreateWuyingServerRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public class CreateWuyingServerRequest extends Request {
4141
@com.aliyun.core.annotation.NameInMap("DataDisk")
4242
private java.util.List<DataDisk> dataDisk;
4343

44+
@com.aliyun.core.annotation.Body
45+
@com.aliyun.core.annotation.NameInMap("IdempotenceToken")
46+
private String idempotenceToken;
47+
4448
@com.aliyun.core.annotation.Body
4549
@com.aliyun.core.annotation.NameInMap("ImageId")
4650
private String imageId;
@@ -101,6 +105,7 @@ private CreateWuyingServerRequest(Builder builder) {
101105
this.bizRegionId = builder.bizRegionId;
102106
this.chargeType = builder.chargeType;
103107
this.dataDisk = builder.dataDisk;
108+
this.idempotenceToken = builder.idempotenceToken;
104109
this.imageId = builder.imageId;
105110
this.officeSiteId = builder.officeSiteId;
106111
this.password = builder.password;
@@ -171,6 +176,13 @@ public java.util.List<DataDisk> getDataDisk() {
171176
return this.dataDisk;
172177
}
173178

179+
/**
180+
* @return idempotenceToken
181+
*/
182+
public String getIdempotenceToken() {
183+
return this.idempotenceToken;
184+
}
185+
174186
/**
175187
* @return imageId
176188
*/
@@ -269,6 +281,7 @@ public static final class Builder extends Request.Builder<CreateWuyingServerRequ
269281
private String bizRegionId;
270282
private String chargeType;
271283
private java.util.List<DataDisk> dataDisk;
284+
private String idempotenceToken;
272285
private String imageId;
273286
private String officeSiteId;
274287
private String password;
@@ -295,6 +308,7 @@ private Builder(CreateWuyingServerRequest request) {
295308
this.bizRegionId = request.bizRegionId;
296309
this.chargeType = request.chargeType;
297310
this.dataDisk = request.dataDisk;
311+
this.idempotenceToken = request.idempotenceToken;
298312
this.imageId = request.imageId;
299313
this.officeSiteId = request.officeSiteId;
300314
this.password = request.password;
@@ -364,6 +378,15 @@ public Builder dataDisk(java.util.List<DataDisk> dataDisk) {
364378
return this;
365379
}
366380

381+
/**
382+
* IdempotenceToken.
383+
*/
384+
public Builder idempotenceToken(String idempotenceToken) {
385+
this.putBodyParameter("IdempotenceToken", idempotenceToken);
386+
this.idempotenceToken = idempotenceToken;
387+
return this;
388+
}
389+
367390
/**
368391
* ImageId.
369392
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.appstream_center20210901.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 DeleteWuyingServerRequest} extends {@link RequestModel}
16+
*
17+
* <p>DeleteWuyingServerRequest</p>
18+
*/
19+
public class DeleteWuyingServerRequest extends Request {
20+
@com.aliyun.core.annotation.Body
21+
@com.aliyun.core.annotation.NameInMap("WuyingServerId")
22+
@com.aliyun.core.annotation.Validation(required = true)
23+
private String wuyingServerId;
24+
25+
private DeleteWuyingServerRequest(Builder builder) {
26+
super(builder);
27+
this.wuyingServerId = builder.wuyingServerId;
28+
}
29+
30+
public static Builder builder() {
31+
return new Builder();
32+
}
33+
34+
public static DeleteWuyingServerRequest create() {
35+
return builder().build();
36+
}
37+
38+
@Override
39+
public Builder toBuilder() {
40+
return new Builder(this);
41+
}
42+
43+
/**
44+
* @return wuyingServerId
45+
*/
46+
public String getWuyingServerId() {
47+
return this.wuyingServerId;
48+
}
49+
50+
public static final class Builder extends Request.Builder<DeleteWuyingServerRequest, Builder> {
51+
private String wuyingServerId;
52+
53+
private Builder() {
54+
super();
55+
}
56+
57+
private Builder(DeleteWuyingServerRequest request) {
58+
super(request);
59+
this.wuyingServerId = request.wuyingServerId;
60+
}
61+
62+
/**
63+
* <p>This parameter is required.</p>
64+
*
65+
* <strong>example:</strong>
66+
* <p>ws-0bw2f11****dial</p>
67+
*/
68+
public Builder wuyingServerId(String wuyingServerId) {
69+
this.putBodyParameter("WuyingServerId", wuyingServerId);
70+
this.wuyingServerId = wuyingServerId;
71+
return this;
72+
}
73+
74+
@Override
75+
public DeleteWuyingServerRequest build() {
76+
return new DeleteWuyingServerRequest(this);
77+
}
78+
79+
}
80+
81+
}
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.appstream_center20210901.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 DeleteWuyingServerResponse} extends {@link TeaModel}
16+
*
17+
* <p>DeleteWuyingServerResponse</p>
18+
*/
19+
public class DeleteWuyingServerResponse 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 DeleteWuyingServerResponseBody body;
28+
29+
private DeleteWuyingServerResponse(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 DeleteWuyingServerResponse 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 DeleteWuyingServerResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<DeleteWuyingServerResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(DeleteWuyingServerResponseBody body);
73+
74+
@Override
75+
DeleteWuyingServerResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<DeleteWuyingServerResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private DeleteWuyingServerResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(DeleteWuyingServerResponse 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(DeleteWuyingServerResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public DeleteWuyingServerResponse build() {
126+
return new DeleteWuyingServerResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)