#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetProposalInput {
pub network_id: ::std::option::Option<::std::string::String>,
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 ::std::convert::Into<::std::string::String>) -> Self {
self.network_id = ::std::option::Option::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 get_network_id(&self) -> &::std::option::Option<::std::string::String> {
&self.network_id
}
pub fn proposal_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.proposal_id = ::std::option::Option::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 get_proposal_id(&self) -> &::std::option::Option<::std::string::String> {
&self.proposal_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_proposal::GetProposalInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_proposal::GetProposalInput {
network_id: self.network_id,
proposal_id: self.proposal_id,
})
}
}