AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ImageCriterion.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/CreationDateCondition.h>
12#include <aws/ec2/model/DeprecationTimeCondition.h>
13#include <aws/ec2/model/ImageWatermarkFilterResponse.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
37 public:
38 AWS_EC2_API ImageCriterion() = default;
39 AWS_EC2_API ImageCriterion(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
57 inline const Aws::Vector<Aws::String>& GetImageProviders() const { return m_imageProviders; }
58 inline bool ImageProvidersHasBeenSet() const { return m_imageProvidersHasBeenSet; }
59 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
60 void SetImageProviders(ImageProvidersT&& value) {
61 m_imageProvidersHasBeenSet = true;
62 m_imageProviders = std::forward<ImageProvidersT>(value);
63 }
64 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
65 ImageCriterion& WithImageProviders(ImageProvidersT&& value) {
66 SetImageProviders(std::forward<ImageProvidersT>(value));
67 return *this;
68 }
69 template <typename ImageProvidersT = Aws::String>
70 ImageCriterion& AddImageProviders(ImageProvidersT&& value) {
71 m_imageProvidersHasBeenSet = true;
72 m_imageProviders.emplace_back(std::forward<ImageProvidersT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<Aws::String>& GetMarketplaceProductCodes() const { return m_marketplaceProductCodes; }
84 inline bool MarketplaceProductCodesHasBeenSet() const { return m_marketplaceProductCodesHasBeenSet; }
85 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
86 void SetMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
87 m_marketplaceProductCodesHasBeenSet = true;
88 m_marketplaceProductCodes = std::forward<MarketplaceProductCodesT>(value);
89 }
90 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
91 ImageCriterion& WithMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
92 SetMarketplaceProductCodes(std::forward<MarketplaceProductCodesT>(value));
93 return *this;
94 }
95 template <typename MarketplaceProductCodesT = Aws::String>
96 ImageCriterion& AddMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
97 m_marketplaceProductCodesHasBeenSet = true;
98 m_marketplaceProductCodes.emplace_back(std::forward<MarketplaceProductCodesT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::Vector<Aws::String>& GetImageNames() const { return m_imageNames; }
113 inline bool ImageNamesHasBeenSet() const { return m_imageNamesHasBeenSet; }
114 template <typename ImageNamesT = Aws::Vector<Aws::String>>
115 void SetImageNames(ImageNamesT&& value) {
116 m_imageNamesHasBeenSet = true;
117 m_imageNames = std::forward<ImageNamesT>(value);
118 }
119 template <typename ImageNamesT = Aws::Vector<Aws::String>>
120 ImageCriterion& WithImageNames(ImageNamesT&& value) {
121 SetImageNames(std::forward<ImageNamesT>(value));
122 return *this;
123 }
124 template <typename ImageNamesT = Aws::String>
125 ImageCriterion& AddImageNames(ImageNamesT&& value) {
126 m_imageNamesHasBeenSet = true;
127 m_imageNames.emplace_back(std::forward<ImageNamesT>(value));
128 return *this;
129 }
131
133
136 inline const DeprecationTimeCondition& GetDeprecationTimeCondition() const { return m_deprecationTimeCondition; }
137 inline bool DeprecationTimeConditionHasBeenSet() const { return m_deprecationTimeConditionHasBeenSet; }
138 template <typename DeprecationTimeConditionT = DeprecationTimeCondition>
139 void SetDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
140 m_deprecationTimeConditionHasBeenSet = true;
141 m_deprecationTimeCondition = std::forward<DeprecationTimeConditionT>(value);
142 }
143 template <typename DeprecationTimeConditionT = DeprecationTimeCondition>
144 ImageCriterion& WithDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
145 SetDeprecationTimeCondition(std::forward<DeprecationTimeConditionT>(value));
146 return *this;
147 }
149
151
154 inline const CreationDateCondition& GetCreationDateCondition() const { return m_creationDateCondition; }
155 inline bool CreationDateConditionHasBeenSet() const { return m_creationDateConditionHasBeenSet; }
156 template <typename CreationDateConditionT = CreationDateCondition>
157 void SetCreationDateCondition(CreationDateConditionT&& value) {
158 m_creationDateConditionHasBeenSet = true;
159 m_creationDateCondition = std::forward<CreationDateConditionT>(value);
160 }
161 template <typename CreationDateConditionT = CreationDateCondition>
162 ImageCriterion& WithCreationDateCondition(CreationDateConditionT&& value) {
163 SetCreationDateCondition(std::forward<CreationDateConditionT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::Vector<ImageWatermarkFilterResponse>& GetImageWatermarks() const { return m_imageWatermarks; }
177 inline bool ImageWatermarksHasBeenSet() const { return m_imageWatermarksHasBeenSet; }
178 template <typename ImageWatermarksT = Aws::Vector<ImageWatermarkFilterResponse>>
179 void SetImageWatermarks(ImageWatermarksT&& value) {
180 m_imageWatermarksHasBeenSet = true;
181 m_imageWatermarks = std::forward<ImageWatermarksT>(value);
182 }
183 template <typename ImageWatermarksT = Aws::Vector<ImageWatermarkFilterResponse>>
184 ImageCriterion& WithImageWatermarks(ImageWatermarksT&& value) {
185 SetImageWatermarks(std::forward<ImageWatermarksT>(value));
186 return *this;
187 }
188 template <typename ImageWatermarksT = ImageWatermarkFilterResponse>
189 ImageCriterion& AddImageWatermarks(ImageWatermarksT&& value) {
190 m_imageWatermarksHasBeenSet = true;
191 m_imageWatermarks.emplace_back(std::forward<ImageWatermarksT>(value));
192 return *this;
193 }
195 private:
196 Aws::Vector<Aws::String> m_imageProviders;
197
198 Aws::Vector<Aws::String> m_marketplaceProductCodes;
199
200 Aws::Vector<Aws::String> m_imageNames;
201
202 DeprecationTimeCondition m_deprecationTimeCondition;
203
204 CreationDateCondition m_creationDateCondition;
205
207 bool m_imageProvidersHasBeenSet = false;
208 bool m_marketplaceProductCodesHasBeenSet = false;
209 bool m_imageNamesHasBeenSet = false;
210 bool m_deprecationTimeConditionHasBeenSet = false;
211 bool m_creationDateConditionHasBeenSet = false;
212 bool m_imageWatermarksHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace EC2
217} // namespace Aws
void SetImageProviders(ImageProvidersT &&value)
ImageCriterion & AddImageNames(ImageNamesT &&value)
const DeprecationTimeCondition & GetDeprecationTimeCondition() const
void SetImageNames(ImageNamesT &&value)
const Aws::Vector< ImageWatermarkFilterResponse > & GetImageWatermarks() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetImageNames() const
ImageCriterion & WithDeprecationTimeCondition(DeprecationTimeConditionT &&value)
bool MarketplaceProductCodesHasBeenSet() const
const CreationDateCondition & GetCreationDateCondition() const
void SetImageWatermarks(ImageWatermarksT &&value)
ImageCriterion & AddImageWatermarks(ImageWatermarksT &&value)
ImageCriterion & WithImageNames(ImageNamesT &&value)
const Aws::Vector< Aws::String > & GetImageProviders() const
const Aws::Vector< Aws::String > & GetMarketplaceProductCodes() const
ImageCriterion & AddImageProviders(ImageProvidersT &&value)
AWS_EC2_API ImageCriterion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ImageCriterion & WithMarketplaceProductCodes(MarketplaceProductCodesT &&value)
AWS_EC2_API ImageCriterion(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCreationDateCondition(CreationDateConditionT &&value)
AWS_EC2_API ImageCriterion()=default
ImageCriterion & WithImageWatermarks(ImageWatermarksT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDeprecationTimeCondition(DeprecationTimeConditionT &&value)
ImageCriterion & WithCreationDateCondition(CreationDateConditionT &&value)
ImageCriterion & WithImageProviders(ImageProvidersT &&value)
void SetMarketplaceProductCodes(MarketplaceProductCodesT &&value)
bool DeprecationTimeConditionHasBeenSet() const
ImageCriterion & AddMarketplaceProductCodes(MarketplaceProductCodesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream