AWS SDK for C++  1.9.157
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 Macie2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<AdminAccount>& GetAdminAccounts() const{ return m_adminAccounts; }
43 
49  inline void SetAdminAccounts(const Aws::Vector<AdminAccount>& value) { m_adminAccounts = value; }
50 
56  inline void SetAdminAccounts(Aws::Vector<AdminAccount>&& value) { m_adminAccounts = std::move(value); }
57 
63  inline ListOrganizationAdminAccountsResult& WithAdminAccounts(const Aws::Vector<AdminAccount>& value) { SetAdminAccounts(value); return *this;}
64 
70  inline ListOrganizationAdminAccountsResult& WithAdminAccounts(Aws::Vector<AdminAccount>&& value) { SetAdminAccounts(std::move(value)); return *this;}
71 
77  inline ListOrganizationAdminAccountsResult& AddAdminAccounts(const AdminAccount& value) { m_adminAccounts.push_back(value); return *this; }
78 
84  inline ListOrganizationAdminAccountsResult& AddAdminAccounts(AdminAccount&& value) { m_adminAccounts.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline ListOrganizationAdminAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline ListOrganizationAdminAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline ListOrganizationAdminAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<AdminAccount> m_adminAccounts;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace Macie2
138 } // namespace Aws
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationAdminAccountsResult.h:109
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::AddAdminAccounts
ListOrganizationAdminAccountsResult & AddAdminAccounts(const AdminAccount &value)
Definition: ListOrganizationAdminAccountsResult.h:77
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::SetAdminAccounts
void SetAdminAccounts(Aws::Vector< AdminAccount > &&value)
Definition: ListOrganizationAdminAccountsResult.h:56
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::AddAdminAccounts
ListOrganizationAdminAccountsResult & AddAdminAccounts(AdminAccount &&value)
Definition: ListOrganizationAdminAccountsResult.h:84
Aws::Macie2::Model::ListOrganizationAdminAccountsResult
Definition: ListOrganizationAdminAccountsResult.h:30
Macie2_EXPORTS.h
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsResult.h:115
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::GetAdminAccounts
const Aws::Vector< AdminAccount > & GetAdminAccounts() const
Definition: ListOrganizationAdminAccountsResult.h:42
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::WithAdminAccounts
ListOrganizationAdminAccountsResult & WithAdminAccounts(Aws::Vector< AdminAccount > &&value)
Definition: ListOrganizationAdminAccountsResult.h:70
AWSVector.h
AdminAccount.h
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationAdminAccountsResult.h:97
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsResult.h:121
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::ListOrganizationAdminAccountsResult
ListOrganizationAdminAccountsResult()
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationAdminAccountsResult.h:103
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationAdminAccountsResult.h:91
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::SetAdminAccounts
void SetAdminAccounts(const Aws::Vector< AdminAccount > &value)
Definition: ListOrganizationAdminAccountsResult.h:49
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::operator=
ListOrganizationAdminAccountsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::WithAdminAccounts
ListOrganizationAdminAccountsResult & WithAdminAccounts(const Aws::Vector< AdminAccount > &value)
Definition: ListOrganizationAdminAccountsResult.h:63
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::ListOrganizationAdminAccountsResult
ListOrganizationAdminAccountsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Macie2::Model::ListOrganizationAdminAccountsResult::WithNextToken
ListOrganizationAdminAccountsResult & WithNextToken(const char *value)
Definition: ListOrganizationAdminAccountsResult.h:127
Aws::Macie2::Model::AdminAccount
Definition: AdminAccount.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97