AWS SDK for C++  1.9.108
AWS SDK for C++
ListChildrenResult.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<Child>& GetChildren() const{ return m_children; }
41 
45  inline void SetChildren(const Aws::Vector<Child>& value) { m_children = value; }
46 
50  inline void SetChildren(Aws::Vector<Child>&& value) { m_children = std::move(value); }
51 
55  inline ListChildrenResult& WithChildren(const Aws::Vector<Child>& value) { SetChildren(value); return *this;}
56 
60  inline ListChildrenResult& WithChildren(Aws::Vector<Child>&& value) { SetChildren(std::move(value)); return *this;}
61 
65  inline ListChildrenResult& AddChildren(const Child& value) { m_children.push_back(value); return *this; }
66 
70  inline ListChildrenResult& AddChildren(Child&& value) { m_children.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 ListChildrenResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListChildrenResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListChildrenResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Child> m_children;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace Organizations
145 } // namespace Aws
Aws::Organizations::Model::ListChildrenResult::WithNextToken
ListChildrenResult & WithNextToken(const Aws::String &value)
Definition: ListChildrenResult.h:116
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListChildrenResult::AddChildren
ListChildrenResult & AddChildren(const Child &value)
Definition: ListChildrenResult.h:65
Aws::Organizations::Model::ListChildrenResult::SetChildren
void SetChildren(const Aws::Vector< Child > &value)
Definition: ListChildrenResult.h:45
Aws::Organizations::Model::ListChildrenResult::ListChildrenResult
ListChildrenResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListChildrenResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListChildrenResult.h:89
Aws::Organizations::Model::ListChildrenResult::WithChildren
ListChildrenResult & WithChildren(Aws::Vector< Child > &&value)
Definition: ListChildrenResult.h:60
AWSVector.h
Aws::Organizations::Model::ListChildrenResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListChildrenResult.h:107
Aws::Organizations::Model::ListChildrenResult::WithChildren
ListChildrenResult & WithChildren(const Aws::Vector< Child > &value)
Definition: ListChildrenResult.h:55
Aws::Organizations::Model::ListChildrenResult::AddChildren
ListChildrenResult & AddChildren(Child &&value)
Definition: ListChildrenResult.h:70
Aws::Organizations::Model::Child
Definition: Child.h:34
Aws::Organizations::Model::ListChildrenResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListChildrenResult.h:98
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListChildrenResult::WithNextToken
ListChildrenResult & WithNextToken(const char *value)
Definition: ListChildrenResult.h:134
Aws::Organizations::Model::ListChildrenResult::WithNextToken
ListChildrenResult & WithNextToken(Aws::String &&value)
Definition: ListChildrenResult.h:125
Aws::Organizations::Model::ListChildrenResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListChildrenResult.h:80
AWSString.h
Child.h
Aws::Organizations::Model::ListChildrenResult::SetChildren
void SetChildren(Aws::Vector< Child > &&value)
Definition: ListChildrenResult.h:50
Aws::Organizations::Model::ListChildrenResult::GetChildren
const Aws::Vector< Child > & GetChildren() const
Definition: ListChildrenResult.h:40
Aws::Organizations::Model::ListChildrenResult::ListChildrenResult
ListChildrenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListChildrenResult::operator=
ListChildrenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListChildrenResult
Definition: ListChildrenResult.h:30
Organizations_EXPORTS.h