public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
| Modifier and Type | Method and Description |
|---|---|
Device.Builder |
brand(DeviceBrand brand)
The device's maker.
|
Device.Builder |
brand(String brand)
The device's maker.
|
Device.Builder |
createdTime(Instant createdTime)
When the device was created.
|
Device.Builder |
currentSoftware(String currentSoftware)
A device's current software.
|
Device.Builder |
description(String description)
A description for the device.
|
Device.Builder |
deviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)
A device's aggregated status.
|
Device.Builder |
deviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status.
|
Device.Builder |
deviceId(String deviceId)
The device's ID.
|
Device.Builder |
lastUpdatedTime(Instant lastUpdatedTime)
When the device was updated.
|
default Device.Builder |
latestDeviceJob(Consumer<LatestDeviceJob.Builder> latestDeviceJob)
A device's latest job.
|
Device.Builder |
latestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job.
|
Device.Builder |
leaseExpirationTime(Instant leaseExpirationTime)
The device's lease expiration time.
|
Device.Builder |
name(String name)
The device's name.
|
Device.Builder |
provisioningStatus(DeviceStatus provisioningStatus)
The device's provisioning status.
|
Device.Builder |
provisioningStatus(String provisioningStatus)
The device's provisioning status.
|
Device.Builder |
tags(Map<String,String> tags)
The device's tags.
|
Device.Builder |
type(DeviceType type)
The device's type.
|
Device.Builder |
type(String type)
The device's type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDevice.Builder brand(String brand)
The device's maker.
brand - The device's maker.DeviceBrand,
DeviceBrandDevice.Builder brand(DeviceBrand brand)
The device's maker.
brand - The device's maker.DeviceBrand,
DeviceBrandDevice.Builder createdTime(Instant createdTime)
When the device was created.
createdTime - When the device was created.Device.Builder currentSoftware(String currentSoftware)
A device's current software.
currentSoftware - A device's current software.Device.Builder description(String description)
A description for the device.
description - A description for the device.Device.Builder deviceAggregatedStatus(String deviceAggregatedStatus)
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
deviceAggregatedStatus - A device's aggregated status. Including the device's connection status, provisioning status, and lease
status.DeviceAggregatedStatus,
DeviceAggregatedStatusDevice.Builder deviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
deviceAggregatedStatus - A device's aggregated status. Including the device's connection status, provisioning status, and lease
status.DeviceAggregatedStatus,
DeviceAggregatedStatusDevice.Builder deviceId(String deviceId)
The device's ID.
deviceId - The device's ID.Device.Builder lastUpdatedTime(Instant lastUpdatedTime)
When the device was updated.
lastUpdatedTime - When the device was updated.Device.Builder latestDeviceJob(LatestDeviceJob latestDeviceJob)
A device's latest job. Includes the target image version, and the update job status.
latestDeviceJob - A device's latest job. Includes the target image version, and the update job status.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 theLatestDeviceJob.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).
latestDeviceJob - a consumer that will call methods on LatestDeviceJob.BuilderlatestDeviceJob(LatestDeviceJob)Device.Builder leaseExpirationTime(Instant leaseExpirationTime)
The device's lease expiration time.
leaseExpirationTime - The device's lease expiration time.Device.Builder name(String name)
The device's name.
name - The device's name.Device.Builder provisioningStatus(String provisioningStatus)
The device's provisioning status.
provisioningStatus - The device's provisioning status.DeviceStatus,
DeviceStatusDevice.Builder provisioningStatus(DeviceStatus provisioningStatus)
The device's provisioning status.
provisioningStatus - The device's provisioning status.DeviceStatus,
DeviceStatusDevice.Builder tags(Map<String,String> tags)
The device's tags.
tags - The device's tags.Device.Builder type(String type)
The device's type.
type - The device's type.DeviceType,
DeviceTypeDevice.Builder type(DeviceType type)
The device's type.
type - The device's type.DeviceType,
DeviceTypeCopyright © 2023. All rights reserved.