Interface SendCommandRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendCommandRequest.Builder,,SendCommandRequest> QldbSessionRequest.Builder,SdkBuilder<SendCommandRequest.Builder,,SendCommandRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SendCommandRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault SendCommandRequest.BuilderabortTransaction(Consumer<AbortTransactionRequest.Builder> abortTransaction) Command to abort the current transaction.abortTransaction(AbortTransactionRequest abortTransaction) Command to abort the current transaction.default SendCommandRequest.BuildercommitTransaction(Consumer<CommitTransactionRequest.Builder> commitTransaction) Command to commit the specified transaction.commitTransaction(CommitTransactionRequest commitTransaction) Command to commit the specified transaction.default SendCommandRequest.BuilderendSession(Consumer<EndSessionRequest.Builder> endSession) Command to end the current session.endSession(EndSessionRequest endSession) Command to end the current session.default SendCommandRequest.BuilderexecuteStatement(Consumer<ExecuteStatementRequest.Builder> executeStatement) Command to execute a statement in the specified transaction.executeStatement(ExecuteStatementRequest executeStatement) Command to execute a statement in the specified transaction.default SendCommandRequest.BuilderfetchPage(Consumer<FetchPageRequest.Builder> fetchPage) Command to fetch a page.fetchPage(FetchPageRequest fetchPage) Command to fetch a page.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sessionToken(String sessionToken) Specifies the session token for the current command.default SendCommandRequest.BuilderstartSession(Consumer<StartSessionRequest.Builder> startSession) Command to start a new session.startSession(StartSessionRequest startSession) Command to start a new session.default SendCommandRequest.BuilderstartTransaction(Consumer<StartTransactionRequest.Builder> startTransaction) Command to start a new transaction.startTransaction(StartTransactionRequest startTransaction) Command to start a new transaction.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qldbsession.model.QldbSessionRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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:
-
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:
-
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
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:
-
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:
-
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:
-
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:
-
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
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:
-
overrideConfiguration
SendCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-