AWS SDK for C++  1.8.154
AWS SDK for C++
GetMembersResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace GuardDuty
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Member>& GetMembers() const{ return m_members; }
41 
45  inline void SetMembers(const Aws::Vector<Member>& value) { m_members = value; }
46 
50  inline void SetMembers(Aws::Vector<Member>&& value) { m_members = std::move(value); }
51 
55  inline GetMembersResult& WithMembers(const Aws::Vector<Member>& value) { SetMembers(value); return *this;}
56 
60  inline GetMembersResult& WithMembers(Aws::Vector<Member>&& value) { SetMembers(std::move(value)); return *this;}
61 
65  inline GetMembersResult& AddMembers(const Member& value) { m_members.push_back(value); return *this; }
66 
70  inline GetMembersResult& AddMembers(Member&& value) { m_members.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::Vector<UnprocessedAccount>& GetUnprocessedAccounts() const{ return m_unprocessedAccounts; }
78 
83  inline void SetUnprocessedAccounts(const Aws::Vector<UnprocessedAccount>& value) { m_unprocessedAccounts = value; }
84 
89  inline void SetUnprocessedAccounts(Aws::Vector<UnprocessedAccount>&& value) { m_unprocessedAccounts = std::move(value); }
90 
95  inline GetMembersResult& WithUnprocessedAccounts(const Aws::Vector<UnprocessedAccount>& value) { SetUnprocessedAccounts(value); return *this;}
96 
101  inline GetMembersResult& WithUnprocessedAccounts(Aws::Vector<UnprocessedAccount>&& value) { SetUnprocessedAccounts(std::move(value)); return *this;}
102 
107  inline GetMembersResult& AddUnprocessedAccounts(const UnprocessedAccount& value) { m_unprocessedAccounts.push_back(value); return *this; }
108 
113  inline GetMembersResult& AddUnprocessedAccounts(UnprocessedAccount&& value) { m_unprocessedAccounts.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::Vector<Member> m_members;
118 
119  Aws::Vector<UnprocessedAccount> m_unprocessedAccounts;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::GetMembersResult::AddMembers
GetMembersResult & AddMembers(const Member &value)
Definition: GetMembersResult.h:65
Aws::GuardDuty::Model::GetMembersResult::SetMembers
void SetMembers(Aws::Vector< Member > &&value)
Definition: GetMembersResult.h:50
Aws::GuardDuty::Model::GetMembersResult::GetMembersResult
GetMembersResult()
Aws::GuardDuty::Model::GetMembersResult
Definition: GetMembersResult.h:30
Aws::GuardDuty::Model::GetMembersResult::AddMembers
GetMembersResult & AddMembers(Member &&value)
Definition: GetMembersResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::GetMembersResult::SetUnprocessedAccounts
void SetUnprocessedAccounts(Aws::Vector< UnprocessedAccount > &&value)
Definition: GetMembersResult.h:89
AWSVector.h
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::GetMembersResult::operator=
GetMembersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::UnprocessedAccount
Definition: UnprocessedAccount.h:33
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Member
Definition: Member.h:32
Member.h
Aws::GuardDuty::Model::GetMembersResult::GetMembersResult
GetMembersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::GetMembersResult::WithUnprocessedAccounts
GetMembersResult & WithUnprocessedAccounts(Aws::Vector< UnprocessedAccount > &&value)
Definition: GetMembersResult.h:101
Aws::GuardDuty::Model::GetMembersResult::SetMembers
void SetMembers(const Aws::Vector< Member > &value)
Definition: GetMembersResult.h:45
Aws::GuardDuty::Model::GetMembersResult::WithUnprocessedAccounts
GetMembersResult & WithUnprocessedAccounts(const Aws::Vector< UnprocessedAccount > &value)
Definition: GetMembersResult.h:95
Aws::GuardDuty::Model::GetMembersResult::SetUnprocessedAccounts
void SetUnprocessedAccounts(const Aws::Vector< UnprocessedAccount > &value)
Definition: GetMembersResult.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::GetMembersResult::WithMembers
GetMembersResult & WithMembers(const Aws::Vector< Member > &value)
Definition: GetMembersResult.h:55
UnprocessedAccount.h
Aws::GuardDuty::Model::GetMembersResult::GetMembers
const Aws::Vector< Member > & GetMembers() const
Definition: GetMembersResult.h:40
Aws::GuardDuty::Model::GetMembersResult::AddUnprocessedAccounts
GetMembersResult & AddUnprocessedAccounts(UnprocessedAccount &&value)
Definition: GetMembersResult.h:113
Aws::GuardDuty::Model::GetMembersResult::WithMembers
GetMembersResult & WithMembers(Aws::Vector< Member > &&value)
Definition: GetMembersResult.h:60
Aws::GuardDuty::Model::GetMembersResult::AddUnprocessedAccounts
GetMembersResult & AddUnprocessedAccounts(const UnprocessedAccount &value)
Definition: GetMembersResult.h:107
Aws::GuardDuty::Model::GetMembersResult::GetUnprocessedAccounts
const Aws::Vector< UnprocessedAccount > & GetUnprocessedAccounts() const
Definition: GetMembersResult.h:77