#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateTeamMemberInput {
pub project_id: ::std::option::Option<::std::string::String>,
pub user_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateTeamMemberInput {
pub fn project_id(&self) -> ::std::option::Option<&str> {
self.project_id.as_deref()
}
pub fn user_arn(&self) -> ::std::option::Option<&str> {
self.user_arn.as_deref()
}
}
impl DisassociateTeamMemberInput {
pub fn builder() -> crate::operation::disassociate_team_member::builders::DisassociateTeamMemberInputBuilder {
crate::operation::disassociate_team_member::builders::DisassociateTeamMemberInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateTeamMemberInputBuilder {
pub(crate) project_id: ::std::option::Option<::std::string::String>,
pub(crate) user_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateTeamMemberInputBuilder {
pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project_id = input;
self
}
pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
&self.project_id
}
pub fn user_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_user_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_arn = input;
self
}
pub fn get_user_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.user_arn
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::disassociate_team_member::DisassociateTeamMemberInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::disassociate_team_member::DisassociateTeamMemberInput {
project_id: self.project_id,
user_arn: self.user_arn,
})
}
}