public static class OnboardWithVendorThingIDOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OnboardWithVendorThingIDOptions |
build()
build option object.
|
DataGroupingInterval |
getDataGroupingInterval()
get data grouping interval.
|
java.lang.String |
getFirmwareVersion()
get firmware version.
|
LayoutPosition |
getLayoutPosition()
get layout position.
|
org.json.JSONObject |
getThingProperties()
get thing properties.
|
java.lang.String |
getThingType()
get thing type.
|
OnboardWithVendorThingIDOptions.Builder |
setDataGroupingInterval(DataGroupingInterval dataGroupingInterval)
set data grouping interval.
|
OnboardWithVendorThingIDOptions.Builder |
setFirmwareVersion(java.lang.String firmwareVersion)
set firmware version.
|
OnboardWithVendorThingIDOptions.Builder |
setLayoutPosition(LayoutPosition layoutPosition)
set layout position.
|
OnboardWithVendorThingIDOptions.Builder |
setThingProperties(org.json.JSONObject thingProperties)
set thing proeprties.
|
OnboardWithVendorThingIDOptions.Builder |
setThingType(java.lang.String thingType)
set thing type.
|
public OnboardWithVendorThingIDOptions.Builder setThingType(java.lang.String thingType)
thingType
- Type of the thing given by vendor.
If the thing is already registered, this value would be ignored by IoT Cloud.public OnboardWithVendorThingIDOptions.Builder setFirmwareVersion(java.lang.String firmwareVersion)
firmwareVersion
- Firmware version of the thing.public OnboardWithVendorThingIDOptions.Builder setThingProperties(org.json.JSONObject thingProperties)
thingProperties
- The properties of the thing.
You can set both the predefined and custom fields.
Please read here for more details.public OnboardWithVendorThingIDOptions.Builder setLayoutPosition(LayoutPosition layoutPosition)
layoutPosition
- GATEWAY | STANDALONE | ENDNODE.public OnboardWithVendorThingIDOptions.Builder setDataGroupingInterval(DataGroupingInterval dataGroupingInterval)
dataGroupingInterval
- INTERVAL_1_MINUTE | INTERVAL_15_MINUTES | INTERVAL_30_MINUTES | INTERVAL_1_HOUR | INTERVAL_12_HOURS.
Will be used to create the bucket to store the state history when the thing is not using traits.public java.lang.String getThingType()
public java.lang.String getFirmwareVersion()
public org.json.JSONObject getThingProperties()
public LayoutPosition getLayoutPosition()
public DataGroupingInterval getDataGroupingInterval()
public OnboardWithVendorThingIDOptions build()
Copyright 2015 Kii Corporation. All rights reserved. (Last updated on 2016-10-13 08:55 UTC)