AWS SDK for C++  1.9.160
AWS SDK for C++
ListAccountsForParentRequest.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 "ListAccountsForParent"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetParentId() const{ return m_parentId; }
42 
47  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
48 
53  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
54 
59  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
60 
65  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
66 
71  inline ListAccountsForParentRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
72 
77  inline ListAccountsForParentRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
78 
83  inline ListAccountsForParentRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
84 
85 
93  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 
102  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 
111  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 
120  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
121 
129  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
130 
138  inline ListAccountsForParentRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 
147  inline ListAccountsForParentRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
148 
156  inline ListAccountsForParentRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
157 
158 
170  inline int GetMaxResults() const{ return m_maxResults; }
171 
183  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
184 
196  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
197 
209  inline ListAccountsForParentRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
210 
211  private:
212 
213  Aws::String m_parentId;
214  bool m_parentIdHasBeenSet;
215 
216  Aws::String m_nextToken;
217  bool m_nextTokenHasBeenSet;
218 
219  int m_maxResults;
220  bool m_maxResultsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace Organizations
225 } // namespace Aws
Aws::Organizations::Model::ListAccountsForParentRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: ListAccountsForParentRequest.h:47
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListAccountsForParentRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountsForParentRequest.h:111
Aws::Organizations::Model::ListAccountsForParentRequest::WithParentId
ListAccountsForParentRequest & WithParentId(const char *value)
Definition: ListAccountsForParentRequest.h:83
Aws::Organizations::Model::ListAccountsForParentRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccountsForParentRequest.h:102
Aws::Organizations::Model::ListAccountsForParentRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccountsForParentRequest.h:183
Aws::Organizations::Model::ListAccountsForParentRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: ListAccountsForParentRequest.h:59
Aws::Organizations::Model::ListAccountsForParentRequest::WithNextToken
ListAccountsForParentRequest & WithNextToken(const Aws::String &value)
Definition: ListAccountsForParentRequest.h:138
Aws::Organizations::Model::ListAccountsForParentRequest::WithParentId
ListAccountsForParentRequest & WithParentId(Aws::String &&value)
Definition: ListAccountsForParentRequest.h:77
Aws::Organizations::Model::ListAccountsForParentRequest::WithParentId
ListAccountsForParentRequest & WithParentId(const Aws::String &value)
Definition: ListAccountsForParentRequest.h:71
Aws::Organizations::Model::ListAccountsForParentRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountsForParentRequest.h:93
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListAccountsForParentRequest::SetParentId
void SetParentId(const char *value)
Definition: ListAccountsForParentRequest.h:65
Aws::Organizations::Model::ListAccountsForParentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListAccountsForParentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccountsForParentRequest.h:30
AWSString.h
Aws::Organizations::Model::ListAccountsForParentRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccountsForParentRequest.h:196
Aws::Organizations::Model::ListAccountsForParentRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccountsForParentRequest.h:170
Aws::Organizations::Model::ListAccountsForParentRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountsForParentRequest.h:120
Aws::Organizations::Model::ListAccountsForParentRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: ListAccountsForParentRequest.h:53
Aws::Organizations::Model::ListAccountsForParentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListAccountsForParentRequest::WithNextToken
ListAccountsForParentRequest & WithNextToken(Aws::String &&value)
Definition: ListAccountsForParentRequest.h:147
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::ListAccountsForParentRequest::ListAccountsForParentRequest
ListAccountsForParentRequest()
Aws::Organizations::Model::ListAccountsForParentRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountsForParentRequest.h:129
Aws::Organizations::Model::ListAccountsForParentRequest
Definition: ListAccountsForParentRequest.h:22
Aws::Organizations::Model::ListAccountsForParentRequest::WithNextToken
ListAccountsForParentRequest & WithNextToken(const char *value)
Definition: ListAccountsForParentRequest.h:156
Aws::Organizations::Model::ListAccountsForParentRequest::WithMaxResults
ListAccountsForParentRequest & WithMaxResults(int value)
Definition: ListAccountsForParentRequest.h:209
Aws::Organizations::Model::ListAccountsForParentRequest::GetParentId
const Aws::String & GetParentId() const
Definition: ListAccountsForParentRequest.h:41
OrganizationsRequest.h