Skip to content

Commit bc88b05

Browse files
committed
Generated 2014-05-26 for Ecs.
1 parent 45eb2f4 commit bc88b05

File tree

52 files changed

+2709
-1466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2709
-1466
lines changed

aliyun-java-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-09-11 Version: 5.11.23
2+
- Generated 2014-05-26 for `Ecs`.
3+
14
2025-07-01 Version: 5.11.22
25
- Support LoginAsNonRoot for LaunchTemplate.
36

aliyun-java-sdk-ecs/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-ecs</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.11.22</version>
7+
<version>5.11.23</version>
88
<name>aliyun-java-sdk-ecs</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class CancelAutoSnapshotPolicyRequest extends RpcAcsRequest<CancelAutoSna
2727

2828
private Long resourceOwnerId;
2929

30+
private String autoSnapshotPolicyId;
31+
3032
private String diskIds;
3133

3234
private String resourceOwnerAccount;
@@ -52,6 +54,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
5254
}
5355
}
5456

57+
public String getAutoSnapshotPolicyId() {
58+
return this.autoSnapshotPolicyId;
59+
}
60+
61+
public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) {
62+
this.autoSnapshotPolicyId = autoSnapshotPolicyId;
63+
if(autoSnapshotPolicyId != null){
64+
putQueryParameter("autoSnapshotPolicyId", autoSnapshotPolicyId);
65+
}
66+
}
67+
5568
public String getDiskIds() {
5669
return this.diskIds;
5770
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationRequest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public void setTags(List<Tag> tags) {
120120
this.tags = tags;
121121
if (tags != null) {
122122
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
123-
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
124123
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
124+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
125125
}
126126
}
127127
}
@@ -262,17 +262,9 @@ public void setEndTime(String endTime) {
262262

263263
public static class Tag {
264264

265-
private String key;
266-
267265
private String value;
268266

269-
public String getKey() {
270-
return this.key;
271-
}
272-
273-
public void setKey(String key) {
274-
this.key = key;
275-
}
267+
private String key;
276268

277269
public String getValue() {
278270
return this.value;
@@ -281,6 +273,14 @@ public String getValue() {
281273
public void setValue(String value) {
282274
this.value = value;
283275
}
276+
277+
public String getKey() {
278+
return this.key;
279+
}
280+
281+
public void setKey(String key) {
282+
this.key = key;
283+
}
284284
}
285285

286286
@Override

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateElasticityAssuranceRequest.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ public void setTags(List<Tag> tags) {
128128
this.tags = tags;
129129
if (tags != null) {
130130
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
131-
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
132131
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
132+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
133133
}
134134
}
135135
}
@@ -311,27 +311,19 @@ public void setRecurrenceRuless(List<RecurrenceRules> recurrenceRuless) {
311311
this.recurrenceRuless = recurrenceRuless;
312312
if (recurrenceRuless != null) {
313313
for (int depth1 = 0; depth1 < recurrenceRuless.size(); depth1++) {
314-
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".RecurrenceType" , recurrenceRuless.get(depth1).getRecurrenceType());
315-
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".RecurrenceValue" , recurrenceRuless.get(depth1).getRecurrenceValue());
316314
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".StartHour" , recurrenceRuless.get(depth1).getStartHour());
315+
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".RecurrenceType" , recurrenceRuless.get(depth1).getRecurrenceType());
317316
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".EndHour" , recurrenceRuless.get(depth1).getEndHour());
317+
putQueryParameter("RecurrenceRules." + (depth1 + 1) + ".RecurrenceValue" , recurrenceRuless.get(depth1).getRecurrenceValue());
318318
}
319319
}
320320
}
321321

322322
public static class Tag {
323323

324-
private String key;
325-
326324
private String value;
327325

328-
public String getKey() {
329-
return this.key;
330-
}
331-
332-
public void setKey(String key) {
333-
this.key = key;
334-
}
326+
private String key;
335327

336328
public String getValue() {
337329
return this.value;
@@ -340,17 +332,33 @@ public String getValue() {
340332
public void setValue(String value) {
341333
this.value = value;
342334
}
335+
336+
public String getKey() {
337+
return this.key;
338+
}
339+
340+
public void setKey(String key) {
341+
this.key = key;
342+
}
343343
}
344344

345345
public static class RecurrenceRules {
346346

347+
private Integer startHour;
348+
347349
private String recurrenceType;
348350

351+
private Integer endHour;
352+
349353
private String recurrenceValue;
350354

351-
private Integer startHour;
355+
public Integer getStartHour() {
356+
return this.startHour;
357+
}
352358

353-
private Integer endHour;
359+
public void setStartHour(Integer startHour) {
360+
this.startHour = startHour;
361+
}
354362

355363
public String getRecurrenceType() {
356364
return this.recurrenceType;
@@ -360,29 +368,21 @@ public void setRecurrenceType(String recurrenceType) {
360368
this.recurrenceType = recurrenceType;
361369
}
362370

363-
public String getRecurrenceValue() {
364-
return this.recurrenceValue;
365-
}
366-
367-
public void setRecurrenceValue(String recurrenceValue) {
368-
this.recurrenceValue = recurrenceValue;
369-
}
370-
371-
public Integer getStartHour() {
372-
return this.startHour;
373-
}
374-
375-
public void setStartHour(Integer startHour) {
376-
this.startHour = startHour;
377-
}
378-
379371
public Integer getEndHour() {
380372
return this.endHour;
381373
}
382374

383375
public void setEndHour(Integer endHour) {
384376
this.endHour = endHour;
385377
}
378+
379+
public String getRecurrenceValue() {
380+
return this.recurrenceValue;
381+
}
382+
383+
public void setRecurrenceValue(String recurrenceValue) {
384+
this.recurrenceValue = recurrenceValue;
385+
}
386386
}
387387

388388
@Override
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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.ecs.model.v20140526;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.ecs.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DescribeAutoSnapshotPolicyAssociationsRequest extends RpcAcsRequest<DescribeAutoSnapshotPolicyAssociationsResponse> {
27+
28+
29+
private Long resourceOwnerId;
30+
31+
private String autoSnapshotPolicyId;
32+
33+
private String nextToken;
34+
35+
private String diskId;
36+
37+
private String resourceOwnerAccount;
38+
39+
private String ownerAccount;
40+
41+
private Long ownerId;
42+
43+
private Integer maxResults;
44+
public DescribeAutoSnapshotPolicyAssociationsRequest() {
45+
super("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicyAssociations", "ecs");
46+
setProtocol(ProtocolType.HTTPS);
47+
setMethod(MethodType.POST);
48+
try {
49+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
50+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
51+
} catch (Exception e) {}
52+
}
53+
54+
public Long getResourceOwnerId() {
55+
return this.resourceOwnerId;
56+
}
57+
58+
public void setResourceOwnerId(Long resourceOwnerId) {
59+
this.resourceOwnerId = resourceOwnerId;
60+
if(resourceOwnerId != null){
61+
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
62+
}
63+
}
64+
65+
public String getAutoSnapshotPolicyId() {
66+
return this.autoSnapshotPolicyId;
67+
}
68+
69+
public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) {
70+
this.autoSnapshotPolicyId = autoSnapshotPolicyId;
71+
if(autoSnapshotPolicyId != null){
72+
putQueryParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
73+
}
74+
}
75+
76+
public String getNextToken() {
77+
return this.nextToken;
78+
}
79+
80+
public void setNextToken(String nextToken) {
81+
this.nextToken = nextToken;
82+
if(nextToken != null){
83+
putQueryParameter("NextToken", nextToken);
84+
}
85+
}
86+
87+
public String getDiskId() {
88+
return this.diskId;
89+
}
90+
91+
public void setDiskId(String diskId) {
92+
this.diskId = diskId;
93+
if(diskId != null){
94+
putQueryParameter("DiskId", diskId);
95+
}
96+
}
97+
98+
public String getResourceOwnerAccount() {
99+
return this.resourceOwnerAccount;
100+
}
101+
102+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
103+
this.resourceOwnerAccount = resourceOwnerAccount;
104+
if(resourceOwnerAccount != null){
105+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
106+
}
107+
}
108+
109+
public String getOwnerAccount() {
110+
return this.ownerAccount;
111+
}
112+
113+
public void setOwnerAccount(String ownerAccount) {
114+
this.ownerAccount = ownerAccount;
115+
if(ownerAccount != null){
116+
putQueryParameter("OwnerAccount", ownerAccount);
117+
}
118+
}
119+
120+
public Long getOwnerId() {
121+
return this.ownerId;
122+
}
123+
124+
public void setOwnerId(Long ownerId) {
125+
this.ownerId = ownerId;
126+
if(ownerId != null){
127+
putQueryParameter("OwnerId", ownerId.toString());
128+
}
129+
}
130+
131+
public Integer getMaxResults() {
132+
return this.maxResults;
133+
}
134+
135+
public void setMaxResults(Integer maxResults) {
136+
this.maxResults = maxResults;
137+
if(maxResults != null){
138+
putQueryParameter("MaxResults", maxResults.toString());
139+
}
140+
}
141+
142+
@Override
143+
public Class<DescribeAutoSnapshotPolicyAssociationsResponse> getResponseClass() {
144+
return DescribeAutoSnapshotPolicyAssociationsResponse.class;
145+
}
146+
147+
}

0 commit comments

Comments
 (0)