AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateEventBusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridgeRequest.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/DeadLetterConfig.h>
12#include <aws/eventbridge/model/LogConfig.h>
13#include <aws/eventbridge/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EventBridge {
19namespace Model {
20
24 public:
25 AWS_EVENTBRIDGE_API CreateEventBusRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateEventBus"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetEventSourceName() const { return m_eventSourceName; }
67 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
68 template <typename EventSourceNameT = Aws::String>
69 void SetEventSourceName(EventSourceNameT&& value) {
70 m_eventSourceNameHasBeenSet = true;
71 m_eventSourceName = std::forward<EventSourceNameT>(value);
72 }
73 template <typename EventSourceNameT = Aws::String>
74 CreateEventBusRequest& WithEventSourceName(EventSourceNameT&& value) {
75 SetEventSourceName(std::forward<EventSourceNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 CreateEventBusRequest& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
127 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
128 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
129 template <typename KmsKeyIdentifierT = Aws::String>
130 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
131 m_kmsKeyIdentifierHasBeenSet = true;
132 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
133 }
134 template <typename KmsKeyIdentifierT = Aws::String>
135 CreateEventBusRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
136 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
137 return *this;
138 }
140
142
143 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
144 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
145 template <typename DeadLetterConfigT = DeadLetterConfig>
146 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
147 m_deadLetterConfigHasBeenSet = true;
148 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
149 }
150 template <typename DeadLetterConfigT = DeadLetterConfig>
151 CreateEventBusRequest& WithDeadLetterConfig(DeadLetterConfigT&& value) {
152 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
153 return *this;
154 }
156
158
164 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
165 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
166 template <typename LogConfigT = LogConfig>
167 void SetLogConfig(LogConfigT&& value) {
168 m_logConfigHasBeenSet = true;
169 m_logConfig = std::forward<LogConfigT>(value);
170 }
171 template <typename LogConfigT = LogConfig>
173 SetLogConfig(std::forward<LogConfigT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template <typename TagsT = Aws::Vector<Tag>>
185 void SetTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags = std::forward<TagsT>(value);
188 }
189 template <typename TagsT = Aws::Vector<Tag>>
191 SetTags(std::forward<TagsT>(value));
192 return *this;
193 }
194 template <typename TagsT = Tag>
196 m_tagsHasBeenSet = true;
197 m_tags.emplace_back(std::forward<TagsT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_name;
203
204 Aws::String m_eventSourceName;
205
206 Aws::String m_description;
207
208 Aws::String m_kmsKeyIdentifier;
209
210 DeadLetterConfig m_deadLetterConfig;
211
212 LogConfig m_logConfig;
213
214 Aws::Vector<Tag> m_tags;
215 bool m_nameHasBeenSet = false;
216 bool m_eventSourceNameHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_kmsKeyIdentifierHasBeenSet = false;
219 bool m_deadLetterConfigHasBeenSet = false;
220 bool m_logConfigHasBeenSet = false;
221 bool m_tagsHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace EventBridge
226} // namespace Aws
CreateEventBusRequest & WithLogConfig(LogConfigT &&value)
AWS_EVENTBRIDGE_API CreateEventBusRequest()=default
CreateEventBusRequest & WithEventSourceName(EventSourceNameT &&value)
CreateEventBusRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateEventBusRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventBusRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateEventBusRequest & AddTags(TagsT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
CreateEventBusRequest & WithName(NameT &&value)
const DeadLetterConfig & GetDeadLetterConfig() const
CreateEventBusRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector