#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMemberInput {
#[doc(hidden)]
pub network_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub member_id: std::option::Option<std::string::String>,
}
impl GetMemberInput {
pub fn network_id(&self) -> std::option::Option<&str> {
self.network_id.as_deref()
}
pub fn member_id(&self) -> std::option::Option<&str> {
self.member_id.as_deref()
}
}
impl GetMemberInput {
pub fn builder() -> crate::operation::get_member::builders::GetMemberInputBuilder {
crate::operation::get_member::builders::GetMemberInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetMemberInputBuilder {
pub(crate) network_id: std::option::Option<std::string::String>,
pub(crate) member_id: std::option::Option<std::string::String>,
}
impl GetMemberInputBuilder {
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 member_id(mut self, input: impl Into<std::string::String>) -> Self {
self.member_id = Some(input.into());
self
}
pub fn set_member_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.member_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_member::GetMemberInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_member::GetMemberInput {
network_id: self.network_id,
member_id: self.member_id,
})
}
}