public class CreateOTAUpdateRequest extends AmazonWebServiceRequest implements Serializable
Creates an AWS IoT OTAUpdate on a target group of things or groups.
| Constructor and Description |
|---|
CreateOTAUpdateRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateOTAUpdateRequest |
addadditionalParametersEntry(String key,
String value)
A list of additional OTA update parameters which are name-value pairs.
|
CreateOTAUpdateRequest |
clearadditionalParametersEntries()
Removes all the entries added into additionalParameters.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalParameters()
A list of additional OTA update parameters which are name-value pairs.
|
AwsJobExecutionsRolloutConfig |
getAwsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
|
String |
getDescription()
The description of the OTA update.
|
List<OTAUpdateFile> |
getFiles()
The files to be streamed by the OTA update.
|
String |
getOtaUpdateId()
The ID of the OTA update to be created.
|
String |
getRoleArn()
The IAM role that allows access to the AWS IoT Jobs service.
|
List<Tag> |
getTags()
Metadata which can be used to manage updates.
|
List<String> |
getTargets()
The targeted devices to receive OTA updates.
|
String |
getTargetSelection()
Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT).
|
int |
hashCode() |
void |
setAdditionalParameters(Map<String,String> additionalParameters)
A list of additional OTA update parameters which are name-value pairs.
|
void |
setAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
void |
setDescription(String description)
The description of the OTA update.
|
void |
setFiles(Collection<OTAUpdateFile> files)
The files to be streamed by the OTA update.
|
void |
setOtaUpdateId(String otaUpdateId)
The ID of the OTA update to be created.
|
void |
setRoleArn(String roleArn)
The IAM role that allows access to the AWS IoT Jobs service.
|
void |
setTags(Collection<Tag> tags)
Metadata which can be used to manage updates.
|
void |
setTargets(Collection<String> targets)
The targeted devices to receive OTA updates.
|
void |
setTargetSelection(String targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT).
|
void |
setTargetSelection(TargetSelection targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateOTAUpdateRequest |
withAdditionalParameters(Map<String,String> additionalParameters)
A list of additional OTA update parameters which are name-value pairs.
|
CreateOTAUpdateRequest |
withAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig)
Configuration for the rollout of OTA updates.
|
CreateOTAUpdateRequest |
withDescription(String description)
The description of the OTA update.
|
CreateOTAUpdateRequest |
withFiles(Collection<OTAUpdateFile> files)
The files to be streamed by the OTA update.
|
CreateOTAUpdateRequest |
withFiles(OTAUpdateFile... files)
The files to be streamed by the OTA update.
|
CreateOTAUpdateRequest |
withOtaUpdateId(String otaUpdateId)
The ID of the OTA update to be created.
|
CreateOTAUpdateRequest |
withRoleArn(String roleArn)
The IAM role that allows access to the AWS IoT Jobs service.
|
CreateOTAUpdateRequest |
withTags(Collection<Tag> tags)
Metadata which can be used to manage updates.
|
CreateOTAUpdateRequest |
withTags(Tag... tags)
Metadata which can be used to manage updates.
|
CreateOTAUpdateRequest |
withTargets(Collection<String> targets)
The targeted devices to receive OTA updates.
|
CreateOTAUpdateRequest |
withTargets(String... targets)
The targeted devices to receive OTA updates.
|
CreateOTAUpdateRequest |
withTargetSelection(String targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT).
|
CreateOTAUpdateRequest |
withTargetSelection(TargetSelection targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT).
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getOtaUpdateId()
The ID of the OTA update to be created.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The ID of the OTA update to be created.
public void setOtaUpdateId(String otaUpdateId)
The ID of the OTA update to be created.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
otaUpdateId - The ID of the OTA update to be created.
public CreateOTAUpdateRequest withOtaUpdateId(String otaUpdateId)
The ID of the OTA update to be created.
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 ID of the OTA update to be created.
public String getDescription()
The description of the OTA update.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
The description of the OTA update.
public void setDescription(String description)
The description of the OTA update.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description - The description of the OTA update.
public CreateOTAUpdateRequest withDescription(String description)
The 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 - The description of the OTA update.
public List<String> getTargets()
The targeted devices to receive OTA updates.
The targeted devices to receive OTA updates.
public void setTargets(Collection<String> targets)
The targeted devices to receive OTA updates.
targets - The targeted devices to receive OTA updates.
public CreateOTAUpdateRequest withTargets(String... targets)
The targeted devices to receive OTA updates.
Returns a reference to this object so that method calls can be chained together.
targets - The targeted devices to receive OTA updates.
public CreateOTAUpdateRequest withTargets(Collection<String> targets)
The targeted devices to receive OTA updates.
Returns a reference to this object so that method calls can be chained together.
targets - The targeted devices to receive OTA updates.
public String getTargetSelection()
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
TargetSelectionpublic void setTargetSelection(String targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
targetSelection - Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
TargetSelectionpublic CreateOTAUpdateRequest withTargetSelection(String targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
targetSelection - Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
TargetSelectionpublic void setTargetSelection(TargetSelection targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
targetSelection - Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
TargetSelectionpublic CreateOTAUpdateRequest withTargetSelection(TargetSelection targetSelection)
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
targetSelection - Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
TargetSelectionpublic 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 CreateOTAUpdateRequest 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 List<OTAUpdateFile> getFiles()
The files to be streamed by the OTA update.
The files to be streamed by the OTA update.
public void setFiles(Collection<OTAUpdateFile> files)
The files to be streamed by the OTA update.
files - The files to be streamed by the OTA update.
public CreateOTAUpdateRequest withFiles(OTAUpdateFile... files)
The files to be streamed by the OTA update.
Returns a reference to this object so that method calls can be chained together.
files - The files to be streamed by the OTA update.
public CreateOTAUpdateRequest withFiles(Collection<OTAUpdateFile> files)
The files to be streamed by the OTA update.
Returns a reference to this object so that method calls can be chained together.
files - The files to be streamed by the OTA update.
public String getRoleArn()
The IAM role that allows access to the AWS IoT Jobs service.
Constraints:
Length: 20 - 2048
The IAM role that allows access to the AWS IoT Jobs service.
public void setRoleArn(String roleArn)
The IAM role that allows access to the AWS IoT Jobs service.
Constraints:
Length: 20 - 2048
roleArn - The IAM role that allows access to the AWS IoT Jobs service.
public CreateOTAUpdateRequest withRoleArn(String roleArn)
The IAM role that allows access to the AWS IoT Jobs service.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn - The IAM role that allows access to the AWS IoT Jobs service.
public Map<String,String> getAdditionalParameters()
A list of additional OTA update parameters which are name-value pairs.
A list of additional OTA update parameters which are name-value pairs.
public void setAdditionalParameters(Map<String,String> additionalParameters)
A list of additional OTA update parameters which are name-value pairs.
additionalParameters - A list of additional OTA update parameters which are name-value pairs.
public CreateOTAUpdateRequest withAdditionalParameters(Map<String,String> additionalParameters)
A list of additional OTA update parameters which are name-value pairs.
Returns a reference to this object so that method calls can be chained together.
additionalParameters - A list of additional OTA update parameters which are name-value pairs.
public CreateOTAUpdateRequest addadditionalParametersEntry(String key, String value)
A list of additional OTA update parameters which are 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 CreateOTAUpdateRequest clearadditionalParametersEntries()
Returns a reference to this object so that method calls can be chained together.
public List<Tag> getTags()
Metadata which can be used to manage updates.
Metadata which can be used to manage updates.
public void setTags(Collection<Tag> tags)
Metadata which can be used to manage updates.
tags - Metadata which can be used to manage updates.
public CreateOTAUpdateRequest withTags(Tag... tags)
Metadata which can be used to manage updates.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata which can be used to manage updates.
public CreateOTAUpdateRequest withTags(Collection<Tag> tags)
Metadata which can be used to manage updates.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata which can be used to manage updates.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.