Skip to content

Commit 84e6d64

Browse files
committed
Generated 2017-11-10 for Ens.
1 parent 62c4cf1 commit 84e6d64

38 files changed

+2472
-21
lines changed

aliyun-java-sdk-ens/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-27 Version: 3.0.19
2+
- Generated 2017-11-10 for `Ens`.
3+
14
2024-10-25 Version: 3.0.18
25
- Generated 2017-11-10 for `Ens`.
36

aliyun-java-sdk-ens/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-ens</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.0.18</version>
7+
<version>3.0.19</version>
88
<name>aliyun-java-sdk-ens</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.ens.model.v20171110;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.google.gson.Gson;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.aliyuncs.http.ProtocolType;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class AttachInstanceSDGRequest extends RpcAcsRequest<AttachInstanceSDGResponse> {
29+
30+
31+
private String sDGId;
32+
33+
@SerializedName("instanceIds")
34+
private List<String> instanceIds;
35+
public AttachInstanceSDGRequest() {
36+
super("Ens", "2017-11-10", "AttachInstanceSDG", "ens");
37+
setProtocol(ProtocolType.HTTPS);
38+
setMethod(MethodType.POST);
39+
}
40+
41+
public String getSDGId() {
42+
return this.sDGId;
43+
}
44+
45+
public void setSDGId(String sDGId) {
46+
this.sDGId = sDGId;
47+
if(sDGId != null){
48+
putQueryParameter("SDGId", sDGId);
49+
}
50+
}
51+
52+
public List<String> getInstanceIds() {
53+
return this.instanceIds;
54+
}
55+
56+
public void setInstanceIds(List<String> instanceIds) {
57+
this.instanceIds = instanceIds;
58+
if (instanceIds != null) {
59+
putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds));
60+
}
61+
}
62+
63+
@Override
64+
public Class<AttachInstanceSDGResponse> getResponseClass() {
65+
return AttachInstanceSDGResponse.class;
66+
}
67+
68+
}
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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.ens.model.v20171110;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.ens.transform.v20171110.AttachInstanceSDGResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AttachInstanceSDGResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Data data;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public Data getData() {
41+
return this.data;
42+
}
43+
44+
public void setData(Data data) {
45+
this.data = data;
46+
}
47+
48+
public static class Data {
49+
50+
private String message;
51+
52+
private Boolean success;
53+
54+
private Result result;
55+
56+
public String getMessage() {
57+
return this.message;
58+
}
59+
60+
public void setMessage(String message) {
61+
this.message = message;
62+
}
63+
64+
public Boolean getSuccess() {
65+
return this.success;
66+
}
67+
68+
public void setSuccess(Boolean success) {
69+
this.success = success;
70+
}
71+
72+
public Result getResult() {
73+
return this.result;
74+
}
75+
76+
public void setResult(Result result) {
77+
this.result = result;
78+
}
79+
80+
public static class Result {
81+
82+
private Long failedCount;
83+
84+
private Long successCount;
85+
86+
private List<FailedItemsItem> failedItems;
87+
88+
public Long getFailedCount() {
89+
return this.failedCount;
90+
}
91+
92+
public void setFailedCount(Long failedCount) {
93+
this.failedCount = failedCount;
94+
}
95+
96+
public Long getSuccessCount() {
97+
return this.successCount;
98+
}
99+
100+
public void setSuccessCount(Long successCount) {
101+
this.successCount = successCount;
102+
}
103+
104+
public List<FailedItemsItem> getFailedItems() {
105+
return this.failedItems;
106+
}
107+
108+
public void setFailedItems(List<FailedItemsItem> failedItems) {
109+
this.failedItems = failedItems;
110+
}
111+
112+
public static class FailedItemsItem {
113+
114+
private String errMessage;
115+
116+
private String instanceId;
117+
118+
public String getErrMessage() {
119+
return this.errMessage;
120+
}
121+
122+
public void setErrMessage(String errMessage) {
123+
this.errMessage = errMessage;
124+
}
125+
126+
public String getInstanceId() {
127+
return this.instanceId;
128+
}
129+
130+
public void setInstanceId(String instanceId) {
131+
this.instanceId = instanceId;
132+
}
133+
}
134+
}
135+
}
136+
137+
@Override
138+
public AttachInstanceSDGResponse getInstance(UnmarshallerContext context) {
139+
return AttachInstanceSDGResponseUnmarshaller.unmarshall(this, context);
140+
}
141+
142+
@Override
143+
public boolean checkShowJsonItemName() {
144+
return false;
145+
}
146+
}

aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateARMServerInstancesRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public class CreateARMServerInstancesRequest extends RpcAcsRequest<CreateARMServ
4848

4949
private Integer amount;
5050

51+
private String environmentVar;
52+
5153
private String nameSpace;
5254

5355
private String serverName;
@@ -190,6 +192,17 @@ public void setAmount(Integer amount) {
190192
}
191193
}
192194

195+
public String getEnvironmentVar() {
196+
return this.environmentVar;
197+
}
198+
199+
public void setEnvironmentVar(String environmentVar) {
200+
this.environmentVar = environmentVar;
201+
if(environmentVar != null){
202+
putQueryParameter("EnvironmentVar", environmentVar);
203+
}
204+
}
205+
193206
public String getNameSpace() {
194207
return this.nameSpace;
195208
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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.ens.model.v20171110;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateHaVipRequest extends RpcAcsRequest<CreateHaVipResponse> {
26+
27+
28+
private String ipAddress;
29+
30+
private String description;
31+
32+
private Integer amount;
33+
34+
private String vSwitchId;
35+
36+
private String name;
37+
public CreateHaVipRequest() {
38+
super("Ens", "2017-11-10", "CreateHaVip", "ens");
39+
setProtocol(ProtocolType.HTTPS);
40+
setMethod(MethodType.POST);
41+
}
42+
43+
public String getIpAddress() {
44+
return this.ipAddress;
45+
}
46+
47+
public void setIpAddress(String ipAddress) {
48+
this.ipAddress = ipAddress;
49+
if(ipAddress != null){
50+
putQueryParameter("IpAddress", ipAddress);
51+
}
52+
}
53+
54+
public String getDescription() {
55+
return this.description;
56+
}
57+
58+
public void setDescription(String description) {
59+
this.description = description;
60+
if(description != null){
61+
putQueryParameter("Description", description);
62+
}
63+
}
64+
65+
public Integer getAmount() {
66+
return this.amount;
67+
}
68+
69+
public void setAmount(Integer amount) {
70+
this.amount = amount;
71+
if(amount != null){
72+
putQueryParameter("Amount", amount.toString());
73+
}
74+
}
75+
76+
public String getVSwitchId() {
77+
return this.vSwitchId;
78+
}
79+
80+
public void setVSwitchId(String vSwitchId) {
81+
this.vSwitchId = vSwitchId;
82+
if(vSwitchId != null){
83+
putQueryParameter("VSwitchId", vSwitchId);
84+
}
85+
}
86+
87+
public String getName() {
88+
return this.name;
89+
}
90+
91+
public void setName(String name) {
92+
this.name = name;
93+
if(name != null){
94+
putQueryParameter("Name", name);
95+
}
96+
}
97+
98+
@Override
99+
public Class<CreateHaVipResponse> getResponseClass() {
100+
return CreateHaVipResponse.class;
101+
}
102+
103+
}

0 commit comments

Comments
 (0)