com.aliyun.iot20180120.models.QueryDeviceBySQLResponseBody Maven / Gradle / Ivy
Show all versions of iot20180120 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.iot20180120.models;
import com.aliyun.tea.*;
public class QueryDeviceBySQLResponseBody extends TeaModel {
/**
* The error code returned if the call fails. For more information, see Error codes.
*
* example:
* iot.system.SystemException
*/
@NameInMap("Code")
public String code;
/**
* The device information returned if the call is successful.
*/
@NameInMap("Data")
public java.util.List data;
/**
* The error message returned if the call fails.
*/
@NameInMap("ErrorMessage")
public String errorMessage;
/**
* The ID of the request.
*
* example:
* E55E50B7-40EE-4B6B-8BBE-D3ED55CCF565
*/
@NameInMap("RequestId")
public String requestId;
/**
* Indicates whether the call was successful. Valid values:
*
* - true: The call was successful.
* - false: The call failed.
*
*
* example:
* true
*/
@NameInMap("Success")
public Boolean success;
/**
* If you specify SELECT count(*) FROM device
in the SQL-like statement, the number of rows that match the specified conditions is returned.
*
* example:
* 100
*/
@NameInMap("TotalCount")
public Long totalCount;
public static QueryDeviceBySQLResponseBody build(java.util.Map map) throws Exception {
QueryDeviceBySQLResponseBody self = new QueryDeviceBySQLResponseBody();
return TeaModel.build(map, self);
}
public QueryDeviceBySQLResponseBody setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public QueryDeviceBySQLResponseBody setData(java.util.List data) {
this.data = data;
return this;
}
public java.util.List getData() {
return this.data;
}
public QueryDeviceBySQLResponseBody setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
public String getErrorMessage() {
return this.errorMessage;
}
public QueryDeviceBySQLResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public QueryDeviceBySQLResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public QueryDeviceBySQLResponseBody setTotalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public Long getTotalCount() {
return this.totalCount;
}
public static class QueryDeviceBySQLResponseBodyDataGroups extends TeaModel {
/**
* The ID of the group.
*
* example:
* a1d21d2fas
*/
@NameInMap("GroupId")
public String groupId;
public static QueryDeviceBySQLResponseBodyDataGroups build(java.util.Map map) throws Exception {
QueryDeviceBySQLResponseBodyDataGroups self = new QueryDeviceBySQLResponseBodyDataGroups();
return TeaModel.build(map, self);
}
public QueryDeviceBySQLResponseBodyDataGroups setGroupId(String groupId) {
this.groupId = groupId;
return this;
}
public String getGroupId() {
return this.groupId;
}
}
public static class QueryDeviceBySQLResponseBodyDataOTAModules extends TeaModel {
/**
* The version number of each OTA module.
*
* example:
* a1-dads2-dad2
*/
@NameInMap("FirmwareVersion")
public String firmwareVersion;
/**
* The name of the OTA module.
*
* example:
* SomeSampleModule
*/
@NameInMap("ModuleName")
public String moduleName;
public static QueryDeviceBySQLResponseBodyDataOTAModules build(java.util.Map map) throws Exception {
QueryDeviceBySQLResponseBodyDataOTAModules self = new QueryDeviceBySQLResponseBodyDataOTAModules();
return TeaModel.build(map, self);
}
public QueryDeviceBySQLResponseBodyDataOTAModules setFirmwareVersion(String firmwareVersion) {
this.firmwareVersion = firmwareVersion;
return this;
}
public String getFirmwareVersion() {
return this.firmwareVersion;
}
public QueryDeviceBySQLResponseBodyDataOTAModules setModuleName(String moduleName) {
this.moduleName = moduleName;
return this;
}
public String getModuleName() {
return this.moduleName;
}
}
public static class QueryDeviceBySQLResponseBodyDataTags extends TeaModel {
/**
* The tag key.
*
* example:
* Color
*/
@NameInMap("TagName")
public String tagName;
/**
* The tag value.
*
* example:
* Red
*/
@NameInMap("TagValue")
public String tagValue;
public static QueryDeviceBySQLResponseBodyDataTags build(java.util.Map map) throws Exception {
QueryDeviceBySQLResponseBodyDataTags self = new QueryDeviceBySQLResponseBodyDataTags();
return TeaModel.build(map, self);
}
public QueryDeviceBySQLResponseBodyDataTags setTagName(String tagName) {
this.tagName = tagName;
return this;
}
public String getTagName() {
return this.tagName;
}
public QueryDeviceBySQLResponseBodyDataTags setTagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public String getTagValue() {
return this.tagValue;
}
}
public static class QueryDeviceBySQLResponseBodyData extends TeaModel {
/**
* The time when the device was activated. The time is in the GMT format.
*
* example:
* 2020-04-04 16:38:18.607
*/
@NameInMap("ActiveTime")
public String activeTime;
/**
* The name of the device.
*
* example:
* light
*/
@NameInMap("DeviceName")
public String deviceName;
/**
* The time when the device was created. The time is in the GMT format.
*
* example:
* 2020-04-04 16:38:17.000
*/
@NameInMap("GmtCreate")
public String gmtCreate;
/**
* The time when the device information was last updated. The time is in the GMT format.
*
* example:
* 2020-04-04 16:38:19.000
*/
@NameInMap("GmtModified")
public String gmtModified;
/**
* The information about the groups to which the device belongs.
*/
@NameInMap("Groups")
public java.util.List groups;
/**
* The ID of the device. The ID is a unique identifier that is issued by IoT Platform to the device.
*
* example:
* Q7uOhVRdZRRlDnTLv****00100
*/
@NameInMap("IotId")
public String iotId;
/**
* The alias of the device.
*/
@NameInMap("Nickname")
public String nickname;
/**
* The information about the firmware of each device module.
*/
@NameInMap("OTAModules")
public java.util.List OTAModules;
/**
* The ProductKey of the product to which the device belongs.
*
* example:
* a1BwAGV****
*/
@NameInMap("ProductKey")
public String productKey;
/**
* The status of the device. Valid values:
*
* - ONLINE: The device is online.
* - OFFLINE: The device is offline.
* - UNACTIVE: The device is not activated.
* - DISABLE: The device is disabled.
*
*
* example:
* ONLINE
*/
@NameInMap("Status")
public String status;
/**
* The information about device tags.
*/
@NameInMap("Tags")
public java.util.List tags;
public static QueryDeviceBySQLResponseBodyData build(java.util.Map map) throws Exception {
QueryDeviceBySQLResponseBodyData self = new QueryDeviceBySQLResponseBodyData();
return TeaModel.build(map, self);
}
public QueryDeviceBySQLResponseBodyData setActiveTime(String activeTime) {
this.activeTime = activeTime;
return this;
}
public String getActiveTime() {
return this.activeTime;
}
public QueryDeviceBySQLResponseBodyData setDeviceName(String deviceName) {
this.deviceName = deviceName;
return this;
}
public String getDeviceName() {
return this.deviceName;
}
public QueryDeviceBySQLResponseBodyData setGmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
public String getGmtCreate() {
return this.gmtCreate;
}
public QueryDeviceBySQLResponseBodyData setGmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
public String getGmtModified() {
return this.gmtModified;
}
public QueryDeviceBySQLResponseBodyData setGroups(java.util.List groups) {
this.groups = groups;
return this;
}
public java.util.List getGroups() {
return this.groups;
}
public QueryDeviceBySQLResponseBodyData setIotId(String iotId) {
this.iotId = iotId;
return this;
}
public String getIotId() {
return this.iotId;
}
public QueryDeviceBySQLResponseBodyData setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getNickname() {
return this.nickname;
}
public QueryDeviceBySQLResponseBodyData setOTAModules(java.util.List OTAModules) {
this.OTAModules = OTAModules;
return this;
}
public java.util.List getOTAModules() {
return this.OTAModules;
}
public QueryDeviceBySQLResponseBodyData setProductKey(String productKey) {
this.productKey = productKey;
return this;
}
public String getProductKey() {
return this.productKey;
}
public QueryDeviceBySQLResponseBodyData setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public QueryDeviceBySQLResponseBodyData setTags(java.util.List tags) {
this.tags = tags;
return this;
}
public java.util.List getTags() {
return this.tags;
}
}
}