AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeFastLaunchImagesRequest.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 DescribeFastLaunchImagesRequest() = 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 "DescribeFastLaunchImages"; }
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
41 inline const Aws::Vector<Aws::String>& GetImageIds() const { return m_imageIds; }
42 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
43 template <typename ImageIdsT = Aws::Vector<Aws::String>>
44 void SetImageIds(ImageIdsT&& value) {
45 m_imageIdsHasBeenSet = true;
46 m_imageIds = std::forward<ImageIdsT>(value);
47 }
48 template <typename ImageIdsT = Aws::Vector<Aws::String>>
50 SetImageIds(std::forward<ImageIdsT>(value));
51 return *this;
52 }
53 template <typename ImageIdsT = Aws::String>
55 m_imageIdsHasBeenSet = true;
56 m_imageIds.emplace_back(std::forward<ImageIdsT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 template <typename FiltersT = Aws::Vector<Filter>>
72 void SetFilters(FiltersT&& value) {
73 m_filtersHasBeenSet = true;
74 m_filters = std::forward<FiltersT>(value);
75 }
76 template <typename FiltersT = Aws::Vector<Filter>>
78 SetFilters(std::forward<FiltersT>(value));
79 return *this;
80 }
81 template <typename FiltersT = Filter>
83 m_filtersHasBeenSet = true;
84 m_filters.emplace_back(std::forward<FiltersT>(value));
85 return *this;
86 }
88
90
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
103 SetMaxResults(value);
104 return *this;
105 }
107
109
113 inline const Aws::String& GetNextToken() const { return m_nextToken; }
114 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
115 template <typename NextTokenT = Aws::String>
116 void SetNextToken(NextTokenT&& value) {
117 m_nextTokenHasBeenSet = true;
118 m_nextToken = std::forward<NextTokenT>(value);
119 }
120 template <typename NextTokenT = Aws::String>
122 SetNextToken(std::forward<NextTokenT>(value));
123 return *this;
124 }
126
128
134 inline bool GetDryRun() const { return m_dryRun; }
135 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
136 inline void SetDryRun(bool value) {
137 m_dryRunHasBeenSet = true;
138 m_dryRun = value;
139 }
141 SetDryRun(value);
142 return *this;
143 }
145 private:
146 Aws::Vector<Aws::String> m_imageIds;
147
148 Aws::Vector<Filter> m_filters;
149
150 int m_maxResults{0};
151
152 Aws::String m_nextToken;
153
154 bool m_dryRun{false};
155 bool m_imageIdsHasBeenSet = false;
156 bool m_filtersHasBeenSet = false;
157 bool m_maxResultsHasBeenSet = false;
158 bool m_nextTokenHasBeenSet = false;
159 bool m_dryRunHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
DescribeFastLaunchImagesRequest & WithImageIds(ImageIdsT &&value)
DescribeFastLaunchImagesRequest & WithDryRun(bool value)
DescribeFastLaunchImagesRequest & WithMaxResults(int value)
DescribeFastLaunchImagesRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetImageIds() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeFastLaunchImagesRequest & AddImageIds(ImageIdsT &&value)
DescribeFastLaunchImagesRequest & WithNextToken(NextTokenT &&value)
DescribeFastLaunchImagesRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector