AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
41 public:
42 AWS_EC2_API ImageCriterionRequest() = default;
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
50
62 inline const Aws::Vector<Aws::String>& GetImageProviders() const { return m_imageProviders; }
63 inline bool ImageProvidersHasBeenSet() const { return m_imageProvidersHasBeenSet; }
64 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
65 void SetImageProviders(ImageProvidersT&& value) {
66 m_imageProvidersHasBeenSet = true;
67 m_imageProviders = std::forward<ImageProvidersT>(value);
68 }
69 template <typename ImageProvidersT = Aws::Vector<Aws::String>>
70 ImageCriterionRequest& WithImageProviders(ImageProvidersT&& value) {
71 SetImageProviders(std::forward<ImageProvidersT>(value));
72 return *this;
73 }
74 template <typename ImageProvidersT = Aws::String>
75 ImageCriterionRequest& AddImageProviders(ImageProvidersT&& value) {
76 m_imageProvidersHasBeenSet = true;
77 m_imageProviders.emplace_back(std::forward<ImageProvidersT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<Aws::String>& GetMarketplaceProductCodes() const { return m_marketplaceProductCodes; }
89 inline bool MarketplaceProductCodesHasBeenSet() const { return m_marketplaceProductCodesHasBeenSet; }
90 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
91 void SetMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
92 m_marketplaceProductCodesHasBeenSet = true;
93 m_marketplaceProductCodes = std::forward<MarketplaceProductCodesT>(value);
94 }
95 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
96 ImageCriterionRequest& WithMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
97 SetMarketplaceProductCodes(std::forward<MarketplaceProductCodesT>(value));
98 return *this;
99 }
100 template <typename MarketplaceProductCodesT = Aws::String>
101 ImageCriterionRequest& AddMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
102 m_marketplaceProductCodesHasBeenSet = true;
103 m_marketplaceProductCodes.emplace_back(std::forward<MarketplaceProductCodesT>(value));
104 return *this;
105 }
107
109
117 inline const Aws::Vector<Aws::String>& GetImageNames() const { return m_imageNames; }
118 inline bool ImageNamesHasBeenSet() const { return m_imageNamesHasBeenSet; }
119 template <typename ImageNamesT = Aws::Vector<Aws::String>>
120 void SetImageNames(ImageNamesT&& value) {
121 m_imageNamesHasBeenSet = true;
122 m_imageNames = std::forward<ImageNamesT>(value);
123 }
124 template <typename ImageNamesT = Aws::Vector<Aws::String>>
125 ImageCriterionRequest& WithImageNames(ImageNamesT&& value) {
126 SetImageNames(std::forward<ImageNamesT>(value));
127 return *this;
128 }
129 template <typename ImageNamesT = Aws::String>
130 ImageCriterionRequest& AddImageNames(ImageNamesT&& value) {
131 m_imageNamesHasBeenSet = true;
132 m_imageNames.emplace_back(std::forward<ImageNamesT>(value));
133 return *this;
134 }
136
138
141 inline const DeprecationTimeConditionRequest& GetDeprecationTimeCondition() const { return m_deprecationTimeCondition; }
142 inline bool DeprecationTimeConditionHasBeenSet() const { return m_deprecationTimeConditionHasBeenSet; }
143 template <typename DeprecationTimeConditionT = DeprecationTimeConditionRequest>
144 void SetDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
145 m_deprecationTimeConditionHasBeenSet = true;
146 m_deprecationTimeCondition = std::forward<DeprecationTimeConditionT>(value);
147 }
148 template <typename DeprecationTimeConditionT = DeprecationTimeConditionRequest>
149 ImageCriterionRequest& WithDeprecationTimeCondition(DeprecationTimeConditionT&& value) {
150 SetDeprecationTimeCondition(std::forward<DeprecationTimeConditionT>(value));
151 return *this;
152 }
154
156
159 inline const CreationDateConditionRequest& GetCreationDateCondition() const { return m_creationDateCondition; }
160 inline bool CreationDateConditionHasBeenSet() const { return m_creationDateConditionHasBeenSet; }
161 template <typename CreationDateConditionT = CreationDateConditionRequest>
162 void SetCreationDateCondition(CreationDateConditionT&& value) {
163 m_creationDateConditionHasBeenSet = true;
164 m_creationDateCondition = std::forward<CreationDateConditionT>(value);
165 }
166 template <typename CreationDateConditionT = CreationDateConditionRequest>
167 ImageCriterionRequest& WithCreationDateCondition(CreationDateConditionT&& value) {
168 SetCreationDateCondition(std::forward<CreationDateConditionT>(value));
169 return *this;
170 }
172 private:
173 Aws::Vector<Aws::String> m_imageProviders;
174
175 Aws::Vector<Aws::String> m_marketplaceProductCodes;
176
177 Aws::Vector<Aws::String> m_imageNames;
178
179 DeprecationTimeConditionRequest m_deprecationTimeCondition;
180
181 CreationDateConditionRequest m_creationDateCondition;
182 bool m_imageProvidersHasBeenSet = false;
183 bool m_marketplaceProductCodesHasBeenSet = false;
184 bool m_imageNamesHasBeenSet = false;
185 bool m_deprecationTimeConditionHasBeenSet = false;
186 bool m_creationDateConditionHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace EC2
191} // namespace Aws
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
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)
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