AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeLaunchTemplatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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 "DescribeLaunchTemplates"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeLaunchTemplatesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::Vector<Aws::String>& GetLaunchTemplateIds() const{ return m_launchTemplateIds; }
78 
82  inline bool LaunchTemplateIdsHasBeenSet() const { return m_launchTemplateIdsHasBeenSet; }
83 
87  inline void SetLaunchTemplateIds(const Aws::Vector<Aws::String>& value) { m_launchTemplateIdsHasBeenSet = true; m_launchTemplateIds = value; }
88 
92  inline void SetLaunchTemplateIds(Aws::Vector<Aws::String>&& value) { m_launchTemplateIdsHasBeenSet = true; m_launchTemplateIds = std::move(value); }
93 
97  inline DescribeLaunchTemplatesRequest& WithLaunchTemplateIds(const Aws::Vector<Aws::String>& value) { SetLaunchTemplateIds(value); return *this;}
98 
102  inline DescribeLaunchTemplatesRequest& WithLaunchTemplateIds(Aws::Vector<Aws::String>&& value) { SetLaunchTemplateIds(std::move(value)); return *this;}
103 
107  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateIds(const Aws::String& value) { m_launchTemplateIdsHasBeenSet = true; m_launchTemplateIds.push_back(value); return *this; }
108 
112  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateIds(Aws::String&& value) { m_launchTemplateIdsHasBeenSet = true; m_launchTemplateIds.push_back(std::move(value)); return *this; }
113 
117  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateIds(const char* value) { m_launchTemplateIdsHasBeenSet = true; m_launchTemplateIds.push_back(value); return *this; }
118 
119 
123  inline const Aws::Vector<Aws::String>& GetLaunchTemplateNames() const{ return m_launchTemplateNames; }
124 
128  inline bool LaunchTemplateNamesHasBeenSet() const { return m_launchTemplateNamesHasBeenSet; }
129 
133  inline void SetLaunchTemplateNames(const Aws::Vector<Aws::String>& value) { m_launchTemplateNamesHasBeenSet = true; m_launchTemplateNames = value; }
134 
138  inline void SetLaunchTemplateNames(Aws::Vector<Aws::String>&& value) { m_launchTemplateNamesHasBeenSet = true; m_launchTemplateNames = std::move(value); }
139 
143  inline DescribeLaunchTemplatesRequest& WithLaunchTemplateNames(const Aws::Vector<Aws::String>& value) { SetLaunchTemplateNames(value); return *this;}
144 
148  inline DescribeLaunchTemplatesRequest& WithLaunchTemplateNames(Aws::Vector<Aws::String>&& value) { SetLaunchTemplateNames(std::move(value)); return *this;}
149 
153  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateNames(const Aws::String& value) { m_launchTemplateNamesHasBeenSet = true; m_launchTemplateNames.push_back(value); return *this; }
154 
158  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateNames(Aws::String&& value) { m_launchTemplateNamesHasBeenSet = true; m_launchTemplateNames.push_back(std::move(value)); return *this; }
159 
163  inline DescribeLaunchTemplatesRequest& AddLaunchTemplateNames(const char* value) { m_launchTemplateNamesHasBeenSet = true; m_launchTemplateNames.push_back(value); return *this; }
164 
165 
179  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
180 
194  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
195 
209  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
210 
224  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
225 
239  inline DescribeLaunchTemplatesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
240 
254  inline DescribeLaunchTemplatesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
255 
269  inline DescribeLaunchTemplatesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
270 
284  inline DescribeLaunchTemplatesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
285 
286 
290  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
291 
295  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
296 
300  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
301 
305  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
306 
310  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
311 
315  inline DescribeLaunchTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
316 
320  inline DescribeLaunchTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
321 
325  inline DescribeLaunchTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
326 
327 
333  inline int GetMaxResults() const{ return m_maxResults; }
334 
340  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
341 
347  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
348 
354  inline DescribeLaunchTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
355 
356  private:
357 
358  bool m_dryRun;
359  bool m_dryRunHasBeenSet;
360 
361  Aws::Vector<Aws::String> m_launchTemplateIds;
362  bool m_launchTemplateIdsHasBeenSet;
363 
364  Aws::Vector<Aws::String> m_launchTemplateNames;
365  bool m_launchTemplateNamesHasBeenSet;
366 
367  Aws::Vector<Filter> m_filters;
368  bool m_filtersHasBeenSet;
369 
370  Aws::String m_nextToken;
371  bool m_nextTokenHasBeenSet;
372 
373  int m_maxResults;
374  bool m_maxResultsHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace EC2
379 } // namespace Aws
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithLaunchTemplateNames
DescribeLaunchTemplatesRequest & WithLaunchTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeLaunchTemplatesRequest.h:143
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetLaunchTemplateNames
void SetLaunchTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeLaunchTemplatesRequest.h:138
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithFilters
DescribeLaunchTemplatesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeLaunchTemplatesRequest.h:254
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateNames
DescribeLaunchTemplatesRequest & AddLaunchTemplateNames(const Aws::String &value)
Definition: DescribeLaunchTemplatesRequest.h:153
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeLaunchTemplatesRequest.h:347
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeLaunchTemplatesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:194
Aws::EC2::Model::DescribeLaunchTemplatesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithNextToken
DescribeLaunchTemplatesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeLaunchTemplatesRequest.h:320
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeLaunchTemplatesRequest.h:32
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateNames
DescribeLaunchTemplatesRequest & AddLaunchTemplateNames(Aws::String &&value)
Definition: DescribeLaunchTemplatesRequest.h:158
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddFilters
DescribeLaunchTemplatesRequest & AddFilters(Filter &&value)
Definition: DescribeLaunchTemplatesRequest.h:284
Aws::EC2::Model::DescribeLaunchTemplatesRequest
Definition: DescribeLaunchTemplatesRequest.h:24
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeLaunchTemplatesRequest.h:224
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithLaunchTemplateNames
DescribeLaunchTemplatesRequest & WithLaunchTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeLaunchTemplatesRequest.h:148
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetLaunchTemplateNames
const Aws::Vector< Aws::String > & GetLaunchTemplateNames() const
Definition: DescribeLaunchTemplatesRequest.h:123
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithLaunchTemplateIds
DescribeLaunchTemplatesRequest & WithLaunchTemplateIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLaunchTemplatesRequest.h:102
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetLaunchTemplateIds
void SetLaunchTemplateIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLaunchTemplatesRequest.h:92
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddFilters
DescribeLaunchTemplatesRequest & AddFilters(const Filter &value)
Definition: DescribeLaunchTemplatesRequest.h:269
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithFilters
DescribeLaunchTemplatesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeLaunchTemplatesRequest.h:239
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeLaunchTemplatesRequest.h:179
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeLaunchTemplatesRequest.h:310
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeLaunchTemplatesRequest.h:333
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithNextToken
DescribeLaunchTemplatesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeLaunchTemplatesRequest.h:315
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeLaunchTemplatesRequest.h:305
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetLaunchTemplateIds
const Aws::Vector< Aws::String > & GetLaunchTemplateIds() const
Definition: DescribeLaunchTemplatesRequest.h:77
EC2Request.h
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateIds
DescribeLaunchTemplatesRequest & AddLaunchTemplateIds(Aws::String &&value)
Definition: DescribeLaunchTemplatesRequest.h:112
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeLaunchTemplatesRequest.h:290
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetLaunchTemplateNames
void SetLaunchTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeLaunchTemplatesRequest.h:133
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithMaxResults
DescribeLaunchTemplatesRequest & WithMaxResults(int value)
Definition: DescribeLaunchTemplatesRequest.h:354
AWSString.h
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithLaunchTemplateIds
DescribeLaunchTemplatesRequest & WithLaunchTemplateIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLaunchTemplatesRequest.h:97
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetLaunchTemplateIds
void SetLaunchTemplateIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLaunchTemplatesRequest.h:87
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateIds
DescribeLaunchTemplatesRequest & AddLaunchTemplateIds(const Aws::String &value)
Definition: DescribeLaunchTemplatesRequest.h:107
Aws::EC2::Model::DescribeLaunchTemplatesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:340
Aws::EC2::Model::DescribeLaunchTemplatesRequest::DescribeLaunchTemplatesRequest
DescribeLaunchTemplatesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeLaunchTemplatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:295
Aws::EC2::Model::DescribeLaunchTemplatesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:55
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeLaunchTemplatesRequest.h:300
Aws::EC2::Model::DescribeLaunchTemplatesRequest::LaunchTemplateIdsHasBeenSet
bool LaunchTemplateIdsHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateNames
DescribeLaunchTemplatesRequest & AddLaunchTemplateNames(const char *value)
Definition: DescribeLaunchTemplatesRequest.h:163
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithDryRun
DescribeLaunchTemplatesRequest & WithDryRun(bool value)
Definition: DescribeLaunchTemplatesRequest.h:71
Aws::EC2::Model::DescribeLaunchTemplatesRequest::AddLaunchTemplateIds
DescribeLaunchTemplatesRequest & AddLaunchTemplateIds(const char *value)
Definition: DescribeLaunchTemplatesRequest.h:117
Aws::EC2::Model::DescribeLaunchTemplatesRequest::LaunchTemplateNamesHasBeenSet
bool LaunchTemplateNamesHasBeenSet() const
Definition: DescribeLaunchTemplatesRequest.h:128
Aws::EC2::Model::DescribeLaunchTemplatesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeLaunchTemplatesRequest.h:47
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeLaunchTemplatesRequest.h:209
EC2_EXPORTS.h
Aws::EC2::Model::DescribeLaunchTemplatesRequest::WithNextToken
DescribeLaunchTemplatesRequest & WithNextToken(const char *value)
Definition: DescribeLaunchTemplatesRequest.h:325
Aws::EC2::Model::DescribeLaunchTemplatesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeLaunchTemplatesRequest.h:63