AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateEventIntegrationRequest.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsServiceRequest.h>
8#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
9#include <aws/appintegrations/model/EventFilter.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppIntegrationsService {
18namespace Model {
19
23 public:
24 AWS_APPINTEGRATIONSSERVICE_API CreateEventIntegrationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateEventIntegration"; }
31
32 AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
75 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
76 template <typename EventFilterT = EventFilter>
77 void SetEventFilter(EventFilterT&& value) {
78 m_eventFilterHasBeenSet = true;
79 m_eventFilter = std::forward<EventFilterT>(value);
80 }
81 template <typename EventFilterT = EventFilter>
83 SetEventFilter(std::forward<EventFilterT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetEventBridgeBus() const { return m_eventBridgeBus; }
93 inline bool EventBridgeBusHasBeenSet() const { return m_eventBridgeBusHasBeenSet; }
94 template <typename EventBridgeBusT = Aws::String>
95 void SetEventBridgeBus(EventBridgeBusT&& value) {
96 m_eventBridgeBusHasBeenSet = true;
97 m_eventBridgeBus = std::forward<EventBridgeBusT>(value);
98 }
99 template <typename EventBridgeBusT = Aws::String>
101 SetEventBridgeBus(std::forward<EventBridgeBusT>(value));
102 return *this;
103 }
105
107
114 inline const Aws::String& GetClientToken() const { return m_clientToken; }
115 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
116 template <typename ClientTokenT = Aws::String>
117 void SetClientToken(ClientTokenT&& value) {
118 m_clientTokenHasBeenSet = true;
119 m_clientToken = std::forward<ClientTokenT>(value);
120 }
121 template <typename ClientTokenT = Aws::String>
123 SetClientToken(std::forward<ClientTokenT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 CreateEventIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
155 Aws::String m_description;
156
157 EventFilter m_eventFilter;
158
159 Aws::String m_eventBridgeBus;
160
162
164 bool m_nameHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_eventFilterHasBeenSet = false;
167 bool m_eventBridgeBusHasBeenSet = false;
168 bool m_clientTokenHasBeenSet = true;
169 bool m_tagsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace AppIntegrationsService
174} // namespace Aws
CreateEventIntegrationRequest & WithClientToken(ClientTokenT &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override
CreateEventIntegrationRequest & WithEventBridgeBus(EventBridgeBusT &&value)
CreateEventIntegrationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEventIntegrationRequest & WithEventFilter(EventFilterT &&value)
CreateEventIntegrationRequest & WithDescription(DescriptionT &&value)
AWS_APPINTEGRATIONSSERVICE_API CreateEventIntegrationRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
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