com.aliyun.sdk.service.iot20180120.models.CreateDataSourceItemRequest 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 CreateDataSourceItemRequest} extends {@link RequestModel}
*
* CreateDataSourceItemRequest
*/
public class CreateDataSourceItemRequest extends Request {
@Query
@NameInMap("DataSourceId")
@Validation(required = true, maximum = 999999999999D)
private Long dataSourceId;
@Query
@NameInMap("DeviceName")
private String deviceName;
@Query
@NameInMap("IotInstanceId")
private String iotInstanceId;
@Query
@NameInMap("ProductKey")
private String productKey;
@Query
@NameInMap("ScopeType")
private String scopeType;
@Query
@NameInMap("Topic")
@Validation(required = true)
private String topic;
private CreateDataSourceItemRequest(Builder builder) {
super(builder);
this.dataSourceId = builder.dataSourceId;
this.deviceName = builder.deviceName;
this.iotInstanceId = builder.iotInstanceId;
this.productKey = builder.productKey;
this.scopeType = builder.scopeType;
this.topic = builder.topic;
}
public static Builder builder() {
return new Builder();
}
public static CreateDataSourceItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dataSourceId
*/
public Long getDataSourceId() {
return this.dataSourceId;
}
/**
* @return deviceName
*/
public String getDeviceName() {
return this.deviceName;
}
/**
* @return iotInstanceId
*/
public String getIotInstanceId() {
return this.iotInstanceId;
}
/**
* @return productKey
*/
public String getProductKey() {
return this.productKey;
}
/**
* @return scopeType
*/
public String getScopeType() {
return this.scopeType;
}
/**
* @return topic
*/
public String getTopic() {
return this.topic;
}
public static final class Builder extends Request.Builder {
private Long dataSourceId;
private String deviceName;
private String iotInstanceId;
private String productKey;
private String scopeType;
private String topic;
private Builder() {
super();
}
private Builder(CreateDataSourceItemRequest request) {
super(request);
this.dataSourceId = request.dataSourceId;
this.deviceName = request.deviceName;
this.iotInstanceId = request.iotInstanceId;
this.productKey = request.productKey;
this.scopeType = request.scopeType;
this.topic = request.topic;
}
/**
* DataSourceId.
*/
public Builder dataSourceId(Long dataSourceId) {
this.putQueryParameter("DataSourceId", dataSourceId);
this.dataSourceId = dataSourceId;
return this;
}
/**
* DeviceName.
*/
public Builder deviceName(String deviceName) {
this.putQueryParameter("DeviceName", deviceName);
this.deviceName = deviceName;
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;
}
/**
* ScopeType.
*/
public Builder scopeType(String scopeType) {
this.putQueryParameter("ScopeType", scopeType);
this.scopeType = scopeType;
return this;
}
/**
* Topic.
*/
public Builder topic(String topic) {
this.putQueryParameter("Topic", topic);
this.topic = topic;
return this;
}
@Override
public CreateDataSourceItemRequest build() {
return new CreateDataSourceItemRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy