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 Device.Builderbrand(String brand)The device's maker.Device.Builderbrand(DeviceBrand brand)The device's maker.Device.BuildercreatedTime(Instant createdTime)When the device was created.Device.BuildercurrentSoftware(String currentSoftware)A device's current software.Device.Builderdescription(String description)A description for the device.Device.BuilderdeviceAggregatedStatus(String deviceAggregatedStatus)A device's aggregated status.Device.BuilderdeviceAggregatedStatus(DeviceAggregatedStatus deviceAggregatedStatus)A device's aggregated status.Device.BuilderdeviceId(String deviceId)The device's ID.Device.BuilderlastUpdatedTime(Instant lastUpdatedTime)When the device was updated.default Device.BuilderlatestDeviceJob(Consumer<LatestDeviceJob.Builder> latestDeviceJob)A device's latest job.Device.BuilderlatestDeviceJob(LatestDeviceJob latestDeviceJob)A device's latest job.Device.BuilderleaseExpirationTime(Instant leaseExpirationTime)The device's lease expiration time.Device.Buildername(String name)The device's name.Device.BuilderprovisioningStatus(String provisioningStatus)The device's provisioning status.Device.BuilderprovisioningStatus(DeviceStatus provisioningStatus)The device's provisioning status.Device.Buildertags(Map<String,String> tags)The device's tags.Device.Buildertype(String type)The device's type.Device.Buildertype(DeviceType type)The device's type.-
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
-
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:
DeviceBrand,DeviceBrand
-
brand
Device.Builder brand(DeviceBrand 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:
DeviceBrand,DeviceBrand
-
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,DeviceAggregatedStatus
-
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:
DeviceAggregatedStatus,DeviceAggregatedStatus
-
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 theLatestDeviceJob.Builderavoiding the need to create one manually viaLatestDeviceJob.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatestDeviceJob(LatestDeviceJob).- Parameters:
latestDeviceJob- a consumer that will call methods onLatestDeviceJob.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
latestDeviceJob(LatestDeviceJob)
-
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:
DeviceStatus,DeviceStatus
-
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:
DeviceStatus,DeviceStatus
-
tags
Device.Builder tags(Map<String,String> 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:
DeviceType,DeviceType
-
type
Device.Builder type(DeviceType 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:
DeviceType,DeviceType
-
-