public class OTAUpdateInfo extends Object implements Serializable
Information about an OTA update.
| Constructor and Description |
|---|
OTAUpdateInfo() |
| Modifier and Type | Method and Description |
|---|---|
OTAUpdateInfo |
addadditionalParametersEntry(String key,
String value)
A collection of name/value pairs
|
OTAUpdateInfo |
clearadditionalParametersEntries()
Removes all the entries added into additionalParameters.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalParameters()
A collection of name/value pairs
|
String |
getAwsIotJobArn()
The AWS IoT job ARN associated with the OTA update.
|
String |
getAwsIotJobId()
The AWS IoT job ID associated with the OTA update.
|
AwsJobExecutionsRolloutConfig |
getAwsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
|
Date |
getCreationDate()
The date when the OTA update was created.
|
String |
getDescription()
A description of the OTA update.
|
ErrorInfo |
getErrorInfo()
Error information associated with the OTA update.
|
Date |
getLastModifiedDate()
The date when the OTA update was last updated.
|
String |
getOtaUpdateArn()
The OTA update ARN.
|
List<OTAUpdateFile> |
getOtaUpdateFiles()
A list of files associated with the OTA update.
|
String |
getOtaUpdateId()
The OTA update ID.
|
String |
getOtaUpdateStatus()
The status of the OTA update.
|
List<String> |
getTargets()
The targets of the OTA update.
|
String |
getTargetSelection()
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).
|
int |
hashCode() |
void |
setAdditionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
|
void |
setAwsIotJobArn(String awsIotJobArn)
The AWS IoT job ARN associated with the OTA update.
|
void |
setAwsIotJobId(String awsIotJobId)
The AWS IoT job ID associated with the OTA update.
|
void |
setAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
void |
setCreationDate(Date creationDate)
The date when the OTA update was created.
|
void |
setDescription(String description)
A description of the OTA update.
|
void |
setErrorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date when the OTA update was last updated.
|
void |
setOtaUpdateArn(String otaUpdateArn)
The OTA update ARN.
|
void |
setOtaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
|
void |
setOtaUpdateId(String otaUpdateId)
The OTA update ID.
|
void |
setOtaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
|
void |
setOtaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
|
void |
setTargets(Collection<String> targets)
The targets of the OTA update.
|
void |
setTargetSelection(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).
|
void |
setTargetSelection(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 |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OTAUpdateInfo |
withAdditionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
|
OTAUpdateInfo |
withAwsIotJobArn(String awsIotJobArn)
The AWS IoT job ARN associated with the OTA update.
|
OTAUpdateInfo |
withAwsIotJobId(String awsIotJobId)
The AWS IoT job ID associated with the OTA update.
|
OTAUpdateInfo |
withAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
OTAUpdateInfo |
withCreationDate(Date creationDate)
The date when the OTA update was created.
|
OTAUpdateInfo |
withDescription(String description)
A description of the OTA update.
|
OTAUpdateInfo |
withErrorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
|
OTAUpdateInfo |
withLastModifiedDate(Date lastModifiedDate)
The date when the OTA update was last updated.
|
OTAUpdateInfo |
withOtaUpdateArn(String otaUpdateArn)
The OTA update ARN.
|
OTAUpdateInfo |
withOtaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
|
OTAUpdateInfo |
withOtaUpdateFiles(OTAUpdateFile... otaUpdateFiles)
A list of files associated with the OTA update.
|
OTAUpdateInfo |
withOtaUpdateId(String otaUpdateId)
The OTA update ID.
|
OTAUpdateInfo |
withOtaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
|
OTAUpdateInfo |
withOtaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
|
OTAUpdateInfo |
withTargets(Collection<String> targets)
The targets of the OTA update.
|
OTAUpdateInfo |
withTargets(String... targets)
The targets of the OTA update.
|
OTAUpdateInfo |
withTargetSelection(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 |
withTargetSelection(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).
|
public String getOtaUpdateId()
The OTA update ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The OTA update ID.
public void setOtaUpdateId(String otaUpdateId)
The OTA update ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
otaUpdateId - The OTA update ID.
public OTAUpdateInfo withOtaUpdateId(String otaUpdateId)
The OTA update ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
otaUpdateId - The OTA update ID.
public String getOtaUpdateArn()
The OTA update ARN.
The OTA update ARN.
public void setOtaUpdateArn(String otaUpdateArn)
The OTA update ARN.
otaUpdateArn - The OTA update ARN.
public OTAUpdateInfo withOtaUpdateArn(String otaUpdateArn)
The OTA update ARN.
Returns a reference to this object so that method calls can be chained together.
otaUpdateArn - The OTA update ARN.
public Date getCreationDate()
The date when the OTA update was created.
The date when the OTA update was created.
public void setCreationDate(Date creationDate)
The date when the OTA update was created.
creationDate - The date when the OTA update was created.
public OTAUpdateInfo withCreationDate(Date creationDate)
The date when the OTA update was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date when the OTA update was created.
public Date getLastModifiedDate()
The date when the OTA update was last updated.
The date when the OTA update was last updated.
public void setLastModifiedDate(Date lastModifiedDate)
The date when the OTA update was last updated.
lastModifiedDate - The date when the OTA update was last updated.
public OTAUpdateInfo withLastModifiedDate(Date lastModifiedDate)
The date when the OTA update was last updated.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date when the OTA update was last updated.
public String getDescription()
A description of the OTA update.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
A description of the OTA update.
public void setDescription(String description)
A description of the OTA update.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description - A description of the OTA update.
public OTAUpdateInfo withDescription(String description)
A description of the OTA update.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description - A description of the OTA update.
public List<String> getTargets()
The targets of the OTA update.
The targets of the OTA update.
public void setTargets(Collection<String> targets)
The targets of the OTA update.
targets - The targets of the OTA update.
public OTAUpdateInfo withTargets(String... targets)
The targets of the OTA update.
Returns a reference to this object so that method calls can be chained together.
targets - The targets of the OTA update.
public OTAUpdateInfo withTargets(Collection<String> targets)
The targets of the OTA update.
Returns a reference to this object so that method calls can be chained together.
targets - The targets of the OTA update.
public AwsJobExecutionsRolloutConfig getAwsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
Configuration for the rollout of OTA updates.
public void setAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
awsJobExecutionsRolloutConfig - Configuration for the rollout of OTA updates.
public OTAUpdateInfo withAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
Returns a reference to this object so that method calls can be chained together.
awsJobExecutionsRolloutConfig - Configuration for the rollout of OTA updates.
public String getTargetSelection()
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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic void setTargetSelection(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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic OTAUpdateInfo withTargetSelection(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic void setTargetSelection(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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic OTAUpdateInfo withTargetSelection(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic List<OTAUpdateFile> getOtaUpdateFiles()
A list of files associated with the OTA update.
A list of files associated with the OTA update.
public void setOtaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
otaUpdateFiles - A list of files associated with the OTA update.
public OTAUpdateInfo withOtaUpdateFiles(OTAUpdateFile... otaUpdateFiles)
A list of files associated with the OTA update.
Returns a reference to this object so that method calls can be chained together.
otaUpdateFiles - A list of files associated with the OTA update.
public OTAUpdateInfo withOtaUpdateFiles(Collection<OTAUpdateFile> otaUpdateFiles)
A list of files associated with the OTA update.
Returns a reference to this object so that method calls can be chained together.
otaUpdateFiles - A list of files associated with the OTA update.
public String getOtaUpdateStatus()
The status of the OTA update.
Constraints:
Allowed Values: CREATE_PENDING, CREATE_IN_PROGRESS,
CREATE_COMPLETE, CREATE_FAILED
The status of the OTA update.
OTAUpdateStatuspublic void setOtaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
Constraints:
Allowed Values: CREATE_PENDING, CREATE_IN_PROGRESS,
CREATE_COMPLETE, CREATE_FAILED
otaUpdateStatus - The status of the OTA update.
OTAUpdateStatuspublic OTAUpdateInfo withOtaUpdateStatus(String otaUpdateStatus)
The status of the OTA update.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_PENDING, CREATE_IN_PROGRESS,
CREATE_COMPLETE, CREATE_FAILED
otaUpdateStatus - The status of the OTA update.
OTAUpdateStatuspublic void setOtaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
Constraints:
Allowed Values: CREATE_PENDING, CREATE_IN_PROGRESS,
CREATE_COMPLETE, CREATE_FAILED
otaUpdateStatus - The status of the OTA update.
OTAUpdateStatuspublic OTAUpdateInfo withOtaUpdateStatus(OTAUpdateStatus otaUpdateStatus)
The status of the OTA update.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_PENDING, CREATE_IN_PROGRESS,
CREATE_COMPLETE, CREATE_FAILED
otaUpdateStatus - The status of the OTA update.
OTAUpdateStatuspublic String getAwsIotJobId()
The AWS IoT job ID associated with the OTA update.
The AWS IoT job ID associated with the OTA update.
public void setAwsIotJobId(String awsIotJobId)
The AWS IoT job ID associated with the OTA update.
awsIotJobId - The AWS IoT job ID associated with the OTA update.
public OTAUpdateInfo withAwsIotJobId(String awsIotJobId)
The AWS IoT job ID associated with the OTA update.
Returns a reference to this object so that method calls can be chained together.
awsIotJobId - The AWS IoT job ID associated with the OTA update.
public String getAwsIotJobArn()
The AWS IoT job ARN associated with the OTA update.
The AWS IoT job ARN associated with the OTA update.
public void setAwsIotJobArn(String awsIotJobArn)
The AWS IoT job ARN associated with the OTA update.
awsIotJobArn - The AWS IoT job ARN associated with the OTA update.
public OTAUpdateInfo withAwsIotJobArn(String awsIotJobArn)
The AWS IoT job ARN associated with the OTA update.
Returns a reference to this object so that method calls can be chained together.
awsIotJobArn - The AWS IoT job ARN associated with the OTA update.
public ErrorInfo getErrorInfo()
Error information associated with the OTA update.
Error information associated with the OTA update.
public void setErrorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
errorInfo - Error information associated with the OTA update.
public OTAUpdateInfo withErrorInfo(ErrorInfo errorInfo)
Error information associated with the OTA update.
Returns a reference to this object so that method calls can be chained together.
errorInfo - Error information associated with the OTA update.
public Map<String,String> getAdditionalParameters()
A collection of name/value pairs
A collection of name/value pairs
public void setAdditionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
additionalParameters - A collection of name/value pairs
public OTAUpdateInfo withAdditionalParameters(Map<String,String> additionalParameters)
A collection of name/value pairs
Returns a reference to this object so that method calls can be chained together.
additionalParameters - A collection of name/value pairs
public OTAUpdateInfo addadditionalParametersEntry(String key, String value)
A collection of name/value pairs
The method adds a new key-value pair into additionalParameters parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into additionalParameters.value - The corresponding value of the entry to be added into
additionalParameters.public OTAUpdateInfo clearadditionalParametersEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.