com.tencentcloudapi.iotvideo.v20201215.models.DescribeDeviceDataHistoryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-iotvideo Show documentation
Show all versions of tencentcloud-sdk-java-iotvideo Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.tencentcloudapi.iotvideo.v20201215.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeDeviceDataHistoryRequest extends AbstractModel{
/**
* 区间开始时间(Unix 时间戳,毫秒级)
*/
@SerializedName("MinTime")
@Expose
private Long MinTime;
/**
* 区间结束时间(Unix 时间戳,毫秒级)
*/
@SerializedName("MaxTime")
@Expose
private Long MaxTime;
/**
* 产品ID
*/
@SerializedName("ProductId")
@Expose
private String ProductId;
/**
* 设备名称
*/
@SerializedName("DeviceName")
@Expose
private String DeviceName;
/**
* 属性字段名称,对应数据模板中功能属性的标识符
*/
@SerializedName("FieldName")
@Expose
private String FieldName;
/**
* 返回条数
*/
@SerializedName("Limit")
@Expose
private Long [] Limit;
/**
* 检索上下文
*/
@SerializedName("Context")
@Expose
private String Context;
/**
* Get 区间开始时间(Unix 时间戳,毫秒级)
* @return MinTime 区间开始时间(Unix 时间戳,毫秒级)
*/
public Long getMinTime() {
return this.MinTime;
}
/**
* Set 区间开始时间(Unix 时间戳,毫秒级)
* @param MinTime 区间开始时间(Unix 时间戳,毫秒级)
*/
public void setMinTime(Long MinTime) {
this.MinTime = MinTime;
}
/**
* Get 区间结束时间(Unix 时间戳,毫秒级)
* @return MaxTime 区间结束时间(Unix 时间戳,毫秒级)
*/
public Long getMaxTime() {
return this.MaxTime;
}
/**
* Set 区间结束时间(Unix 时间戳,毫秒级)
* @param MaxTime 区间结束时间(Unix 时间戳,毫秒级)
*/
public void setMaxTime(Long MaxTime) {
this.MaxTime = MaxTime;
}
/**
* Get 产品ID
* @return ProductId 产品ID
*/
public String getProductId() {
return this.ProductId;
}
/**
* Set 产品ID
* @param ProductId 产品ID
*/
public void setProductId(String ProductId) {
this.ProductId = ProductId;
}
/**
* Get 设备名称
* @return DeviceName 设备名称
*/
public String getDeviceName() {
return this.DeviceName;
}
/**
* Set 设备名称
* @param DeviceName 设备名称
*/
public void setDeviceName(String DeviceName) {
this.DeviceName = DeviceName;
}
/**
* Get 属性字段名称,对应数据模板中功能属性的标识符
* @return FieldName 属性字段名称,对应数据模板中功能属性的标识符
*/
public String getFieldName() {
return this.FieldName;
}
/**
* Set 属性字段名称,对应数据模板中功能属性的标识符
* @param FieldName 属性字段名称,对应数据模板中功能属性的标识符
*/
public void setFieldName(String FieldName) {
this.FieldName = FieldName;
}
/**
* Get 返回条数
* @return Limit 返回条数
*/
public Long [] getLimit() {
return this.Limit;
}
/**
* Set 返回条数
* @param Limit 返回条数
*/
public void setLimit(Long [] Limit) {
this.Limit = Limit;
}
/**
* Get 检索上下文
* @return Context 检索上下文
*/
public String getContext() {
return this.Context;
}
/**
* Set 检索上下文
* @param Context 检索上下文
*/
public void setContext(String Context) {
this.Context = Context;
}
public DescribeDeviceDataHistoryRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeDeviceDataHistoryRequest(DescribeDeviceDataHistoryRequest source) {
if (source.MinTime != null) {
this.MinTime = new Long(source.MinTime);
}
if (source.MaxTime != null) {
this.MaxTime = new Long(source.MaxTime);
}
if (source.ProductId != null) {
this.ProductId = new String(source.ProductId);
}
if (source.DeviceName != null) {
this.DeviceName = new String(source.DeviceName);
}
if (source.FieldName != null) {
this.FieldName = new String(source.FieldName);
}
if (source.Limit != null) {
this.Limit = new Long[source.Limit.length];
for (int i = 0; i < source.Limit.length; i++) {
this.Limit[i] = new Long(source.Limit[i]);
}
}
if (source.Context != null) {
this.Context = new String(source.Context);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "MinTime", this.MinTime);
this.setParamSimple(map, prefix + "MaxTime", this.MaxTime);
this.setParamSimple(map, prefix + "ProductId", this.ProductId);
this.setParamSimple(map, prefix + "DeviceName", this.DeviceName);
this.setParamSimple(map, prefix + "FieldName", this.FieldName);
this.setParamArraySimple(map, prefix + "Limit.", this.Limit);
this.setParamSimple(map, prefix + "Context", this.Context);
}
}