Skip to content

Commit ac45f01

Browse files
committed
Generated 2017-08-01 for polardb.
1 parent 75aa735 commit ac45f01

23 files changed

+685
-3
lines changed

aliyun-java-sdk-polardb/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-12-10 Version: 1.8.58
2+
- Generated 2017-08-01 for `polardb`.
3+
14
2025-11-28 Version: 1.8.57
25
- Update endpoint info.
36

aliyun-java-sdk-polardb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-polardb</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.8.57</version>
7+
<version>1.8.58</version>
88
<name>aliyun-java-sdk-polardb</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.polardb.model.v20170801;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.ProtocolType;
20+
import com.aliyuncs.http.MethodType;
21+
import com.aliyuncs.polardb.Endpoint;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class CreateAINodesRequest extends RpcAcsRequest<CreateAINodesResponse> {
28+
29+
30+
private List<DBNodes> dBNodess;
31+
32+
private String dBClusterId;
33+
public CreateAINodesRequest() {
34+
super("polardb", "2017-08-01", "CreateAINodes", "polardb");
35+
setProtocol(ProtocolType.HTTPS);
36+
setMethod(MethodType.POST);
37+
try {
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
40+
} catch (Exception e) {}
41+
}
42+
43+
public List<DBNodes> getDBNodess() {
44+
return this.dBNodess;
45+
}
46+
47+
public void setDBNodess(List<DBNodes> dBNodess) {
48+
this.dBNodess = dBNodess;
49+
if (dBNodess != null) {
50+
for (int depth1 = 0; depth1 < dBNodess.size(); depth1++) {
51+
putQueryParameter("DBNodes." + (depth1 + 1) + ".DBNodeClass" , dBNodess.get(depth1).getDBNodeClass());
52+
}
53+
}
54+
}
55+
56+
public String getDBClusterId() {
57+
return this.dBClusterId;
58+
}
59+
60+
public void setDBClusterId(String dBClusterId) {
61+
this.dBClusterId = dBClusterId;
62+
if(dBClusterId != null){
63+
putQueryParameter("DBClusterId", dBClusterId);
64+
}
65+
}
66+
67+
public static class DBNodes {
68+
69+
private String dBNodeClass;
70+
71+
public String getDBNodeClass() {
72+
return this.dBNodeClass;
73+
}
74+
75+
public void setDBNodeClass(String dBNodeClass) {
76+
this.dBNodeClass = dBNodeClass;
77+
}
78+
}
79+
80+
@Override
81+
public Class<CreateAINodesResponse> getResponseClass() {
82+
return CreateAINodesResponse.class;
83+
}
84+
85+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.polardb.model.v20170801;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.polardb.transform.v20170801.CreateAINodesResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateAINodesResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private String dBClusterId;
31+
32+
private String orderId;
33+
34+
private List<String> dBNodeIds;
35+
36+
public String getRequestId() {
37+
return this.requestId;
38+
}
39+
40+
public void setRequestId(String requestId) {
41+
this.requestId = requestId;
42+
}
43+
44+
public String getDBClusterId() {
45+
return this.dBClusterId;
46+
}
47+
48+
public void setDBClusterId(String dBClusterId) {
49+
this.dBClusterId = dBClusterId;
50+
}
51+
52+
public String getOrderId() {
53+
return this.orderId;
54+
}
55+
56+
public void setOrderId(String orderId) {
57+
this.orderId = orderId;
58+
}
59+
60+
public List<String> getDBNodeIds() {
61+
return this.dBNodeIds;
62+
}
63+
64+
public void setDBNodeIds(List<String> dBNodeIds) {
65+
this.dBNodeIds = dBNodeIds;
66+
}
67+
68+
@Override
69+
public CreateAINodesResponse getInstance(UnmarshallerContext context) {
70+
return CreateAINodesResponseUnmarshaller.unmarshall(this, context);
71+
}
72+
73+
@Override
74+
public boolean checkShowJsonItemName() {
75+
return false;
76+
}
77+
}

aliyun-java-sdk-polardb/src/main/java/com/aliyuncs/polardb/model/v20170801/CreateApplicationRequest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class CreateApplicationRequest extends RpcAcsRequest<CreateApplicationRes
3434

3535
private String description;
3636

37+
private Boolean autoUseCoupon;
38+
3739
private String resourceGroupId;
3840

3941
private String architecture;
@@ -55,6 +57,8 @@ public class CreateApplicationRequest extends RpcAcsRequest<CreateApplicationRes
5557

5658
private Boolean autoRenew;
5759

60+
private String promotionCode;
61+
5862
private String vpcId;
5963

6064
private String zoneId;
@@ -94,6 +98,17 @@ public void setDescription(String description) {
9498
}
9599
}
96100

101+
public Boolean getAutoUseCoupon() {
102+
return this.autoUseCoupon;
103+
}
104+
105+
public void setAutoUseCoupon(Boolean autoUseCoupon) {
106+
this.autoUseCoupon = autoUseCoupon;
107+
if(autoUseCoupon != null){
108+
putQueryParameter("AutoUseCoupon", autoUseCoupon.toString());
109+
}
110+
}
111+
97112
public String getResourceGroupId() {
98113
return this.resourceGroupId;
99114
}
@@ -204,6 +219,17 @@ public void setAutoRenew(Boolean autoRenew) {
204219
}
205220
}
206221

222+
public String getPromotionCode() {
223+
return this.promotionCode;
224+
}
225+
226+
public void setPromotionCode(String promotionCode) {
227+
this.promotionCode = promotionCode;
228+
if(promotionCode != null){
229+
putQueryParameter("PromotionCode", promotionCode);
230+
}
231+
}
232+
207233
public String getVpcId() {
208234
return this.vpcId;
209235
}

aliyun-java-sdk-polardb/src/main/java/com/aliyuncs/polardb/model/v20170801/CreateDBClusterRequest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public class CreateDBClusterRequest extends RpcAcsRequest<CreateDBClusterRespons
7878

7979
private String storagePayType;
8080

81+
private String promotionCode;
82+
8183
private String zoneId;
8284

8385
private String storageAutoScale;
@@ -98,6 +100,8 @@ public class CreateDBClusterRequest extends RpcAcsRequest<CreateDBClusterRespons
98100

99101
private String defaultTimeZone;
100102

103+
private Boolean autoUseCoupon;
104+
101105
private String clusterNetworkType;
102106

103107
private String storageEncryptionKey;
@@ -443,6 +447,17 @@ public void setStoragePayType(String storagePayType) {
443447
}
444448
}
445449

450+
public String getPromotionCode() {
451+
return this.promotionCode;
452+
}
453+
454+
public void setPromotionCode(String promotionCode) {
455+
this.promotionCode = promotionCode;
456+
if(promotionCode != null){
457+
putQueryParameter("PromotionCode", promotionCode);
458+
}
459+
}
460+
446461
public String getZoneId() {
447462
return this.zoneId;
448463
}
@@ -553,6 +568,17 @@ public void setDefaultTimeZone(String defaultTimeZone) {
553568
}
554569
}
555570

571+
public Boolean getAutoUseCoupon() {
572+
return this.autoUseCoupon;
573+
}
574+
575+
public void setAutoUseCoupon(Boolean autoUseCoupon) {
576+
this.autoUseCoupon = autoUseCoupon;
577+
if(autoUseCoupon != null){
578+
putQueryParameter("AutoUseCoupon", autoUseCoupon.toString());
579+
}
580+
}
581+
556582
public String getClusterNetworkType() {
557583
return this.clusterNetworkType;
558584
}

aliyun-java-sdk-polardb/src/main/java/com/aliyuncs/polardb/model/v20170801/CreateDBNodesRequest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class CreateDBNodesRequest extends RpcAcsRequest<CreateDBNodesResponse> {
3232

3333
private String endpointBindList;
3434

35+
private Boolean autoUseCoupon;
36+
3537
private String plannedEndTime;
3638

3739
private String cloudProvider;
@@ -50,6 +52,8 @@ public class CreateDBNodesRequest extends RpcAcsRequest<CreateDBNodesResponse> {
5052

5153
private String plannedStartTime;
5254

55+
private String promotionCode;
56+
5357
private List<DBNode> dBNodes;
5458

5559
private String imciSwitch;
@@ -95,6 +99,17 @@ public void setEndpointBindList(String endpointBindList) {
9599
}
96100
}
97101

102+
public Boolean getAutoUseCoupon() {
103+
return this.autoUseCoupon;
104+
}
105+
106+
public void setAutoUseCoupon(Boolean autoUseCoupon) {
107+
this.autoUseCoupon = autoUseCoupon;
108+
if(autoUseCoupon != null){
109+
putQueryParameter("AutoUseCoupon", autoUseCoupon.toString());
110+
}
111+
}
112+
98113
public String getPlannedEndTime() {
99114
return this.plannedEndTime;
100115
}
@@ -194,6 +209,17 @@ public void setPlannedStartTime(String plannedStartTime) {
194209
}
195210
}
196211

212+
public String getPromotionCode() {
213+
return this.promotionCode;
214+
}
215+
216+
public void setPromotionCode(String promotionCode) {
217+
this.promotionCode = promotionCode;
218+
if(promotionCode != null){
219+
putQueryParameter("PromotionCode", promotionCode);
220+
}
221+
}
222+
197223
public List<DBNode> getDBNodes() {
198224
return this.dBNodes;
199225
}

aliyun-java-sdk-polardb/src/main/java/com/aliyuncs/polardb/model/v20170801/CreateStoragePlanRequest.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public class CreateStoragePlanRequest extends RpcAcsRequest<CreateStoragePlanRes
2929

3030
private String clientToken;
3131

32+
private Boolean autoUseCoupon;
33+
3234
private String storageType;
3335

3436
private String period;
@@ -41,7 +43,9 @@ public class CreateStoragePlanRequest extends RpcAcsRequest<CreateStoragePlanRes
4143

4244
private String usedTime;
4345

44-
private String storageClass;
46+
private String storageClass;
47+
48+
private String promotionCode;
4549
public CreateStoragePlanRequest() {
4650
super("polardb", "2017-08-01", "CreateStoragePlan", "polardb");
4751
setMethod(MethodType.POST);
@@ -73,6 +77,17 @@ public void setClientToken(String clientToken) {
7377
}
7478
}
7579

80+
public Boolean getAutoUseCoupon() {
81+
return this.autoUseCoupon;
82+
}
83+
84+
public void setAutoUseCoupon(Boolean autoUseCoupon) {
85+
this.autoUseCoupon = autoUseCoupon;
86+
if(autoUseCoupon != null){
87+
putQueryParameter("AutoUseCoupon", autoUseCoupon.toString());
88+
}
89+
}
90+
7691
public String getStorageType() {
7792
return this.storageType;
7893
}
@@ -148,6 +163,17 @@ public void setStorageClass(String storageClass) {
148163
if(storageClass != null){
149164
putQueryParameter("StorageClass", storageClass);
150165
}
166+
}
167+
168+
public String getPromotionCode() {
169+
return this.promotionCode;
170+
}
171+
172+
public void setPromotionCode(String promotionCode) {
173+
this.promotionCode = promotionCode;
174+
if(promotionCode != null){
175+
putQueryParameter("PromotionCode", promotionCode);
176+
}
151177
}
152178

153179
@Override

0 commit comments

Comments
 (0)