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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DeviceEvent.Builderdevice(Consumer<Device.Builder> device)An object representing the device associated with the event.DeviceEvent.Builderdevice(Device device)An object representing the device associated with the event.DeviceEvent.BuilderstdEvent(String stdEvent)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 Detail
-
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 theDevice.Builderavoiding the need to create one manually viaDevice.builder().When the
Consumercompletes,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:
device(Device)
-
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.
-
-