AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListParentsRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Organizations
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ORGANIZATIONS_API ListParentsRequest() = default;
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
33
34 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
49 inline const Aws::String& GetChildId() const { return m_childId; }
50 inline bool ChildIdHasBeenSet() const { return m_childIdHasBeenSet; }
51 template<typename ChildIdT = Aws::String>
52 void SetChildId(ChildIdT&& value) { m_childIdHasBeenSet = true; m_childId = std::forward<ChildIdT>(value); }
53 template<typename ChildIdT = Aws::String>
54 ListParentsRequest& WithChildId(ChildIdT&& value) { SetChildId(std::forward<ChildIdT>(value)); return *this;}
56
58
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template<typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
69 template<typename NextTokenT = Aws::String>
70 ListParentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
72
74
85 inline int GetMaxResults() const { return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline ListParentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90 private:
91
92 Aws::String m_childId;
93 bool m_childIdHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 int m_maxResults{0};
99 bool m_maxResultsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Organizations
104} // namespace Aws
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
ListParentsRequest & WithNextToken(NextTokenT &&value)
ListParentsRequest & WithChildId(ChildIdT &&value)
ListParentsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_ORGANIZATIONS_API ListParentsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String