Uses of Class
org.openhab.core.config.discovery.DiscoveryResultBuilder
-
Uses of DiscoveryResultBuilder in org.openhab.core.config.discovery
Modifier and TypeMethodDescriptionstatic DiscoveryResultBuilder
Creates a new builder for a given thing UID.DiscoveryResultBuilder.withBridge
(@Nullable ThingUID bridgeUID) Sets the bridgeUID of the desired result.Sets the label of the desired result.DiscoveryResultBuilder.withProperties
(@Nullable Map<String, Object> properties) Adds properties to the desired result.DiscoveryResultBuilder.withProperty
(String key, Object value) Adds a property to the desired result.DiscoveryResultBuilder.withRepresentationProperty
(@Nullable String representationProperty) Sets the representation Property of the desired result.DiscoveryResultBuilder.withThingType
(@Nullable ThingTypeUID thingTypeUID) Explicitly sets the thing type.DiscoveryResultBuilder.withTTL
(long ttl) Sets the time to live for the result in seconds.