#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetProposalInput {
#[doc(hidden)]
pub network_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub proposal_id: std::option::Option<std::string::String>,
}
impl GetProposalInput {
pub fn network_id(&self) -> std::option::Option<&str> {
self.network_id.as_deref()
}
pub fn proposal_id(&self) -> std::option::Option<&str> {
self.proposal_id.as_deref()
}
}
impl GetProposalInput {
pub fn builder() -> crate::operation::get_proposal::builders::GetProposalInputBuilder {
crate::operation::get_proposal::builders::GetProposalInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetProposalInputBuilder {
pub(crate) network_id: std::option::Option<std::string::String>,
pub(crate) proposal_id: std::option::Option<std::string::String>,
}
impl GetProposalInputBuilder {
pub fn network_id(mut self, input: impl Into<std::string::String>) -> Self {
self.network_id = Some(input.into());
self
}
pub fn set_network_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.network_id = input;
self
}
pub fn proposal_id(mut self, input: impl Into<std::string::String>) -> Self {
self.proposal_id = Some(input.into());
self
}
pub fn set_proposal_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.proposal_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_proposal::GetProposalInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_proposal::GetProposalInput {
network_id: self.network_id,
proposal_id: self.proposal_id,
})
}
}