AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeLaunchTemplatesRequest.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 DescribeLaunchTemplatesRequest() = 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 "DescribeLaunchTemplates"; }
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
60 inline const Aws::Vector<Aws::String>& GetLaunchTemplateIds() const { return m_launchTemplateIds; }
61 inline bool LaunchTemplateIdsHasBeenSet() const { return m_launchTemplateIdsHasBeenSet; }
62 template <typename LaunchTemplateIdsT = Aws::Vector<Aws::String>>
63 void SetLaunchTemplateIds(LaunchTemplateIdsT&& value) {
64 m_launchTemplateIdsHasBeenSet = true;
65 m_launchTemplateIds = std::forward<LaunchTemplateIdsT>(value);
66 }
67 template <typename LaunchTemplateIdsT = Aws::Vector<Aws::String>>
69 SetLaunchTemplateIds(std::forward<LaunchTemplateIdsT>(value));
70 return *this;
71 }
72 template <typename LaunchTemplateIdsT = Aws::String>
74 m_launchTemplateIdsHasBeenSet = true;
75 m_launchTemplateIds.emplace_back(std::forward<LaunchTemplateIdsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<Aws::String>& GetLaunchTemplateNames() const { return m_launchTemplateNames; }
85 inline bool LaunchTemplateNamesHasBeenSet() const { return m_launchTemplateNamesHasBeenSet; }
86 template <typename LaunchTemplateNamesT = Aws::Vector<Aws::String>>
87 void SetLaunchTemplateNames(LaunchTemplateNamesT&& value) {
88 m_launchTemplateNamesHasBeenSet = true;
89 m_launchTemplateNames = std::forward<LaunchTemplateNamesT>(value);
90 }
91 template <typename LaunchTemplateNamesT = Aws::Vector<Aws::String>>
93 SetLaunchTemplateNames(std::forward<LaunchTemplateNamesT>(value));
94 return *this;
95 }
96 template <typename LaunchTemplateNamesT = Aws::String>
98 m_launchTemplateNamesHasBeenSet = true;
99 m_launchTemplateNames.emplace_back(std::forward<LaunchTemplateNamesT>(value));
100 return *this;
101 }
103
105
118 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
119 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
120 template <typename FiltersT = Aws::Vector<Filter>>
121 void SetFilters(FiltersT&& value) {
122 m_filtersHasBeenSet = true;
123 m_filters = std::forward<FiltersT>(value);
124 }
125 template <typename FiltersT = Aws::Vector<Filter>>
127 SetFilters(std::forward<FiltersT>(value));
128 return *this;
129 }
130 template <typename FiltersT = Filter>
132 m_filtersHasBeenSet = true;
133 m_filters.emplace_back(std::forward<FiltersT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetNextToken() const { return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 template <typename NextTokenT = Aws::String>
145 void SetNextToken(NextTokenT&& value) {
146 m_nextTokenHasBeenSet = true;
147 m_nextToken = std::forward<NextTokenT>(value);
148 }
149 template <typename NextTokenT = Aws::String>
151 SetNextToken(std::forward<NextTokenT>(value));
152 return *this;
153 }
155
157
162 inline int GetMaxResults() const { return m_maxResults; }
163 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
164 inline void SetMaxResults(int value) {
165 m_maxResultsHasBeenSet = true;
166 m_maxResults = value;
167 }
169 SetMaxResults(value);
170 return *this;
171 }
173 private:
174 bool m_dryRun{false};
175
176 Aws::Vector<Aws::String> m_launchTemplateIds;
177
178 Aws::Vector<Aws::String> m_launchTemplateNames;
179
180 Aws::Vector<Filter> m_filters;
181
182 Aws::String m_nextToken;
183
184 int m_maxResults{0};
185 bool m_dryRunHasBeenSet = false;
186 bool m_launchTemplateIdsHasBeenSet = false;
187 bool m_launchTemplateNamesHasBeenSet = false;
188 bool m_filtersHasBeenSet = false;
189 bool m_nextTokenHasBeenSet = false;
190 bool m_maxResultsHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace EC2
195} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLaunchTemplatesRequest & AddLaunchTemplateNames(LaunchTemplateNamesT &&value)
DescribeLaunchTemplatesRequest & WithMaxResults(int value)
DescribeLaunchTemplatesRequest & WithLaunchTemplateIds(LaunchTemplateIdsT &&value)
const Aws::Vector< Aws::String > & GetLaunchTemplateIds() const
const Aws::Vector< Aws::String > & GetLaunchTemplateNames() const
DescribeLaunchTemplatesRequest & WithFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
DescribeLaunchTemplatesRequest & WithNextToken(NextTokenT &&value)
DescribeLaunchTemplatesRequest & AddFilters(FiltersT &&value)
DescribeLaunchTemplatesRequest & WithLaunchTemplateNames(LaunchTemplateNamesT &&value)
DescribeLaunchTemplatesRequest & WithDryRun(bool value)
DescribeLaunchTemplatesRequest & AddLaunchTemplateIds(LaunchTemplateIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector