AWS SDK for C++  1.9.108
AWS SDK for C++
ListAccountsResult.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 Organizations
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Account>& GetAccounts() const{ return m_accounts; }
41 
45  inline void SetAccounts(const Aws::Vector<Account>& value) { m_accounts = value; }
46 
50  inline void SetAccounts(Aws::Vector<Account>&& value) { m_accounts = std::move(value); }
51 
55  inline ListAccountsResult& WithAccounts(const Aws::Vector<Account>& value) { SetAccounts(value); return *this;}
56 
60  inline ListAccountsResult& WithAccounts(Aws::Vector<Account>&& value) { SetAccounts(std::move(value)); return *this;}
61 
65  inline ListAccountsResult& AddAccounts(const Account& value) { m_accounts.push_back(value); return *this; }
66 
70  inline ListAccountsResult& AddAccounts(Account&& value) { m_accounts.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
107  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
108 
116  inline ListAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Account> m_accounts;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace Organizations
145 } // namespace Aws
Aws::Organizations::Model::ListAccountsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountsResult.h:80
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::Account
Definition: Account.h:36
Aws::Organizations::Model::ListAccountsResult::WithNextToken
ListAccountsResult & WithNextToken(Aws::String &&value)
Definition: ListAccountsResult.h:125
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListAccountsResult::GetAccounts
const Aws::Vector< Account > & GetAccounts() const
Definition: ListAccountsResult.h:40
Aws::Organizations::Model::ListAccountsResult::AddAccounts
ListAccountsResult & AddAccounts(const Account &value)
Definition: ListAccountsResult.h:65
AWSVector.h
Aws::Organizations::Model::ListAccountsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountsResult.h:98
Aws::Organizations::Model::ListAccountsResult::AddAccounts
ListAccountsResult & AddAccounts(Account &&value)
Definition: ListAccountsResult.h:70
Aws::Organizations::Model::ListAccountsResult::WithNextToken
ListAccountsResult & WithNextToken(const Aws::String &value)
Definition: ListAccountsResult.h:116
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListAccountsResult
Definition: ListAccountsResult.h:30
Aws::Organizations::Model::ListAccountsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountsResult.h:89
Aws::Organizations::Model::ListAccountsResult::SetAccounts
void SetAccounts(Aws::Vector< Account > &&value)
Definition: ListAccountsResult.h:50
AWSString.h
Aws::Organizations::Model::ListAccountsResult::ListAccountsResult
ListAccountsResult()
Aws::Organizations::Model::ListAccountsResult::ListAccountsResult
ListAccountsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListAccountsResult::operator=
ListAccountsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListAccountsResult::WithAccounts
ListAccountsResult & WithAccounts(const Aws::Vector< Account > &value)
Definition: ListAccountsResult.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListAccountsResult::WithNextToken
ListAccountsResult & WithNextToken(const char *value)
Definition: ListAccountsResult.h:134
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListAccountsResult::SetAccounts
void SetAccounts(const Aws::Vector< Account > &value)
Definition: ListAccountsResult.h:45
Account.h
Aws::Organizations::Model::ListAccountsResult::WithAccounts
ListAccountsResult & WithAccounts(Aws::Vector< Account > &&value)
Definition: ListAccountsResult.h:60
Aws::Organizations::Model::ListAccountsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountsResult.h:107