Skip to content

Commit c324a8e

Browse files
committed
Generated java-async 2020-06-06 for cams.
1 parent 95e8ff3 commit c324a8e

11 files changed

+721
-1
lines changed

cams-20200606/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-11 Version: 2.0.1
2+
- Generated java-async 2020-06-06 for cams.
3+
14
2025-04-21 Version: 2.0.0
25
- Generated java-async 2020-06-06 for cams.
36

cams-20200606/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-cams20200606</artifactId>
6-
<version>2.0.0</version>
6+
<version>2.0.1</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-cams20200606</name>
99
<description>Alibaba Cloud cams (20200606) Async SDK for Java

cams-20200606/src/main/java/com/aliyun/sdk/service/cams20200606/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ static AsyncClient create() {
399399
*/
400400
CompletableFuture<ModifyChatappTemplateResponse> modifyChatappTemplate(ModifyChatappTemplateRequest request);
401401

402+
/**
403+
* @param request the request parameters of ModifyChatappTemplateProperties ModifyChatappTemplatePropertiesRequest
404+
* @return ModifyChatappTemplatePropertiesResponse
405+
*/
406+
CompletableFuture<ModifyChatappTemplatePropertiesResponse> modifyChatappTemplateProperties(ModifyChatappTemplatePropertiesRequest request);
407+
402408
/**
403409
* <b>description</b> :
404410
* <p>You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>

cams-20200606/src/main/java/com/aliyun/sdk/service/cams20200606/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,24 @@ public CompletableFuture<ModifyChatappTemplateResponse> modifyChatappTemplate(Mo
947947
}
948948
}
949949

950+
/**
951+
* @param request the request parameters of ModifyChatappTemplateProperties ModifyChatappTemplatePropertiesRequest
952+
* @return ModifyChatappTemplatePropertiesResponse
953+
*/
954+
@Override
955+
public CompletableFuture<ModifyChatappTemplatePropertiesResponse> modifyChatappTemplateProperties(ModifyChatappTemplatePropertiesRequest request) {
956+
try {
957+
this.handler.validateRequestModel(request);
958+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyChatappTemplateProperties").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
959+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyChatappTemplatePropertiesResponse.create());
960+
return this.handler.execute(params);
961+
} catch (Exception e) {
962+
CompletableFuture<ModifyChatappTemplatePropertiesResponse> future = new CompletableFuture<>();
963+
future.completeExceptionally(e);
964+
return future;
965+
}
966+
}
967+
950968
/**
951969
* <b>description</b> :
952970
* <p>You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.</p>

cams-20200606/src/main/java/com/aliyun/sdk/service/cams20200606/models/CreateChatappTemplateRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@
1919
public class CreateChatappTemplateRequest extends Request {
2020
@com.aliyun.core.annotation.Body
2121
@com.aliyun.core.annotation.NameInMap("AllowCategoryChange")
22+
@Deprecated
2223
private Boolean allowCategoryChange;
2324

2425
@com.aliyun.core.annotation.Body
2526
@com.aliyun.core.annotation.NameInMap("Category")
2627
@com.aliyun.core.annotation.Validation(required = true)
2728
private String category;
2829

30+
@com.aliyun.core.annotation.Body
31+
@com.aliyun.core.annotation.NameInMap("CategoryChangePaused")
32+
private Boolean categoryChangePaused;
33+
2934
@com.aliyun.core.annotation.Body
3035
@com.aliyun.core.annotation.NameInMap("Components")
3136
@com.aliyun.core.annotation.Validation(required = true)
@@ -72,6 +77,7 @@ private CreateChatappTemplateRequest(Builder builder) {
7277
super(builder);
7378
this.allowCategoryChange = builder.allowCategoryChange;
7479
this.category = builder.category;
80+
this.categoryChangePaused = builder.categoryChangePaused;
7581
this.components = builder.components;
7682
this.custSpaceId = builder.custSpaceId;
7783
this.custWabaId = builder.custWabaId;
@@ -110,6 +116,13 @@ public String getCategory() {
110116
return this.category;
111117
}
112118

119+
/**
120+
* @return categoryChangePaused
121+
*/
122+
public Boolean getCategoryChangePaused() {
123+
return this.categoryChangePaused;
124+
}
125+
113126
/**
114127
* @return components
115128
*/
@@ -176,6 +189,7 @@ public String getTemplateType() {
176189
public static final class Builder extends Request.Builder<CreateChatappTemplateRequest, Builder> {
177190
private Boolean allowCategoryChange;
178191
private String category;
192+
private Boolean categoryChangePaused;
179193
private java.util.List<Components> components;
180194
private String custSpaceId;
181195
private String custWabaId;
@@ -194,6 +208,7 @@ private Builder(CreateChatappTemplateRequest request) {
194208
super(request);
195209
this.allowCategoryChange = request.allowCategoryChange;
196210
this.category = request.category;
211+
this.categoryChangePaused = request.categoryChangePaused;
197212
this.components = request.components;
198213
this.custSpaceId = request.custSpaceId;
199214
this.custWabaId = request.custWabaId;
@@ -247,6 +262,15 @@ public Builder category(String category) {
247262
return this;
248263
}
249264

265+
/**
266+
* CategoryChangePaused.
267+
*/
268+
public Builder categoryChangePaused(Boolean categoryChangePaused) {
269+
this.putBodyParameter("CategoryChangePaused", categoryChangePaused);
270+
this.categoryChangePaused = categoryChangePaused;
271+
return this;
272+
}
273+
250274
/**
251275
* <p>The components of the message template.</p>
252276
* <blockquote>

cams-20200606/src/main/java/com/aliyun/sdk/service/cams20200606/models/GetChatappTemplateDetailResponseBody.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,12 +1689,18 @@ public Components build() {
16891689
* <p>GetChatappTemplateDetailResponseBody</p>
16901690
*/
16911691
public static class Data extends TeaModel {
1692+
@com.aliyun.core.annotation.NameInMap("AllowSend")
1693+
private Boolean allowSend;
1694+
16921695
@com.aliyun.core.annotation.NameInMap("AuditStatus")
16931696
private String auditStatus;
16941697

16951698
@com.aliyun.core.annotation.NameInMap("Category")
16961699
private String category;
16971700

1701+
@com.aliyun.core.annotation.NameInMap("CategoryChangePaused")
1702+
private Boolean categoryChangePaused;
1703+
16981704
@com.aliyun.core.annotation.NameInMap("Components")
16991705
private java.util.List<Components> components;
17001706

@@ -1724,8 +1730,10 @@ public static class Data extends TeaModel {
17241730
private String templateType;
17251731

17261732
private Data(Builder builder) {
1733+
this.allowSend = builder.allowSend;
17271734
this.auditStatus = builder.auditStatus;
17281735
this.category = builder.category;
1736+
this.categoryChangePaused = builder.categoryChangePaused;
17291737
this.components = builder.components;
17301738
this.example = builder.example;
17311739
this.language = builder.language;
@@ -1745,6 +1753,13 @@ public static Data create() {
17451753
return builder().build();
17461754
}
17471755

1756+
/**
1757+
* @return allowSend
1758+
*/
1759+
public Boolean getAllowSend() {
1760+
return this.allowSend;
1761+
}
1762+
17481763
/**
17491764
* @return auditStatus
17501765
*/
@@ -1759,6 +1774,13 @@ public String getCategory() {
17591774
return this.category;
17601775
}
17611776

1777+
/**
1778+
* @return categoryChangePaused
1779+
*/
1780+
public Boolean getCategoryChangePaused() {
1781+
return this.categoryChangePaused;
1782+
}
1783+
17621784
/**
17631785
* @return components
17641786
*/
@@ -1823,8 +1845,10 @@ public String getTemplateType() {
18231845
}
18241846

18251847
public static final class Builder {
1848+
private Boolean allowSend;
18261849
private String auditStatus;
18271850
private String category;
1851+
private Boolean categoryChangePaused;
18281852
private java.util.List<Components> components;
18291853
private java.util.Map<String, String> example;
18301854
private String language;
@@ -1839,8 +1863,10 @@ private Builder() {
18391863
}
18401864

18411865
private Builder(Data model) {
1866+
this.allowSend = model.allowSend;
18421867
this.auditStatus = model.auditStatus;
18431868
this.category = model.category;
1869+
this.categoryChangePaused = model.categoryChangePaused;
18441870
this.components = model.components;
18451871
this.example = model.example;
18461872
this.language = model.language;
@@ -1852,6 +1878,14 @@ private Builder(Data model) {
18521878
this.templateType = model.templateType;
18531879
}
18541880

1881+
/**
1882+
* AllowSend.
1883+
*/
1884+
public Builder allowSend(Boolean allowSend) {
1885+
this.allowSend = allowSend;
1886+
return this;
1887+
}
1888+
18551889
/**
18561890
* <p>The review status of the message template. Valid values:</p>
18571891
* <ul>
@@ -1900,6 +1934,14 @@ public Builder category(String category) {
19001934
return this;
19011935
}
19021936

1937+
/**
1938+
* CategoryChangePaused.
1939+
*/
1940+
public Builder categoryChangePaused(Boolean categoryChangePaused) {
1941+
this.categoryChangePaused = categoryChangePaused;
1942+
return this;
1943+
}
1944+
19031945
/**
19041946
* <p>The components of the message template.</p>
19051947
*/

0 commit comments

Comments
 (0)