AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
36 public:
37 AWS_EC2_API ImageCriterion() = default;
38 AWS_EC2_API ImageCriterion(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
56 inline const Aws::Vector<Aws::String>& GetImageProviders() const { return m_imageProviders; }
57 inline bool ImageProvidersHasBeenSet() const { return m_imageProvidersHasBeenSet; }
58 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
59 void SetImageProviders(ImageProvidersT&& value) {
60 m_imageProvidersHasBeenSet = true;
61 m_imageProviders = std::forward<ImageProvidersT>(value);
62 }
63 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
64 ImageCriterion& WithImageProviders(ImageProvidersT&& value) {
65 SetImageProviders(std::forward<ImageProvidersT>(value));
66 return *this;
67 }
68 template <typename ImageProvidersT = Aws::String>
69 ImageCriterion& AddImageProviders(ImageProvidersT&& value) {
70 m_imageProvidersHasBeenSet = true;
71 m_imageProviders.emplace_back(std::forward<ImageProvidersT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<Aws::String>& GetMarketplaceProductCodes() const { return m_marketplaceProductCodes; }
83 inline bool MarketplaceProductCodesHasBeenSet() const { return m_marketplaceProductCodesHasBeenSet; }
84 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
85 void SetMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
86 m_marketplaceProductCodesHasBeenSet = true;
87 m_marketplaceProductCodes = std::forward<MarketplaceProductCodesT>(value);
88 }
89 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
90 ImageCriterion& WithMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
91 SetMarketplaceProductCodes(std::forward<MarketplaceProductCodesT>(value));
92 return *this;
93 }
94 template <typename MarketplaceProductCodesT = Aws::String>
95 ImageCriterion& AddMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
96 m_marketplaceProductCodesHasBeenSet = true;
97 m_marketplaceProductCodes.emplace_back(std::forward<MarketplaceProductCodesT>(value));
98 return *this;
99 }
101
103
111 inline const Aws::Vector<Aws::String>& GetImageNames() const { return m_imageNames; }
112 inline bool ImageNamesHasBeenSet() const { return m_imageNamesHasBeenSet; }
113 template <typename ImageNamesT = Aws::Vector<Aws::String>>
114 void SetImageNames(ImageNamesT&& value) {
115 m_imageNamesHasBeenSet = true;
116 m_imageNames = std::forward<ImageNamesT>(value);
117 }
118 template <typename ImageNamesT = Aws::Vector<Aws::String>>
119 ImageCriterion& WithImageNames(ImageNamesT&& value) {
120 SetImageNames(std::forward<ImageNamesT>(value));
121 return *this;
122 }
123 template <typename ImageNamesT = Aws::String>
124 ImageCriterion& AddImageNames(ImageNamesT&& value) {
125 m_imageNamesHasBeenSet = true;
126 m_imageNames.emplace_back(std::forward<ImageNamesT>(value));
127 return *this;
128 }
130
132
135 inline const DeprecationTimeCondition& GetDeprecationTimeCondition() const { return m_deprecationTimeCondition; }
136 inline bool DeprecationTimeConditionHasBeenSet() const { return m_deprecationTimeConditionHasBeenSet; }
137 template <typename DeprecationTimeConditionT = DeprecationTimeCondition>
138 void SetDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
139 m_deprecationTimeConditionHasBeenSet = true;
140 m_deprecationTimeCondition = std::forward<DeprecationTimeConditionT>(value);
141 }
142 template <typename DeprecationTimeConditionT = DeprecationTimeCondition>
143 ImageCriterion& WithDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
144 SetDeprecationTimeCondition(std::forward<DeprecationTimeConditionT>(value));
145 return *this;
146 }
148
150
153 inline const CreationDateCondition& GetCreationDateCondition() const { return m_creationDateCondition; }
154 inline bool CreationDateConditionHasBeenSet() const { return m_creationDateConditionHasBeenSet; }
155 template <typename CreationDateConditionT = CreationDateCondition>
156 void SetCreationDateCondition(CreationDateConditionT&& value) {
157 m_creationDateConditionHasBeenSet = true;
158 m_creationDateCondition = std::forward<CreationDateConditionT>(value);
159 }
160 template <typename CreationDateConditionT = CreationDateCondition>
161 ImageCriterion& WithCreationDateCondition(CreationDateConditionT&& value) {
162 SetCreationDateCondition(std::forward<CreationDateConditionT>(value));
163 return *this;
164 }
166 private:
167 Aws::Vector<Aws::String> m_imageProviders;
168
169 Aws::Vector<Aws::String> m_marketplaceProductCodes;
170
171 Aws::Vector<Aws::String> m_imageNames;
172
173 DeprecationTimeCondition m_deprecationTimeCondition;
174
175 CreationDateCondition m_creationDateCondition;
176 bool m_imageProvidersHasBeenSet = false;
177 bool m_marketplaceProductCodesHasBeenSet = false;
178 bool m_imageNamesHasBeenSet = false;
179 bool m_deprecationTimeConditionHasBeenSet = false;
180 bool m_creationDateConditionHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace EC2
185} // namespace Aws
void SetImageProviders(ImageProvidersT &&value)
ImageCriterion & AddImageNames(ImageNamesT &&value)
const DeprecationTimeCondition & GetDeprecationTimeCondition() const
void SetImageNames(ImageNamesT &&value)
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
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
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