Interface OTAUpdateInfo.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>,SdkBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>,SdkPojo
- Enclosing class:
- OTAUpdateInfo
public static interface OTAUpdateInfo.Builder extends SdkPojo, CopyableBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OTAUpdateInfo.BuilderadditionalParameters(Map<String,String> additionalParameters)A collection of name/value pairsOTAUpdateInfo.BuilderawsIotJobArn(String awsIotJobArn)The IoT job ARN associated with the OTA update.OTAUpdateInfo.BuilderawsIotJobId(String awsIotJobId)The IoT job ID associated with the OTA update.default OTAUpdateInfo.BuilderawsJobExecutionsRolloutConfig(Consumer<AwsJobExecutionsRolloutConfig.Builder> awsJobExecutionsRolloutConfig)Configuration for the rollout of OTA updates.OTAUpdateInfo.BuilderawsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)Configuration for the rollout of OTA updates.default OTAUpdateInfo.BuilderawsJobPresignedUrlConfig(Consumer<AwsJobPresignedUrlConfig.Builder> awsJobPresignedUrlConfig)Configuration information for pre-signed URLs.OTAUpdateInfo.BuilderawsJobPresignedUrlConfig(AwsJobPresignedUrlConfig awsJobPresignedUrlConfig)Configuration information for pre-signed URLs.OTAUpdateInfo.BuildercreationDate(Instant creationDate)The date when the OTA update was created.OTAUpdateInfo.Builderdescription(String description)A description of the OTA update.default OTAUpdateInfo.BuildererrorInfo(Consumer<ErrorInfo.Builder> errorInfo)Error information associated with the OTA update.OTAUpdateInfo.BuildererrorInfo(ErrorInfo errorInfo)Error information associated with the OTA update.OTAUpdateInfo.BuilderlastModifiedDate(Instant lastModifiedDate)The date when the OTA update was last updated.OTAUpdateInfo.BuilderotaUpdateArn(String otaUpdateArn)The OTA update ARN.OTAUpdateInfo.BuilderotaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)A list of files associated with the OTA update.OTAUpdateInfo.BuilderotaUpdateFiles(Consumer<OTAUpdateFile.Builder>... otaUpdateFiles)A list of files associated with the OTA update.OTAUpdateInfo.BuilderotaUpdateFiles(OTAUpdateFile... otaUpdateFiles)A list of files associated with the OTA update.OTAUpdateInfo.BuilderotaUpdateId(String otaUpdateId)The OTA update ID.OTAUpdateInfo.BuilderotaUpdateStatus(String otaUpdateStatus)The status of the OTA update.OTAUpdateInfo.BuilderotaUpdateStatus(OTAUpdateStatus otaUpdateStatus)The status of the OTA update.OTAUpdateInfo.Builderprotocols(Collection<Protocol> protocols)The protocol used to transfer the OTA update image.OTAUpdateInfo.Builderprotocols(Protocol... protocols)The protocol used to transfer the OTA update image.OTAUpdateInfo.BuilderprotocolsWithStrings(String... protocols)The protocol used to transfer the OTA update image.OTAUpdateInfo.BuilderprotocolsWithStrings(Collection<String> protocols)The protocol used to transfer the OTA update image.OTAUpdateInfo.Buildertargets(String... targets)The targets of the OTA update.OTAUpdateInfo.Buildertargets(Collection<String> targets)The targets of the OTA update.OTAUpdateInfo.BuildertargetSelection(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.BuildertargetSelection(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, sdkFields
-
-
-
-
Method Detail
-
otaUpdateId
OTAUpdateInfo.Builder otaUpdateId(String 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
OTAUpdateInfo.Builder otaUpdateArn(String 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
OTAUpdateInfo.Builder creationDate(Instant 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
OTAUpdateInfo.Builder lastModifiedDate(Instant 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
OTAUpdateInfo.Builder description(String 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
OTAUpdateInfo.Builder targets(Collection<String> 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
OTAUpdateInfo.Builder targets(String... 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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.Builderavoiding the need to create one manually viaAwsJobExecutionsRolloutConfig.builder().When the
Consumercompletes,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:
awsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig)
-
awsJobPresignedUrlConfig
OTAUpdateInfo.Builder awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig awsJobPresignedUrlConfig)
Configuration information for pre-signed URLs. Valid when
protocolscontains HTTP.- Parameters:
awsJobPresignedUrlConfig- Configuration information for pre-signed URLs. Valid whenprotocolscontains 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 theprotocolscontains HTTP.AwsJobPresignedUrlConfig.Builderavoiding the need to create one manually viaAwsJobPresignedUrlConfig.builder().When the
Consumercompletes,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:
awsJobPresignedUrlConfig(AwsJobPresignedUrlConfig)
-
targetSelection
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.
- 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,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.
- 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,TargetSelection
-
otaUpdateFiles
OTAUpdateInfo.Builder otaUpdateFiles(Collection<OTAUpdateFile> 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
OTAUpdateInfo.Builder otaUpdateFiles(OTAUpdateFile... 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
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.Builderavoiding the need to create one manually viaOTAUpdateFile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#otaUpdateFiles(List.) - 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:
#otaUpdateFiles(java.util.Collection)
-
otaUpdateStatus
OTAUpdateInfo.Builder otaUpdateStatus(String 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,OTAUpdateStatus
-
otaUpdateStatus
OTAUpdateInfo.Builder otaUpdateStatus(OTAUpdateStatus 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,OTAUpdateStatus
-
awsIotJobId
OTAUpdateInfo.Builder awsIotJobId(String 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
OTAUpdateInfo.Builder awsIotJobArn(String 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
OTAUpdateInfo.Builder errorInfo(ErrorInfo 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
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.Builderavoiding the need to create one manually viaErrorInfo.builder().When the
Consumercompletes,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:
errorInfo(ErrorInfo)
-
additionalParameters
OTAUpdateInfo.Builder additionalParameters(Map<String,String> 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.
-
-