#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAssetContractInput {
pub contract_identifier: ::std::option::Option<crate::types::ContractIdentifier>,
}
impl GetAssetContractInput {
pub fn contract_identifier(&self) -> ::std::option::Option<&crate::types::ContractIdentifier> {
self.contract_identifier.as_ref()
}
}
impl GetAssetContractInput {
pub fn builder() -> crate::operation::get_asset_contract::builders::GetAssetContractInputBuilder {
crate::operation::get_asset_contract::builders::GetAssetContractInputBuilder::default()
}
}
#[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 {
pub fn contract_identifier(mut self, input: crate::types::ContractIdentifier) -> Self {
self.contract_identifier = ::std::option::Option::Some(input);
self
}
pub fn set_contract_identifier(mut self, input: ::std::option::Option<crate::types::ContractIdentifier>) -> Self {
self.contract_identifier = input;
self
}
pub fn get_contract_identifier(&self) -> &::std::option::Option<crate::types::ContractIdentifier> {
&self.contract_identifier
}
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,
})
}
}