AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ModifyIntegrationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/Redshift_EXPORTS.h>
13#include <aws/redshift/model/IntegrationError.h>
14#include <aws/redshift/model/ResponseMetadata.h>
15#include <aws/redshift/model/Tag.h>
16#include <aws/redshift/model/ZeroETLIntegrationStatus.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Xml {
26class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace Redshift {
30namespace Model {
32 public:
33 AWS_REDSHIFT_API ModifyIntegrationResult() = default;
36
38
41 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
42 template <typename IntegrationArnT = Aws::String>
43 void SetIntegrationArn(IntegrationArnT&& value) {
44 m_integrationArnHasBeenSet = true;
45 m_integrationArn = std::forward<IntegrationArnT>(value);
46 }
47 template <typename IntegrationArnT = Aws::String>
48 ModifyIntegrationResult& WithIntegrationArn(IntegrationArnT&& value) {
49 SetIntegrationArn(std::forward<IntegrationArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIntegrationName() const { return m_integrationName; }
59 template <typename IntegrationNameT = Aws::String>
60 void SetIntegrationName(IntegrationNameT&& value) {
61 m_integrationNameHasBeenSet = true;
62 m_integrationName = std::forward<IntegrationNameT>(value);
63 }
64 template <typename IntegrationNameT = Aws::String>
65 ModifyIntegrationResult& WithIntegrationName(IntegrationNameT&& value) {
66 SetIntegrationName(std::forward<IntegrationNameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
77 template <typename SourceArnT = Aws::String>
78 void SetSourceArn(SourceArnT&& value) {
79 m_sourceArnHasBeenSet = true;
80 m_sourceArn = std::forward<SourceArnT>(value);
81 }
82 template <typename SourceArnT = Aws::String>
84 SetSourceArn(std::forward<SourceArnT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
95 template <typename TargetArnT = Aws::String>
96 void SetTargetArn(TargetArnT&& value) {
97 m_targetArnHasBeenSet = true;
98 m_targetArn = std::forward<TargetArnT>(value);
99 }
100 template <typename TargetArnT = Aws::String>
102 SetTargetArn(std::forward<TargetArnT>(value));
103 return *this;
104 }
106
108
111 inline ZeroETLIntegrationStatus GetStatus() const { return m_status; }
113 m_statusHasBeenSet = true;
114 m_status = value;
115 }
117 SetStatus(value);
118 return *this;
119 }
121
123
126 inline const Aws::Vector<IntegrationError>& GetErrors() const { return m_errors; }
127 template <typename ErrorsT = Aws::Vector<IntegrationError>>
128 void SetErrors(ErrorsT&& value) {
129 m_errorsHasBeenSet = true;
130 m_errors = std::forward<ErrorsT>(value);
131 }
132 template <typename ErrorsT = Aws::Vector<IntegrationError>>
134 SetErrors(std::forward<ErrorsT>(value));
135 return *this;
136 }
137 template <typename ErrorsT = IntegrationError>
139 m_errorsHasBeenSet = true;
140 m_errors.emplace_back(std::forward<ErrorsT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
150 template <typename CreateTimeT = Aws::Utils::DateTime>
151 void SetCreateTime(CreateTimeT&& value) {
152 m_createTimeHasBeenSet = true;
153 m_createTime = std::forward<CreateTimeT>(value);
154 }
155 template <typename CreateTimeT = Aws::Utils::DateTime>
157 SetCreateTime(std::forward<CreateTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetDescription() const { return m_description; }
167 template <typename DescriptionT = Aws::String>
168 void SetDescription(DescriptionT&& value) {
169 m_descriptionHasBeenSet = true;
170 m_description = std::forward<DescriptionT>(value);
171 }
172 template <typename DescriptionT = Aws::String>
174 SetDescription(std::forward<DescriptionT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
185 template <typename KMSKeyIdT = Aws::String>
186 void SetKMSKeyId(KMSKeyIdT&& value) {
187 m_kMSKeyIdHasBeenSet = true;
188 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
189 }
190 template <typename KMSKeyIdT = Aws::String>
192 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
205 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
206 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
207 m_additionalEncryptionContextHasBeenSet = true;
208 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
209 }
210 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
211 ModifyIntegrationResult& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
212 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
213 return *this;
214 }
215 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
216 ModifyIntegrationResult& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key,
217 AdditionalEncryptionContextValueT&& value) {
218 m_additionalEncryptionContextHasBeenSet = true;
219 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
220 std::forward<AdditionalEncryptionContextValueT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
230 template <typename TagsT = Aws::Vector<Tag>>
231 void SetTags(TagsT&& value) {
232 m_tagsHasBeenSet = true;
233 m_tags = std::forward<TagsT>(value);
234 }
235 template <typename TagsT = Aws::Vector<Tag>>
237 SetTags(std::forward<TagsT>(value));
238 return *this;
239 }
240 template <typename TagsT = Tag>
242 m_tagsHasBeenSet = true;
243 m_tags.emplace_back(std::forward<TagsT>(value));
244 return *this;
245 }
247
249
250 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
251 template <typename ResponseMetadataT = ResponseMetadata>
252 void SetResponseMetadata(ResponseMetadataT&& value) {
253 m_responseMetadataHasBeenSet = true;
254 m_responseMetadata = std::forward<ResponseMetadataT>(value);
255 }
256 template <typename ResponseMetadataT = ResponseMetadata>
257 ModifyIntegrationResult& WithResponseMetadata(ResponseMetadataT&& value) {
258 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
259 return *this;
260 }
262 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
263
264 private:
265 Aws::String m_integrationArn;
266
267 Aws::String m_integrationName;
268
269 Aws::String m_sourceArn;
270
271 Aws::String m_targetArn;
272
274
276
277 Aws::Utils::DateTime m_createTime{};
278
279 Aws::String m_description;
280
281 Aws::String m_kMSKeyId;
282
283 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
284
285 Aws::Vector<Tag> m_tags;
286
287 ResponseMetadata m_responseMetadata;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_integrationArnHasBeenSet = false;
290 bool m_integrationNameHasBeenSet = false;
291 bool m_sourceArnHasBeenSet = false;
292 bool m_targetArnHasBeenSet = false;
293 bool m_statusHasBeenSet = false;
294 bool m_errorsHasBeenSet = false;
295 bool m_createTimeHasBeenSet = false;
296 bool m_descriptionHasBeenSet = false;
297 bool m_kMSKeyIdHasBeenSet = false;
298 bool m_additionalEncryptionContextHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300 bool m_responseMetadataHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace Redshift
305} // namespace Aws
AWS_REDSHIFT_API ModifyIntegrationResult()=default
ModifyIntegrationResult & WithIntegrationName(IntegrationNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
ModifyIntegrationResult & WithTargetArn(TargetArnT &&value)
ModifyIntegrationResult & WithStatus(ZeroETLIntegrationStatus value)
ModifyIntegrationResult & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
AWS_REDSHIFT_API ModifyIntegrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyIntegrationResult & AddErrors(ErrorsT &&value)
ModifyIntegrationResult & WithSourceArn(SourceArnT &&value)
ModifyIntegrationResult & AddTags(TagsT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
const Aws::Vector< IntegrationError > & GetErrors() const
ModifyIntegrationResult & WithTags(TagsT &&value)
ModifyIntegrationResult & WithResponseMetadata(ResponseMetadataT &&value)
ModifyIntegrationResult & WithIntegrationArn(IntegrationArnT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetStatus(ZeroETLIntegrationStatus value)
AWS_REDSHIFT_API ModifyIntegrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyIntegrationResult & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
ModifyIntegrationResult & WithErrors(ErrorsT &&value)
ModifyIntegrationResult & WithDescription(DescriptionT &&value)
ModifyIntegrationResult & WithCreateTime(CreateTimeT &&value)
ModifyIntegrationResult & WithKMSKeyId(KMSKeyIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument