public static interface OTAUpdateInfo.Builder extends SdkPojo, CopyableBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>
Modifier and Type | Method and Description |
---|---|
OTAUpdateInfo.Builder |
additionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
|
OTAUpdateInfo.Builder |
awsIotJobArn(String awsIotJobArn)
The IoT job ARN associated with the OTA update.
|
OTAUpdateInfo.Builder |
awsIotJobId(String awsIotJobId)
The IoT job ID associated with the OTA update.
|
OTAUpdateInfo.Builder |
awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
default OTAUpdateInfo.Builder |
awsJobExecutionsRolloutConfig(Consumer<AwsJobExecutionsRolloutConfig.Builder> awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
OTAUpdateInfo.Builder |
awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig awsJobPresignedUrlConfig)
Configuration information for pre-signed URLs.
|
default OTAUpdateInfo.Builder |
awsJobPresignedUrlConfig(Consumer<AwsJobPresignedUrlConfig.Builder> awsJobPresignedUrlConfig)
Configuration information for pre-signed URLs.
|
OTAUpdateInfo.Builder |
creationDate(Instant creationDate)
The date when the OTA update was created.
|
OTAUpdateInfo.Builder |
description(String description)
A description of the OTA update.
|
default OTAUpdateInfo.Builder |
errorInfo(Consumer<ErrorInfo.Builder> errorInfo)
Error information associated with the OTA update.
|
OTAUpdateInfo.Builder |
errorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
|
OTAUpdateInfo.Builder |
lastModifiedDate(Instant lastModifiedDate)
The date when the OTA update was last updated.
|
OTAUpdateInfo.Builder |
otaUpdateArn(String otaUpdateArn)
The OTA update ARN.
|
OTAUpdateInfo.Builder |
otaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
|
OTAUpdateInfo.Builder |
otaUpdateFiles(Consumer<OTAUpdateFile.Builder>... otaUpdateFiles)
A list of files associated with the OTA update.
|
OTAUpdateInfo.Builder |
otaUpdateFiles(OTAUpdateFile... otaUpdateFiles)
A list of files associated with the OTA update.
|
OTAUpdateInfo.Builder |
otaUpdateId(String otaUpdateId)
The OTA update ID.
|
OTAUpdateInfo.Builder |
otaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
|
OTAUpdateInfo.Builder |
otaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
|
OTAUpdateInfo.Builder |
protocols(Collection<Protocol> protocols)
The protocol used to transfer the OTA update image.
|
OTAUpdateInfo.Builder |
protocols(Protocol... protocols)
The protocol used to transfer the OTA update image.
|
OTAUpdateInfo.Builder |
protocolsWithStrings(Collection<String> protocols)
The protocol used to transfer the OTA update image.
|
OTAUpdateInfo.Builder |
protocolsWithStrings(String... protocols)
The protocol used to transfer the OTA update image.
|
OTAUpdateInfo.Builder |
targets(Collection<String> targets)
The targets of the OTA update.
|
OTAUpdateInfo.Builder |
targets(String... targets)
The targets of the OTA update.
|
OTAUpdateInfo.Builder |
targetSelection(String targetSelection)
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the OTA update (SNAPSHOT).
|
OTAUpdateInfo.Builder |
targetSelection(TargetSelection targetSelection)
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the OTA update (SNAPSHOT).
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
OTAUpdateInfo.Builder otaUpdateId(String otaUpdateId)
The OTA update ID.
otaUpdateId
- The OTA update ID.OTAUpdateInfo.Builder otaUpdateArn(String otaUpdateArn)
The OTA update ARN.
otaUpdateArn
- The OTA update ARN.OTAUpdateInfo.Builder creationDate(Instant creationDate)
The date when the OTA update was created.
creationDate
- The date when the OTA update was created.OTAUpdateInfo.Builder lastModifiedDate(Instant lastModifiedDate)
The date when the OTA update was last updated.
lastModifiedDate
- The date when the OTA update was last updated.OTAUpdateInfo.Builder description(String description)
A description of the OTA update.
description
- A description of the OTA update.OTAUpdateInfo.Builder targets(Collection<String> targets)
The targets of the OTA update.
targets
- The targets of the OTA update.OTAUpdateInfo.Builder targets(String... targets)
The targets of the OTA update.
targets
- The targets of the OTA update.OTAUpdateInfo.Builder protocolsWithStrings(Collection<String> protocols)
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
protocols
- The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT].
When both HTTP and MQTT are specified, the target device can choose the protocol.OTAUpdateInfo.Builder protocolsWithStrings(String... protocols)
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
protocols
- The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT].
When both HTTP and MQTT are specified, the target device can choose the protocol.OTAUpdateInfo.Builder protocols(Collection<Protocol> protocols)
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
protocols
- The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT].
When both HTTP and MQTT are specified, the target device can choose the protocol.OTAUpdateInfo.Builder protocols(Protocol... protocols)
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
protocols
- The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT].
When both HTTP and MQTT are specified, the target device can choose the protocol.OTAUpdateInfo.Builder awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
awsJobExecutionsRolloutConfig
- Configuration for the rollout of OTA updates.default OTAUpdateInfo.Builder awsJobExecutionsRolloutConfig(Consumer<AwsJobExecutionsRolloutConfig.Builder> awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
This is a convenience method that creates an instance of theAwsJobExecutionsRolloutConfig.Builder
avoiding the need to create one manually via AwsJobExecutionsRolloutConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig)
.
awsJobExecutionsRolloutConfig
- a consumer that will call methods on AwsJobExecutionsRolloutConfig.Builder
awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig)
OTAUpdateInfo.Builder awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig awsJobPresignedUrlConfig)
Configuration information for pre-signed URLs. Valid when protocols
contains HTTP.
awsJobPresignedUrlConfig
- Configuration information for pre-signed URLs. Valid when protocols
contains HTTP.default OTAUpdateInfo.Builder awsJobPresignedUrlConfig(Consumer<AwsJobPresignedUrlConfig.Builder> awsJobPresignedUrlConfig)
Configuration information for pre-signed URLs. Valid when protocols
contains HTTP.
AwsJobPresignedUrlConfig.Builder
avoiding the need to create one manually via AwsJobPresignedUrlConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig)
.
awsJobPresignedUrlConfig
- a consumer that will call methods on AwsJobPresignedUrlConfig.Builder
awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig)
OTAUpdateInfo.Builder targetSelection(String targetSelection)
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when a change is detected in a target. For example, an OTA update will run on a thing when the thing is added to a target group, even after the OTA update was completed by all things originally in the group.
targetSelection
- Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all
those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA
update may also be run on a thing when a change is detected in a target. For example, an OTA update
will run on a thing when the thing is added to a target group, even after the OTA update was completed
by all things originally in the group.TargetSelection
,
TargetSelection
OTAUpdateInfo.Builder targetSelection(TargetSelection targetSelection)
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when a change is detected in a target. For example, an OTA update will run on a thing when the thing is added to a target group, even after the OTA update was completed by all things originally in the group.
targetSelection
- Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all
those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA
update may also be run on a thing when a change is detected in a target. For example, an OTA update
will run on a thing when the thing is added to a target group, even after the OTA update was completed
by all things originally in the group.TargetSelection
,
TargetSelection
OTAUpdateInfo.Builder otaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
otaUpdateFiles
- A list of files associated with the OTA update.OTAUpdateInfo.Builder otaUpdateFiles(OTAUpdateFile... otaUpdateFiles)
A list of files associated with the OTA update.
otaUpdateFiles
- A list of files associated with the OTA update.OTAUpdateInfo.Builder otaUpdateFiles(Consumer<OTAUpdateFile.Builder>... otaUpdateFiles)
A list of files associated with the OTA update.
This is a convenience method that creates an instance of theOTAUpdateFile.Builder
avoiding the need to create one
manually via OTAUpdateFile.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #otaUpdateFiles(List
.
otaUpdateFiles
- a consumer that will call methods on
OTAUpdateFile.Builder
#otaUpdateFiles(java.util.Collection)
OTAUpdateInfo.Builder otaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
otaUpdateStatus
- The status of the OTA update.OTAUpdateStatus
,
OTAUpdateStatus
OTAUpdateInfo.Builder otaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
otaUpdateStatus
- The status of the OTA update.OTAUpdateStatus
,
OTAUpdateStatus
OTAUpdateInfo.Builder awsIotJobId(String awsIotJobId)
The IoT job ID associated with the OTA update.
awsIotJobId
- The IoT job ID associated with the OTA update.OTAUpdateInfo.Builder awsIotJobArn(String awsIotJobArn)
The IoT job ARN associated with the OTA update.
awsIotJobArn
- The IoT job ARN associated with the OTA update.OTAUpdateInfo.Builder errorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
errorInfo
- Error information associated with the OTA update.default OTAUpdateInfo.Builder errorInfo(Consumer<ErrorInfo.Builder> errorInfo)
Error information associated with the OTA update.
This is a convenience method that creates an instance of theErrorInfo.Builder
avoiding the need to
create one manually via ErrorInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to errorInfo(ErrorInfo)
.
errorInfo
- a consumer that will call methods on ErrorInfo.Builder
errorInfo(ErrorInfo)
OTAUpdateInfo.Builder additionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
additionalParameters
- A collection of name/value pairsCopyright © 2022. All rights reserved.