AWS SDK for C++  1.9.123
AWS SDK for C++
ListOrganizationalUnitsForParentRequest.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 "ListOrganizationalUnitsForParent"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
47  inline const Aws::String& GetParentId() const{ return m_parentId; }
48 
59  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
60 
71  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
72 
83  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
84 
95  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
96 
107  inline ListOrganizationalUnitsForParentRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
108 
119  inline ListOrganizationalUnitsForParentRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
120 
131  inline ListOrganizationalUnitsForParentRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
132 
133 
141  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
142 
150  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
151 
159  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
160 
168  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
169 
177  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
178 
186  inline ListOrganizationalUnitsForParentRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
187 
195  inline ListOrganizationalUnitsForParentRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
196 
204  inline ListOrganizationalUnitsForParentRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
205 
206 
218  inline int GetMaxResults() const{ return m_maxResults; }
219 
231  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
232 
244  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
245 
257  inline ListOrganizationalUnitsForParentRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
258 
259  private:
260 
261  Aws::String m_parentId;
262  bool m_parentIdHasBeenSet;
263 
264  Aws::String m_nextToken;
265  bool m_nextTokenHasBeenSet;
266 
267  int m_maxResults;
268  bool m_maxResultsHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace Organizations
273 } // namespace Aws
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListOrganizationalUnitsForParentRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListOrganizationalUnitsForParentRequest.h:150
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithNextToken
ListOrganizationalUnitsForParentRequest & WithNextToken(const char *value)
Definition: ListOrganizationalUnitsForParentRequest.h:204
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest
Definition: ListOrganizationalUnitsForParentRequest.h:22
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListOrganizationalUnitsForParentRequest.h:177
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOrganizationalUnitsForParentRequest.h:141
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentRequest.h:168
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::GetParentId
const Aws::String & GetParentId() const
Definition: ListOrganizationalUnitsForParentRequest.h:47
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: ListOrganizationalUnitsForParentRequest.h:59
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListOrganizationalUnitsForParentRequest.h:231
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::GetMaxResults
int GetMaxResults() const
Definition: ListOrganizationalUnitsForParentRequest.h:218
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentRequest.h:71
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithMaxResults
ListOrganizationalUnitsForParentRequest & WithMaxResults(int value)
Definition: ListOrganizationalUnitsForParentRequest.h:257
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListOrganizationalUnitsForParentRequest.h:244
AWSString.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithNextToken
ListOrganizationalUnitsForParentRequest & WithNextToken(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentRequest.h:195
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::ListOrganizationalUnitsForParentRequest
ListOrganizationalUnitsForParentRequest()
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentRequest.h:159
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetParentId
void SetParentId(const char *value)
Definition: ListOrganizationalUnitsForParentRequest.h:95
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithParentId
ListOrganizationalUnitsForParentRequest & WithParentId(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentRequest.h:107
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithNextToken
ListOrganizationalUnitsForParentRequest & WithNextToken(const Aws::String &value)
Definition: ListOrganizationalUnitsForParentRequest.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithParentId
ListOrganizationalUnitsForParentRequest & WithParentId(const char *value)
Definition: ListOrganizationalUnitsForParentRequest.h:131
Aws::Organizations::Model::ListOrganizationalUnitsForParentRequest::WithParentId
ListOrganizationalUnitsForParentRequest & WithParentId(Aws::String &&value)
Definition: ListOrganizationalUnitsForParentRequest.h:119
OrganizationsRequest.h