AWS SDK for C++  1.9.40
AWS SDK for C++
ListDelegatedAdministratorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListDelegatedAdministrators"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetServicePrincipal() const{ return m_servicePrincipal; }
44 
51  inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
52 
59  inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
60 
67  inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
68 
75  inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
76 
83  inline ListDelegatedAdministratorsRequest& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
84 
91  inline ListDelegatedAdministratorsRequest& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
92 
99  inline ListDelegatedAdministratorsRequest& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
100 
101 
109  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
118  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 
127  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 
136  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 
145  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
146 
154  inline ListDelegatedAdministratorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
155 
163  inline ListDelegatedAdministratorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
164 
172  inline ListDelegatedAdministratorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
173 
174 
186  inline int GetMaxResults() const{ return m_maxResults; }
187 
199  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
200 
212  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
213 
225  inline ListDelegatedAdministratorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
226 
227  private:
228 
229  Aws::String m_servicePrincipal;
230  bool m_servicePrincipalHasBeenSet;
231 
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234 
235  int m_maxResults;
236  bool m_maxResultsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace Organizations
241 } // namespace Aws
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithNextToken
ListDelegatedAdministratorsRequest & WithNextToken(const Aws::String &value)
Definition: ListDelegatedAdministratorsRequest.h:154
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDelegatedAdministratorsRequest.h:109
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::ServicePrincipalHasBeenSet
bool ServicePrincipalHasBeenSet() const
Definition: ListDelegatedAdministratorsRequest.h:51
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::ListDelegatedAdministratorsRequest
ListDelegatedAdministratorsRequest()
Aws::Organizations::Model::ListDelegatedAdministratorsRequest
Definition: ListDelegatedAdministratorsRequest.h:22
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithServicePrincipal
ListDelegatedAdministratorsRequest & WithServicePrincipal(const char *value)
Definition: ListDelegatedAdministratorsRequest.h:99
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDelegatedAdministratorsRequest.h:136
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetServicePrincipal
void SetServicePrincipal(const Aws::String &value)
Definition: ListDelegatedAdministratorsRequest.h:59
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDelegatedAdministratorsRequest.h:186
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithNextToken
ListDelegatedAdministratorsRequest & WithNextToken(const char *value)
Definition: ListDelegatedAdministratorsRequest.h:172
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDelegatedAdministratorsRequest.h:30
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDelegatedAdministratorsRequest.h:199
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithMaxResults
ListDelegatedAdministratorsRequest & WithMaxResults(int value)
Definition: ListDelegatedAdministratorsRequest.h:225
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetServicePrincipal
void SetServicePrincipal(Aws::String &&value)
Definition: ListDelegatedAdministratorsRequest.h:67
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetServicePrincipal
void SetServicePrincipal(const char *value)
Definition: ListDelegatedAdministratorsRequest.h:75
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDelegatedAdministratorsRequest.h:127
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDelegatedAdministratorsRequest.h:145
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDelegatedAdministratorsRequest.h:212
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDelegatedAdministratorsRequest.h:118
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::GetServicePrincipal
const Aws::String & GetServicePrincipal() const
Definition: ListDelegatedAdministratorsRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithServicePrincipal
ListDelegatedAdministratorsRequest & WithServicePrincipal(Aws::String &&value)
Definition: ListDelegatedAdministratorsRequest.h:91
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithServicePrincipal
ListDelegatedAdministratorsRequest & WithServicePrincipal(const Aws::String &value)
Definition: ListDelegatedAdministratorsRequest.h:83
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListDelegatedAdministratorsRequest::WithNextToken
ListDelegatedAdministratorsRequest & WithNextToken(Aws::String &&value)
Definition: ListDelegatedAdministratorsRequest.h:163
OrganizationsRequest.h