Interface Statement.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Statement.Builder,
,Statement> SdkBuilder<Statement.Builder,
,Statement> SdkPojo
- Enclosing class:
Statement
@Mutable
@NotThreadSafe
public static interface Statement.Builder
extends SdkPojo, CopyableBuilder<Statement.Builder,Statement>
-
Method Summary
Modifier and TypeMethodDescriptionThe execution code of the statement.completedOn
(Long completedOn) The unix time and date that the job definition was completed.The ID of the statement.default Statement.Builder
output
(Consumer<StatementOutput.Builder> output) The output in JSON.output
(StatementOutput output) The output in JSON.The code execution progress.The unix time and date that the job definition was started.The state while request is actioned.state
(StatementState state) The state while request is actioned.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 statement.
- Parameters:
id
- The ID of the statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
The execution code of the statement.
- Parameters:
code
- The execution code of the statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state while request is actioned.
- Parameters:
state
- The state while request is actioned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state while request is actioned.
- Parameters:
state
- The state while request is actioned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
output
The output in JSON.
- Parameters:
output
- The output in JSON.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
output
The output in JSON.
This is a convenience method that creates an instance of theStatementOutput.Builder
avoiding the need to create one manually viaStatementOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutput(StatementOutput)
.- Parameters:
output
- a consumer that will call methods onStatementOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
progress
The code execution progress.
- Parameters:
progress
- The code execution progress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedOn
The unix time and date that the job definition was started.
- Parameters:
startedOn
- The unix time and date that the job definition was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedOn
The unix time and date that the job definition was completed.
- Parameters:
completedOn
- The unix time and date that the job definition was completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-