AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateIntegrationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/GlueRequest.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/IntegrationConfig.h>
13#include <aws/glue/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API CreateIntegrationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateIntegration"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetIntegrationName() const { return m_integrationName; }
42 inline bool IntegrationNameHasBeenSet() const { return m_integrationNameHasBeenSet; }
43 template <typename IntegrationNameT = Aws::String>
44 void SetIntegrationName(IntegrationNameT&& value) {
45 m_integrationNameHasBeenSet = true;
46 m_integrationName = std::forward<IntegrationNameT>(value);
47 }
48 template <typename IntegrationNameT = Aws::String>
49 CreateIntegrationRequest& WithIntegrationName(IntegrationNameT&& value) {
50 SetIntegrationName(std::forward<IntegrationNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
60 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
61 template <typename SourceArnT = Aws::String>
62 void SetSourceArn(SourceArnT&& value) {
63 m_sourceArnHasBeenSet = true;
64 m_sourceArn = std::forward<SourceArnT>(value);
65 }
66 template <typename SourceArnT = Aws::String>
68 SetSourceArn(std::forward<SourceArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
78 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
79 template <typename TargetArnT = Aws::String>
80 void SetTargetArn(TargetArnT&& value) {
81 m_targetArnHasBeenSet = true;
82 m_targetArn = std::forward<TargetArnT>(value);
83 }
84 template <typename TargetArnT = Aws::String>
86 SetTargetArn(std::forward<TargetArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDataFilter() const { return m_dataFilter; }
114 inline bool DataFilterHasBeenSet() const { return m_dataFilterHasBeenSet; }
115 template <typename DataFilterT = Aws::String>
116 void SetDataFilter(DataFilterT&& value) {
117 m_dataFilterHasBeenSet = true;
118 m_dataFilter = std::forward<DataFilterT>(value);
119 }
120 template <typename DataFilterT = Aws::String>
122 SetDataFilter(std::forward<DataFilterT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
132 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
133 template <typename KmsKeyIdT = Aws::String>
134 void SetKmsKeyId(KmsKeyIdT&& value) {
135 m_kmsKeyIdHasBeenSet = true;
136 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
137 }
138 template <typename KmsKeyIdT = Aws::String>
140 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
152 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
153 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
154 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
155 m_additionalEncryptionContextHasBeenSet = true;
156 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
157 }
158 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
159 CreateIntegrationRequest& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
160 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
161 return *this;
162 }
163 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
164 CreateIntegrationRequest& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key,
165 AdditionalEncryptionContextValueT&& value) {
166 m_additionalEncryptionContextHasBeenSet = true;
167 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
168 std::forward<AdditionalEncryptionContextValueT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Vector<Tag>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Vector<Tag>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsT = Tag>
192 m_tagsHasBeenSet = true;
193 m_tags.emplace_back(std::forward<TagsT>(value));
194 return *this;
195 }
197
199
202 inline const IntegrationConfig& GetIntegrationConfig() const { return m_integrationConfig; }
203 inline bool IntegrationConfigHasBeenSet() const { return m_integrationConfigHasBeenSet; }
204 template <typename IntegrationConfigT = IntegrationConfig>
205 void SetIntegrationConfig(IntegrationConfigT&& value) {
206 m_integrationConfigHasBeenSet = true;
207 m_integrationConfig = std::forward<IntegrationConfigT>(value);
208 }
209 template <typename IntegrationConfigT = IntegrationConfig>
210 CreateIntegrationRequest& WithIntegrationConfig(IntegrationConfigT&& value) {
211 SetIntegrationConfig(std::forward<IntegrationConfigT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_integrationName;
217 bool m_integrationNameHasBeenSet = false;
218
219 Aws::String m_sourceArn;
220 bool m_sourceArnHasBeenSet = false;
221
222 Aws::String m_targetArn;
223 bool m_targetArnHasBeenSet = false;
224
225 Aws::String m_description;
226 bool m_descriptionHasBeenSet = false;
227
228 Aws::String m_dataFilter;
229 bool m_dataFilterHasBeenSet = false;
230
231 Aws::String m_kmsKeyId;
232 bool m_kmsKeyIdHasBeenSet = false;
233
234 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
235 bool m_additionalEncryptionContextHasBeenSet = false;
236
237 Aws::Vector<Tag> m_tags;
238 bool m_tagsHasBeenSet = false;
239
240 IntegrationConfig m_integrationConfig;
241 bool m_integrationConfigHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Glue
246} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
AWS_GLUE_API CreateIntegrationRequest()=default
CreateIntegrationRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateIntegrationRequest & WithIntegrationName(IntegrationNameT &&value)
CreateIntegrationRequest & WithDataFilter(DataFilterT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
CreateIntegrationRequest & WithIntegrationConfig(IntegrationConfigT &&value)
CreateIntegrationRequest & WithDescription(DescriptionT &&value)
CreateIntegrationRequest & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
CreateIntegrationRequest & WithTags(TagsT &&value)
CreateIntegrationRequest & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
CreateIntegrationRequest & WithTargetArn(TargetArnT &&value)
CreateIntegrationRequest & WithSourceArn(SourceArnT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
const IntegrationConfig & GetIntegrationConfig() const
void SetIntegrationConfig(IntegrationConfigT &&value)
CreateIntegrationRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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