AWS SDK for C++  1.9.108
AWS SDK for C++
ListCreateAccountStatusResult.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 
42  inline const Aws::Vector<CreateAccountStatus>& GetCreateAccountStatuses() const{ return m_createAccountStatuses; }
43 
49  inline void SetCreateAccountStatuses(const Aws::Vector<CreateAccountStatus>& value) { m_createAccountStatuses = value; }
50 
56  inline void SetCreateAccountStatuses(Aws::Vector<CreateAccountStatus>&& value) { m_createAccountStatuses = std::move(value); }
57 
63  inline ListCreateAccountStatusResult& WithCreateAccountStatuses(const Aws::Vector<CreateAccountStatus>& value) { SetCreateAccountStatuses(value); return *this;}
64 
70  inline ListCreateAccountStatusResult& WithCreateAccountStatuses(Aws::Vector<CreateAccountStatus>&& value) { SetCreateAccountStatuses(std::move(value)); return *this;}
71 
77  inline ListCreateAccountStatusResult& AddCreateAccountStatuses(const CreateAccountStatus& value) { m_createAccountStatuses.push_back(value); return *this; }
78 
84  inline ListCreateAccountStatusResult& AddCreateAccountStatuses(CreateAccountStatus&& value) { m_createAccountStatuses.push_back(std::move(value)); return *this; }
85 
86 
94  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 
103  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
104 
112  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
113 
121  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
122 
130  inline ListCreateAccountStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
139  inline ListCreateAccountStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 
148  inline ListCreateAccountStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150  private:
151 
152  Aws::Vector<CreateAccountStatus> m_createAccountStatuses;
153 
154  Aws::String m_nextToken;
155  };
156 
157 } // namespace Model
158 } // namespace Organizations
159 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListCreateAccountStatusResult::SetCreateAccountStatuses
void SetCreateAccountStatuses(Aws::Vector< CreateAccountStatus > &&value)
Definition: ListCreateAccountStatusResult.h:56
Aws::Organizations::Model::ListCreateAccountStatusResult::SetCreateAccountStatuses
void SetCreateAccountStatuses(const Aws::Vector< CreateAccountStatus > &value)
Definition: ListCreateAccountStatusResult.h:49
Aws::Organizations::Model::ListCreateAccountStatusResult::WithCreateAccountStatuses
ListCreateAccountStatusResult & WithCreateAccountStatuses(const Aws::Vector< CreateAccountStatus > &value)
Definition: ListCreateAccountStatusResult.h:63
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Organizations::Model::ListCreateAccountStatusResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCreateAccountStatusResult.h:94
Aws::Organizations::Model::ListCreateAccountStatusResult::AddCreateAccountStatuses
ListCreateAccountStatusResult & AddCreateAccountStatuses(CreateAccountStatus &&value)
Definition: ListCreateAccountStatusResult.h:84
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
CreateAccountStatus.h
Aws::Organizations::Model::ListCreateAccountStatusResult::GetCreateAccountStatuses
const Aws::Vector< CreateAccountStatus > & GetCreateAccountStatuses() const
Definition: ListCreateAccountStatusResult.h:42
Aws::Organizations::Model::ListCreateAccountStatusResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCreateAccountStatusResult.h:103
AWSString.h
Aws::Organizations::Model::ListCreateAccountStatusResult::WithNextToken
ListCreateAccountStatusResult & WithNextToken(Aws::String &&value)
Definition: ListCreateAccountStatusResult.h:139
Aws::Organizations::Model::ListCreateAccountStatusResult
Definition: ListCreateAccountStatusResult.h:30
Aws::Organizations::Model::CreateAccountStatus
Definition: CreateAccountStatus.h:37
Aws::Organizations::Model::ListCreateAccountStatusResult::WithNextToken
ListCreateAccountStatusResult & WithNextToken(const Aws::String &value)
Definition: ListCreateAccountStatusResult.h:130
Aws::Organizations::Model::ListCreateAccountStatusResult::ListCreateAccountStatusResult
ListCreateAccountStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListCreateAccountStatusResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListCreateAccountStatusResult.h:121
Aws::Organizations::Model::ListCreateAccountStatusResult::ListCreateAccountStatusResult
ListCreateAccountStatusResult()
Aws::Organizations::Model::ListCreateAccountStatusResult::operator=
ListCreateAccountStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListCreateAccountStatusResult::AddCreateAccountStatuses
ListCreateAccountStatusResult & AddCreateAccountStatuses(const CreateAccountStatus &value)
Definition: ListCreateAccountStatusResult.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListCreateAccountStatusResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCreateAccountStatusResult.h:112
Aws::Organizations::Model::ListCreateAccountStatusResult::WithNextToken
ListCreateAccountStatusResult & WithNextToken(const char *value)
Definition: ListCreateAccountStatusResult.h:148
Aws::Organizations::Model::ListCreateAccountStatusResult::WithCreateAccountStatuses
ListCreateAccountStatusResult & WithCreateAccountStatuses(Aws::Vector< CreateAccountStatus > &&value)
Definition: ListCreateAccountStatusResult.h:70