com.aliyun.sdk.service.iot20180120.models.BatchImportDeviceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-iot20180120 Show documentation
Show all versions of alibabacloud-iot20180120 Show documentation
Alibaba Cloud Iot (20180120) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.iot20180120.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link BatchImportDeviceRequest} extends {@link RequestModel}
*
* BatchImportDeviceRequest
*/
public class BatchImportDeviceRequest extends Request {
@Query
@NameInMap("DeviceList")
@Validation(required = true)
private java.util.List < DeviceList> deviceList;
@Query
@NameInMap("IotInstanceId")
private String iotInstanceId;
@Query
@NameInMap("ProductKey")
@Validation(required = true)
private String productKey;
private BatchImportDeviceRequest(Builder builder) {
super(builder);
this.deviceList = builder.deviceList;
this.iotInstanceId = builder.iotInstanceId;
this.productKey = builder.productKey;
}
public static Builder builder() {
return new Builder();
}
public static BatchImportDeviceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return deviceList
*/
public java.util.List < DeviceList> getDeviceList() {
return this.deviceList;
}
/**
* @return iotInstanceId
*/
public String getIotInstanceId() {
return this.iotInstanceId;
}
/**
* @return productKey
*/
public String getProductKey() {
return this.productKey;
}
public static final class Builder extends Request.Builder {
private java.util.List < DeviceList> deviceList;
private String iotInstanceId;
private String productKey;
private Builder() {
super();
}
private Builder(BatchImportDeviceRequest request) {
super(request);
this.deviceList = request.deviceList;
this.iotInstanceId = request.iotInstanceId;
this.productKey = request.productKey;
}
/**
* DeviceList.
*/
public Builder deviceList(java.util.List < DeviceList> deviceList) {
this.putQueryParameter("DeviceList", deviceList);
this.deviceList = deviceList;
return this;
}
/**
* IotInstanceId.
*/
public Builder iotInstanceId(String iotInstanceId) {
this.putQueryParameter("IotInstanceId", iotInstanceId);
this.iotInstanceId = iotInstanceId;
return this;
}
/**
* ProductKey.
*/
public Builder productKey(String productKey) {
this.putQueryParameter("ProductKey", productKey);
this.productKey = productKey;
return this;
}
@Override
public BatchImportDeviceRequest build() {
return new BatchImportDeviceRequest(this);
}
}
public static class DeviceList extends TeaModel {
@NameInMap("DeviceName")
@Validation(required = true)
private String deviceName;
@NameInMap("DeviceSecret")
@Validation(required = true)
private String deviceSecret;
@NameInMap("Sn")
private String sn;
private DeviceList(Builder builder) {
this.deviceName = builder.deviceName;
this.deviceSecret = builder.deviceSecret;
this.sn = builder.sn;
}
public static Builder builder() {
return new Builder();
}
public static DeviceList create() {
return builder().build();
}
/**
* @return deviceName
*/
public String getDeviceName() {
return this.deviceName;
}
/**
* @return deviceSecret
*/
public String getDeviceSecret() {
return this.deviceSecret;
}
/**
* @return sn
*/
public String getSn() {
return this.sn;
}
public static final class Builder {
private String deviceName;
private String deviceSecret;
private String sn;
/**
* DeviceName.
*/
public Builder deviceName(String deviceName) {
this.deviceName = deviceName;
return this;
}
/**
* DeviceSecret.
*/
public Builder deviceSecret(String deviceSecret) {
this.deviceSecret = deviceSecret;
return this;
}
/**
* Sn.
*/
public Builder sn(String sn) {
this.sn = sn;
return this;
}
public DeviceList build() {
return new DeviceList(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy