AWS SDK for C++  1.9.104
AWS SDK for C++
ListOrganizationalUnitsForParentResult.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<OrganizationalUnit>& GetOrganizationalUnits() const{ return m_organizationalUnits; }
41 
45  inline void SetOrganizationalUnits(const Aws::Vector<OrganizationalUnit>& value) { m_organizationalUnits = value; }
46 
50  inline void SetOrganizationalUnits(Aws::Vector<OrganizationalUnit>&& value) { m_organizationalUnits = std::move(value); }
51 
55  inline ListOrganizationalUnitsForParentResult& WithOrganizationalUnits(const Aws::Vector<OrganizationalUnit>& value) { SetOrganizationalUnits(value); return *this;}
56 
60  inline ListOrganizationalUnitsForParentResult& WithOrganizationalUnits(Aws::Vector<OrganizationalUnit>&& value) { SetOrganizationalUnits(std::move(value)); return *this;}
61 
65  inline ListOrganizationalUnitsForParentResult& AddOrganizationalUnits(const OrganizationalUnit& value) { m_organizationalUnits.push_back(value); return *this; }
66 
70  inline ListOrganizationalUnitsForParentResult& AddOrganizationalUnits(OrganizationalUnit&& value) { m_organizationalUnits.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 ListOrganizationalUnitsForParentResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListOrganizationalUnitsForParentResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListOrganizationalUnitsForParentResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<OrganizationalUnit> m_organizationalUnits;
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::ListOrganizationalUnitsForParentResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentResult.h:98
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::ListOrganizationalUnitsForParentResult
ListOrganizationalUnitsForParentResult()
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::AddOrganizationalUnits
ListOrganizationalUnitsForParentResult & AddOrganizationalUnits(const OrganizationalUnit &value)
Definition: ListOrganizationalUnitsForParentResult.h:65
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult
Definition: ListOrganizationalUnitsForParentResult.h:30
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::AddOrganizationalUnits
ListOrganizationalUnitsForParentResult & AddOrganizationalUnits(OrganizationalUnit &&value)
Definition: ListOrganizationalUnitsForParentResult.h:70
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::WithOrganizationalUnits
ListOrganizationalUnitsForParentResult & WithOrganizationalUnits(const Aws::Vector< OrganizationalUnit > &value)
Definition: ListOrganizationalUnitsForParentResult.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::ListOrganizationalUnitsForParentResult
ListOrganizationalUnitsForParentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::GetOrganizationalUnits
const Aws::Vector< OrganizationalUnit > & GetOrganizationalUnits() const
Definition: ListOrganizationalUnitsForParentResult.h:40
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::SetOrganizationalUnits
void SetOrganizationalUnits(const Aws::Vector< OrganizationalUnit > &value)
Definition: ListOrganizationalUnitsForParentResult.h:45
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::WithNextToken
ListOrganizationalUnitsForParentResult & WithNextToken(const char *value)
Definition: ListOrganizationalUnitsForParentResult.h:134
AWSString.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationalUnitsForParentResult.h:80
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationalUnitsForParentResult.h:107
Aws::Organizations::Model::OrganizationalUnit
Definition: OrganizationalUnit.h:35
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::WithNextToken
ListOrganizationalUnitsForParentResult & WithNextToken(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentResult.h:125
Aws
Definition: AccessManagementClient.h:15
OrganizationalUnit.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::WithNextToken
ListOrganizationalUnitsForParentResult & WithNextToken(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentResult.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentResult.h:89
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::operator=
ListOrganizationalUnitsForParentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::SetOrganizationalUnits
void SetOrganizationalUnits(Aws::Vector< OrganizationalUnit > &&value)
Definition: ListOrganizationalUnitsForParentResult.h:50
Aws::Organizations::Model::ListOrganizationalUnitsForParentResult::WithOrganizationalUnits
ListOrganizationalUnitsForParentResult & WithOrganizationalUnits(Aws::Vector< OrganizationalUnit > &&value)
Definition: ListOrganizationalUnitsForParentResult.h:60