Interface Device.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Device.Builder,
,Device> SdkBuilder<Device.Builder,
,Device> SdkPojo
- Enclosing class:
Device
-
Method Summary
Modifier and TypeMethodDescriptiondefault Device.Builder
attributes
(Consumer<Attributes.Builder> attributes) The user specified attributes associated with the device for an event.attributes
(Attributes attributes) The user specified attributes associated with the device for an event.The unique identifier of the device.The device type, such as "button".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
-
attributes
The user specified attributes associated with the device for an event.
- Parameters:
attributes
- The user specified attributes associated with the device for an event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The user specified attributes associated with the device for an event.
This is a convenience method that creates an instance of theAttributes.Builder
avoiding the need to create one manually viaAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(Attributes)
.- Parameters:
attributes
- a consumer that will call methods onAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deviceId
The unique identifier of the device.
- Parameters:
deviceId
- The unique identifier of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The device type, such as "button".
- Parameters:
type
- The device type, such as "button".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-