AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventBusRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/model/DeadLetterConfig.h>
11#include <aws/eventbridge/model/LogConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/eventbridge/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EventBridge
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EVENTBRIDGE_API CreateEventBusRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateEventBus"; }
35
36 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
37
38 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 CreateEventBusRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
64 inline const Aws::String& GetEventSourceName() const { return m_eventSourceName; }
65 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
66 template<typename EventSourceNameT = Aws::String>
67 void SetEventSourceName(EventSourceNameT&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::forward<EventSourceNameT>(value); }
68 template<typename EventSourceNameT = Aws::String>
69 CreateEventBusRequest& WithEventSourceName(EventSourceNameT&& value) { SetEventSourceName(std::forward<EventSourceNameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateEventBusRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
113 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
114 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
115 template<typename KmsKeyIdentifierT = Aws::String>
116 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
117 template<typename KmsKeyIdentifierT = Aws::String>
118 CreateEventBusRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
120
122
123 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
124 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
125 template<typename DeadLetterConfigT = DeadLetterConfig>
126 void SetDeadLetterConfig(DeadLetterConfigT&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::forward<DeadLetterConfigT>(value); }
127 template<typename DeadLetterConfigT = DeadLetterConfig>
128 CreateEventBusRequest& WithDeadLetterConfig(DeadLetterConfigT&& value) { SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value)); return *this;}
130
132
138 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
139 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
140 template<typename LogConfigT = LogConfig>
141 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::forward<LogConfigT>(value); }
142 template<typename LogConfigT = LogConfig>
143 CreateEventBusRequest& WithLogConfig(LogConfigT&& value) { SetLogConfig(std::forward<LogConfigT>(value)); return *this;}
145
147
150 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template<typename TagsT = Aws::Vector<Tag>>
153 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
154 template<typename TagsT = Aws::Vector<Tag>>
155 CreateEventBusRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
156 template<typename TagsT = Tag>
157 CreateEventBusRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
159 private:
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_eventSourceName;
165 bool m_eventSourceNameHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 Aws::String m_kmsKeyIdentifier;
171 bool m_kmsKeyIdentifierHasBeenSet = false;
172
173 DeadLetterConfig m_deadLetterConfig;
174 bool m_deadLetterConfigHasBeenSet = false;
175
176 LogConfig m_logConfig;
177 bool m_logConfigHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace EventBridge
185} // 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