public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
Modifier and Type | Method and Description |
---|---|
Device.Builder |
attributes(Attributes attributes)
The user specified attributes associated with the device for an event.
|
default Device.Builder |
attributes(Consumer<Attributes.Builder> attributes)
The user specified attributes associated with the device for an event.
|
Device.Builder |
deviceId(String deviceId)
The unique identifier of the device.
|
Device.Builder |
type(String type)
The device type, such as "button".
|
copy
applyMutation, build
Device.Builder attributes(Attributes attributes)
The user specified attributes associated with the device for an event.
attributes
- The user specified attributes associated with the device for an event.default Device.Builder attributes(Consumer<Attributes.Builder> attributes)
The user specified attributes associated with the device for an event.
This is a convenience that creates an instance of theAttributes.Builder
avoiding the need to create
one manually via Attributes.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to attributes(Attributes)
.attributes
- a consumer that will call methods on Attributes.Builder
attributes(Attributes)
Device.Builder deviceId(String deviceId)
The unique identifier of the device.
deviceId
- The unique identifier of the device.Device.Builder type(String type)
The device type, such as "button".
type
- The device type, such as "button".Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.