Skip to content

Commit 7c34af8

Browse files
committed
Add ModifyInstanceProperties.
1 parent 27b2d4a commit 7c34af8

File tree

8 files changed

+231
-1
lines changed

8 files changed

+231
-1
lines changed

aliyun-java-sdk-wss/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-02-07 Version: 1.0.1
2+
- Add ModifyInstanceProperties.
3+
14
2024-09-29 Version: 1.0.0
25
- Generated 2021-12-21 for `wss`.
36

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

aliyun-java-sdk-wss/src/main/java/com/aliyuncs/wss/model/v20211221/DescribePackageDeductionsRequest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
public class DescribePackageDeductionsRequest extends RpcAcsRequest<DescribePackageDeductionsResponse> {
2626

2727

28+
private Long endTime;
29+
30+
private Long startTime;
31+
2832
private Integer pageNum;
2933

3034
private String resourceType;
@@ -39,6 +43,28 @@ public DescribePackageDeductionsRequest() {
3943
setMethod(MethodType.POST);
4044
}
4145

46+
public Long getEndTime() {
47+
return this.endTime;
48+
}
49+
50+
public void setEndTime(Long endTime) {
51+
this.endTime = endTime;
52+
if(endTime != null){
53+
putQueryParameter("EndTime", endTime.toString());
54+
}
55+
}
56+
57+
public Long getStartTime() {
58+
return this.startTime;
59+
}
60+
61+
public void setStartTime(Long startTime) {
62+
this.startTime = startTime;
63+
if(startTime != null){
64+
putQueryParameter("StartTime", startTime.toString());
65+
}
66+
}
67+
4268
public Integer getPageNum() {
4369
return this.pageNum;
4470
}

aliyun-java-sdk-wss/src/main/java/com/aliyuncs/wss/model/v20211221/DescribePackageDeductionsResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public class DescribePackageDeductionsResponse extends AcsResponse {
3333

3434
private Long totalCount;
3535

36+
private Long totalUsedTime;
37+
38+
private Float totalUsedCoreTime;
39+
3640
private List<Deduction> deductions;
3741

3842
public Integer getPageNum() {
@@ -67,6 +71,22 @@ public void setTotalCount(Long totalCount) {
6771
this.totalCount = totalCount;
6872
}
6973

74+
public Long getTotalUsedTime() {
75+
return this.totalUsedTime;
76+
}
77+
78+
public void setTotalUsedTime(Long totalUsedTime) {
79+
this.totalUsedTime = totalUsedTime;
80+
}
81+
82+
public Float getTotalUsedCoreTime() {
83+
return this.totalUsedCoreTime;
84+
}
85+
86+
public void setTotalUsedCoreTime(Float totalUsedCoreTime) {
87+
this.totalUsedCoreTime = totalUsedCoreTime;
88+
}
89+
7090
public List<Deduction> getDeductions() {
7191
return this.deductions;
7292
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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.wss.model.v20211221;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ModifyInstancePropertiesRequest extends RpcAcsRequest<ModifyInstancePropertiesResponse> {
26+
27+
28+
private String resourceType;
29+
30+
private String instanceId;
31+
32+
private List<String> instanceIdss;
33+
34+
private String value;
35+
36+
private String key;
37+
public ModifyInstancePropertiesRequest() {
38+
super("wss", "2021-12-21", "ModifyInstanceProperties");
39+
setMethod(MethodType.POST);
40+
}
41+
42+
public String getResourceType() {
43+
return this.resourceType;
44+
}
45+
46+
public void setResourceType(String resourceType) {
47+
this.resourceType = resourceType;
48+
if(resourceType != null){
49+
putQueryParameter("ResourceType", resourceType);
50+
}
51+
}
52+
53+
public String getInstanceId() {
54+
return this.instanceId;
55+
}
56+
57+
public void setInstanceId(String instanceId) {
58+
this.instanceId = instanceId;
59+
if(instanceId != null){
60+
putQueryParameter("InstanceId", instanceId);
61+
}
62+
}
63+
64+
public List<String> getInstanceIdss() {
65+
return this.instanceIdss;
66+
}
67+
68+
public void setInstanceIdss(List<String> instanceIdss) {
69+
this.instanceIdss = instanceIdss;
70+
if (instanceIdss != null) {
71+
for (int i = 0; i < instanceIdss.size(); i++) {
72+
putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i));
73+
}
74+
}
75+
}
76+
77+
public String getValue() {
78+
return this.value;
79+
}
80+
81+
public void setValue(String value) {
82+
this.value = value;
83+
if(value != null){
84+
putQueryParameter("Value", value);
85+
}
86+
}
87+
88+
public String getKey() {
89+
return this.key;
90+
}
91+
92+
public void setKey(String key) {
93+
this.key = key;
94+
if(key != null){
95+
putQueryParameter("Key", key);
96+
}
97+
}
98+
99+
@Override
100+
public Class<ModifyInstancePropertiesResponse> getResponseClass() {
101+
return ModifyInstancePropertiesResponse.class;
102+
}
103+
104+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.wss.model.v20211221;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.wss.transform.v20211221.ModifyInstancePropertiesResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ModifyInstancePropertiesResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public ModifyInstancePropertiesResponse getInstance(UnmarshallerContext context) {
39+
return ModifyInstancePropertiesResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}

aliyun-java-sdk-wss/src/main/java/com/aliyuncs/wss/transform/v20211221/DescribePackageDeductionsResponseUnmarshaller.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public static DescribePackageDeductionsResponse unmarshall(DescribePackageDeduct
3030
describePackageDeductionsResponse.setPageNum(_ctx.integerValue("DescribePackageDeductionsResponse.PageNum"));
3131
describePackageDeductionsResponse.setPageSize(_ctx.integerValue("DescribePackageDeductionsResponse.PageSize"));
3232
describePackageDeductionsResponse.setTotalCount(_ctx.longValue("DescribePackageDeductionsResponse.TotalCount"));
33+
describePackageDeductionsResponse.setTotalUsedTime(_ctx.longValue("DescribePackageDeductionsResponse.TotalUsedTime"));
34+
describePackageDeductionsResponse.setTotalUsedCoreTime(_ctx.floatValue("DescribePackageDeductionsResponse.TotalUsedCoreTime"));
3335

3436
List<Deduction> deductions = new ArrayList<Deduction>();
3537
for (int i = 0; i < _ctx.lengthValue("DescribePackageDeductionsResponse.Deductions.Length"); i++) {
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.wss.transform.v20211221;
16+
17+
import com.aliyuncs.wss.model.v20211221.ModifyInstancePropertiesResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class ModifyInstancePropertiesResponseUnmarshaller {
22+
23+
public static ModifyInstancePropertiesResponse unmarshall(ModifyInstancePropertiesResponse modifyInstancePropertiesResponse, UnmarshallerContext _ctx) {
24+
25+
modifyInstancePropertiesResponse.setRequestId(_ctx.stringValue("ModifyInstancePropertiesResponse.RequestId"));
26+
27+
return modifyInstancePropertiesResponse;
28+
}
29+
}

0 commit comments

Comments
 (0)