ShareDeviceRequest.Builder

@AutoBuilder
interface ShareDeviceRequest.Builder


Builder class to generate ShareDeviceRequest instances.

Summary

Public functions

ShareDeviceRequest!

Builds a new instance of ShareDeviceRequest

ShareDeviceRequest.Builder!

Sets the CommissioningWindow opened for the device being shared.

ShareDeviceRequest.Builder!

Sets the DeviceDescriptor of the device being shared.

ShareDeviceRequest.Builder!

Sets the device name of the device being shared.

ShareDeviceRequest.Builder!

Sets the network location of the device being shared.

ShareDeviceRequest.Builder!

Sets the room name of the device being shared.

Public functions

build

fun build(): ShareDeviceRequest!

Builds a new instance of ShareDeviceRequest

Throws
java.lang.IllegalStateException

if any of CommissioningWindow, DeviceDescriptor, or DeviceName are not specified.

setCommissioningWindow

@CanIgnoreReturnValue
fun setCommissioningWindow(commissioningWindow: CommissioningWindow!): ShareDeviceRequest.Builder!

Sets the CommissioningWindow opened for the device being shared.

setDeviceDescriptor

@CanIgnoreReturnValue
fun setDeviceDescriptor(deviceDescriptor: DeviceDescriptor!): ShareDeviceRequest.Builder!

Sets the DeviceDescriptor of the device being shared.

setDeviceName

@CanIgnoreReturnValue
fun setDeviceName(deviceName: String!): ShareDeviceRequest.Builder!

Sets the device name of the device being shared.

setNetworkLocation

@CanIgnoreReturnValue
fun setNetworkLocation(networkLocation: NetworkLocation?): ShareDeviceRequest.Builder!

Sets the network location of the device being shared.

setRoomName

@CanIgnoreReturnValue
fun setRoomName(roomName: String?): ShareDeviceRequest.Builder!

Sets the room name of the device being shared.