#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateUserProficienciesInput {
pub instance_id: ::std::option::Option<::std::string::String>,
pub user_id: ::std::option::Option<::std::string::String>,
pub user_proficiencies: ::std::option::Option<::std::vec::Vec<crate::types::UserProficiencyDisassociate>>,
}
impl DisassociateUserProficienciesInput {
pub fn instance_id(&self) -> ::std::option::Option<&str> {
self.instance_id.as_deref()
}
pub fn user_id(&self) -> ::std::option::Option<&str> {
self.user_id.as_deref()
}
pub fn user_proficiencies(&self) -> &[crate::types::UserProficiencyDisassociate] {
self.user_proficiencies.as_deref().unwrap_or_default()
}
}
impl DisassociateUserProficienciesInput {
pub fn builder() -> crate::operation::disassociate_user_proficiencies::builders::DisassociateUserProficienciesInputBuilder {
crate::operation::disassociate_user_proficiencies::builders::DisassociateUserProficienciesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateUserProficienciesInputBuilder {
pub(crate) instance_id: ::std::option::Option<::std::string::String>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
pub(crate) user_proficiencies: ::std::option::Option<::std::vec::Vec<crate::types::UserProficiencyDisassociate>>,
}
impl DisassociateUserProficienciesInputBuilder {
pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_id = input;
self
}
pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_id
}
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_id = input;
self
}
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.user_id
}
pub fn user_proficiencies(mut self, input: crate::types::UserProficiencyDisassociate) -> Self {
let mut v = self.user_proficiencies.unwrap_or_default();
v.push(input);
self.user_proficiencies = ::std::option::Option::Some(v);
self
}
pub fn set_user_proficiencies(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UserProficiencyDisassociate>>) -> Self {
self.user_proficiencies = input;
self
}
pub fn get_user_proficiencies(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UserProficiencyDisassociate>> {
&self.user_proficiencies
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesInput {
instance_id: self.instance_id,
user_id: self.user_id,
user_proficiencies: self.user_proficiencies,
})
}
}