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

com.aliyun.iot20180120.models.CreateProductResponseBody Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.iot20180120.models;

import com.aliyun.tea.*;

public class CreateProductResponseBody extends TeaModel {
    /**
     * 

The error code returned if the call fails. For more information, see Error codes.

* * example: *

200

*/ @NameInMap("Code") public String code; /** *

The product information returned if the call is successful.

*/ @NameInMap("Data") public CreateProductResponseBodyData data; /** *

The error message returned if the call fails.

*/ @NameInMap("ErrorMessage") public String errorMessage; /** *

The ProductKey of the product. A ProductKey is a GUID that is issued by IoT Platform to a product.

* * example: *

a1FlqIQ****

*/ @NameInMap("ProductKey") public String productKey; /** *

The ID of the request.

* * example: *

E55E50B7-40EE-4B6B-8BBE-D3ED55CCF565

*/ @NameInMap("RequestId") public String requestId; /** *

Indicates whether the call was successful. Valid values:

*
    *
  • true: The call was successful.
  • *
  • false: The call failed.
  • *
* * example: *

true

*/ @NameInMap("Success") public Boolean success; public static CreateProductResponseBody build(java.util.Map map) throws Exception { CreateProductResponseBody self = new CreateProductResponseBody(); return TeaModel.build(map, self); } public CreateProductResponseBody setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public CreateProductResponseBody setData(CreateProductResponseBodyData data) { this.data = data; return this; } public CreateProductResponseBodyData getData() { return this.data; } public CreateProductResponseBody setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } public String getErrorMessage() { return this.errorMessage; } public CreateProductResponseBody setProductKey(String productKey) { this.productKey = productKey; return this; } public String getProductKey() { return this.productKey; } public CreateProductResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public CreateProductResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public static class CreateProductResponseBodyData extends TeaModel { /** *

The type of the product.

*
    *
  • iothub_senior: A TSL model was used.
  • *
  • iothub: No TSL model was used.
  • *
* * example: *

iothub_senior

*/ @NameInMap("AliyunCommodityCode") public String aliyunCommodityCode; /** *

The authentication method that is used to connect the devices of the product to IoT Platform. Valid values:

*
    *
  • secret: uses DeviceSecrets to verify the devices.
  • *
  • id2: uses IoT Internet Device ID to verify the devices.
  • *
  • x509: uses X.509 certificates to verify the devices.
  • *
* * example: *

secret

*/ @NameInMap("AuthType") public String authType; /** *

The data format.

*
    *
  • 0: custom data format.
  • *
  • 1: Alink JSON format.
  • *
*
*

This parameter is returned only if the AliyunCommodityCode parameter is set to iothub_senior.

*
* * example: *

1

*/ @NameInMap("DataFormat") public Integer dataFormat; /** *

The description of the product.

* * example: *

Product test

*/ @NameInMap("Description") public String description; /** *

Indicates whether IoT Internet Device ID was enabled.

*
    *
  • true: IoT Internet Device ID was enabled.
  • *
  • false: IoT Internet Device ID was disabled.
  • *
* * example: *

false

*/ @NameInMap("Id2") public Boolean id2; /** *

The node type of the product. Valid values:

*
    *
  • 0: device. Sub-devices cannot be attached to a device. A device can be directly connected to IoT Platform or connected to IoT Platform as a sub-device of a gateway.
  • *
  • 1: gateway. Sub-devices can be attached to a gateway. A gateway can manage sub-devices, maintain topological relationships with sub-devices, and synchronize topological relationships to IoT Platform.
  • *
*
*

This parameter is available only if the AliyunCommodityCode parameter is set to iothub_senior.

*
* * example: *

0

*/ @NameInMap("NodeType") public Integer nodeType; /** *

The ProductKey of the product. A ProductKey is a globally unique identifier (GUID) issued by IoT Platform to a new product.

*
*

Secure the ProductKey of the product. The ProductKey is required when you perform specific operations.

*
* * example: *

a1FlqIQ****

*/ @NameInMap("ProductKey") public String productKey; /** *

The name of the product.

* * example: *

Test

*/ @NameInMap("ProductName") public String productName; /** *

The ProductSecret of the product.

* * example: *

U5tW7i44uilc****

*/ @NameInMap("ProductSecret") public String productSecret; /** *

The protocol used by the devices of the product to connect to the gateway.

*
*

This parameter is available only if the AliyunCommodityCode parameter is set to iothub_senior.

*
* * example: *

modbus

*/ @NameInMap("ProtocolType") public String protocolType; public static CreateProductResponseBodyData build(java.util.Map map) throws Exception { CreateProductResponseBodyData self = new CreateProductResponseBodyData(); return TeaModel.build(map, self); } public CreateProductResponseBodyData setAliyunCommodityCode(String aliyunCommodityCode) { this.aliyunCommodityCode = aliyunCommodityCode; return this; } public String getAliyunCommodityCode() { return this.aliyunCommodityCode; } public CreateProductResponseBodyData setAuthType(String authType) { this.authType = authType; return this; } public String getAuthType() { return this.authType; } public CreateProductResponseBodyData setDataFormat(Integer dataFormat) { this.dataFormat = dataFormat; return this; } public Integer getDataFormat() { return this.dataFormat; } public CreateProductResponseBodyData setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public CreateProductResponseBodyData setId2(Boolean id2) { this.id2 = id2; return this; } public Boolean getId2() { return this.id2; } public CreateProductResponseBodyData setNodeType(Integer nodeType) { this.nodeType = nodeType; return this; } public Integer getNodeType() { return this.nodeType; } public CreateProductResponseBodyData setProductKey(String productKey) { this.productKey = productKey; return this; } public String getProductKey() { return this.productKey; } public CreateProductResponseBodyData setProductName(String productName) { this.productName = productName; return this; } public String getProductName() { return this.productName; } public CreateProductResponseBodyData setProductSecret(String productSecret) { this.productSecret = productSecret; return this; } public String getProductSecret() { return this.productSecret; } public CreateProductResponseBodyData setProtocolType(String protocolType) { this.protocolType = protocolType; return this; } public String getProtocolType() { return this.protocolType; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy