com.aliyun.sdk.service.iot20180120.models.SetDeviceDesiredPropertyRequest 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 SetDeviceDesiredPropertyRequest} extends {@link RequestModel}
*
* SetDeviceDesiredPropertyRequest
*/
public class SetDeviceDesiredPropertyRequest extends Request {
@Query
@NameInMap("DeviceName")
private String deviceName;
@Query
@NameInMap("IotId")
private String iotId;
@Query
@NameInMap("IotInstanceId")
private String iotInstanceId;
@Query
@NameInMap("Items")
@Validation(required = true)
private String items;
@Query
@NameInMap("ProductKey")
private String productKey;
@Query
@NameInMap("Versions")
@Validation(required = true)
private String versions;
private SetDeviceDesiredPropertyRequest(Builder builder) {
super(builder);
this.deviceName = builder.deviceName;
this.iotId = builder.iotId;
this.iotInstanceId = builder.iotInstanceId;
this.items = builder.items;
this.productKey = builder.productKey;
this.versions = builder.versions;
}
public static Builder builder() {
return new Builder();
}
public static SetDeviceDesiredPropertyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return deviceName
*/
public String getDeviceName() {
return this.deviceName;
}
/**
* @return iotId
*/
public String getIotId() {
return this.iotId;
}
/**
* @return iotInstanceId
*/
public String getIotInstanceId() {
return this.iotInstanceId;
}
/**
* @return items
*/
public String getItems() {
return this.items;
}
/**
* @return productKey
*/
public String getProductKey() {
return this.productKey;
}
/**
* @return versions
*/
public String getVersions() {
return this.versions;
}
public static final class Builder extends Request.Builder {
private String deviceName;
private String iotId;
private String iotInstanceId;
private String items;
private String productKey;
private String versions;
private Builder() {
super();
}
private Builder(SetDeviceDesiredPropertyRequest request) {
super(request);
this.deviceName = request.deviceName;
this.iotId = request.iotId;
this.iotInstanceId = request.iotInstanceId;
this.items = request.items;
this.productKey = request.productKey;
this.versions = request.versions;
}
/**
* DeviceName.
*/
public Builder deviceName(String deviceName) {
this.putQueryParameter("DeviceName", deviceName);
this.deviceName = deviceName;
return this;
}
/**
* IotId.
*/
public Builder iotId(String iotId) {
this.putQueryParameter("IotId", iotId);
this.iotId = iotId;
return this;
}
/**
* IotInstanceId.
*/
public Builder iotInstanceId(String iotInstanceId) {
this.putQueryParameter("IotInstanceId", iotInstanceId);
this.iotInstanceId = iotInstanceId;
return this;
}
/**
* Items.
*/
public Builder items(String items) {
this.putQueryParameter("Items", items);
this.items = items;
return this;
}
/**
* ProductKey.
*/
public Builder productKey(String productKey) {
this.putQueryParameter("ProductKey", productKey);
this.productKey = productKey;
return this;
}
/**
* Versions.
*/
public Builder versions(String versions) {
this.putQueryParameter("Versions", versions);
this.versions = versions;
return this;
}
@Override
public SetDeviceDesiredPropertyRequest build() {
return new SetDeviceDesiredPropertyRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy