AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ImageCriterionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CreationDateConditionRequest.h>
12#include <aws/ec2/model/DeprecationTimeConditionRequest.h>
13#include <aws/ec2/model/ImageWatermarkFilterRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
42 public:
43 AWS_EC2_API ImageCriterionRequest() = default;
46
47 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
51
63 inline const Aws::Vector<Aws::String>& GetImageProviders() const { return m_imageProviders; }
64 inline bool ImageProvidersHasBeenSet() const { return m_imageProvidersHasBeenSet; }
65 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
66 void SetImageProviders(ImageProvidersT&& value) {
67 m_imageProvidersHasBeenSet = true;
68 m_imageProviders = std::forward<ImageProvidersT>(value);
69 }
70 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
71 ImageCriterionRequest& WithImageProviders(ImageProvidersT&& value) {
72 SetImageProviders(std::forward<ImageProvidersT>(value));
73 return *this;
74 }
75 template <typename ImageProvidersT = Aws::String>
76 ImageCriterionRequest& AddImageProviders(ImageProvidersT&& value) {
77 m_imageProvidersHasBeenSet = true;
78 m_imageProviders.emplace_back(std::forward<ImageProvidersT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::Vector<Aws::String>& GetMarketplaceProductCodes() const { return m_marketplaceProductCodes; }
90 inline bool MarketplaceProductCodesHasBeenSet() const { return m_marketplaceProductCodesHasBeenSet; }
91 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
92 void SetMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
93 m_marketplaceProductCodesHasBeenSet = true;
94 m_marketplaceProductCodes = std::forward<MarketplaceProductCodesT>(value);
95 }
96 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
97 ImageCriterionRequest& WithMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
98 SetMarketplaceProductCodes(std::forward<MarketplaceProductCodesT>(value));
99 return *this;
100 }
101 template <typename MarketplaceProductCodesT = Aws::String>
102 ImageCriterionRequest& AddMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
103 m_marketplaceProductCodesHasBeenSet = true;
104 m_marketplaceProductCodes.emplace_back(std::forward<MarketplaceProductCodesT>(value));
105 return *this;
106 }
108
110
118 inline const Aws::Vector<Aws::String>& GetImageNames() const { return m_imageNames; }
119 inline bool ImageNamesHasBeenSet() const { return m_imageNamesHasBeenSet; }
120 template <typename ImageNamesT = Aws::Vector<Aws::String>>
121 void SetImageNames(ImageNamesT&& value) {
122 m_imageNamesHasBeenSet = true;
123 m_imageNames = std::forward<ImageNamesT>(value);
124 }
125 template <typename ImageNamesT = Aws::Vector<Aws::String>>
126 ImageCriterionRequest& WithImageNames(ImageNamesT&& value) {
127 SetImageNames(std::forward<ImageNamesT>(value));
128 return *this;
129 }
130 template <typename ImageNamesT = Aws::String>
131 ImageCriterionRequest& AddImageNames(ImageNamesT&& value) {
132 m_imageNamesHasBeenSet = true;
133 m_imageNames.emplace_back(std::forward<ImageNamesT>(value));
134 return *this;
135 }
137
139
142 inline const DeprecationTimeConditionRequest& GetDeprecationTimeCondition() const { return m_deprecationTimeCondition; }
143 inline bool DeprecationTimeConditionHasBeenSet() const { return m_deprecationTimeConditionHasBeenSet; }
144 template <typename DeprecationTimeConditionT = DeprecationTimeConditionRequest>
145 void SetDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
146 m_deprecationTimeConditionHasBeenSet = true;
147 m_deprecationTimeCondition = std::forward<DeprecationTimeConditionT>(value);
148 }
149 template <typename DeprecationTimeConditionT = DeprecationTimeConditionRequest>
150 ImageCriterionRequest& WithDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
151 SetDeprecationTimeCondition(std::forward<DeprecationTimeConditionT>(value));
152 return *this;
153 }
155
157
160 inline const CreationDateConditionRequest& GetCreationDateCondition() const { return m_creationDateCondition; }
161 inline bool CreationDateConditionHasBeenSet() const { return m_creationDateConditionHasBeenSet; }
162 template <typename CreationDateConditionT = CreationDateConditionRequest>
163 void SetCreationDateCondition(CreationDateConditionT&& value) {
164 m_creationDateConditionHasBeenSet = true;
165 m_creationDateCondition = std::forward<CreationDateConditionT>(value);
166 }
167 template <typename CreationDateConditionT = CreationDateConditionRequest>
168 ImageCriterionRequest& WithCreationDateCondition(CreationDateConditionT&& value) {
169 SetCreationDateCondition(std::forward<CreationDateConditionT>(value));
170 return *this;
171 }
173
175
182 inline const Aws::Vector<ImageWatermarkFilterRequest>& GetImageWatermarks() const { return m_imageWatermarks; }
183 inline bool ImageWatermarksHasBeenSet() const { return m_imageWatermarksHasBeenSet; }
184 template <typename ImageWatermarksT = Aws::Vector<ImageWatermarkFilterRequest>>
185 void SetImageWatermarks(ImageWatermarksT&& value) {
186 m_imageWatermarksHasBeenSet = true;
187 m_imageWatermarks = std::forward<ImageWatermarksT>(value);
188 }
189 template <typename ImageWatermarksT = Aws::Vector<ImageWatermarkFilterRequest>>
190 ImageCriterionRequest& WithImageWatermarks(ImageWatermarksT&& value) {
191 SetImageWatermarks(std::forward<ImageWatermarksT>(value));
192 return *this;
193 }
194 template <typename ImageWatermarksT = ImageWatermarkFilterRequest>
195 ImageCriterionRequest& AddImageWatermarks(ImageWatermarksT&& value) {
196 m_imageWatermarksHasBeenSet = true;
197 m_imageWatermarks.emplace_back(std::forward<ImageWatermarksT>(value));
198 return *this;
199 }
201 private:
202 Aws::Vector<Aws::String> m_imageProviders;
203
204 Aws::Vector<Aws::String> m_marketplaceProductCodes;
205
206 Aws::Vector<Aws::String> m_imageNames;
207
208 DeprecationTimeConditionRequest m_deprecationTimeCondition;
209
210 CreationDateConditionRequest m_creationDateCondition;
211
213 bool m_imageProvidersHasBeenSet = false;
214 bool m_marketplaceProductCodesHasBeenSet = false;
215 bool m_imageNamesHasBeenSet = false;
216 bool m_deprecationTimeConditionHasBeenSet = false;
217 bool m_creationDateConditionHasBeenSet = false;
218 bool m_imageWatermarksHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace EC2
223} // namespace Aws
const Aws::Vector< ImageWatermarkFilterRequest > & GetImageWatermarks() const
void SetMarketplaceProductCodes(MarketplaceProductCodesT &&value)
ImageCriterionRequest & WithImageNames(ImageNamesT &&value)
AWS_EC2_API ImageCriterionRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ImageCriterionRequest()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetImageWatermarks(ImageWatermarksT &&value)
ImageCriterionRequest & AddImageWatermarks(ImageWatermarksT &&value)
const Aws::Vector< Aws::String > & GetMarketplaceProductCodes() const
ImageCriterionRequest & WithCreationDateCondition(CreationDateConditionT &&value)
ImageCriterionRequest & WithMarketplaceProductCodes(MarketplaceProductCodesT &&value)
const Aws::Vector< Aws::String > & GetImageProviders() const
ImageCriterionRequest & WithImageProviders(ImageProvidersT &&value)
ImageCriterionRequest & WithDeprecationTimeCondition(DeprecationTimeConditionT &&value)
void SetImageProviders(ImageProvidersT &&value)
ImageCriterionRequest & AddMarketplaceProductCodes(MarketplaceProductCodesT &&value)
const CreationDateConditionRequest & GetCreationDateCondition() const
ImageCriterionRequest & AddImageNames(ImageNamesT &&value)
void SetCreationDateCondition(CreationDateConditionT &&value)
ImageCriterionRequest & AddImageProviders(ImageProvidersT &&value)
ImageCriterionRequest & WithImageWatermarks(ImageWatermarksT &&value)
void SetDeprecationTimeCondition(DeprecationTimeConditionT &&value)
const Aws::Vector< Aws::String > & GetImageNames() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const DeprecationTimeConditionRequest & GetDeprecationTimeCondition() const
AWS_EC2_API ImageCriterionRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream