AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PutIntegrationRequest.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/customer-profiles/CustomerProfilesRequest.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/FlowDefinition.h>
13#include <aws/customer-profiles/model/Scope.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CustomerProfiles {
19namespace Model {
20
24 public:
25 AWS_CUSTOMERPROFILES_API PutIntegrationRequest() = 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 "PutIntegration"; }
32
33 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDomainName() const { return m_domainName; }
40 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
41 template <typename DomainNameT = Aws::String>
42 void SetDomainName(DomainNameT&& value) {
43 m_domainNameHasBeenSet = true;
44 m_domainName = std::forward<DomainNameT>(value);
45 }
46 template <typename DomainNameT = Aws::String>
47 PutIntegrationRequest& WithDomainName(DomainNameT&& value) {
48 SetDomainName(std::forward<DomainNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUri() const { return m_uri; }
58 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
59 template <typename UriT = Aws::String>
60 void SetUri(UriT&& value) {
61 m_uriHasBeenSet = true;
62 m_uri = std::forward<UriT>(value);
63 }
64 template <typename UriT = Aws::String>
66 SetUri(std::forward<UriT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetObjectTypeName() const { return m_objectTypeName; }
76 inline bool ObjectTypeNameHasBeenSet() const { return m_objectTypeNameHasBeenSet; }
77 template <typename ObjectTypeNameT = Aws::String>
78 void SetObjectTypeName(ObjectTypeNameT&& value) {
79 m_objectTypeNameHasBeenSet = true;
80 m_objectTypeName = std::forward<ObjectTypeNameT>(value);
81 }
82 template <typename ObjectTypeNameT = Aws::String>
83 PutIntegrationRequest& WithObjectTypeName(ObjectTypeNameT&& value) {
84 SetObjectTypeName(std::forward<ObjectTypeNameT>(value));
85 return *this;
86 }
88
90
99 inline const Aws::Map<Aws::String, Aws::String>& GetObjectTypeNames() const { return m_objectTypeNames; }
100 inline bool ObjectTypeNamesHasBeenSet() const { return m_objectTypeNamesHasBeenSet; }
101 template <typename ObjectTypeNamesT = Aws::Map<Aws::String, Aws::String>>
102 void SetObjectTypeNames(ObjectTypeNamesT&& value) {
103 m_objectTypeNamesHasBeenSet = true;
104 m_objectTypeNames = std::forward<ObjectTypeNamesT>(value);
105 }
106 template <typename ObjectTypeNamesT = Aws::Map<Aws::String, Aws::String>>
107 PutIntegrationRequest& WithObjectTypeNames(ObjectTypeNamesT&& value) {
108 SetObjectTypeNames(std::forward<ObjectTypeNamesT>(value));
109 return *this;
110 }
111 template <typename ObjectTypeNamesKeyT = Aws::String, typename ObjectTypeNamesValueT = Aws::String>
112 PutIntegrationRequest& AddObjectTypeNames(ObjectTypeNamesKeyT&& key, ObjectTypeNamesValueT&& value) {
113 m_objectTypeNamesHasBeenSet = true;
114 m_objectTypeNames.emplace(std::forward<ObjectTypeNamesKeyT>(key), std::forward<ObjectTypeNamesValueT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
136 PutIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
139 return *this;
140 }
142
144
148 inline const FlowDefinition& GetFlowDefinition() const { return m_flowDefinition; }
149 inline bool FlowDefinitionHasBeenSet() const { return m_flowDefinitionHasBeenSet; }
150 template <typename FlowDefinitionT = FlowDefinition>
151 void SetFlowDefinition(FlowDefinitionT&& value) {
152 m_flowDefinitionHasBeenSet = true;
153 m_flowDefinition = std::forward<FlowDefinitionT>(value);
154 }
155 template <typename FlowDefinitionT = FlowDefinition>
156 PutIntegrationRequest& WithFlowDefinition(FlowDefinitionT&& value) {
157 SetFlowDefinition(std::forward<FlowDefinitionT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
168 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
169 template <typename RoleArnT = Aws::String>
170 void SetRoleArn(RoleArnT&& value) {
171 m_roleArnHasBeenSet = true;
172 m_roleArn = std::forward<RoleArnT>(value);
173 }
174 template <typename RoleArnT = Aws::String>
176 SetRoleArn(std::forward<RoleArnT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::Vector<Aws::String>& GetEventTriggerNames() const { return m_eventTriggerNames; }
187 inline bool EventTriggerNamesHasBeenSet() const { return m_eventTriggerNamesHasBeenSet; }
188 template <typename EventTriggerNamesT = Aws::Vector<Aws::String>>
189 void SetEventTriggerNames(EventTriggerNamesT&& value) {
190 m_eventTriggerNamesHasBeenSet = true;
191 m_eventTriggerNames = std::forward<EventTriggerNamesT>(value);
192 }
193 template <typename EventTriggerNamesT = Aws::Vector<Aws::String>>
194 PutIntegrationRequest& WithEventTriggerNames(EventTriggerNamesT&& value) {
195 SetEventTriggerNames(std::forward<EventTriggerNamesT>(value));
196 return *this;
197 }
198 template <typename EventTriggerNamesT = Aws::String>
199 PutIntegrationRequest& AddEventTriggerNames(EventTriggerNamesT&& value) {
200 m_eventTriggerNamesHasBeenSet = true;
201 m_eventTriggerNames.emplace_back(std::forward<EventTriggerNamesT>(value));
202 return *this;
203 }
205
207
212 inline Scope GetScope() const { return m_scope; }
213 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
214 inline void SetScope(Scope value) {
215 m_scopeHasBeenSet = true;
216 m_scope = value;
217 }
219 SetScope(value);
220 return *this;
221 }
223 private:
224 Aws::String m_domainName;
225
226 Aws::String m_uri;
227
228 Aws::String m_objectTypeName;
229
230 Aws::Map<Aws::String, Aws::String> m_objectTypeNames;
231
233
234 FlowDefinition m_flowDefinition;
235
236 Aws::String m_roleArn;
237
238 Aws::Vector<Aws::String> m_eventTriggerNames;
239
240 Scope m_scope{Scope::NOT_SET};
241 bool m_domainNameHasBeenSet = false;
242 bool m_uriHasBeenSet = false;
243 bool m_objectTypeNameHasBeenSet = false;
244 bool m_objectTypeNamesHasBeenSet = false;
245 bool m_tagsHasBeenSet = false;
246 bool m_flowDefinitionHasBeenSet = false;
247 bool m_roleArnHasBeenSet = false;
248 bool m_eventTriggerNamesHasBeenSet = false;
249 bool m_scopeHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace CustomerProfiles
254} // namespace Aws
PutIntegrationRequest & WithRoleArn(RoleArnT &&value)
PutIntegrationRequest & WithFlowDefinition(FlowDefinitionT &&value)
PutIntegrationRequest & WithObjectTypeNames(ObjectTypeNamesT &&value)
const Aws::Vector< Aws::String > & GetEventTriggerNames() const
PutIntegrationRequest & WithEventTriggerNames(EventTriggerNamesT &&value)
PutIntegrationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutIntegrationRequest & WithObjectTypeName(ObjectTypeNameT &&value)
PutIntegrationRequest & WithDomainName(DomainNameT &&value)
PutIntegrationRequest & AddEventTriggerNames(EventTriggerNamesT &&value)
AWS_CUSTOMERPROFILES_API PutIntegrationRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Map< Aws::String, Aws::String > & GetObjectTypeNames() const
PutIntegrationRequest & AddObjectTypeNames(ObjectTypeNamesKeyT &&key, ObjectTypeNamesValueT &&value)
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