aws_sdk_securityhub/operation/delete_members/
_delete_members_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteMembersInput {
6    pub account_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
8}
9impl DeleteMembersInput {
10    pub fn account_ids(&self) -> &[::std::string::String] {
14        self.account_ids.as_deref().unwrap_or_default()
15    }
16}
17impl DeleteMembersInput {
18    pub fn builder() -> crate::operation::delete_members::builders::DeleteMembersInputBuilder {
20        crate::operation::delete_members::builders::DeleteMembersInputBuilder::default()
21    }
22}
23
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
26#[non_exhaustive]
27pub struct DeleteMembersInputBuilder {
28    pub(crate) account_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
29}
30impl DeleteMembersInputBuilder {
31    pub fn account_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
37        let mut v = self.account_ids.unwrap_or_default();
38        v.push(input.into());
39        self.account_ids = ::std::option::Option::Some(v);
40        self
41    }
42    pub fn set_account_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
44        self.account_ids = input;
45        self
46    }
47    pub fn get_account_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
49        &self.account_ids
50    }
51    pub fn build(
53        self,
54    ) -> ::std::result::Result<crate::operation::delete_members::DeleteMembersInput, ::aws_smithy_types::error::operation::BuildError> {
55        ::std::result::Result::Ok(crate::operation::delete_members::DeleteMembersInput {
56            account_ids: self.account_ids,
57        })
58    }
59}