AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListChildrenRequest.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 <aws/organizations/model/ChildType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Organizations
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ORGANIZATIONS_API ListChildrenRequest() = default;
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
34
35 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
49 inline const Aws::String& GetParentId() const { return m_parentId; }
50 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
51 template<typename ParentIdT = Aws::String>
52 void SetParentId(ParentIdT&& value) { m_parentIdHasBeenSet = true; m_parentId = std::forward<ParentIdT>(value); }
53 template<typename ParentIdT = Aws::String>
54 ListChildrenRequest& WithParentId(ParentIdT&& value) { SetParentId(std::forward<ParentIdT>(value)); return *this;}
56
58
61 inline ChildType GetChildType() const { return m_childType; }
62 inline bool ChildTypeHasBeenSet() const { return m_childTypeHasBeenSet; }
63 inline void SetChildType(ChildType value) { m_childTypeHasBeenSet = true; m_childType = value; }
64 inline ListChildrenRequest& WithChildType(ChildType value) { SetChildType(value); return *this;}
66
68
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template<typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
79 template<typename NextTokenT = Aws::String>
80 ListChildrenRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
82
84
95 inline int GetMaxResults() const { return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline ListChildrenRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 private:
101
102 Aws::String m_parentId;
103 bool m_parentIdHasBeenSet = false;
104
105 ChildType m_childType{ChildType::NOT_SET};
106 bool m_childTypeHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110
111 int m_maxResults{0};
112 bool m_maxResultsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Organizations
117} // namespace Aws
ListChildrenRequest & WithParentId(ParentIdT &&value)
ListChildrenRequest & WithChildType(ChildType value)
virtual const char * GetServiceRequestName() const override
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListChildrenRequest & WithMaxResults(int value)
ListChildrenRequest & WithNextToken(NextTokenT &&value)
AWS_ORGANIZATIONS_API ListChildrenRequest()=default
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String