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