AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateEventSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridgev2/EventBridgeV2Request.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/EventSourceConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EventBridgeV2 {
18namespace Model {
19
23 public:
24 AWS_EVENTBRIDGEV2_API CreateEventSourceRequest() = 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 "CreateEventSource"; }
31
32 AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
33
34 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
39 AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override;
40
42
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
60 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
61 template <typename EventBusArnT = Aws::String>
62 void SetEventBusArn(EventBusArnT&& value) {
63 m_eventBusArnHasBeenSet = true;
64 m_eventBusArn = std::forward<EventBusArnT>(value);
65 }
66 template <typename EventBusArnT = Aws::String>
68 SetEventBusArn(std::forward<EventBusArnT>(value));
69 return *this;
70 }
72
74
75 inline const EventSourceConfiguration& GetConfiguration() const { return m_configuration; }
76 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
77 template <typename ConfigurationT = EventSourceConfiguration>
78 void SetConfiguration(ConfigurationT&& value) {
79 m_configurationHasBeenSet = true;
80 m_configuration = std::forward<ConfigurationT>(value);
81 }
82 template <typename ConfigurationT = EventSourceConfiguration>
84 SetConfiguration(std::forward<ConfigurationT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
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) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 CreateEventSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_name;
144
145 Aws::String m_eventBusArn;
146
147 EventSourceConfiguration m_configuration;
148
149 Aws::String m_description;
150
152
154 bool m_nameHasBeenSet = false;
155 bool m_eventBusArnHasBeenSet = false;
156 bool m_configurationHasBeenSet = false;
157 bool m_descriptionHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159 bool m_clientTokenHasBeenSet = true;
160};
161
162} // namespace Model
163} // namespace EventBridgeV2
164} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
CreateEventSourceRequest & WithConfiguration(ConfigurationT &&value)
CreateEventSourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
CreateEventSourceRequest & WithTags(TagsT &&value)
CreateEventSourceRequest & WithName(NameT &&value)
AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
AWS_EVENTBRIDGEV2_API CreateEventSourceRequest()=default
CreateEventSourceRequest & WithEventBusArn(EventBusArnT &&value)
CreateEventSourceRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const EventSourceConfiguration & GetConfiguration() const
CreateEventSourceRequest & WithClientToken(ClientTokenT &&value)
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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