aws-sdk-managedblockchain 1.98.0

AWS SDK for Amazon Managed Blockchain
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 GetNetworkInput {
    /// <p>The unique identifier of the network to get information about.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
}
impl GetNetworkInput {
    /// <p>The unique identifier of the network to get information about.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
}
impl GetNetworkInput {
    /// Creates a new builder-style object to manufacture [`GetNetworkInput`](crate::operation::get_network::GetNetworkInput).
    pub fn builder() -> crate::operation::get_network::builders::GetNetworkInputBuilder {
        crate::operation::get_network::builders::GetNetworkInputBuilder::default()
    }
}

/// A builder for [`GetNetworkInput`](crate::operation::get_network::GetNetworkInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetNetworkInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
}
impl GetNetworkInputBuilder {
    /// <p>The unique identifier of the network to get information about.</p>
    /// This field is required.
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the network to get information about.</p>
    pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_id = input;
        self
    }
    /// <p>The unique identifier of the network to get information about.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// Consumes the builder and constructs a [`GetNetworkInput`](crate::operation::get_network::GetNetworkInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_network::GetNetworkInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_network::GetNetworkInput { network_id: self.network_id })
    }
}