@Generated(value="software.amazon.awssdk:codegen") public final class CreateOtaUpdateRequest extends IotRequest implements ToCopyableBuilder<CreateOtaUpdateRequest.Builder,CreateOtaUpdateRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateOtaUpdateRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
additionalParameters()
A list of additional OTA update parameters which are name-value pairs.
|
AwsJobExecutionsRolloutConfig |
awsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
|
static CreateOtaUpdateRequest.Builder |
builder() |
String |
description()
The description of the OTA update.
|
boolean |
equals(Object obj) |
List<OTAUpdateFile> |
files()
The files to be streamed by the OTA update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
otaUpdateId()
The ID of the OTA update to be created.
|
String |
roleArn()
The IAM role that allows access to the AWS IoT Jobs service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateOtaUpdateRequest.Builder> |
serializableBuilderClass() |
List<String> |
targets()
The targeted devices to receive OTA updates.
|
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 |
targetSelectionAsString()
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.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String otaUpdateId()
The ID of the OTA update to be created.
public String description()
The description of the OTA update.
public List<String> targets()
The targeted devices to receive OTA updates.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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.
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()
.
TargetSelection
public String targetSelectionAsString()
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.
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()
.
TargetSelection
public AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig()
Configuration for the rollout of OTA updates.
public List<OTAUpdateFile> files()
The files to be streamed by the OTA update.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String roleArn()
The IAM role that allows access to the AWS IoT Jobs service.
public Map<String,String> additionalParameters()
A list of additional OTA update parameters which are name-value pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public CreateOtaUpdateRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateOtaUpdateRequest.Builder,CreateOtaUpdateRequest>
toBuilder
in class IotRequest
public static CreateOtaUpdateRequest.Builder builder()
public static Class<? extends CreateOtaUpdateRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.