Skip to content

Commit 1bb7db9

Browse files
committed
Generated 2020-04-20 for OnsMqtt.
1 parent e6683b5 commit 1bb7db9

File tree

5 files changed

+348
-1
lines changed

5 files changed

+348
-1
lines changed

aliyun-java-sdk-onsmqtt/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-02-26 Version: 1.0.16
2+
- Generated 2020-04-20 for `OnsMqtt`.
3+
14
2025-02-25 Version: 1.0.15
25
- Generated 2020-04-20 for `OnsMqtt`.
36

aliyun-java-sdk-onsmqtt/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-onsmqtt</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.15</version>
7+
<version>1.0.16</version>
88
<name>aliyun-java-sdk-onsmqtt</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.onsmqtt.model.v20200420;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.onsmqtt.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class ListInstancesRequest extends RpcAcsRequest<ListInstancesResponse> {
27+
28+
29+
private String tags;
30+
public ListInstancesRequest() {
31+
super("OnsMqtt", "2020-04-20", "ListInstances", "onsmqtt");
32+
setProtocol(ProtocolType.HTTPS);
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getTags() {
41+
return this.tags;
42+
}
43+
44+
public void setTags(String tags) {
45+
this.tags = tags;
46+
if(tags != null){
47+
putQueryParameter("Tags", tags);
48+
}
49+
}
50+
51+
@Override
52+
public Class<ListInstancesResponse> getResponseClass() {
53+
return ListInstancesResponse.class;
54+
}
55+
56+
}
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
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.onsmqtt.model.v20200420;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.onsmqtt.transform.v20200420.ListInstancesResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class ListInstancesResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private String code;
31+
32+
private String message;
33+
34+
private String success;
35+
36+
private List<MqttInstanceVO> instances;
37+
38+
public String getRequestId() {
39+
return this.requestId;
40+
}
41+
42+
public void setRequestId(String requestId) {
43+
this.requestId = requestId;
44+
}
45+
46+
public String getCode() {
47+
return this.code;
48+
}
49+
50+
public void setCode(String code) {
51+
this.code = code;
52+
}
53+
54+
public String getMessage() {
55+
return this.message;
56+
}
57+
58+
public void setMessage(String message) {
59+
this.message = message;
60+
}
61+
62+
public String getSuccess() {
63+
return this.success;
64+
}
65+
66+
public void setSuccess(String success) {
67+
this.success = success;
68+
}
69+
70+
public List<MqttInstanceVO> getInstances() {
71+
return this.instances;
72+
}
73+
74+
public void setInstances(List<MqttInstanceVO> instances) {
75+
this.instances = instances;
76+
}
77+
78+
public static class MqttInstanceVO {
79+
80+
private String instanceId;
81+
82+
private String instanceName;
83+
84+
private Integer instanceStatus;
85+
86+
private Integer instanceType;
87+
88+
private String specific;
89+
90+
private String regionId;
91+
92+
private Long createTime;
93+
94+
private Long expireTime;
95+
96+
private String kernelVersion;
97+
98+
private String orderId;
99+
100+
private List<TagResourceDTO> mqttTags;
101+
102+
public String getInstanceId() {
103+
return this.instanceId;
104+
}
105+
106+
public void setInstanceId(String instanceId) {
107+
this.instanceId = instanceId;
108+
}
109+
110+
public String getInstanceName() {
111+
return this.instanceName;
112+
}
113+
114+
public void setInstanceName(String instanceName) {
115+
this.instanceName = instanceName;
116+
}
117+
118+
public Integer getInstanceStatus() {
119+
return this.instanceStatus;
120+
}
121+
122+
public void setInstanceStatus(Integer instanceStatus) {
123+
this.instanceStatus = instanceStatus;
124+
}
125+
126+
public Integer getInstanceType() {
127+
return this.instanceType;
128+
}
129+
130+
public void setInstanceType(Integer instanceType) {
131+
this.instanceType = instanceType;
132+
}
133+
134+
public String getSpecific() {
135+
return this.specific;
136+
}
137+
138+
public void setSpecific(String specific) {
139+
this.specific = specific;
140+
}
141+
142+
public String getRegionId() {
143+
return this.regionId;
144+
}
145+
146+
public void setRegionId(String regionId) {
147+
this.regionId = regionId;
148+
}
149+
150+
public Long getCreateTime() {
151+
return this.createTime;
152+
}
153+
154+
public void setCreateTime(Long createTime) {
155+
this.createTime = createTime;
156+
}
157+
158+
public Long getExpireTime() {
159+
return this.expireTime;
160+
}
161+
162+
public void setExpireTime(Long expireTime) {
163+
this.expireTime = expireTime;
164+
}
165+
166+
public String getKernelVersion() {
167+
return this.kernelVersion;
168+
}
169+
170+
public void setKernelVersion(String kernelVersion) {
171+
this.kernelVersion = kernelVersion;
172+
}
173+
174+
public String getOrderId() {
175+
return this.orderId;
176+
}
177+
178+
public void setOrderId(String orderId) {
179+
this.orderId = orderId;
180+
}
181+
182+
public List<TagResourceDTO> getMqttTags() {
183+
return this.mqttTags;
184+
}
185+
186+
public void setMqttTags(List<TagResourceDTO> mqttTags) {
187+
this.mqttTags = mqttTags;
188+
}
189+
190+
public static class TagResourceDTO {
191+
192+
private String tagKey;
193+
194+
private String tagValue;
195+
196+
public String getTagKey() {
197+
return this.tagKey;
198+
}
199+
200+
public void setTagKey(String tagKey) {
201+
this.tagKey = tagKey;
202+
}
203+
204+
public String getTagValue() {
205+
return this.tagValue;
206+
}
207+
208+
public void setTagValue(String tagValue) {
209+
this.tagValue = tagValue;
210+
}
211+
}
212+
}
213+
214+
@Override
215+
public ListInstancesResponse getInstance(UnmarshallerContext context) {
216+
return ListInstancesResponseUnmarshaller.unmarshall(this, context);
217+
}
218+
219+
@Override
220+
public boolean checkShowJsonItemName() {
221+
return false;
222+
}
223+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.onsmqtt.transform.v20200420;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.onsmqtt.model.v20200420.ListInstancesResponse;
21+
import com.aliyuncs.onsmqtt.model.v20200420.ListInstancesResponse.MqttInstanceVO;
22+
import com.aliyuncs.onsmqtt.model.v20200420.ListInstancesResponse.MqttInstanceVO.TagResourceDTO;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
26+
public class ListInstancesResponseUnmarshaller {
27+
28+
public static ListInstancesResponse unmarshall(ListInstancesResponse listInstancesResponse, UnmarshallerContext _ctx) {
29+
30+
listInstancesResponse.setRequestId(_ctx.stringValue("ListInstancesResponse.RequestId"));
31+
listInstancesResponse.setCode(_ctx.stringValue("ListInstancesResponse.Code"));
32+
listInstancesResponse.setMessage(_ctx.stringValue("ListInstancesResponse.Message"));
33+
listInstancesResponse.setSuccess(_ctx.stringValue("ListInstancesResponse.Success"));
34+
35+
List<MqttInstanceVO> instances = new ArrayList<MqttInstanceVO>();
36+
for (int i = 0; i < _ctx.lengthValue("ListInstancesResponse.Instances.Length"); i++) {
37+
MqttInstanceVO mqttInstanceVO = new MqttInstanceVO();
38+
mqttInstanceVO.setInstanceId(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].InstanceId"));
39+
mqttInstanceVO.setInstanceName(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].InstanceName"));
40+
mqttInstanceVO.setInstanceStatus(_ctx.integerValue("ListInstancesResponse.Instances["+ i +"].InstanceStatus"));
41+
mqttInstanceVO.setInstanceType(_ctx.integerValue("ListInstancesResponse.Instances["+ i +"].InstanceType"));
42+
mqttInstanceVO.setSpecific(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].Specific"));
43+
mqttInstanceVO.setRegionId(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].RegionId"));
44+
mqttInstanceVO.setCreateTime(_ctx.longValue("ListInstancesResponse.Instances["+ i +"].CreateTime"));
45+
mqttInstanceVO.setExpireTime(_ctx.longValue("ListInstancesResponse.Instances["+ i +"].ExpireTime"));
46+
mqttInstanceVO.setKernelVersion(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].KernelVersion"));
47+
mqttInstanceVO.setOrderId(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].OrderId"));
48+
49+
List<TagResourceDTO> mqttTags = new ArrayList<TagResourceDTO>();
50+
for (int j = 0; j < _ctx.lengthValue("ListInstancesResponse.Instances["+ i +"].MqttTags.Length"); j++) {
51+
TagResourceDTO tagResourceDTO = new TagResourceDTO();
52+
tagResourceDTO.setTagKey(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].MqttTags["+ j +"].TagKey"));
53+
tagResourceDTO.setTagValue(_ctx.stringValue("ListInstancesResponse.Instances["+ i +"].MqttTags["+ j +"].TagValue"));
54+
55+
mqttTags.add(tagResourceDTO);
56+
}
57+
mqttInstanceVO.setMqttTags(mqttTags);
58+
59+
instances.add(mqttInstanceVO);
60+
}
61+
listInstancesResponse.setInstances(instances);
62+
63+
return listInstancesResponse;
64+
}
65+
}

0 commit comments

Comments
 (0)