public static interface DeviceEvent.Builder extends SdkPojo, CopyableBuilder<DeviceEvent.Builder,DeviceEvent>
Modifier and Type | Method and Description |
---|---|
default DeviceEvent.Builder |
device(Consumer<Device.Builder> device)
An object representing the device associated with the event.
|
DeviceEvent.Builder |
device(Device device)
An object representing the device associated with the event.
|
DeviceEvent.Builder |
stdEvent(String stdEvent)
A serialized JSON object representing the device-type specific event.
|
copy
applyMutation, build
DeviceEvent.Builder device(Device device)
An object representing the device associated with the event.
device
- An object representing the device associated with the event.default DeviceEvent.Builder device(Consumer<Device.Builder> device)
An object representing the device associated with the event.
This is a convenience that creates an instance of theDevice.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)
.device
- a consumer that will call methods on Device.Builder
device(Device)
DeviceEvent.Builder stdEvent(String stdEvent)
A serialized JSON object representing the device-type specific event.
stdEvent
- A serialized JSON object representing the device-type specific event.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.