Interface SendCommandRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendCommandRequest.Builder,SendCommandRequest>,QldbSessionRequest.Builder,SdkBuilder<SendCommandRequest.Builder,SendCommandRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SendCommandRequest
public static interface SendCommandRequest.Builder extends QldbSessionRequest.Builder, SdkPojo, CopyableBuilder<SendCommandRequest.Builder,SendCommandRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.qldbsession.model.QldbSessionRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
sessionToken
SendCommandRequest.Builder sessionToken(String sessionToken)
Specifies the session token for the current command. A session token is constant throughout the life of the session.
To obtain a session token, run the
StartSessioncommand. ThisSessionTokenis required for every subsequent command that is issued during the current session.- Parameters:
sessionToken- Specifies the session token for the current command. A session token is constant throughout the life of the session.To obtain a session token, run the
StartSessioncommand. ThisSessionTokenis required for every subsequent command that is issued during the current session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startSession
SendCommandRequest.Builder startSession(StartSessionRequest startSession)
Command to start a new session. A session token is obtained as part of the response.
- Parameters:
startSession- Command to start a new session. A session token is obtained as part of the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startSession
default SendCommandRequest.Builder startSession(Consumer<StartSessionRequest.Builder> startSession)
Command to start a new session. A session token is obtained as part of the response.
This is a convenience method that creates an instance of theStartSessionRequest.Builderavoiding the need to create one manually viaStartSessionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartSession(StartSessionRequest).- Parameters:
startSession- a consumer that will call methods onStartSessionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
startSession(StartSessionRequest)
-
startTransaction
SendCommandRequest.Builder startTransaction(StartTransactionRequest startTransaction)
Command to start a new transaction.
- Parameters:
startTransaction- Command to start a new transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTransaction
default SendCommandRequest.Builder startTransaction(Consumer<StartTransactionRequest.Builder> startTransaction)
Command to start a new transaction.
This is a convenience method that creates an instance of theStartTransactionRequest.Builderavoiding the need to create one manually viaStartTransactionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartTransaction(StartTransactionRequest).- Parameters:
startTransaction- a consumer that will call methods onStartTransactionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
startTransaction(StartTransactionRequest)
-
endSession
SendCommandRequest.Builder endSession(EndSessionRequest endSession)
Command to end the current session.
- Parameters:
endSession- Command to end the current session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endSession
default SendCommandRequest.Builder endSession(Consumer<EndSessionRequest.Builder> endSession)
Command to end the current session.
This is a convenience method that creates an instance of theEndSessionRequest.Builderavoiding the need to create one manually viaEndSessionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendSession(EndSessionRequest).- Parameters:
endSession- a consumer that will call methods onEndSessionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
endSession(EndSessionRequest)
-
commitTransaction
SendCommandRequest.Builder commitTransaction(CommitTransactionRequest commitTransaction)
Command to commit the specified transaction.
- Parameters:
commitTransaction- Command to commit the specified transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitTransaction
default SendCommandRequest.Builder commitTransaction(Consumer<CommitTransactionRequest.Builder> commitTransaction)
Command to commit the specified transaction.
This is a convenience method that creates an instance of theCommitTransactionRequest.Builderavoiding the need to create one manually viaCommitTransactionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocommitTransaction(CommitTransactionRequest).- Parameters:
commitTransaction- a consumer that will call methods onCommitTransactionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
commitTransaction(CommitTransactionRequest)
-
abortTransaction
SendCommandRequest.Builder abortTransaction(AbortTransactionRequest abortTransaction)
Command to abort the current transaction.
- Parameters:
abortTransaction- Command to abort the current transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
abortTransaction
default SendCommandRequest.Builder abortTransaction(Consumer<AbortTransactionRequest.Builder> abortTransaction)
Command to abort the current transaction.
This is a convenience method that creates an instance of theAbortTransactionRequest.Builderavoiding the need to create one manually viaAbortTransactionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toabortTransaction(AbortTransactionRequest).- Parameters:
abortTransaction- a consumer that will call methods onAbortTransactionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
abortTransaction(AbortTransactionRequest)
-
executeStatement
SendCommandRequest.Builder executeStatement(ExecuteStatementRequest executeStatement)
Command to execute a statement in the specified transaction.
- Parameters:
executeStatement- Command to execute a statement in the specified transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executeStatement
default SendCommandRequest.Builder executeStatement(Consumer<ExecuteStatementRequest.Builder> executeStatement)
Command to execute a statement in the specified transaction.
This is a convenience method that creates an instance of theExecuteStatementRequest.Builderavoiding the need to create one manually viaExecuteStatementRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexecuteStatement(ExecuteStatementRequest).- Parameters:
executeStatement- a consumer that will call methods onExecuteStatementRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
executeStatement(ExecuteStatementRequest)
-
fetchPage
SendCommandRequest.Builder fetchPage(FetchPageRequest fetchPage)
Command to fetch a page.
- Parameters:
fetchPage- Command to fetch a page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fetchPage
default SendCommandRequest.Builder fetchPage(Consumer<FetchPageRequest.Builder> fetchPage)
Command to fetch a page.
This is a convenience method that creates an instance of theFetchPageRequest.Builderavoiding the need to create one manually viaFetchPageRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofetchPage(FetchPageRequest).- Parameters:
fetchPage- a consumer that will call methods onFetchPageRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fetchPage(FetchPageRequest)
-
overrideConfiguration
SendCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SendCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-