AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateEventBusRequest.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/EncryptionConfiguration.h>
13#include <aws/eventbridgev2/model/StorageConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EventBridgeV2 {
19namespace Model {
20
24 public:
25 AWS_EVENTBRIDGEV2_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_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 CreateEventBusRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
71 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
72 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
73 template <typename EncryptionConfigurationT = EncryptionConfiguration>
74 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
75 m_encryptionConfigurationHasBeenSet = true;
76 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
77 }
78 template <typename EncryptionConfigurationT = EncryptionConfiguration>
79 CreateEventBusRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
80 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
81 return *this;
82 }
84
86
87 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
88 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
89 template <typename StorageConfigurationT = StorageConfiguration>
90 void SetStorageConfiguration(StorageConfigurationT&& value) {
91 m_storageConfigurationHasBeenSet = true;
92 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
93 }
94 template <typename StorageConfigurationT = StorageConfiguration>
95 CreateEventBusRequest& WithStorageConfiguration(StorageConfigurationT&& value) {
96 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 CreateEventBusRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetClientToken() const { return m_clientToken; }
126 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
127 template <typename ClientTokenT = Aws::String>
128 void SetClientToken(ClientTokenT&& value) {
129 m_clientTokenHasBeenSet = true;
130 m_clientToken = std::forward<ClientTokenT>(value);
131 }
132 template <typename ClientTokenT = Aws::String>
133 CreateEventBusRequest& WithClientToken(ClientTokenT&& value) {
134 SetClientToken(std::forward<ClientTokenT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
143 EncryptionConfiguration m_encryptionConfiguration;
144
145 StorageConfiguration m_storageConfiguration;
146
148
150 bool m_nameHasBeenSet = false;
151 bool m_descriptionHasBeenSet = false;
152 bool m_encryptionConfigurationHasBeenSet = false;
153 bool m_storageConfigurationHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155 bool m_clientTokenHasBeenSet = true;
156};
157
158} // namespace Model
159} // namespace EventBridgeV2
160} // namespace Aws
CreateEventBusRequest & WithStorageConfiguration(StorageConfigurationT &&value)
CreateEventBusRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
void SetStorageConfiguration(StorageConfigurationT &&value)
CreateEventBusRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateEventBusRequest & WithTags(TagsT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_EVENTBRIDGEV2_API CreateEventBusRequest()=default
CreateEventBusRequest & WithClientToken(ClientTokenT &&value)
const StorageConfiguration & GetStorageConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateEventBusRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventBusRequest & WithDescription(DescriptionT &&value)
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