Interface GetTransactionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetTransactionResponse.Builder,
,GetTransactionResponse> ManagedBlockchainQueryResponse.Builder
,SdkBuilder<GetTransactionResponse.Builder,
,GetTransactionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetTransactionResponse
public static interface GetTransactionResponse.Builder
extends ManagedBlockchainQueryResponse.Builder, SdkPojo, CopyableBuilder<GetTransactionResponse.Builder,GetTransactionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetTransactionResponse.Builder
transaction
(Consumer<Transaction.Builder> transaction) Contains the details of the transaction.transaction
(Transaction transaction) Contains the details of the transaction.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.managedblockchainquery.model.ManagedBlockchainQueryResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
transaction
Contains the details of the transaction.
- Parameters:
transaction
- Contains the details of the transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transaction
Contains the details of the transaction.
This is a convenience method that creates an instance of theTransaction.Builder
avoiding the need to create one manually viaTransaction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totransaction(Transaction)
.- Parameters:
transaction
- a consumer that will call methods onTransaction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-