AWS SDK for C++  1.9.105
AWS SDK for C++
ListOrganizationAdminAccountsResult.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<AdminAccount>& GetAdminAccounts() const{ return m_adminAccounts; }
41 
45  inline void SetAdminAccounts(const Aws::Vector<AdminAccount>& value) { m_adminAccounts = value; }
46 
50  inline void SetAdminAccounts(Aws::Vector<AdminAccount>&& value) { m_adminAccounts = std::move(value); }
51 
55  inline ListOrganizationAdminAccountsResult& WithAdminAccounts(const Aws::Vector<AdminAccount>& value) { SetAdminAccounts(value); return *this;}
56 
60  inline ListOrganizationAdminAccountsResult& WithAdminAccounts(Aws::Vector<AdminAccount>&& value) { SetAdminAccounts(std::move(value)); return *this;}
61 
65  inline ListOrganizationAdminAccountsResult& AddAdminAccounts(const AdminAccount& value) { m_adminAccounts.push_back(value); return *this; }
66 
70  inline ListOrganizationAdminAccountsResult& AddAdminAccounts(AdminAccount&& value) { m_adminAccounts.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListOrganizationAdminAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListOrganizationAdminAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListOrganizationAdminAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<AdminAccount> m_adminAccounts;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsResult.h:83
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::ListOrganizationAdminAccountsResult
ListOrganizationAdminAccountsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::AddAdminAccounts
ListOrganizationAdminAccountsResult & AddAdminAccounts(AdminAccount &&value)
Definition: ListOrganizationAdminAccountsResult.h:70
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::GetAdminAccounts
const Aws::Vector< AdminAccount > & GetAdminAccounts() const
Definition: ListOrganizationAdminAccountsResult.h:40
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsResult.h:89
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsResult.h:101
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationAdminAccountsResult.h:95
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(const char *value)
Definition: ListOrganizationAdminAccountsResult.h:113
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::operator=
ListOrganizationAdminAccountsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsResult.h:107
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::SetAdminAccounts
void SetAdminAccounts(Aws::Vector< AdminAccount > &&value)
Definition: ListOrganizationAdminAccountsResult.h:50
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationAdminAccountsResult.h:77
Aws::GuardDuty::Model::AdminAccount
Definition: AdminAccount.h:34
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult
Definition: ListOrganizationAdminAccountsResult.h:30
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::SetAdminAccounts
void SetAdminAccounts(const Aws::Vector< AdminAccount > &value)
Definition: ListOrganizationAdminAccountsResult.h:45
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
AWSString.h
AdminAccount.h
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::ListOrganizationAdminAccountsResult
ListOrganizationAdminAccountsResult()
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::WithAdminAccounts
ListOrganizationAdminAccountsResult & WithAdminAccounts(const Aws::Vector< AdminAccount > &value)
Definition: ListOrganizationAdminAccountsResult.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::WithAdminAccounts
ListOrganizationAdminAccountsResult & WithAdminAccounts(Aws::Vector< AdminAccount > &&value)
Definition: ListOrganizationAdminAccountsResult.h:60
Aws::GuardDuty::Model::ListOrganizationAdminAccountsResult::AddAdminAccounts
ListOrganizationAdminAccountsResult & AddAdminAccounts(const AdminAccount &value)
Definition: ListOrganizationAdminAccountsResult.h:65