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