AWS SDK for C++  1.9.123
AWS SDK for C++
ListChildrenRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Organizations
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListChildren"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
48  inline const Aws::String& GetParentId() const{ return m_parentId; }
49 
60  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
61 
72  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
73 
84  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
85 
96  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
97 
108  inline ListChildrenRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
109 
120  inline ListChildrenRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
121 
132  inline ListChildrenRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
133 
134 
138  inline const ChildType& GetChildType() const{ return m_childType; }
139 
143  inline bool ChildTypeHasBeenSet() const { return m_childTypeHasBeenSet; }
144 
148  inline void SetChildType(const ChildType& value) { m_childTypeHasBeenSet = true; m_childType = value; }
149 
153  inline void SetChildType(ChildType&& value) { m_childTypeHasBeenSet = true; m_childType = std::move(value); }
154 
158  inline ListChildrenRequest& WithChildType(const ChildType& value) { SetChildType(value); return *this;}
159 
163  inline ListChildrenRequest& WithChildType(ChildType&& value) { SetChildType(std::move(value)); return *this;}
164 
165 
173  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
174 
182  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
183 
191  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
192 
200  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
201 
209  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
210 
218  inline ListChildrenRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
219 
227  inline ListChildrenRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
228 
236  inline ListChildrenRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
237 
238 
250  inline int GetMaxResults() const{ return m_maxResults; }
251 
263  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
264 
276  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
277 
289  inline ListChildrenRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
290 
291  private:
292 
293  Aws::String m_parentId;
294  bool m_parentIdHasBeenSet;
295 
296  ChildType m_childType;
297  bool m_childTypeHasBeenSet;
298 
299  Aws::String m_nextToken;
300  bool m_nextTokenHasBeenSet;
301 
302  int m_maxResults;
303  bool m_maxResultsHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace Organizations
308 } // namespace Aws
Aws::Organizations::Model::ListChildrenRequest::GetParentId
const Aws::String & GetParentId() const
Definition: ListChildrenRequest.h:48
Aws::Organizations::Model::ListChildrenRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: ListChildrenRequest.h:72
Aws::Organizations::Model::ListChildrenRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: ListChildrenRequest.h:84
Aws::Organizations::Model::ListChildrenRequest::ChildTypeHasBeenSet
bool ChildTypeHasBeenSet() const
Definition: ListChildrenRequest.h:143
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListChildrenRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListChildrenRequest.h:263
Aws::Organizations::Model::ListChildrenRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListChildrenRequest.h:173
Aws::Organizations::Model::ListChildrenRequest::WithParentId
ListChildrenRequest & WithParentId(Aws::String &&value)
Definition: ListChildrenRequest.h:120
Aws::Organizations::Model::ListChildrenRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListChildrenRequest.h:182
Aws::Organizations::Model::ListChildrenRequest::WithNextToken
ListChildrenRequest & WithNextToken(Aws::String &&value)
Definition: ListChildrenRequest.h:227
Aws::Organizations::Model::ListChildrenRequest::GetMaxResults
int GetMaxResults() const
Definition: ListChildrenRequest.h:250
Aws::Organizations::Model::ListChildrenRequest::WithParentId
ListChildrenRequest & WithParentId(const char *value)
Definition: ListChildrenRequest.h:132
Aws::Organizations::Model::ListChildrenRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: ListChildrenRequest.h:60
ChildType.h
Aws::Organizations::Model::ListChildrenRequest::SetChildType
void SetChildType(ChildType &&value)
Definition: ListChildrenRequest.h:153
Aws::Organizations::Model::ListChildrenRequest::GetChildType
const ChildType & GetChildType() const
Definition: ListChildrenRequest.h:138
Aws::Organizations::Model::ListChildrenRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListChildrenRequest.h:276
Aws::Organizations::Model::ListChildrenRequest
Definition: ListChildrenRequest.h:23
Aws::Organizations::Model::ListChildrenRequest::ListChildrenRequest
ListChildrenRequest()
Aws::Organizations::Model::ListChildrenRequest::WithNextToken
ListChildrenRequest & WithNextToken(const Aws::String &value)
Definition: ListChildrenRequest.h:218
Aws::Organizations::Model::ListChildrenRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListChildrenRequest::WithNextToken
ListChildrenRequest & WithNextToken(const char *value)
Definition: ListChildrenRequest.h:236
Aws::Organizations::Model::ListChildrenRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListChildrenRequest.h:31
Aws::Organizations::Model::ChildType
ChildType
Definition: ChildType.h:17
AWSString.h
Aws::Organizations::Model::ListChildrenRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListChildrenRequest.h:209
Aws::Organizations::Model::ListChildrenRequest::WithMaxResults
ListChildrenRequest & WithMaxResults(int value)
Definition: ListChildrenRequest.h:289
Aws::Organizations::Model::ListChildrenRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListChildrenRequest.h:191
Aws::Organizations::Model::ListChildrenRequest::SetParentId
void SetParentId(const char *value)
Definition: ListChildrenRequest.h:96
Aws::Organizations::Model::ListChildrenRequest::WithParentId
ListChildrenRequest & WithParentId(const Aws::String &value)
Definition: ListChildrenRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListChildrenRequest::SetChildType
void SetChildType(const ChildType &value)
Definition: ListChildrenRequest.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListChildrenRequest::WithChildType
ListChildrenRequest & WithChildType(ChildType &&value)
Definition: ListChildrenRequest.h:163
Organizations_EXPORTS.h
Aws::Organizations::Model::ListChildrenRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListChildrenRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListChildrenRequest.h:200
Aws::Organizations::Model::ListChildrenRequest::WithChildType
ListChildrenRequest & WithChildType(const ChildType &value)
Definition: ListChildrenRequest.h:158
OrganizationsRequest.h