AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAccountsResult.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/organizations/model/Account.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Organizations
26{
27namespace Model
28{
30 {
31 public:
32 AWS_ORGANIZATIONS_API ListAccountsResult();
35
36
38
41 inline const Aws::Vector<Account>& GetAccounts() const{ return m_accounts; }
42 inline void SetAccounts(const Aws::Vector<Account>& value) { m_accounts = value; }
43 inline void SetAccounts(Aws::Vector<Account>&& value) { m_accounts = std::move(value); }
44 inline ListAccountsResult& WithAccounts(const Aws::Vector<Account>& value) { SetAccounts(value); return *this;}
45 inline ListAccountsResult& WithAccounts(Aws::Vector<Account>&& value) { SetAccounts(std::move(value)); return *this;}
46 inline ListAccountsResult& AddAccounts(const Account& value) { m_accounts.push_back(value); return *this; }
47 inline ListAccountsResult& AddAccounts(Account&& value) { m_accounts.push_back(std::move(value)); return *this; }
49
51
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
62 inline ListAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline ListAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline ListAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
69 inline const Aws::String& GetRequestId() const{ return m_requestId; }
70 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
71 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
72 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
73 inline ListAccountsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
74 inline ListAccountsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
75 inline ListAccountsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
77 private:
78
79 Aws::Vector<Account> m_accounts;
80
81 Aws::String m_nextToken;
82
83 Aws::String m_requestId;
84 };
85
86} // namespace Model
87} // namespace Organizations
88} // namespace Aws
const Aws::Vector< Account > & GetAccounts() const
void SetAccounts(Aws::Vector< Account > &&value)
ListAccountsResult & WithAccounts(Aws::Vector< Account > &&value)
ListAccountsResult & WithRequestId(const Aws::String &value)
ListAccountsResult & WithRequestId(Aws::String &&value)
AWS_ORGANIZATIONS_API ListAccountsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ORGANIZATIONS_API ListAccountsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListAccountsResult & WithNextToken(const Aws::String &value)
ListAccountsResult & WithNextToken(Aws::String &&value)
ListAccountsResult & WithNextToken(const char *value)
ListAccountsResult & AddAccounts(Account &&value)
void SetAccounts(const Aws::Vector< Account > &value)
ListAccountsResult & WithAccounts(const Aws::Vector< Account > &value)
ListAccountsResult & WithRequestId(const char *value)
ListAccountsResult & AddAccounts(const Account &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue