AWS SDK for C++  1.9.161
AWS SDK for C++
ListParentsRequest.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 "ListParents"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
48  inline const Aws::String& GetChildId() const{ return m_childId; }
49 
61  inline bool ChildIdHasBeenSet() const { return m_childIdHasBeenSet; }
62 
74  inline void SetChildId(const Aws::String& value) { m_childIdHasBeenSet = true; m_childId = value; }
75 
87  inline void SetChildId(Aws::String&& value) { m_childIdHasBeenSet = true; m_childId = std::move(value); }
88 
100  inline void SetChildId(const char* value) { m_childIdHasBeenSet = true; m_childId.assign(value); }
101 
113  inline ListParentsRequest& WithChildId(const Aws::String& value) { SetChildId(value); return *this;}
114 
126  inline ListParentsRequest& WithChildId(Aws::String&& value) { SetChildId(std::move(value)); return *this;}
127 
139  inline ListParentsRequest& WithChildId(const char* value) { SetChildId(value); return *this;}
140 
141 
149  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
150 
158  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
159 
167  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
168 
176  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
177 
185  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
186 
194  inline ListParentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
195 
203  inline ListParentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
204 
212  inline ListParentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
213 
214 
226  inline int GetMaxResults() const{ return m_maxResults; }
227 
239  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
240 
252  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
253 
265  inline ListParentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
266 
267  private:
268 
269  Aws::String m_childId;
270  bool m_childIdHasBeenSet;
271 
272  Aws::String m_nextToken;
273  bool m_nextTokenHasBeenSet;
274 
275  int m_maxResults;
276  bool m_maxResultsHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace Organizations
281 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListParentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListParentsRequest.h:167
Aws::Organizations::Model::ListParentsRequest::SetChildId
void SetChildId(Aws::String &&value)
Definition: ListParentsRequest.h:87
Aws::Organizations::Model::ListParentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListParentsRequest.h:158
Aws::Organizations::Model::ListParentsRequest::SetChildId
void SetChildId(const Aws::String &value)
Definition: ListParentsRequest.h:74
Aws::Organizations::Model::ListParentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListParentsRequest.h:176
Aws::Organizations::Model::ListParentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListParentsRequest.h:252
Aws::Organizations::Model::ListParentsRequest::SetChildId
void SetChildId(const char *value)
Definition: ListParentsRequest.h:100
Aws::Organizations::Model::ListParentsRequest::WithChildId
ListParentsRequest & WithChildId(Aws::String &&value)
Definition: ListParentsRequest.h:126
Aws::Organizations::Model::ListParentsRequest::WithNextToken
ListParentsRequest & WithNextToken(const char *value)
Definition: ListParentsRequest.h:212
Aws::Organizations::Model::ListParentsRequest::WithNextToken
ListParentsRequest & WithNextToken(const Aws::String &value)
Definition: ListParentsRequest.h:194
Aws::Organizations::Model::ListParentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListParentsRequest.h:30
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListParentsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListParentsRequest.h:226
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListParentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListParentsRequest.h:149
Aws::Organizations::Model::ListParentsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListParentsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Organizations::Model::ListParentsRequest::ChildIdHasBeenSet
bool ChildIdHasBeenSet() const
Definition: ListParentsRequest.h:61
Aws::Organizations::Model::ListParentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListParentsRequest.h:185
Aws::Organizations::Model::ListParentsRequest::WithMaxResults
ListParentsRequest & WithMaxResults(int value)
Definition: ListParentsRequest.h:265
Aws::Organizations::Model::ListParentsRequest::WithNextToken
ListParentsRequest & WithNextToken(Aws::String &&value)
Definition: ListParentsRequest.h:203
Aws::Organizations::Model::ListParentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListParentsRequest.h:239
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListParentsRequest::WithChildId
ListParentsRequest & WithChildId(const Aws::String &value)
Definition: ListParentsRequest.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListParentsRequest::WithChildId
ListParentsRequest & WithChildId(const char *value)
Definition: ListParentsRequest.h:139
Aws::Organizations::Model::ListParentsRequest::ListParentsRequest
ListParentsRequest()
Aws::Organizations::Model::ListParentsRequest::GetChildId
const Aws::String & GetChildId() const
Definition: ListParentsRequest.h:48
Aws::Organizations::Model::ListParentsRequest
Definition: ListParentsRequest.h:22
OrganizationsRequest.h