All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.iot20180120.models.BatchAddDeviceGroupRelationsRequest Maven / Gradle / Ivy

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 BatchAddDeviceGroupRelationsRequest} extends {@link RequestModel}
 *
 * 

BatchAddDeviceGroupRelationsRequest

*/ public class BatchAddDeviceGroupRelationsRequest extends Request { @Query @NameInMap("Device") private java.util.List < Device> device; @Query @NameInMap("GroupId") @Validation(required = true) private String groupId; @Query @NameInMap("IotInstanceId") private String iotInstanceId; private BatchAddDeviceGroupRelationsRequest(Builder builder) { super(builder); this.device = builder.device; this.groupId = builder.groupId; this.iotInstanceId = builder.iotInstanceId; } public static Builder builder() { return new Builder(); } public static BatchAddDeviceGroupRelationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return device */ public java.util.List < Device> getDevice() { return this.device; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return iotInstanceId */ public String getIotInstanceId() { return this.iotInstanceId; } public static final class Builder extends Request.Builder { private java.util.List < Device> device; private String groupId; private String iotInstanceId; private Builder() { super(); } private Builder(BatchAddDeviceGroupRelationsRequest request) { super(request); this.device = request.device; this.groupId = request.groupId; this.iotInstanceId = request.iotInstanceId; } /** * Device. */ public Builder device(java.util.List < Device> device) { this.putQueryParameter("Device", device); this.device = device; return this; } /** * GroupId. */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * IotInstanceId. */ public Builder iotInstanceId(String iotInstanceId) { this.putQueryParameter("IotInstanceId", iotInstanceId); this.iotInstanceId = iotInstanceId; return this; } @Override public BatchAddDeviceGroupRelationsRequest build() { return new BatchAddDeviceGroupRelationsRequest(this); } } public static class Device extends TeaModel { @NameInMap("DeviceName") @Validation(required = true) private String deviceName; @NameInMap("ProductKey") @Validation(required = true) private String productKey; private Device(Builder builder) { this.deviceName = builder.deviceName; this.productKey = builder.productKey; } public static Builder builder() { return new Builder(); } public static Device create() { return builder().build(); } /** * @return deviceName */ public String getDeviceName() { return this.deviceName; } /** * @return productKey */ public String getProductKey() { return this.productKey; } public static final class Builder { private String deviceName; private String productKey; /** * DeviceName. */ public Builder deviceName(String deviceName) { this.deviceName = deviceName; return this; } /** * ProductKey. */ public Builder productKey(String productKey) { this.productKey = productKey; return this; } public Device build() { return new Device(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy