Interface DeviceEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<DeviceEvent.Builder,DeviceEvent>, SdkBuilder<DeviceEvent.Builder,DeviceEvent>, SdkPojo
Enclosing class:
DeviceEvent

public static interface DeviceEvent.Builder extends SdkPojo, CopyableBuilder<DeviceEvent.Builder,DeviceEvent>
  • Method Details

    • device

      DeviceEvent.Builder device(Device device)

      An object representing the device associated with the event.

      Parameters:
      device - An object representing the device associated with the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • device

      default DeviceEvent.Builder device(Consumer<Device.Builder> device)

      An object representing the device associated with the event.

      This is a convenience method that creates an instance of the Device.Builder avoiding the need to create one manually via Device.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to device(Device).

      Parameters:
      device - a consumer that will call methods on Device.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stdEvent

      DeviceEvent.Builder stdEvent(String stdEvent)

      A serialized JSON object representing the device-type specific event.

      Parameters:
      stdEvent - A serialized JSON object representing the device-type specific event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.