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 Summary
Modifier and TypeMethodDescriptiondefault DeviceEvent.Builder
device
(Consumer<Device.Builder> device) An object representing the device associated with the event.An object representing the device associated with the event.A serialized JSON object representing the device-type specific event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
An object representing the device associated with the event.
This is a convenience method that creates an instance of theDevice.Builder
avoiding the need to create one manually viaDevice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todevice(Device)
.- Parameters:
device
- a consumer that will call methods onDevice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-