Interface Statement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Statement.Builder,Statement>,SdkBuilder<Statement.Builder,Statement>,SdkPojo
- Enclosing class:
- Statement
public static interface Statement.Builder extends SdkPojo, CopyableBuilder<Statement.Builder,Statement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Statement.Buildercode(String code)The execution code of the statement.Statement.BuildercompletedOn(Long completedOn)The unix time and date that the job definition was completed.Statement.Builderid(Integer id)The ID of the statement.default Statement.Builderoutput(Consumer<StatementOutput.Builder> output)The output in JSON.Statement.Builderoutput(StatementOutput output)The output in JSON.Statement.Builderprogress(Double progress)The code execution progress.Statement.BuilderstartedOn(Long startedOn)The unix time and date that the job definition was started.Statement.Builderstate(String state)The state while request is actioned.Statement.Builderstate(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 Detail
-
id
Statement.Builder id(Integer 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
Statement.Builder code(String 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
Statement.Builder state(String 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:
StatementState,StatementState
-
state
Statement.Builder state(StatementState 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:
StatementState,StatementState
-
output
Statement.Builder output(StatementOutput 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
default Statement.Builder output(Consumer<StatementOutput.Builder> output)
The output in JSON.
This is a convenience method that creates an instance of theStatementOutput.Builderavoiding the need to create one manually viaStatementOutput.builder().When the
Consumercompletes,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:
output(StatementOutput)
-
progress
Statement.Builder progress(Double 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
Statement.Builder startedOn(Long 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
Statement.Builder completedOn(Long 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.
-
-