AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeImagesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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:
26 AWS_EC2_API DescribeImagesRequest();
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 "DescribeImages"; }
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
55 inline const Aws::Vector<Aws::String>& GetExecutableUsers() const{ return m_executableUsers; }
56 inline bool ExecutableUsersHasBeenSet() const { return m_executableUsersHasBeenSet; }
57 inline void SetExecutableUsers(const Aws::Vector<Aws::String>& value) { m_executableUsersHasBeenSet = true; m_executableUsers = value; }
58 inline void SetExecutableUsers(Aws::Vector<Aws::String>&& value) { m_executableUsersHasBeenSet = true; m_executableUsers = std::move(value); }
60 inline DescribeImagesRequest& WithExecutableUsers(Aws::Vector<Aws::String>&& value) { SetExecutableUsers(std::move(value)); return *this;}
61 inline DescribeImagesRequest& AddExecutableUsers(const Aws::String& value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(value); return *this; }
62 inline DescribeImagesRequest& AddExecutableUsers(Aws::String&& value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(std::move(value)); return *this; }
63 inline DescribeImagesRequest& AddExecutableUsers(const char* value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(value); return *this; }
65
67
70 inline const Aws::Vector<Aws::String>& GetImageIds() const{ return m_imageIds; }
71 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
72 inline void SetImageIds(const Aws::Vector<Aws::String>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
73 inline void SetImageIds(Aws::Vector<Aws::String>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
74 inline DescribeImagesRequest& WithImageIds(const Aws::Vector<Aws::String>& value) { SetImageIds(value); return *this;}
75 inline DescribeImagesRequest& WithImageIds(Aws::Vector<Aws::String>&& value) { SetImageIds(std::move(value)); return *this;}
76 inline DescribeImagesRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
77 inline DescribeImagesRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
78 inline DescribeImagesRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
80
82
89 inline const Aws::Vector<Aws::String>& GetOwners() const{ return m_owners; }
90 inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; }
91 inline void SetOwners(const Aws::Vector<Aws::String>& value) { m_ownersHasBeenSet = true; m_owners = value; }
92 inline void SetOwners(Aws::Vector<Aws::String>&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); }
93 inline DescribeImagesRequest& WithOwners(const Aws::Vector<Aws::String>& value) { SetOwners(value); return *this;}
94 inline DescribeImagesRequest& WithOwners(Aws::Vector<Aws::String>&& value) { SetOwners(std::move(value)); return *this;}
95 inline DescribeImagesRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
96 inline DescribeImagesRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; }
97 inline DescribeImagesRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
99
101
107 inline bool GetIncludeDeprecated() const{ return m_includeDeprecated; }
108 inline bool IncludeDeprecatedHasBeenSet() const { return m_includeDeprecatedHasBeenSet; }
109 inline void SetIncludeDeprecated(bool value) { m_includeDeprecatedHasBeenSet = true; m_includeDeprecated = value; }
110 inline DescribeImagesRequest& WithIncludeDeprecated(bool value) { SetIncludeDeprecated(value); return *this;}
112
114
118 inline bool GetIncludeDisabled() const{ return m_includeDisabled; }
119 inline bool IncludeDisabledHasBeenSet() const { return m_includeDisabledHasBeenSet; }
120 inline void SetIncludeDisabled(bool value) { m_includeDisabledHasBeenSet = true; m_includeDisabled = value; }
121 inline DescribeImagesRequest& WithIncludeDisabled(bool value) { SetIncludeDisabled(value); return *this;}
123
125
131 inline int GetMaxResults() const{ return m_maxResults; }
132 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
133 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
134 inline DescribeImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
136
138
142 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
146 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
147 inline DescribeImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 inline DescribeImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
149 inline DescribeImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
151
153
159 inline bool GetDryRun() const{ return m_dryRun; }
160 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
161 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
162 inline DescribeImagesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
164
166
237 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
238 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
239 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
240 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
241 inline DescribeImagesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
242 inline DescribeImagesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
243 inline DescribeImagesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
244 inline DescribeImagesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
246 private:
247
248 Aws::Vector<Aws::String> m_executableUsers;
249 bool m_executableUsersHasBeenSet = false;
250
251 Aws::Vector<Aws::String> m_imageIds;
252 bool m_imageIdsHasBeenSet = false;
253
255 bool m_ownersHasBeenSet = false;
256
257 bool m_includeDeprecated;
258 bool m_includeDeprecatedHasBeenSet = false;
259
260 bool m_includeDisabled;
261 bool m_includeDisabledHasBeenSet = false;
262
263 int m_maxResults;
264 bool m_maxResultsHasBeenSet = false;
265
266 Aws::String m_nextToken;
267 bool m_nextTokenHasBeenSet = false;
268
269 bool m_dryRun;
270 bool m_dryRunHasBeenSet = false;
271
272 Aws::Vector<Filter> m_filters;
273 bool m_filtersHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace EC2
278} // namespace Aws
DescribeImagesRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Filter > & GetFilters() const
DescribeImagesRequest & WithDryRun(bool value)
DescribeImagesRequest & WithImageIds(const Aws::Vector< Aws::String > &value)
void SetNextToken(const Aws::String &value)
DescribeImagesRequest & AddOwners(const Aws::String &value)
void SetExecutableUsers(const Aws::Vector< Aws::String > &value)
DescribeImagesRequest & WithOwners(Aws::Vector< Aws::String > &&value)
DescribeImagesRequest & WithIncludeDisabled(bool value)
DescribeImagesRequest & AddExecutableUsers(const Aws::String &value)
DescribeImagesRequest & AddExecutableUsers(const char *value)
DescribeImagesRequest & WithImageIds(Aws::Vector< Aws::String > &&value)
DescribeImagesRequest & WithNextToken(const Aws::String &value)
DescribeImagesRequest & AddFilters(Filter &&value)
void SetImageIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetExecutableUsers() const
DescribeImagesRequest & WithMaxResults(int value)
DescribeImagesRequest & AddOwners(Aws::String &&value)
DescribeImagesRequest & AddImageIds(const char *value)
DescribeImagesRequest & WithOwners(const Aws::Vector< Aws::String > &value)
DescribeImagesRequest & WithIncludeDeprecated(bool value)
void SetFilters(const Aws::Vector< Filter > &value)
void SetOwners(const Aws::Vector< Aws::String > &value)
DescribeImagesRequest & WithExecutableUsers(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetOwners() const
DescribeImagesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeImagesRequest & AddFilters(const Filter &value)
DescribeImagesRequest & AddImageIds(const Aws::String &value)
void SetExecutableUsers(Aws::Vector< Aws::String > &&value)
void SetFilters(Aws::Vector< Filter > &&value)
DescribeImagesRequest & AddExecutableUsers(Aws::String &&value)
DescribeImagesRequest & WithNextToken(Aws::String &&value)
DescribeImagesRequest & WithExecutableUsers(Aws::Vector< Aws::String > &&value)
DescribeImagesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeImagesRequest & AddOwners(const char *value)
DescribeImagesRequest & AddImageIds(Aws::String &&value)
void SetImageIds(Aws::Vector< Aws::String > &&value)
void SetOwners(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetImageIds() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector