@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 String otaUpdateId()
The OTA update ID.
public String otaUpdateArn()
The OTA update ARN.
public Instant creationDate()
The date when the OTA update was created.
public Instant lastModifiedDate()
The date when the OTA update was last updated.
public String description()
A description of the OTA update.
public boolean hasTargets()
public 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 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 boolean hasProtocols()
public 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 AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
public AwsJobPresignedUrlConfig awsJobPresignedUrlConfig()
Configuration information for pre-signed URLs. Valid when protocols contains HTTP.
protocols contains HTTP.public 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 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 boolean hasOtaUpdateFiles()
public 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 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 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 String awsIotJobId()
The AWS IoT job ID associated with the OTA update.
public String awsIotJobArn()
The AWS IoT job ARN associated with the OTA update.
public ErrorInfo errorInfo()
Error information associated with the OTA update.
public boolean hasAdditionalParameters()
public 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.