AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateEventBusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/DeadLetterConfig.h>
11#include <aws/eventbridge/model/LogConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EventBridge {
17namespace Model {
18
22 public:
23 AWS_EVENTBRIDGE_API UpdateEventBusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventBus"; }
30
31 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
32
33 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
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
82 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
83 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
84 template <typename KmsKeyIdentifierT = Aws::String>
85 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
86 m_kmsKeyIdentifierHasBeenSet = true;
87 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
88 }
89 template <typename KmsKeyIdentifierT = Aws::String>
90 UpdateEventBusRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
91 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 UpdateEventBusRequest& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
116 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
117 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
118 template <typename DeadLetterConfigT = DeadLetterConfig>
119 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
120 m_deadLetterConfigHasBeenSet = true;
121 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
122 }
123 template <typename DeadLetterConfigT = DeadLetterConfig>
124 UpdateEventBusRequest& WithDeadLetterConfig(DeadLetterConfigT&& value) {
125 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
126 return *this;
127 }
129
131
137 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
138 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
139 template <typename LogConfigT = LogConfig>
140 void SetLogConfig(LogConfigT&& value) {
141 m_logConfigHasBeenSet = true;
142 m_logConfig = std::forward<LogConfigT>(value);
143 }
144 template <typename LogConfigT = LogConfig>
146 SetLogConfig(std::forward<LogConfigT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_name;
152
153 Aws::String m_kmsKeyIdentifier;
154
155 Aws::String m_description;
156
157 DeadLetterConfig m_deadLetterConfig;
158
159 LogConfig m_logConfig;
160 bool m_nameHasBeenSet = false;
161 bool m_kmsKeyIdentifierHasBeenSet = false;
162 bool m_descriptionHasBeenSet = false;
163 bool m_deadLetterConfigHasBeenSet = false;
164 bool m_logConfigHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace EventBridge
169} // namespace Aws
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEventBusRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
AWS_EVENTBRIDGE_API UpdateEventBusRequest()=default
UpdateEventBusRequest & WithDescription(DescriptionT &&value)
UpdateEventBusRequest & WithLogConfig(LogConfigT &&value)
virtual const char * GetServiceRequestName() const override
const DeadLetterConfig & GetDeadLetterConfig() const
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
UpdateEventBusRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
UpdateEventBusRequest & WithName(NameT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String