All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.iot20180120.models.QueryDevicePropertyDataRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.iot20180120.models;

import com.aliyun.tea.*;

public class QueryDevicePropertyDataRequest extends TeaModel {
    /**
     * 

The order in which you want to sort the property records that are returned. Valid values:

*
    *
  • 0: reverse chronological order
  • *
  • 1: chronological order
  • *
*

This parameter is required.

* * example: *

0

*/ @NameInMap("Asc") public Integer asc; /** *

The name of the device.

*
*

If you specify a value for this parameter, you must also specify a value for the ProductKey parameter.

*
* * example: *

airconditioning

*/ @NameInMap("DeviceName") public String deviceName; /** *

The end of the time range to query. The value of the EndTime parameter must be greater than the value of the StartTime parameter. The value is a timestamp in milliseconds, for example, 1579249499000.

*

This parameter is required.

* * example: *

1579249499000

*/ @NameInMap("EndTime") public Long endTime; /** *

The identifier of the property that you want to query.

*

You can view the property identifier on the Define Feature tab of the Product Details page in the IoT Platform console. You can also call the QueryThingModel operation and view the property identifier in the returned TSL data.

*
*

If a property named temperature belongs to a custom module named testFb, set this parameter to testFb:temperature. The custom module is not the default module.

*
*

This parameter is required.

* * example: *

temperature

*/ @NameInMap("Identifier") public String identifier; /** *

The ID of the device to which the property belongs.:

*

You can call the QueryDeviceInfo operation to query the ID of the device.

*
*

If you specify a value for this parameter, you do not need to specify a value for the ProductKey or DeviceName parameter. The IotId parameter specifies a globally unique identifier (GUID) for the device. The value of the IotId parameter corresponds to a combination of the values of the ProductKey and DeviceName parameters. If you specify a value for the IotId parameter and values for the ProductKey and DeviceName parameters, the value of the IotId parameter takes precedence.

*
* * example: *

Q7uOhVRdZRRlDnTLv****00100

*/ @NameInMap("IotId") public String iotId; /** *

The ID of the instance. You can view the instance ID on the Overview page in the IoT Platform console.

*
*
    *
  • If your instance has an ID, you must configure this parameter. If you do not configure this parameter, the call fails.
  • *
*
*
    *
  • If your instance has no Overview page or ID, you do not need to configure this parameter.
  • *
*

For more information, see Overview.

* * example: *

iot-cn-0pp1n8t****

*/ @NameInMap("IotInstanceId") public String iotInstanceId; /** *

The number of entries to return on each page. Valid values: 1 to 50.

*

This parameter is required.

* * example: *

10

*/ @NameInMap("PageSize") public Integer pageSize; /** *

The ProductKey of the product to which the device belongs.

*
*

If you specify a value for this parameter, you must also specify a value for the DeviceName parameter.

*
* * example: *

a1BwAGV****

*/ @NameInMap("ProductKey") public String productKey; /** *

The start of the time range to query. The value of the StartTime parameter must be less than the value of the EndTime parameter. The value is a timestamp in milliseconds, for example, 1579249499000.

*

This parameter is required.

* * example: *

1579249499000

*/ @NameInMap("StartTime") public Long startTime; public static QueryDevicePropertyDataRequest build(java.util.Map map) throws Exception { QueryDevicePropertyDataRequest self = new QueryDevicePropertyDataRequest(); return TeaModel.build(map, self); } public QueryDevicePropertyDataRequest setAsc(Integer asc) { this.asc = asc; return this; } public Integer getAsc() { return this.asc; } public QueryDevicePropertyDataRequest setDeviceName(String deviceName) { this.deviceName = deviceName; return this; } public String getDeviceName() { return this.deviceName; } public QueryDevicePropertyDataRequest setEndTime(Long endTime) { this.endTime = endTime; return this; } public Long getEndTime() { return this.endTime; } public QueryDevicePropertyDataRequest setIdentifier(String identifier) { this.identifier = identifier; return this; } public String getIdentifier() { return this.identifier; } public QueryDevicePropertyDataRequest setIotId(String iotId) { this.iotId = iotId; return this; } public String getIotId() { return this.iotId; } public QueryDevicePropertyDataRequest setIotInstanceId(String iotInstanceId) { this.iotInstanceId = iotInstanceId; return this; } public String getIotInstanceId() { return this.iotInstanceId; } public QueryDevicePropertyDataRequest setPageSize(Integer pageSize) { this.pageSize = pageSize; return this; } public Integer getPageSize() { return this.pageSize; } public QueryDevicePropertyDataRequest setProductKey(String productKey) { this.productKey = productKey; return this; } public String getProductKey() { return this.productKey; } public QueryDevicePropertyDataRequest setStartTime(Long startTime) { this.startTime = startTime; return this; } public Long getStartTime() { return this.startTime; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy