1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetBlock`](crate::operation::get_block::builders::GetBlockFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::get_block::builders::GetBlockFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_block::builders::GetBlockFluentBuilder::set_name):<br>required: **true**<br><p>The name of the ledger.</p><br>
    ///   - [`block_address(ValueHolder)`](crate::operation::get_block::builders::GetBlockFluentBuilder::block_address) / [`set_block_address(Option<ValueHolder>)`](crate::operation::get_block::builders::GetBlockFluentBuilder::set_block_address):<br>required: **true**<br><p>The location of the block that you want to request. An address is an Amazon Ion structure that has two fields: <code>strandId</code> and <code>sequenceNo</code>.</p> <p>For example: <code>{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}</code>.</p><br>
    ///   - [`digest_tip_address(ValueHolder)`](crate::operation::get_block::builders::GetBlockFluentBuilder::digest_tip_address) / [`set_digest_tip_address(Option<ValueHolder>)`](crate::operation::get_block::builders::GetBlockFluentBuilder::set_digest_tip_address):<br>required: **false**<br><p>The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields: <code>strandId</code> and <code>sequenceNo</code>.</p> <p>For example: <code>{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}</code>.</p><br>
    /// - On success, responds with [`GetBlockOutput`](crate::operation::get_block::GetBlockOutput) with field(s):
    ///   - [`block(Option<ValueHolder>)`](crate::operation::get_block::GetBlockOutput::block): <p>The block data object in Amazon Ion format.</p>
    ///   - [`proof(Option<ValueHolder>)`](crate::operation::get_block::GetBlockOutput::proof): <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code> request. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.</p>
    /// - On failure, responds with [`SdkError<GetBlockError>`](crate::operation::get_block::GetBlockError)
    pub fn get_block(&self) -> crate::operation::get_block::builders::GetBlockFluentBuilder {
        crate::operation::get_block::builders::GetBlockFluentBuilder::new(self.handle.clone())
    }
}