From f9ad367e9835f69308e35d22cbc6a2298710ab60 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 27 Aug 2024 07:44:32 +0000 Subject: [PATCH] Generated 2020-04-20 for OnsMqtt. --- aliyun-java-sdk-onsmqtt/ChangeLog.txt | 3 + aliyun-java-sdk-onsmqtt/pom.xml | 2 +- .../v20200420/CloseConnectionRequest.java | 69 +++++++++++++++++ .../v20200420/CloseConnectionResponse.java | 76 +++++++++++++++++++ .../CloseConnectionResponseUnmarshaller.java | 32 ++++++++ 5 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionRequest.java create mode 100644 aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionResponse.java create mode 100644 aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/transform/v20200420/CloseConnectionResponseUnmarshaller.java diff --git a/aliyun-java-sdk-onsmqtt/ChangeLog.txt b/aliyun-java-sdk-onsmqtt/ChangeLog.txt index 1fa38340dc..20bce30034 100644 --- a/aliyun-java-sdk-onsmqtt/ChangeLog.txt +++ b/aliyun-java-sdk-onsmqtt/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-08-27 Version: 1.0.14 +- Generated 2020-04-20 for `OnsMqtt`. + 2024-03-25 Version: 1.0.13 - Generated 2020-04-20 for `OnsMqtt`. diff --git a/aliyun-java-sdk-onsmqtt/pom.xml b/aliyun-java-sdk-onsmqtt/pom.xml index bea9c4d9b9..2f9e33d155 100644 --- a/aliyun-java-sdk-onsmqtt/pom.xml +++ b/aliyun-java-sdk-onsmqtt/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-onsmqtt jar - 1.0.13 + 1.0.14 aliyun-java-sdk-onsmqtt http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionRequest.java b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionRequest.java new file mode 100644 index 0000000000..870306b9b3 --- /dev/null +++ b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionRequest.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.onsmqtt.model.v20200420; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.onsmqtt.Endpoint; + +/** + * @author auto create + * @version + */ +public class CloseConnectionRequest extends RpcAcsRequest { + + + private String clientId; + + private String instanceId; + public CloseConnectionRequest() { + super("OnsMqtt", "2020-04-20", "CloseConnection", "onsmqtt"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getClientId() { + return this.clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + if(clientId != null){ + putQueryParameter("ClientId", clientId); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return CloseConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionResponse.java b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionResponse.java new file mode 100644 index 0000000000..718bb199ac --- /dev/null +++ b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/model/v20200420/CloseConnectionResponse.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.onsmqtt.model.v20200420; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.onsmqtt.transform.v20200420.CloseConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CloseConnectionResponse extends AcsResponse { + + private String requestId; + + private Integer code; + + private String message; + + private Boolean success; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public CloseConnectionResponse getInstance(UnmarshallerContext context) { + return CloseConnectionResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/transform/v20200420/CloseConnectionResponseUnmarshaller.java b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/transform/v20200420/CloseConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..42f56758e4 --- /dev/null +++ b/aliyun-java-sdk-onsmqtt/src/main/java/com/aliyuncs/onsmqtt/transform/v20200420/CloseConnectionResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.onsmqtt.transform.v20200420; + +import com.aliyuncs.onsmqtt.model.v20200420.CloseConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CloseConnectionResponseUnmarshaller { + + public static CloseConnectionResponse unmarshall(CloseConnectionResponse closeConnectionResponse, UnmarshallerContext _ctx) { + + closeConnectionResponse.setRequestId(_ctx.stringValue("CloseConnectionResponse.RequestId")); + closeConnectionResponse.setCode(_ctx.integerValue("CloseConnectionResponse.Code")); + closeConnectionResponse.setMessage(_ctx.stringValue("CloseConnectionResponse.Message")); + closeConnectionResponse.setSuccess(_ctx.booleanValue("CloseConnectionResponse.Success")); + + return closeConnectionResponse; + } +} \ No newline at end of file