Interface GetCommandExecutionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCommandExecutionResponse.Builder,
,GetCommandExecutionResponse> IotResponse.Builder
,SdkBuilder<GetCommandExecutionResponse.Builder,
,GetCommandExecutionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCommandExecutionResponse
-
Method Summary
Modifier and TypeMethodDescriptioncommandArn
(String commandArn) The Amazon Resource Number (ARN) of the command.completedAt
(Instant completedAt) The timestamp, when the command execution was completed.The timestamp, when the command execution was created.executionId
(String executionId) The unique identifier of the command execution.executionTimeoutSeconds
(Long executionTimeoutSeconds) Specifies the amount of time in seconds that the device can take to finish a command execution.lastUpdatedAt
(Instant lastUpdatedAt) The timestamp, when the command execution was last updated.parameters
(Map<String, CommandParameterValue> parameters) The list of parameters that theStartCommandExecution
API used when performing the command on the device.result
(Map<String, CommandExecutionResult> result) The result value for the current state of the command execution.The timestamp, when the command execution was started.The status of the command execution.status
(CommandExecutionStatus status) The status of the command execution.statusReason
(Consumer<StatusReason.Builder> statusReason) Your devices can use this parameter to provide additional context about the status of a command execution using a reason code and description.statusReason
(StatusReason statusReason) Your devices can use this parameter to provide additional context about the status of a command execution using a reason code and description.The Amazon Resource Number (ARN) of the device on which the command execution is being performed.timeToLive
(Instant timeToLive) The time to live (TTL) parameter that indicates the duration for which executions will be retained in your account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
executionId
The unique identifier of the command execution.
- Parameters:
executionId
- The unique identifier of the command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commandArn
The Amazon Resource Number (ARN) of the command. For example,
arn:aws:iot:<region>:<accountid>:command/<commandId>
- Parameters:
commandArn
- The Amazon Resource Number (ARN) of the command. For example,arn:aws:iot:<region>:<accountid>:command/<commandId>
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetArn
The Amazon Resource Number (ARN) of the device on which the command execution is being performed.
- Parameters:
targetArn
- The Amazon Resource Number (ARN) of the device on which the command execution is being performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the command execution. After your devices receive the command and start performing the operations specified in the command, it can use the
UpdateCommandExecution
MQTT API to update the status information.- Parameters:
status
- The status of the command execution. After your devices receive the command and start performing the operations specified in the command, it can use theUpdateCommandExecution
MQTT API to update the status information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the command execution. After your devices receive the command and start performing the operations specified in the command, it can use the
UpdateCommandExecution
MQTT API to update the status information.- Parameters:
status
- The status of the command execution. After your devices receive the command and start performing the operations specified in the command, it can use theUpdateCommandExecution
MQTT API to update the status information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
Your devices can use this parameter to provide additional context about the status of a command execution using a reason code and description.
- Parameters:
statusReason
- Your devices can use this parameter to provide additional context about the status of a command execution using a reason code and description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReason
default GetCommandExecutionResponse.Builder statusReason(Consumer<StatusReason.Builder> statusReason) Your devices can use this parameter to provide additional context about the status of a command execution using a reason code and description.
This is a convenience method that creates an instance of theStatusReason.Builder
avoiding the need to create one manually viaStatusReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatusReason(StatusReason)
.- Parameters:
statusReason
- a consumer that will call methods onStatusReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
result
The result value for the current state of the command execution. The status provides information about the progress of the command execution. The device can use the result field to share additional details about the execution such as a return value of a remote function call.
If you use the
AWS-IoT-FleetWise
namespace, then this field is not applicable in the API response.- Parameters:
result
- The result value for the current state of the command execution. The status provides information about the progress of the command execution. The device can use the result field to share additional details about the execution such as a return value of a remote function call.If you use the
AWS-IoT-FleetWise
namespace, then this field is not applicable in the API response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The list of parameters that the
StartCommandExecution
API used when performing the command on the device.- Parameters:
parameters
- The list of parameters that theStartCommandExecution
API used when performing the command on the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionTimeoutSeconds
Specifies the amount of time in seconds that the device can take to finish a command execution. A timer starts when the command execution is created. If the command execution status is not set to another terminal state before the timer expires, it will automatically update to
TIMED_OUT
.- Parameters:
executionTimeoutSeconds
- Specifies the amount of time in seconds that the device can take to finish a command execution. A timer starts when the command execution is created. If the command execution status is not set to another terminal state before the timer expires, it will automatically update toTIMED_OUT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp, when the command execution was created.
- Parameters:
createdAt
- The timestamp, when the command execution was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
The timestamp, when the command execution was last updated.
- Parameters:
lastUpdatedAt
- The timestamp, when the command execution was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The timestamp, when the command execution was started.
- Parameters:
startedAt
- The timestamp, when the command execution was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedAt
The timestamp, when the command execution was completed.
- Parameters:
completedAt
- The timestamp, when the command execution was completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
The time to live (TTL) parameter that indicates the duration for which executions will be retained in your account. The default value is six months.
- Parameters:
timeToLive
- The time to live (TTL) parameter that indicates the duration for which executions will be retained in your account. The default value is six months.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-