@Generated(value="software.amazon.awssdk:codegen") public final class OTAUpdateInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>
Information about an OTA update.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OTAUpdateInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
additionalParameters()
A collection of name/value pairs
|
String |
awsIotJobArn()
The AWS IoT job ARN associated with the OTA update.
|
String |
awsIotJobId()
The AWS IoT job ID associated with the OTA update.
|
AwsJobExecutionsRolloutConfig |
awsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
|
AwsJobPresignedUrlConfig |
awsJobPresignedUrlConfig()
Configuration information for pre-signed URLs.
|
static OTAUpdateInfo.Builder |
builder() |
Instant |
creationDate()
The date when the OTA update was created.
|
String |
description()
A description of the OTA update.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorInfo |
errorInfo()
Error information associated with the OTA update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAdditionalParameters()
Returns true if the AdditionalParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasOtaUpdateFiles()
Returns true if the OtaUpdateFiles property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasProtocols()
Returns true if the Protocols property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTargets()
Returns true if the Targets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Instant |
lastModifiedDate()
The date when the OTA update was last updated.
|
String |
otaUpdateArn()
The OTA update ARN.
|
List<OTAUpdateFile> |
otaUpdateFiles()
A list of files associated with the OTA update.
|
String |
otaUpdateId()
The OTA update ID.
|
OTAUpdateStatus |
otaUpdateStatus()
The status of the OTA update.
|
String |
otaUpdateStatusAsString()
The status of the OTA update.
|
List<Protocol> |
protocols()
The protocol used to transfer the OTA update image.
|
List<String> |
protocolsAsStrings()
The protocol used to transfer the OTA update image.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OTAUpdateInfo.Builder> |
serializableBuilderClass() |
List<String> |
targets()
The targets of the OTA update.
|
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).
|
String |
targetSelectionAsString()
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 |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String otaUpdateId()
The OTA update ID.
public final String otaUpdateArn()
The OTA update ARN.
public final Instant creationDate()
The date when the OTA update was created.
public final Instant lastModifiedDate()
The date when the OTA update was last updated.
public final String description()
A description of the OTA update.
public final boolean hasTargets()
public final List<String> targets()
The targets of the OTA update.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargets() to see if a value was sent in this field.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProtocols() to see if a value was sent in this field.
public final boolean hasProtocols()
public final List<String> protocolsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProtocols() to see if a value was sent in this field.
public final AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
public final AwsJobPresignedUrlConfig awsJobPresignedUrlConfig()
Configuration information for pre-signed URLs. Valid when protocols contains HTTP.
protocols contains HTTP.public final 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.
If the service returns an enum value that is not available in the current SDK version, targetSelection
will return TargetSelection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from targetSelectionAsString().
TargetSelectionpublic final String targetSelectionAsString()
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.
If the service returns an enum value that is not available in the current SDK version, targetSelection
will return TargetSelection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from targetSelectionAsString().
TargetSelectionpublic final boolean hasOtaUpdateFiles()
public final List<OTAUpdateFile> otaUpdateFiles()
A list of files associated with the OTA update.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasOtaUpdateFiles() to see if a value was sent in this field.
public final OTAUpdateStatus otaUpdateStatus()
The status of the OTA update.
If the service returns an enum value that is not available in the current SDK version, otaUpdateStatus
will return OTAUpdateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from otaUpdateStatusAsString().
OTAUpdateStatuspublic final String otaUpdateStatusAsString()
The status of the OTA update.
If the service returns an enum value that is not available in the current SDK version, otaUpdateStatus
will return OTAUpdateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from otaUpdateStatusAsString().
OTAUpdateStatuspublic final String awsIotJobId()
The AWS IoT job ID associated with the OTA update.
public final String awsIotJobArn()
The AWS IoT job ARN associated with the OTA update.
public final ErrorInfo errorInfo()
Error information associated with the OTA update.
public final boolean hasAdditionalParameters()
public final Map<String,String> additionalParameters()
A collection of name/value pairs
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAdditionalParameters() to see if a value was sent in this field.
public OTAUpdateInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OTAUpdateInfo.Builder,OTAUpdateInfo>public static OTAUpdateInfo.Builder builder()
public static Class<? extends OTAUpdateInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.