AWS SDK for C++  1.9.108
AWS SDK for C++
ListAWSServiceAccessForOrganizationResult.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 
43  inline const Aws::Vector<EnabledServicePrincipal>& GetEnabledServicePrincipals() const{ return m_enabledServicePrincipals; }
44 
51  inline void SetEnabledServicePrincipals(const Aws::Vector<EnabledServicePrincipal>& value) { m_enabledServicePrincipals = value; }
52 
59  inline void SetEnabledServicePrincipals(Aws::Vector<EnabledServicePrincipal>&& value) { m_enabledServicePrincipals = std::move(value); }
60 
67  inline ListAWSServiceAccessForOrganizationResult& WithEnabledServicePrincipals(const Aws::Vector<EnabledServicePrincipal>& value) { SetEnabledServicePrincipals(value); return *this;}
68 
75  inline ListAWSServiceAccessForOrganizationResult& WithEnabledServicePrincipals(Aws::Vector<EnabledServicePrincipal>&& value) { SetEnabledServicePrincipals(std::move(value)); return *this;}
76 
83  inline ListAWSServiceAccessForOrganizationResult& AddEnabledServicePrincipals(const EnabledServicePrincipal& value) { m_enabledServicePrincipals.push_back(value); return *this; }
84 
91  inline ListAWSServiceAccessForOrganizationResult& AddEnabledServicePrincipals(EnabledServicePrincipal&& value) { m_enabledServicePrincipals.push_back(std::move(value)); return *this; }
92 
93 
101  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
102 
110  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
111 
119  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
120 
128  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
129 
137  inline ListAWSServiceAccessForOrganizationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
138 
146  inline ListAWSServiceAccessForOrganizationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
147 
155  inline ListAWSServiceAccessForOrganizationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
156 
157  private:
158 
159  Aws::Vector<EnabledServicePrincipal> m_enabledServicePrincipals;
160 
161  Aws::String m_nextToken;
162  };
163 
164 } // namespace Model
165 } // namespace Organizations
166 } // namespace Aws
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::SetEnabledServicePrincipals
void SetEnabledServicePrincipals(Aws::Vector< EnabledServicePrincipal > &&value)
Definition: ListAWSServiceAccessForOrganizationResult.h:59
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::WithEnabledServicePrincipals
ListAWSServiceAccessForOrganizationResult & WithEnabledServicePrincipals(const Aws::Vector< EnabledServicePrincipal > &value)
Definition: ListAWSServiceAccessForOrganizationResult.h:67
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::WithNextToken
ListAWSServiceAccessForOrganizationResult & WithNextToken(const char *value)
Definition: ListAWSServiceAccessForOrganizationResult.h:155
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::AddEnabledServicePrincipals
ListAWSServiceAccessForOrganizationResult & AddEnabledServicePrincipals(const EnabledServicePrincipal &value)
Definition: ListAWSServiceAccessForOrganizationResult.h:83
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAWSServiceAccessForOrganizationResult.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::WithEnabledServicePrincipals
ListAWSServiceAccessForOrganizationResult & WithEnabledServicePrincipals(Aws::Vector< EnabledServicePrincipal > &&value)
Definition: ListAWSServiceAccessForOrganizationResult.h:75
AWSVector.h
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::AddEnabledServicePrincipals
ListAWSServiceAccessForOrganizationResult & AddEnabledServicePrincipals(EnabledServicePrincipal &&value)
Definition: ListAWSServiceAccessForOrganizationResult.h:91
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::ListAWSServiceAccessForOrganizationResult
ListAWSServiceAccessForOrganizationResult()
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::GetEnabledServicePrincipals
const Aws::Vector< EnabledServicePrincipal > & GetEnabledServicePrincipals() const
Definition: ListAWSServiceAccessForOrganizationResult.h:43
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::ListAWSServiceAccessForOrganizationResult
ListAWSServiceAccessForOrganizationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult
Definition: ListAWSServiceAccessForOrganizationResult.h:30
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAWSServiceAccessForOrganizationResult.h:119
Aws::Organizations::Model::EnabledServicePrincipal
Definition: EnabledServicePrincipal.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::SetEnabledServicePrincipals
void SetEnabledServicePrincipals(const Aws::Vector< EnabledServicePrincipal > &value)
Definition: ListAWSServiceAccessForOrganizationResult.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAWSServiceAccessForOrganizationResult.h:128
EnabledServicePrincipal.h
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAWSServiceAccessForOrganizationResult.h:101
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::WithNextToken
ListAWSServiceAccessForOrganizationResult & WithNextToken(const Aws::String &value)
Definition: ListAWSServiceAccessForOrganizationResult.h:137
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::operator=
ListAWSServiceAccessForOrganizationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListAWSServiceAccessForOrganizationResult::WithNextToken
ListAWSServiceAccessForOrganizationResult & WithNextToken(Aws::String &&value)
Definition: ListAWSServiceAccessForOrganizationResult.h:146