AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventIntegration.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appintegrations/model/EventFilter.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppIntegrationsService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APPINTEGRATIONSSERVICE_API EventIntegration() = default;
37 AWS_APPINTEGRATIONSSERVICE_API EventIntegration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPINTEGRATIONSSERVICE_API EventIntegration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetEventIntegrationArn() const { return m_eventIntegrationArn; }
47 inline bool EventIntegrationArnHasBeenSet() const { return m_eventIntegrationArnHasBeenSet; }
48 template<typename EventIntegrationArnT = Aws::String>
49 void SetEventIntegrationArn(EventIntegrationArnT&& value) { m_eventIntegrationArnHasBeenSet = true; m_eventIntegrationArn = std::forward<EventIntegrationArnT>(value); }
50 template<typename EventIntegrationArnT = Aws::String>
51 EventIntegration& WithEventIntegrationArn(EventIntegrationArnT&& value) { SetEventIntegrationArn(std::forward<EventIntegrationArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 EventIntegration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 EventIntegration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
83 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
84 template<typename EventFilterT = EventFilter>
85 void SetEventFilter(EventFilterT&& value) { m_eventFilterHasBeenSet = true; m_eventFilter = std::forward<EventFilterT>(value); }
86 template<typename EventFilterT = EventFilter>
87 EventIntegration& WithEventFilter(EventFilterT&& value) { SetEventFilter(std::forward<EventFilterT>(value)); return *this;}
89
91
94 inline const Aws::String& GetEventBridgeBus() const { return m_eventBridgeBus; }
95 inline bool EventBridgeBusHasBeenSet() const { return m_eventBridgeBusHasBeenSet; }
96 template<typename EventBridgeBusT = Aws::String>
97 void SetEventBridgeBus(EventBridgeBusT&& value) { m_eventBridgeBusHasBeenSet = true; m_eventBridgeBus = std::forward<EventBridgeBusT>(value); }
98 template<typename EventBridgeBusT = Aws::String>
99 EventIntegration& WithEventBridgeBus(EventBridgeBusT&& value) { SetEventBridgeBus(std::forward<EventBridgeBusT>(value)); return *this;}
101
103
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 EventIntegration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 EventIntegration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118 private:
119
120 Aws::String m_eventIntegrationArn;
121 bool m_eventIntegrationArnHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 EventFilter m_eventFilter;
130 bool m_eventFilterHasBeenSet = false;
131
132 Aws::String m_eventBridgeBus;
133 bool m_eventBridgeBusHasBeenSet = false;
134
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace AppIntegrationsService
141} // 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