#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteMemberInput {
#[doc(hidden)]
pub network_id: ::std::option::Option<::std::string::String>,
#[doc(hidden)]
pub member_id: ::std::option::Option<::std::string::String>,
}
impl DeleteMemberInput {
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 DeleteMemberInput {
pub fn builder() -> crate::operation::delete_member::builders::DeleteMemberInputBuilder {
crate::operation::delete_member::builders::DeleteMemberInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct DeleteMemberInputBuilder {
pub(crate) network_id: ::std::option::Option<::std::string::String>,
pub(crate) member_id: ::std::option::Option<::std::string::String>,
}
impl DeleteMemberInputBuilder {
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 member_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.member_id = ::std::option::Option::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,
) -> ::std::result::Result<
crate::operation::delete_member::DeleteMemberInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(crate::operation::delete_member::DeleteMemberInput {
network_id: self.network_id,
member_id: self.member_id,
})
}
}