Interface OTAUpdateInfo.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OTAUpdateInfo.Builder,
,OTAUpdateInfo> SdkBuilder<OTAUpdateInfo.Builder,
,OTAUpdateInfo> SdkPojo
- Enclosing class:
OTAUpdateInfo
-
Method Summary
Modifier and TypeMethodDescriptionadditionalParameters
(Map<String, String> additionalParameters) A collection of name/value pairsawsIotJobArn
(String awsIotJobArn) The IoT job ARN associated with the OTA update.awsIotJobId
(String awsIotJobId) The IoT job ID associated with the OTA update.default OTAUpdateInfo.Builder
awsJobExecutionsRolloutConfig
(Consumer<AwsJobExecutionsRolloutConfig.Builder> awsJobExecutionsRolloutConfig) Configuration for the rollout of OTA updates.awsJobExecutionsRolloutConfig
(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig) Configuration for the rollout of OTA updates.default OTAUpdateInfo.Builder
awsJobPresignedUrlConfig
(Consumer<AwsJobPresignedUrlConfig.Builder> awsJobPresignedUrlConfig) Configuration information for pre-signed URLs.awsJobPresignedUrlConfig
(AwsJobPresignedUrlConfig awsJobPresignedUrlConfig) Configuration information for pre-signed URLs.creationDate
(Instant creationDate) The date when the OTA update was created.description
(String description) A description of the OTA update.default OTAUpdateInfo.Builder
errorInfo
(Consumer<ErrorInfo.Builder> errorInfo) Error information associated with the OTA update.Error information associated with the OTA update.lastModifiedDate
(Instant lastModifiedDate) The date when the OTA update was last updated.otaUpdateArn
(String otaUpdateArn) The OTA update ARN.otaUpdateFiles
(Collection<OTAUpdateFile> otaUpdateFiles) A list of files associated with the OTA update.otaUpdateFiles
(Consumer<OTAUpdateFile.Builder>... otaUpdateFiles) A list of files associated with the OTA update.otaUpdateFiles
(OTAUpdateFile... otaUpdateFiles) A list of files associated with the OTA update.otaUpdateId
(String otaUpdateId) The OTA update ID.otaUpdateStatus
(String otaUpdateStatus) The status of the OTA update.otaUpdateStatus
(OTAUpdateStatus otaUpdateStatus) The status of the OTA update.protocols
(Collection<Protocol> protocols) The protocol used to transfer the OTA update image.The protocol used to transfer the OTA update image.protocolsWithStrings
(String... protocols) The protocol used to transfer the OTA update image.protocolsWithStrings
(Collection<String> protocols) The protocol used to transfer the OTA update image.The targets of the OTA update.targets
(Collection<String> targets) The targets of the OTA update.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).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).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, sdkFieldNameToField, sdkFields
-
Method Details
-
otaUpdateId
The OTA update ID.
- Parameters:
otaUpdateId
- The OTA update ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
otaUpdateArn
The OTA update ARN.
- Parameters:
otaUpdateArn
- The OTA update ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The date when the OTA update was created.
- Parameters:
creationDate
- The date when the OTA update was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedDate
The date when the OTA update was last updated.
- Parameters:
lastModifiedDate
- The date when the OTA update was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the OTA update.
- Parameters:
description
- A description of the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets of the OTA update.
- Parameters:
targets
- The targets of the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets of the OTA update.
- Parameters:
targets
- The targets of the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocolsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocolsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsJobExecutionsRolloutConfig
OTAUpdateInfo.Builder awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig) Configuration for the rollout of OTA updates.
- Parameters:
awsJobExecutionsRolloutConfig
- Configuration for the rollout of OTA updates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsJobExecutionsRolloutConfig
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 viaAwsJobExecutionsRolloutConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toawsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig)
.- Parameters:
awsJobExecutionsRolloutConfig
- a consumer that will call methods onAwsJobExecutionsRolloutConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
awsJobPresignedUrlConfig
Configuration information for pre-signed URLs. Valid when
protocols
contains HTTP.- Parameters:
awsJobPresignedUrlConfig
- Configuration information for pre-signed URLs. Valid whenprotocols
contains HTTP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsJobPresignedUrlConfig
default OTAUpdateInfo.Builder awsJobPresignedUrlConfig(Consumer<AwsJobPresignedUrlConfig.Builder> awsJobPresignedUrlConfig) Configuration information for pre-signed URLs. Valid when
This is a convenience method that creates an instance of theprotocols
contains HTTP.AwsJobPresignedUrlConfig.Builder
avoiding the need to create one manually viaAwsJobPresignedUrlConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toawsJobPresignedUrlConfig(AwsJobPresignedUrlConfig)
.- Parameters:
awsJobPresignedUrlConfig
- a consumer that will call methods onAwsJobPresignedUrlConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
otaUpdateFiles
A list of files associated with the OTA update.
- Parameters:
otaUpdateFiles
- A list of files associated with the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
otaUpdateFiles
A list of files associated with the OTA update.
- Parameters:
otaUpdateFiles
- A list of files associated with the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaOTAUpdateFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tootaUpdateFiles(List<OTAUpdateFile>)
.- Parameters:
otaUpdateFiles
- a consumer that will call methods onOTAUpdateFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
otaUpdateStatus
The status of the OTA update.
- Parameters:
otaUpdateStatus
- The status of the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
otaUpdateStatus
The status of the OTA update.
- Parameters:
otaUpdateStatus
- The status of the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
awsIotJobId
The IoT job ID associated with the OTA update.
- Parameters:
awsIotJobId
- The IoT job ID associated with the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsIotJobArn
The IoT job ARN associated with the OTA update.
- Parameters:
awsIotJobArn
- The IoT job ARN associated with the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInfo
Error information associated with the OTA update.
- Parameters:
errorInfo
- Error information associated with the OTA update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaErrorInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorInfo(ErrorInfo)
.- Parameters:
errorInfo
- a consumer that will call methods onErrorInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalParameters
A collection of name/value pairs
- Parameters:
additionalParameters
- A collection of name/value pairs- Returns:
- Returns a reference to this object so that method calls can be chained together.
-