com.aliyun.dingtalkdiot_1_0.models.BatchUpdateDeviceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkdiot_1_0.models;
import com.aliyun.tea.*;
public class BatchUpdateDeviceRequest extends TeaModel {
// 钉钉物联组织ID, 第三方平台必填,企业内部系统忽略。
@NameInMap("corpId")
public String corpId;
// 设备列表。
@NameInMap("devices")
public java.util.List devices;
public static BatchUpdateDeviceRequest build(java.util.Map map) throws Exception {
BatchUpdateDeviceRequest self = new BatchUpdateDeviceRequest();
return TeaModel.build(map, self);
}
public BatchUpdateDeviceRequest setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
public BatchUpdateDeviceRequest setDevices(java.util.List devices) {
this.devices = devices;
return this;
}
public java.util.List getDevices() {
return this.devices;
}
public static class BatchUpdateDeviceRequestDevicesLiveUrls extends TeaModel {
// flv格式视频流地址
@NameInMap("flv")
public String flv;
// hls格式视频流地址
@NameInMap("hls")
public String hls;
// rtmp格式视频流地址
@NameInMap("rtmp")
public String rtmp;
public static BatchUpdateDeviceRequestDevicesLiveUrls build(java.util.Map map) throws Exception {
BatchUpdateDeviceRequestDevicesLiveUrls self = new BatchUpdateDeviceRequestDevicesLiveUrls();
return TeaModel.build(map, self);
}
public BatchUpdateDeviceRequestDevicesLiveUrls setFlv(String flv) {
this.flv = flv;
return this;
}
public String getFlv() {
return this.flv;
}
public BatchUpdateDeviceRequestDevicesLiveUrls setHls(String hls) {
this.hls = hls;
return this;
}
public String getHls() {
return this.hls;
}
public BatchUpdateDeviceRequestDevicesLiveUrls setRtmp(String rtmp) {
this.rtmp = rtmp;
return this;
}
public String getRtmp() {
return this.rtmp;
}
}
public static class BatchUpdateDeviceRequestDevices extends TeaModel {
// 设备ID。
@NameInMap("deviceId")
public String deviceId;
// 设备名称。
@NameInMap("deviceName")
public String deviceName;
// 设备状态 0:在线 1:离线
@NameInMap("deviceStatus")
public Integer deviceStatus;
// 第三方平台定制参数,企业内部系统忽略。
@NameInMap("extraData")
public java.util.Map extraData;
// 视频流地址直播流地址,支持rtmp、flv、hls等格式,需要https协议。
@NameInMap("liveUrls")
public BatchUpdateDeviceRequestDevicesLiveUrls liveUrls;
// 设备地址。
@NameInMap("location")
public String location;
public static BatchUpdateDeviceRequestDevices build(java.util.Map map) throws Exception {
BatchUpdateDeviceRequestDevices self = new BatchUpdateDeviceRequestDevices();
return TeaModel.build(map, self);
}
public BatchUpdateDeviceRequestDevices setDeviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
public String getDeviceId() {
return this.deviceId;
}
public BatchUpdateDeviceRequestDevices setDeviceName(String deviceName) {
this.deviceName = deviceName;
return this;
}
public String getDeviceName() {
return this.deviceName;
}
public BatchUpdateDeviceRequestDevices setDeviceStatus(Integer deviceStatus) {
this.deviceStatus = deviceStatus;
return this;
}
public Integer getDeviceStatus() {
return this.deviceStatus;
}
public BatchUpdateDeviceRequestDevices setExtraData(java.util.Map extraData) {
this.extraData = extraData;
return this;
}
public java.util.Map getExtraData() {
return this.extraData;
}
public BatchUpdateDeviceRequestDevices setLiveUrls(BatchUpdateDeviceRequestDevicesLiveUrls liveUrls) {
this.liveUrls = liveUrls;
return this;
}
public BatchUpdateDeviceRequestDevicesLiveUrls getLiveUrls() {
return this.liveUrls;
}
public BatchUpdateDeviceRequestDevices setLocation(String location) {
this.location = location;
return this;
}
public String getLocation() {
return this.location;
}
}
}