Builder class to create instances of
CommissioningResult
.
Public Constructor Summary
Builder()
|
Public Method Summary
CommissioningResult |
build()
Builds an instance of
CommissioningResult as configured in this builder.
|
DeviceDescriptor |
getCommissionedDeviceDescriptor()
Returns the device descriptor set on this builder.
|
String |
getDeviceName()
Returns the device name set on this builder.
|
Room |
getRoom()
This method is deprecated. rooms are no longer used in the commissioning
flow
|
String |
getToken()
Returns the token set on this builder, if any.
|
CommissioningResult.Builder |
setCommissionedDeviceDescriptor(DeviceDescriptor
commissionedDeviceDescriptor)
Sets the device descriptor of the commissioned device.
|
CommissioningResult.Builder | |
CommissioningResult.Builder | |
CommissioningResult.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public CommissioningResult build ()
Builds an instance of
CommissioningResult
as configured in this builder.
Throws
IllegalStateException | if the device descriptor, or device name are not set |
---|
public DeviceDescriptor getCommissionedDeviceDescriptor ()
Returns the device descriptor set on this builder.
public String getDeviceName ()
Returns the device name set on this builder.
public Room getRoom ()
This method is deprecated.
rooms are no longer used in the commissioning flow
Returns the room set on this builder.
public String getToken ()
Returns the token set on this builder, if any.
public CommissioningResult.Builder setCommissionedDeviceDescriptor (DeviceDescriptor commissionedDeviceDescriptor)
Sets the device descriptor of the commissioned device.
Returns
- this builder
public CommissioningResult.Builder setDeviceName (String deviceName)
Sets the name which was assigned to the commissioned device.
Returns
- this builder
public CommissioningResult.Builder setRoom (Room room)
This method is deprecated.
rooms are no longer used in the commissioning flow
Sets the room which the user selected, if any.
Returns
- this builder
public CommissioningResult.Builder setToken (String token)
Sets the opaque token associated with this result.
Returns
- this builder