Interface Device.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Device.Builder,Device>,SdkBuilder<Device.Builder,Device>,SdkPojo
- Enclosing class:
- Device
public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Device.Builderattributes(Consumer<Attributes.Builder> attributes)The user specified attributes associated with the device for an event.Device.Builderattributes(Attributes attributes)The user specified attributes associated with the device for an event.Device.BuilderdeviceId(String deviceId)The unique identifier of the device.Device.Buildertype(String type)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 Detail
-
attributes
Device.Builder attributes(Attributes 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
default Device.Builder attributes(Consumer<Attributes.Builder> attributes)
The user specified attributes associated with the device for an event.
This is a convenience method that creates an instance of theAttributes.Builderavoiding the need to create one manually viaAttributes.builder().When the
Consumercompletes,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:
attributes(Attributes)
-
deviceId
Device.Builder deviceId(String 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
Device.Builder type(String 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.
-
-