AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
52 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
53 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
54 inline ListChildrenRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
55 inline ListChildrenRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
56 inline ListChildrenRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
58
60
63 inline const ChildType& GetChildType() const{ return m_childType; }
64 inline bool ChildTypeHasBeenSet() const { return m_childTypeHasBeenSet; }
65 inline void SetChildType(const ChildType& value) { m_childTypeHasBeenSet = true; m_childType = value; }
66 inline void SetChildType(ChildType&& value) { m_childTypeHasBeenSet = true; m_childType = std::move(value); }
67 inline ListChildrenRequest& WithChildType(const ChildType& value) { SetChildType(value); return *this;}
68 inline ListChildrenRequest& WithChildType(ChildType&& value) { SetChildType(std::move(value)); return *this;}
70
72
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
83 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
84 inline ListChildrenRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 inline ListChildrenRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
86 inline ListChildrenRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88
90
101 inline int GetMaxResults() const{ return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 inline ListChildrenRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106 private:
107
108 Aws::String m_parentId;
109 bool m_parentIdHasBeenSet = false;
110
111 ChildType m_childType;
112 bool m_childTypeHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_maxResults;
118 bool m_maxResultsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Organizations
123} // namespace Aws
ListChildrenRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListChildrenRequest & WithParentId(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListChildrenRequest & WithChildType(const ChildType &value)
ListChildrenRequest & WithNextToken(const char *value)
ListChildrenRequest & WithParentId(const char *value)
ListChildrenRequest & WithNextToken(const Aws::String &value)
ListChildrenRequest & WithMaxResults(int value)
ListChildrenRequest & WithParentId(const Aws::String &value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
ListChildrenRequest & WithChildType(ChildType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String