aws_sdk_managedblockchainquery/client/get_transaction.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetTransaction`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`transaction_hash(impl Into<String>)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::transaction_hash) / [`set_transaction_hash(Option<String>)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::set_transaction_hash):<br>required: **false**<br><p>The hash of a transaction. It is generated when a transaction is created.</p><br>
7 /// - [`transaction_id(impl Into<String>)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::transaction_id) / [`set_transaction_id(Option<String>)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::set_transaction_id):<br>required: **false**<br><p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p><note> <p><code>transactionId</code> is only supported on the Bitcoin networks.</p> </note><br>
8 /// - [`network(QueryNetwork)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::network) / [`set_network(Option<QueryNetwork>)`](crate::operation::get_transaction::builders::GetTransactionFluentBuilder::set_network):<br>required: **true**<br><p>The blockchain network where the transaction occurred.</p><br>
9 /// - On success, responds with [`GetTransactionOutput`](crate::operation::get_transaction::GetTransactionOutput) with field(s):
10 /// - [`transaction(Option<Transaction>)`](crate::operation::get_transaction::GetTransactionOutput::transaction): <p>Contains the details of the transaction.</p>
11 /// - On failure, responds with [`SdkError<GetTransactionError>`](crate::operation::get_transaction::GetTransactionError)
12 pub fn get_transaction(&self) -> crate::operation::get_transaction::builders::GetTransactionFluentBuilder {
13 crate::operation::get_transaction::builders::GetTransactionFluentBuilder::new(self.handle.clone())
14 }
15}