aws-sdk-managedblockchainquery 1.101.0

AWS SDK for Amazon Managed Blockchain Query
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAssetContractInput {
    /// <p>Contains the blockchain address and network information about the contract.</p>
    pub contract_identifier: ::std::option::Option<crate::types::ContractIdentifier>,
}
impl GetAssetContractInput {
    /// <p>Contains the blockchain address and network information about the contract.</p>
    pub fn contract_identifier(&self) -> ::std::option::Option<&crate::types::ContractIdentifier> {
        self.contract_identifier.as_ref()
    }
}
impl GetAssetContractInput {
    /// Creates a new builder-style object to manufacture [`GetAssetContractInput`](crate::operation::get_asset_contract::GetAssetContractInput).
    pub fn builder() -> crate::operation::get_asset_contract::builders::GetAssetContractInputBuilder {
        crate::operation::get_asset_contract::builders::GetAssetContractInputBuilder::default()
    }
}

/// A builder for [`GetAssetContractInput`](crate::operation::get_asset_contract::GetAssetContractInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAssetContractInputBuilder {
    pub(crate) contract_identifier: ::std::option::Option<crate::types::ContractIdentifier>,
}
impl GetAssetContractInputBuilder {
    /// <p>Contains the blockchain address and network information about the contract.</p>
    /// This field is required.
    pub fn contract_identifier(mut self, input: crate::types::ContractIdentifier) -> Self {
        self.contract_identifier = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains the blockchain address and network information about the contract.</p>
    pub fn set_contract_identifier(mut self, input: ::std::option::Option<crate::types::ContractIdentifier>) -> Self {
        self.contract_identifier = input;
        self
    }
    /// <p>Contains the blockchain address and network information about the contract.</p>
    pub fn get_contract_identifier(&self) -> &::std::option::Option<crate::types::ContractIdentifier> {
        &self.contract_identifier
    }
    /// Consumes the builder and constructs a [`GetAssetContractInput`](crate::operation::get_asset_contract::GetAssetContractInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_asset_contract::GetAssetContractInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_asset_contract::GetAssetContractInput {
            contract_identifier: self.contract_identifier,
        })
    }
}