
com.tencentcloudapi.iot.v20180123.models.DeviceStatus Maven / Gradle / Ivy
/*
* 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.iot.v20180123.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DeviceStatus extends AbstractModel{
/**
* 设备名称
*/
@SerializedName("DeviceName")
@Expose
private String DeviceName;
/**
* 设备状态(inactive, online, offline)
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 首次上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("FirstOnline")
@Expose
private String FirstOnline;
/**
* 最后上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("LastOnline")
@Expose
private String LastOnline;
/**
* 上线次数
*/
@SerializedName("OnlineTimes")
@Expose
private Long OnlineTimes;
/**
* Get 设备名称
* @return DeviceName 设备名称
*/
public String getDeviceName() {
return this.DeviceName;
}
/**
* Set 设备名称
* @param DeviceName 设备名称
*/
public void setDeviceName(String DeviceName) {
this.DeviceName = DeviceName;
}
/**
* Get 设备状态(inactive, online, offline)
* @return Status 设备状态(inactive, online, offline)
*/
public String getStatus() {
return this.Status;
}
/**
* Set 设备状态(inactive, online, offline)
* @param Status 设备状态(inactive, online, offline)
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 首次上线时间
注意:此字段可能返回 null,表示取不到有效值。
* @return FirstOnline 首次上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getFirstOnline() {
return this.FirstOnline;
}
/**
* Set 首次上线时间
注意:此字段可能返回 null,表示取不到有效值。
* @param FirstOnline 首次上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setFirstOnline(String FirstOnline) {
this.FirstOnline = FirstOnline;
}
/**
* Get 最后上线时间
注意:此字段可能返回 null,表示取不到有效值。
* @return LastOnline 最后上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getLastOnline() {
return this.LastOnline;
}
/**
* Set 最后上线时间
注意:此字段可能返回 null,表示取不到有效值。
* @param LastOnline 最后上线时间
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setLastOnline(String LastOnline) {
this.LastOnline = LastOnline;
}
/**
* Get 上线次数
* @return OnlineTimes 上线次数
*/
public Long getOnlineTimes() {
return this.OnlineTimes;
}
/**
* Set 上线次数
* @param OnlineTimes 上线次数
*/
public void setOnlineTimes(Long OnlineTimes) {
this.OnlineTimes = OnlineTimes;
}
public DeviceStatus() {
}
/**
* 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 DeviceStatus(DeviceStatus source) {
if (source.DeviceName != null) {
this.DeviceName = new String(source.DeviceName);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.FirstOnline != null) {
this.FirstOnline = new String(source.FirstOnline);
}
if (source.LastOnline != null) {
this.LastOnline = new String(source.LastOnline);
}
if (source.OnlineTimes != null) {
this.OnlineTimes = new Long(source.OnlineTimes);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DeviceName", this.DeviceName);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "FirstOnline", this.FirstOnline);
this.setParamSimple(map, prefix + "LastOnline", this.LastOnline);
this.setParamSimple(map, prefix + "OnlineTimes", this.OnlineTimes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy