All Superinterfaces:
Buildable, CopyableBuilder<DeviceType.Builder,DeviceType>, SdkBuilder<DeviceType.Builder,DeviceType>, SdkPojo
Enclosing class:
DeviceType

public static interface DeviceType.Builder extends SdkPojo, CopyableBuilder<DeviceType.Builder,DeviceType>
  • Method Details

    • deviceKey

      DeviceType.Builder deviceKey(String deviceKey)

      The device key.

      Parameters:
      deviceKey - The device key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceAttributes

      DeviceType.Builder deviceAttributes(Collection<AttributeType> deviceAttributes)

      The device attributes.

      Parameters:
      deviceAttributes - The device attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceAttributes

      DeviceType.Builder deviceAttributes(AttributeType... deviceAttributes)

      The device attributes.

      Parameters:
      deviceAttributes - The device attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceAttributes

      DeviceType.Builder deviceAttributes(Consumer<AttributeType.Builder>... deviceAttributes)

      The device attributes.

      This is a convenience method that creates an instance of the AttributeType.Builder avoiding the need to create one manually via AttributeType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deviceAttributes(List<AttributeType>).

      Parameters:
      deviceAttributes - a consumer that will call methods on AttributeType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deviceCreateDate

      DeviceType.Builder deviceCreateDate(Instant deviceCreateDate)

      The creation date of the device.

      Parameters:
      deviceCreateDate - The creation date of the device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceLastModifiedDate

      DeviceType.Builder deviceLastModifiedDate(Instant deviceLastModifiedDate)

      The date and time, in ISO 8601 format, when the item was modified.

      Parameters:
      deviceLastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceLastAuthenticatedDate

      DeviceType.Builder deviceLastAuthenticatedDate(Instant deviceLastAuthenticatedDate)

      The date when the device was last authenticated.

      Parameters:
      deviceLastAuthenticatedDate - The date when the device was last authenticated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.