Interface Device.Builder

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

@Mutable @NotThreadSafe public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
  • Method Details

    • brand

      Device.Builder brand(String brand)

      The device's maker.

      Parameters:
      brand - The device's maker.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • brand

      The device's maker.

      Parameters:
      brand - The device's maker.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTime

      Device.Builder createdTime(Instant createdTime)

      When the device was created.

      Parameters:
      createdTime - When the device was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentSoftware

      Device.Builder currentSoftware(String currentSoftware)

      A device's current software.

      Parameters:
      currentSoftware - A device's current software.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Device.Builder description(String description)

      A description for the device.

      Parameters:
      description - A description for the device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceAggregatedStatus

      Device.Builder deviceAggregatedStatus(String deviceAggregatedStatus)

      A device's aggregated status. Including the device's connection status, provisioning status, and lease status.

      Parameters:
      deviceAggregatedStatus - A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deviceAggregatedStatus

      Device.Builder deviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)

      A device's aggregated status. Including the device's connection status, provisioning status, and lease status.

      Parameters:
      deviceAggregatedStatus - A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deviceId

      Device.Builder deviceId(String deviceId)

      The device's ID.

      Parameters:
      deviceId - The device's ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTime

      Device.Builder lastUpdatedTime(Instant lastUpdatedTime)

      When the device was updated.

      Parameters:
      lastUpdatedTime - When the device was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestDeviceJob

      Device.Builder latestDeviceJob(LatestDeviceJob latestDeviceJob)

      A device's latest job. Includes the target image version, and the update job status.

      Parameters:
      latestDeviceJob - A device's latest job. Includes the target image version, and the update job status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestDeviceJob

      default Device.Builder latestDeviceJob(Consumer<LatestDeviceJob.Builder> latestDeviceJob)

      A device's latest job. Includes the target image version, and the update job status.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to latestDeviceJob(LatestDeviceJob).

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

      Device.Builder leaseExpirationTime(Instant leaseExpirationTime)

      The device's lease expiration time.

      Parameters:
      leaseExpirationTime - The device's lease expiration time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Device.Builder name(String name)

      The device's name.

      Parameters:
      name - The device's name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • provisioningStatus

      Device.Builder provisioningStatus(String provisioningStatus)

      The device's provisioning status.

      Parameters:
      provisioningStatus - The device's provisioning status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • provisioningStatus

      Device.Builder provisioningStatus(DeviceStatus provisioningStatus)

      The device's provisioning status.

      Parameters:
      provisioningStatus - The device's provisioning status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      The device's tags.

      Parameters:
      tags - The device's tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Device.Builder type(String type)

      The device's type.

      Parameters:
      type - The device's type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The device's type.

      Parameters:
      type - The device's type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: