AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeImageReferencesRequest.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/ResourceTypeRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeImageReferencesRequest() = 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 "DescribeImageReferences"; }
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
76 inline bool GetIncludeAllResourceTypes() const { return m_includeAllResourceTypes; }
77 inline bool IncludeAllResourceTypesHasBeenSet() const { return m_includeAllResourceTypesHasBeenSet; }
78 inline void SetIncludeAllResourceTypes(bool value) {
79 m_includeAllResourceTypesHasBeenSet = true;
80 m_includeAllResourceTypes = value;
81 }
84 return *this;
85 }
87
89
94 inline const Aws::Vector<ResourceTypeRequest>& GetResourceTypes() const { return m_resourceTypes; }
95 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
96 template <typename ResourceTypesT = Aws::Vector<ResourceTypeRequest>>
97 void SetResourceTypes(ResourceTypesT&& value) {
98 m_resourceTypesHasBeenSet = true;
99 m_resourceTypes = std::forward<ResourceTypesT>(value);
100 }
101 template <typename ResourceTypesT = Aws::Vector<ResourceTypeRequest>>
103 SetResourceTypes(std::forward<ResourceTypesT>(value));
104 return *this;
105 }
106 template <typename ResourceTypesT = ResourceTypeRequest>
108 m_resourceTypesHasBeenSet = true;
109 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetNextToken() const { return m_nextToken; }
120 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
121 template <typename NextTokenT = Aws::String>
122 void SetNextToken(NextTokenT&& value) {
123 m_nextTokenHasBeenSet = true;
124 m_nextToken = std::forward<NextTokenT>(value);
125 }
126 template <typename NextTokenT = Aws::String>
128 SetNextToken(std::forward<NextTokenT>(value));
129 return *this;
130 }
132
134
140 inline bool GetDryRun() const { return m_dryRun; }
141 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
142 inline void SetDryRun(bool value) {
143 m_dryRunHasBeenSet = true;
144 m_dryRun = value;
145 }
147 SetDryRun(value);
148 return *this;
149 }
151
153
160 inline int GetMaxResults() const { return m_maxResults; }
161 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
162 inline void SetMaxResults(int value) {
163 m_maxResultsHasBeenSet = true;
164 m_maxResults = value;
165 }
167 SetMaxResults(value);
168 return *this;
169 }
171 private:
172 Aws::Vector<Aws::String> m_imageIds;
173
174 bool m_includeAllResourceTypes{false};
175
176 Aws::Vector<ResourceTypeRequest> m_resourceTypes;
177
178 Aws::String m_nextToken;
179
180 bool m_dryRun{false};
181
182 int m_maxResults{0};
183 bool m_imageIdsHasBeenSet = false;
184 bool m_includeAllResourceTypesHasBeenSet = false;
185 bool m_resourceTypesHasBeenSet = false;
186 bool m_nextTokenHasBeenSet = false;
187 bool m_dryRunHasBeenSet = false;
188 bool m_maxResultsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace EC2
193} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeImageReferencesRequest & WithIncludeAllResourceTypes(bool value)
const Aws::Vector< ResourceTypeRequest > & GetResourceTypes() const
DescribeImageReferencesRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeImageReferencesRequest & WithImageIds(ImageIdsT &&value)
DescribeImageReferencesRequest & WithNextToken(NextTokenT &&value)
DescribeImageReferencesRequest & WithResourceTypes(ResourceTypesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeImageReferencesRequest & AddResourceTypes(ResourceTypesT &&value)
DescribeImageReferencesRequest & AddImageIds(ImageIdsT &&value)
const Aws::Vector< Aws::String > & GetImageIds() const
DescribeImageReferencesRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector