AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
EventIntegration.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/appintegrations/model/EventFilter.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppIntegrationsService {
22namespace Model {
23
30 public:
31 AWS_APPINTEGRATIONSSERVICE_API EventIntegration() = default;
32 AWS_APPINTEGRATIONSSERVICE_API EventIntegration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPINTEGRATIONSSERVICE_API EventIntegration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEventIntegrationArn() const { return m_eventIntegrationArn; }
41 inline bool EventIntegrationArnHasBeenSet() const { return m_eventIntegrationArnHasBeenSet; }
42 template <typename EventIntegrationArnT = Aws::String>
43 void SetEventIntegrationArn(EventIntegrationArnT&& value) {
44 m_eventIntegrationArnHasBeenSet = true;
45 m_eventIntegrationArn = std::forward<EventIntegrationArnT>(value);
46 }
47 template <typename EventIntegrationArnT = Aws::String>
48 EventIntegration& WithEventIntegrationArn(EventIntegrationArnT&& value) {
49 SetEventIntegrationArn(std::forward<EventIntegrationArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 EventIntegration& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 EventIntegration& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
95 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
96 template <typename EventFilterT = EventFilter>
97 void SetEventFilter(EventFilterT&& value) {
98 m_eventFilterHasBeenSet = true;
99 m_eventFilter = std::forward<EventFilterT>(value);
100 }
101 template <typename EventFilterT = EventFilter>
102 EventIntegration& WithEventFilter(EventFilterT&& value) {
103 SetEventFilter(std::forward<EventFilterT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEventBridgeBus() const { return m_eventBridgeBus; }
113 inline bool EventBridgeBusHasBeenSet() const { return m_eventBridgeBusHasBeenSet; }
114 template <typename EventBridgeBusT = Aws::String>
115 void SetEventBridgeBus(EventBridgeBusT&& value) {
116 m_eventBridgeBusHasBeenSet = true;
117 m_eventBridgeBus = std::forward<EventBridgeBusT>(value);
118 }
119 template <typename EventBridgeBusT = Aws::String>
120 EventIntegration& WithEventBridgeBus(EventBridgeBusT&& value) {
121 SetEventBridgeBus(std::forward<EventBridgeBusT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 EventIntegration& WithTags(TagsT&& value) {
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 EventIntegration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_eventIntegrationArn;
152
153 Aws::String m_name;
154
155 Aws::String m_description;
156
157 EventFilter m_eventFilter;
158
159 Aws::String m_eventBridgeBus;
160
162 bool m_eventIntegrationArnHasBeenSet = false;
163 bool m_nameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_eventFilterHasBeenSet = false;
166 bool m_eventBridgeBusHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace AppIntegrationsService
172} // namespace Aws
AWS_APPINTEGRATIONSSERVICE_API EventIntegration()=default
EventIntegration & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPINTEGRATIONSSERVICE_API EventIntegration(Aws::Utils::Json::JsonView jsonValue)
void SetEventIntegrationArn(EventIntegrationArnT &&value)
EventIntegration & WithEventFilter(EventFilterT &&value)
EventIntegration & WithEventIntegrationArn(EventIntegrationArnT &&value)
AWS_APPINTEGRATIONSSERVICE_API EventIntegration & operator=(Aws::Utils::Json::JsonView jsonValue)
EventIntegration & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EventIntegration & WithEventBridgeBus(EventBridgeBusT &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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
Aws::Utils::Json::JsonValue JsonValue