Interface CommandExecution.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CommandExecution.Builder,
,CommandExecution> SdkBuilder<CommandExecution.Builder,
,CommandExecution> SdkPojo
- Enclosing class:
CommandExecution
@Mutable
@NotThreadSafe
public static interface CommandExecution.Builder
extends SdkPojo, CopyableBuilder<CommandExecution.Builder,CommandExecution>
-
Method Summary
Modifier and TypeMethodDescriptionThe command that needs to be executed.When the command execution process ended, expressed in Unix time format.The exit code to return upon completion.The ID of the command execution.default CommandExecution.Builder
logs
(Consumer<LogsLocation.Builder> logs) Sets the value of the Logs property for this object.logs
(LogsLocation logs) Sets the value of the Logs property for this object.sandboxArn
(String sandboxArn) AsandboxArn
.AsandboxId
.standardErrContent
(String standardErrContent) The text written by the command to stderr.standardOutputContent
(String standardOutputContent) The text written by the command to stdout.When the command execution process started, expressed in Unix time format.The status of the command execution.submitTime
(Instant submitTime) When the command execution process was initially submitted, expressed in Unix time format.The command type.type
(CommandType type) The command type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The ID of the command execution.
- Parameters:
id
- The ID of the command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sandboxId
A
sandboxId
.- Parameters:
sandboxId
- AsandboxId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
submitTime
When the command execution process was initially submitted, expressed in Unix time format.
- Parameters:
submitTime
- When the command execution process was initially submitted, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
When the command execution process started, expressed in Unix time format.
- Parameters:
startTime
- When the command execution process started, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
When the command execution process ended, expressed in Unix time format.
- Parameters:
endTime
- When the command execution process ended, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the command execution.
- Parameters:
status
- The status of the command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command that needs to be executed.
- Parameters:
command
- The command that needs to be executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The command type.
- Parameters:
type
- The command type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The command type.
- Parameters:
type
- The command type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exitCode
The exit code to return upon completion.
- Parameters:
exitCode
- The exit code to return upon completion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
standardOutputContent
The text written by the command to stdout.
- Parameters:
standardOutputContent
- The text written by the command to stdout.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
standardErrContent
The text written by the command to stderr.
- Parameters:
standardErrContent
- The text written by the command to stderr.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logs
Sets the value of the Logs property for this object.- Parameters:
logs
- The new value for the Logs property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logs
Sets the value of the Logs property for this object. This is a convenience method that creates an instance of theLogsLocation.Builder
avoiding the need to create one manually viaLogsLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologs(LogsLocation)
.- Parameters:
logs
- a consumer that will call methods onLogsLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sandboxArn
A
sandboxArn
.- Parameters:
sandboxArn
- AsandboxArn
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-