Interface GetCommandExecutionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCommandExecutionResponse.Builder,GetCommandExecutionResponse>,IotResponse.Builder,SdkBuilder<GetCommandExecutionResponse.Builder,GetCommandExecutionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetCommandExecutionResponse
public static interface GetCommandExecutionResponse.Builder extends IotResponse.Builder, SdkPojo, CopyableBuilder<GetCommandExecutionResponse.Builder,GetCommandExecutionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetCommandExecutionResponse.BuildercommandArn(String commandArn)The Amazon Resource Number (ARN) of the command.GetCommandExecutionResponse.BuildercompletedAt(Instant completedAt)The timestamp, when the command execution was completed.GetCommandExecutionResponse.BuildercreatedAt(Instant createdAt)The timestamp, when the command execution was created.GetCommandExecutionResponse.BuilderexecutionId(String executionId)The unique identifier of the command execution.GetCommandExecutionResponse.BuilderexecutionTimeoutSeconds(Long executionTimeoutSeconds)Specifies the amount of time in seconds that the device can take to finish a command execution.GetCommandExecutionResponse.BuilderlastUpdatedAt(Instant lastUpdatedAt)The timestamp, when the command execution was last updated.GetCommandExecutionResponse.Builderparameters(Map<String,CommandParameterValue> parameters)The list of parameters that theStartCommandExecutionAPI used when performing the command on the device.GetCommandExecutionResponse.Builderresult(Map<String,CommandExecutionResult> result)The result value for the current state of the command execution.GetCommandExecutionResponse.BuilderstartedAt(Instant startedAt)The timestamp, when the command execution was started.GetCommandExecutionResponse.Builderstatus(String status)The status of the command execution.GetCommandExecutionResponse.Builderstatus(CommandExecutionStatus status)The status of the command execution.default GetCommandExecutionResponse.BuilderstatusReason(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.GetCommandExecutionResponse.BuilderstatusReason(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.GetCommandExecutionResponse.BuildertargetArn(String targetArn)The Amazon Resource Number (ARN) of the device on which the command execution is being performed.GetCommandExecutionResponse.BuildertimeToLive(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 Detail
-
executionId
GetCommandExecutionResponse.Builder executionId(String 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
GetCommandExecutionResponse.Builder commandArn(String 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
GetCommandExecutionResponse.Builder targetArn(String 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
GetCommandExecutionResponse.Builder status(String 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
UpdateCommandExecutionMQTT 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 theUpdateCommandExecutionMQTT API to update the status information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CommandExecutionStatus,CommandExecutionStatus
-
status
GetCommandExecutionResponse.Builder status(CommandExecutionStatus 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
UpdateCommandExecutionMQTT 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 theUpdateCommandExecutionMQTT API to update the status information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CommandExecutionStatus,CommandExecutionStatus
-
statusReason
GetCommandExecutionResponse.Builder 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.
- 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.Builderavoiding the need to create one manually viaStatusReason.builder().When the
Consumercompletes,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:
statusReason(StatusReason)
-
result
GetCommandExecutionResponse.Builder result(Map<String,CommandExecutionResult> 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-FleetWisenamespace, 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-FleetWisenamespace, 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
GetCommandExecutionResponse.Builder parameters(Map<String,CommandParameterValue> parameters)
The list of parameters that the
StartCommandExecutionAPI used when performing the command on the device.- Parameters:
parameters- The list of parameters that theStartCommandExecutionAPI used when performing the command on the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionTimeoutSeconds
GetCommandExecutionResponse.Builder executionTimeoutSeconds(Long 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
GetCommandExecutionResponse.Builder createdAt(Instant 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
GetCommandExecutionResponse.Builder lastUpdatedAt(Instant 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
GetCommandExecutionResponse.Builder startedAt(Instant 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
GetCommandExecutionResponse.Builder completedAt(Instant 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
GetCommandExecutionResponse.Builder timeToLive(Instant 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.
-
-