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

com.aliyun.sdk.service.iot20180120.models.PublishThingModelRequest 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 PublishThingModelRequest} extends {@link RequestModel}
 *
 * 

PublishThingModelRequest

*/ public class PublishThingModelRequest extends Request { @Query @NameInMap("Description") private String description; @Query @NameInMap("IotInstanceId") private String iotInstanceId; @Query @NameInMap("ModelVersion") private String modelVersion; @Query @NameInMap("ProductKey") @Validation(required = true) private String productKey; @Query @NameInMap("ResourceGroupId") private String resourceGroupId; private PublishThingModelRequest(Builder builder) { super(builder); this.description = builder.description; this.iotInstanceId = builder.iotInstanceId; this.modelVersion = builder.modelVersion; this.productKey = builder.productKey; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static PublishThingModelRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return iotInstanceId */ public String getIotInstanceId() { return this.iotInstanceId; } /** * @return modelVersion */ public String getModelVersion() { return this.modelVersion; } /** * @return productKey */ public String getProductKey() { return this.productKey; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder extends Request.Builder { private String description; private String iotInstanceId; private String modelVersion; private String productKey; private String resourceGroupId; private Builder() { super(); } private Builder(PublishThingModelRequest request) { super(request); this.description = request.description; this.iotInstanceId = request.iotInstanceId; this.modelVersion = request.modelVersion; this.productKey = request.productKey; this.resourceGroupId = request.resourceGroupId; } /** * Description. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * IotInstanceId. */ public Builder iotInstanceId(String iotInstanceId) { this.putQueryParameter("IotInstanceId", iotInstanceId); this.iotInstanceId = iotInstanceId; return this; } /** * ModelVersion. */ public Builder modelVersion(String modelVersion) { this.putQueryParameter("ModelVersion", modelVersion); this.modelVersion = modelVersion; return this; } /** * ProductKey. */ public Builder productKey(String productKey) { this.putQueryParameter("ProductKey", productKey); this.productKey = productKey; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } @Override public PublishThingModelRequest build() { return new PublishThingModelRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy