com.aliyun.dingtalkdiot_1_0.models.BatchRegisterDeviceRequest 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 BatchRegisterDeviceRequest extends TeaModel {
// 钉钉物联组织ID, 第三方平台必填,企业内部系统忽略。
@NameInMap("corpId")
public String corpId;
// 设备列表。
@NameInMap("devices")
public java.util.List devices;
public static BatchRegisterDeviceRequest build(java.util.Map map) throws Exception {
BatchRegisterDeviceRequest self = new BatchRegisterDeviceRequest();
return TeaModel.build(map, self);
}
public BatchRegisterDeviceRequest setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
public BatchRegisterDeviceRequest setDevices(java.util.List devices) {
this.devices = devices;
return this;
}
public java.util.List getDevices() {
return this.devices;
}
public static class BatchRegisterDeviceRequestDevicesLiveUrls extends TeaModel {
// flv格式视频流地址
@NameInMap("flv")
public String flv;
// hls格式视频流地址
@NameInMap("hls")
public String hls;
// rtmp格式视频流地址
@NameInMap("rtmp")
public String rtmp;
public static BatchRegisterDeviceRequestDevicesLiveUrls build(java.util.Map map) throws Exception {
BatchRegisterDeviceRequestDevicesLiveUrls self = new BatchRegisterDeviceRequestDevicesLiveUrls();
return TeaModel.build(map, self);
}
public BatchRegisterDeviceRequestDevicesLiveUrls setFlv(String flv) {
this.flv = flv;
return this;
}
public String getFlv() {
return this.flv;
}
public BatchRegisterDeviceRequestDevicesLiveUrls setHls(String hls) {
this.hls = hls;
return this;
}
public String getHls() {
return this.hls;
}
public BatchRegisterDeviceRequestDevicesLiveUrls setRtmp(String rtmp) {
this.rtmp = rtmp;
return this;
}
public String getRtmp() {
return this.rtmp;
}
}
public static class BatchRegisterDeviceRequestDevices extends TeaModel {
// 设备ID。
@NameInMap("deviceId")
public String deviceId;
// 设备名称。
@NameInMap("deviceName")
public String deviceName;
// 设备状态 0:在线 1:离线
@NameInMap("deviceStatus")
public Integer deviceStatus;
// 设备类型,自定义传入,最多128个字节。
@NameInMap("deviceType")
public String deviceType;
// 设备类型名称,自定义传入,最多128个字节,与deviceType一一对应。
@NameInMap("deviceTypeName")
public String deviceTypeName;
// 第三方平台定制参数,企业内部系统忽略。
@NameInMap("extraData")
public java.util.Map extraData;
// 视频流地址直播流地址,支持rtmp、flv、hls等格式,需要https协议。
@NameInMap("liveUrls")
public BatchRegisterDeviceRequestDevicesLiveUrls liveUrls;
// 设备地址。
@NameInMap("location")
public String location;
// 父设备ID。
@NameInMap("parentId")
public String parentId;
// 产品类型 CAMERA:摄像头,可看直播 OTHERS:非摄像头
@NameInMap("productType")
public String productType;
public static BatchRegisterDeviceRequestDevices build(java.util.Map map) throws Exception {
BatchRegisterDeviceRequestDevices self = new BatchRegisterDeviceRequestDevices();
return TeaModel.build(map, self);
}
public BatchRegisterDeviceRequestDevices setDeviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
public String getDeviceId() {
return this.deviceId;
}
public BatchRegisterDeviceRequestDevices setDeviceName(String deviceName) {
this.deviceName = deviceName;
return this;
}
public String getDeviceName() {
return this.deviceName;
}
public BatchRegisterDeviceRequestDevices setDeviceStatus(Integer deviceStatus) {
this.deviceStatus = deviceStatus;
return this;
}
public Integer getDeviceStatus() {
return this.deviceStatus;
}
public BatchRegisterDeviceRequestDevices setDeviceType(String deviceType) {
this.deviceType = deviceType;
return this;
}
public String getDeviceType() {
return this.deviceType;
}
public BatchRegisterDeviceRequestDevices setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
return this;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public BatchRegisterDeviceRequestDevices setExtraData(java.util.Map extraData) {
this.extraData = extraData;
return this;
}
public java.util.Map getExtraData() {
return this.extraData;
}
public BatchRegisterDeviceRequestDevices setLiveUrls(BatchRegisterDeviceRequestDevicesLiveUrls liveUrls) {
this.liveUrls = liveUrls;
return this;
}
public BatchRegisterDeviceRequestDevicesLiveUrls getLiveUrls() {
return this.liveUrls;
}
public BatchRegisterDeviceRequestDevices setLocation(String location) {
this.location = location;
return this;
}
public String getLocation() {
return this.location;
}
public BatchRegisterDeviceRequestDevices setParentId(String parentId) {
this.parentId = parentId;
return this;
}
public String getParentId() {
return this.parentId;
}
public BatchRegisterDeviceRequestDevices setProductType(String productType) {
this.productType = productType;
return this;
}
public String getProductType() {
return this.productType;
}
}
}