AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeLaunchTemplateVersionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeLaunchTemplateVersions"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const{ return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline DescribeLaunchTemplateVersionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
61 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
62 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
63 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
64 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
65 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
68 inline DescribeLaunchTemplateVersionsRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
70
72
79 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
80 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
81 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
82 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
83 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
88
90
102 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
103 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
104 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
105 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
108 inline DescribeLaunchTemplateVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
109 inline DescribeLaunchTemplateVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
110 inline DescribeLaunchTemplateVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
112
114
117 inline const Aws::String& GetMinVersion() const{ return m_minVersion; }
118 inline bool MinVersionHasBeenSet() const { return m_minVersionHasBeenSet; }
119 inline void SetMinVersion(const Aws::String& value) { m_minVersionHasBeenSet = true; m_minVersion = value; }
120 inline void SetMinVersion(Aws::String&& value) { m_minVersionHasBeenSet = true; m_minVersion = std::move(value); }
121 inline void SetMinVersion(const char* value) { m_minVersionHasBeenSet = true; m_minVersion.assign(value); }
123 inline DescribeLaunchTemplateVersionsRequest& WithMinVersion(Aws::String&& value) { SetMinVersion(std::move(value)); return *this;}
124 inline DescribeLaunchTemplateVersionsRequest& WithMinVersion(const char* value) { SetMinVersion(value); return *this;}
126
128
131 inline const Aws::String& GetMaxVersion() const{ return m_maxVersion; }
132 inline bool MaxVersionHasBeenSet() const { return m_maxVersionHasBeenSet; }
133 inline void SetMaxVersion(const Aws::String& value) { m_maxVersionHasBeenSet = true; m_maxVersion = value; }
134 inline void SetMaxVersion(Aws::String&& value) { m_maxVersionHasBeenSet = true; m_maxVersion = std::move(value); }
135 inline void SetMaxVersion(const char* value) { m_maxVersionHasBeenSet = true; m_maxVersion.assign(value); }
137 inline DescribeLaunchTemplateVersionsRequest& WithMaxVersion(Aws::String&& value) { SetMaxVersion(std::move(value)); return *this;}
138 inline DescribeLaunchTemplateVersionsRequest& WithMaxVersion(const char* value) { SetMaxVersion(value); return *this;}
140
142
145 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
146 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
147 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
148 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
149 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
151 inline DescribeLaunchTemplateVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
152 inline DescribeLaunchTemplateVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
154
156
161 inline int GetMaxResults() const{ return m_maxResults; }
162 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
163 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
164 inline DescribeLaunchTemplateVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
166
168
192 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
193 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
194 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
195 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
197 inline DescribeLaunchTemplateVersionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
198 inline DescribeLaunchTemplateVersionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
199 inline DescribeLaunchTemplateVersionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
201
203
213 inline bool GetResolveAlias() const{ return m_resolveAlias; }
214 inline bool ResolveAliasHasBeenSet() const { return m_resolveAliasHasBeenSet; }
215 inline void SetResolveAlias(bool value) { m_resolveAliasHasBeenSet = true; m_resolveAlias = value; }
216 inline DescribeLaunchTemplateVersionsRequest& WithResolveAlias(bool value) { SetResolveAlias(value); return *this;}
218 private:
219
220 bool m_dryRun;
221 bool m_dryRunHasBeenSet = false;
222
223 Aws::String m_launchTemplateId;
224 bool m_launchTemplateIdHasBeenSet = false;
225
226 Aws::String m_launchTemplateName;
227 bool m_launchTemplateNameHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_versions;
230 bool m_versionsHasBeenSet = false;
231
232 Aws::String m_minVersion;
233 bool m_minVersionHasBeenSet = false;
234
235 Aws::String m_maxVersion;
236 bool m_maxVersionHasBeenSet = false;
237
238 Aws::String m_nextToken;
239 bool m_nextTokenHasBeenSet = false;
240
241 int m_maxResults;
242 bool m_maxResultsHasBeenSet = false;
243
244 Aws::Vector<Filter> m_filters;
245 bool m_filtersHasBeenSet = false;
246
247 bool m_resolveAlias;
248 bool m_resolveAliasHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace EC2
253} // namespace Aws
DescribeLaunchTemplateVersionsRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeLaunchTemplateVersionsRequest & WithMinVersion(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateId(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & WithNextToken(const char *value)
DescribeLaunchTemplateVersionsRequest & AddVersions(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateId(const char *value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateName(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateName(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & WithMaxVersion(const char *value)
DescribeLaunchTemplateVersionsRequest & WithNextToken(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & AddVersions(const char *value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateId(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & WithMaxResults(int value)
DescribeLaunchTemplateVersionsRequest & WithMinVersion(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & WithLaunchTemplateName(const char *value)
DescribeLaunchTemplateVersionsRequest & WithNextToken(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & AddVersions(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
DescribeLaunchTemplateVersionsRequest & WithDryRun(bool value)
DescribeLaunchTemplateVersionsRequest & WithMinVersion(const char *value)
DescribeLaunchTemplateVersionsRequest & AddFilters(Filter &&value)
DescribeLaunchTemplateVersionsRequest & WithMaxVersion(const Aws::String &value)
DescribeLaunchTemplateVersionsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeLaunchTemplateVersionsRequest & WithMaxVersion(Aws::String &&value)
DescribeLaunchTemplateVersionsRequest & AddFilters(const Filter &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLaunchTemplateVersionsRequest & WithResolveAlias(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector