AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventIntegrationRequest.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/appintegrations/AppIntegrationsServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appintegrations/model/EventFilter.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace AppIntegrationsService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPINTEGRATIONSSERVICE_API CreateEventIntegrationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEventIntegration"; }
34
35 AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateEventIntegrationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateEventIntegrationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
67 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
68 template<typename EventFilterT = EventFilter>
69 void SetEventFilter(EventFilterT&& value) { m_eventFilterHasBeenSet = true; m_eventFilter = std::forward<EventFilterT>(value); }
70 template<typename EventFilterT = EventFilter>
71 CreateEventIntegrationRequest& WithEventFilter(EventFilterT&& value) { SetEventFilter(std::forward<EventFilterT>(value)); return *this;}
73
75
78 inline const Aws::String& GetEventBridgeBus() const { return m_eventBridgeBus; }
79 inline bool EventBridgeBusHasBeenSet() const { return m_eventBridgeBusHasBeenSet; }
80 template<typename EventBridgeBusT = Aws::String>
81 void SetEventBridgeBus(EventBridgeBusT&& value) { m_eventBridgeBusHasBeenSet = true; m_eventBridgeBus = std::forward<EventBridgeBusT>(value); }
82 template<typename EventBridgeBusT = Aws::String>
83 CreateEventIntegrationRequest& WithEventBridgeBus(EventBridgeBusT&& value) { SetEventBridgeBus(std::forward<EventBridgeBusT>(value)); return *this;}
85
87
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template<typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
98 template<typename ClientTokenT = Aws::String>
99 CreateEventIntegrationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(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 CreateEventIntegrationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 CreateEventIntegrationRequest& 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_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 EventFilter m_eventFilter;
127 bool m_eventFilterHasBeenSet = false;
128
129 Aws::String m_eventBridgeBus;
130 bool m_eventBridgeBusHasBeenSet = false;
131
133 bool m_clientTokenHasBeenSet = true;
134
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace AppIntegrationsService
141} // 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