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 Details

    • 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 the Attributes.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).

      Parameters:
      attributes - a consumer that will call methods on Attributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.