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.Builder
abortTransaction
(Consumer<AbortTransactionRequest.Builder> abortTransaction) Command to abort the current transaction.abortTransaction
(AbortTransactionRequest abortTransaction) Command to abort the current transaction.default SendCommandRequest.Builder
commitTransaction
(Consumer<CommitTransactionRequest.Builder> commitTransaction) Command to commit the specified transaction.commitTransaction
(CommitTransactionRequest commitTransaction) Command to commit the specified transaction.default SendCommandRequest.Builder
endSession
(Consumer<EndSessionRequest.Builder> endSession) Command to end the current session.endSession
(EndSessionRequest endSession) Command to end the current session.default SendCommandRequest.Builder
executeStatement
(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.Builder
fetchPage
(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.Builder
startSession
(Consumer<StartSessionRequest.Builder> startSession) Command to start a new session.startSession
(StartSessionRequest startSession) Command to start a new session.default SendCommandRequest.Builder
startTransaction
(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
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, sdkFieldNameToField, 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
StartSession
command. ThisSessionToken
is 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
StartSession
command. ThisSessionToken
is 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.Builder
avoiding the need to create one manually viaStartSessionRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaStartTransactionRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaEndSessionRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaCommitTransactionRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaAbortTransactionRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaExecuteStatementRequest.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaFetchPageRequest.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-