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