AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeInstanceTopologyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeInstanceTopologyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeInstanceTopology"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
101 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
102 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
103 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
104 void SetInstanceIds(InstanceIdsT&& value) {
105 m_instanceIdsHasBeenSet = true;
106 m_instanceIds = std::forward<InstanceIdsT>(value);
107 }
108 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
110 SetInstanceIds(std::forward<InstanceIdsT>(value));
111 return *this;
112 }
113 template <typename InstanceIdsT = Aws::String>
115 m_instanceIdsHasBeenSet = true;
116 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<Aws::String>& GetGroupNames() const { return m_groupNames; }
127 inline bool GroupNamesHasBeenSet() const { return m_groupNamesHasBeenSet; }
128 template <typename GroupNamesT = Aws::Vector<Aws::String>>
129 void SetGroupNames(GroupNamesT&& value) {
130 m_groupNamesHasBeenSet = true;
131 m_groupNames = std::forward<GroupNamesT>(value);
132 }
133 template <typename GroupNamesT = Aws::Vector<Aws::String>>
135 SetGroupNames(std::forward<GroupNamesT>(value));
136 return *this;
137 }
138 template <typename GroupNamesT = Aws::String>
140 m_groupNamesHasBeenSet = true;
141 m_groupNames.emplace_back(std::forward<GroupNamesT>(value));
142 return *this;
143 }
145
147
159 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
160 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
161 template <typename FiltersT = Aws::Vector<Filter>>
162 void SetFilters(FiltersT&& value) {
163 m_filtersHasBeenSet = true;
164 m_filters = std::forward<FiltersT>(value);
165 }
166 template <typename FiltersT = Aws::Vector<Filter>>
168 SetFilters(std::forward<FiltersT>(value));
169 return *this;
170 }
171 template <typename FiltersT = Filter>
173 m_filtersHasBeenSet = true;
174 m_filters.emplace_back(std::forward<FiltersT>(value));
175 return *this;
176 }
178 private:
179 bool m_dryRun{false};
180
181 Aws::String m_nextToken;
182
183 int m_maxResults{0};
184
185 Aws::Vector<Aws::String> m_instanceIds;
186
187 Aws::Vector<Aws::String> m_groupNames;
188
189 Aws::Vector<Filter> m_filters;
190 bool m_dryRunHasBeenSet = false;
191 bool m_nextTokenHasBeenSet = false;
192 bool m_maxResultsHasBeenSet = false;
193 bool m_instanceIdsHasBeenSet = false;
194 bool m_groupNamesHasBeenSet = false;
195 bool m_filtersHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace EC2
200} // namespace Aws
DescribeInstanceTopologyRequest & WithInstanceIds(InstanceIdsT &&value)
DescribeInstanceTopologyRequest & WithGroupNames(GroupNamesT &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
DescribeInstanceTopologyRequest & AddInstanceIds(InstanceIdsT &&value)
DescribeInstanceTopologyRequest & AddGroupNames(GroupNamesT &&value)
DescribeInstanceTopologyRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetGroupNames() const
AWS_EC2_API Aws::String SerializePayload() const override
DescribeInstanceTopologyRequest & AddFilters(FiltersT &&value)
DescribeInstanceTopologyRequest & WithFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeInstanceTopologyRequest & WithDryRun(bool value)
DescribeInstanceTopologyRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector