AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
12#include <aws/eventbridge/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EventBridge
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EVENTBRIDGE_API CreateEventBusRequest();
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 "CreateEventBus"; }
34
35 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
36
37 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline CreateEventBusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline CreateEventBusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline CreateEventBusRequest& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const Aws::String& GetEventSourceName() const{ return m_eventSourceName; }
66 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
67 inline void SetEventSourceName(const Aws::String& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
68 inline void SetEventSourceName(Aws::String&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); }
69 inline void SetEventSourceName(const char* value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName.assign(value); }
70 inline CreateEventBusRequest& WithEventSourceName(const Aws::String& value) { SetEventSourceName(value); return *this;}
71 inline CreateEventBusRequest& WithEventSourceName(Aws::String&& value) { SetEventSourceName(std::move(value)); return *this;}
72 inline CreateEventBusRequest& WithEventSourceName(const char* value) { SetEventSourceName(value); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline CreateEventBusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline CreateEventBusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline CreateEventBusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
117 inline const Aws::String& GetKmsKeyIdentifier() const{ return m_kmsKeyIdentifier; }
118 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
119 inline void SetKmsKeyIdentifier(const Aws::String& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = value; }
120 inline void SetKmsKeyIdentifier(Aws::String&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::move(value); }
121 inline void SetKmsKeyIdentifier(const char* value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier.assign(value); }
122 inline CreateEventBusRequest& WithKmsKeyIdentifier(const Aws::String& value) { SetKmsKeyIdentifier(value); return *this;}
123 inline CreateEventBusRequest& WithKmsKeyIdentifier(Aws::String&& value) { SetKmsKeyIdentifier(std::move(value)); return *this;}
124 inline CreateEventBusRequest& WithKmsKeyIdentifier(const char* value) { SetKmsKeyIdentifier(value); return *this;}
126
128
129 inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
130 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
131 inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
132 inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
134 inline CreateEventBusRequest& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
136
138
141 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline CreateEventBusRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 inline CreateEventBusRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreateEventBusRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
148 inline CreateEventBusRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
150 private:
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_eventSourceName;
156 bool m_eventSourceNameHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::String m_kmsKeyIdentifier;
162 bool m_kmsKeyIdentifierHasBeenSet = false;
163
164 DeadLetterConfig m_deadLetterConfig;
165 bool m_deadLetterConfigHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EventBridge
173} // namespace Aws
CreateEventBusRequest & AddTags(Tag &&value)
CreateEventBusRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEventBusRequest & WithName(Aws::String &&value)
CreateEventBusRequest & WithKmsKeyIdentifier(Aws::String &&value)
CreateEventBusRequest & AddTags(const Tag &value)
CreateEventBusRequest & WithEventSourceName(const Aws::String &value)
CreateEventBusRequest & WithDescription(const char *value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventBusRequest & WithDeadLetterConfig(DeadLetterConfig &&value)
void SetDeadLetterConfig(const DeadLetterConfig &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateEventBusRequest & WithName(const char *value)
CreateEventBusRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventBusRequest & WithName(const Aws::String &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
CreateEventBusRequest & WithDescription(Aws::String &&value)
CreateEventBusRequest & WithKmsKeyIdentifier(const Aws::String &value)
CreateEventBusRequest & WithEventSourceName(const char *value)
CreateEventBusRequest & WithEventSourceName(Aws::String &&value)
const DeadLetterConfig & GetDeadLetterConfig() const
CreateEventBusRequest & WithKmsKeyIdentifier(const char *value)
CreateEventBusRequest & WithDeadLetterConfig(const DeadLetterConfig &value)
CreateEventBusRequest & WithDescription(const Aws::String &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