/*
* Copyright 2016 Baidu, Inc.
*
* 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.baidubce.services.iotdm.model;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Represent the device attributes.
*/
public class DeviceAttributes {
private JsonNode reported;
private JsonNode desired;
private int profileVersion;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'", timezone = "UTC")
private Date timestamp;
public JsonNode getReported() {
return reported;
}
public void setReported(JsonNode reported) {
this.reported = reported;
}
public JsonNode getDesired() {
return desired;
}
public void setDesired(JsonNode desired) {
this.desired = desired;
}
public int getProfileVersion() {
return profileVersion;
}
public void setProfileVersion(int profileVersion) {
this.profileVersion = profileVersion;
}
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
}