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