AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
DescribeEventBusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/DeadLetterConfig.h>
12#include <aws/eventbridge/model/LogConfig.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EventBridge {
26namespace Model {
28 public:
29 AWS_EVENTBRIDGE_API DescribeEventBusResult() = default;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetArn() const { return m_arn; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 DescribeEventBusResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
94 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
95 template <typename KmsKeyIdentifierT = Aws::String>
96 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
97 m_kmsKeyIdentifierHasBeenSet = true;
98 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
99 }
100 template <typename KmsKeyIdentifierT = Aws::String>
101 DescribeEventBusResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
102 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
103 return *this;
104 }
106
108
109 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
110 template <typename DeadLetterConfigT = DeadLetterConfig>
111 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
112 m_deadLetterConfigHasBeenSet = true;
113 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
114 }
115 template <typename DeadLetterConfigT = DeadLetterConfig>
116 DescribeEventBusResult& WithDeadLetterConfig(DeadLetterConfigT&& value) {
117 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetPolicy() const { return m_policy; }
128 template <typename PolicyT = Aws::String>
129 void SetPolicy(PolicyT&& value) {
130 m_policyHasBeenSet = true;
131 m_policy = std::forward<PolicyT>(value);
132 }
133 template <typename PolicyT = Aws::String>
135 SetPolicy(std::forward<PolicyT>(value));
136 return *this;
137 }
139
141
147 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
148 template <typename LogConfigT = LogConfig>
149 void SetLogConfig(LogConfigT&& value) {
150 m_logConfigHasBeenSet = true;
151 m_logConfig = std::forward<LogConfigT>(value);
152 }
153 template <typename LogConfigT = LogConfig>
155 SetLogConfig(std::forward<LogConfigT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
165 template <typename CreationTimeT = Aws::Utils::DateTime>
166 void SetCreationTime(CreationTimeT&& value) {
167 m_creationTimeHasBeenSet = true;
168 m_creationTime = std::forward<CreationTimeT>(value);
169 }
170 template <typename CreationTimeT = Aws::Utils::DateTime>
171 DescribeEventBusResult& WithCreationTime(CreationTimeT&& value) {
172 SetCreationTime(std::forward<CreationTimeT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
182 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
183 void SetLastModifiedTime(LastModifiedTimeT&& value) {
184 m_lastModifiedTimeHasBeenSet = true;
185 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
186 }
187 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
188 DescribeEventBusResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
189 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
190 return *this;
191 }
193
195
200 inline const Aws::String& GetManagedBy() const { return m_managedBy; }
201 template <typename ManagedByT = Aws::String>
202 void SetManagedBy(ManagedByT&& value) {
203 m_managedByHasBeenSet = true;
204 m_managedBy = std::forward<ManagedByT>(value);
205 }
206 template <typename ManagedByT = Aws::String>
208 SetManagedBy(std::forward<ManagedByT>(value));
209 return *this;
210 }
212
214
215 inline const Aws::String& GetRequestId() const { return m_requestId; }
216 template <typename RequestIdT = Aws::String>
217 void SetRequestId(RequestIdT&& value) {
218 m_requestIdHasBeenSet = true;
219 m_requestId = std::forward<RequestIdT>(value);
220 }
221 template <typename RequestIdT = Aws::String>
223 SetRequestId(std::forward<RequestIdT>(value));
224 return *this;
225 }
227 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
228
229 private:
230 Aws::String m_name;
231
232 Aws::String m_arn;
233
234 Aws::String m_description;
235
236 Aws::String m_kmsKeyIdentifier;
237
238 DeadLetterConfig m_deadLetterConfig;
239
240 Aws::String m_policy;
241
242 LogConfig m_logConfig;
243
244 Aws::Utils::DateTime m_creationTime{};
245
246 Aws::Utils::DateTime m_lastModifiedTime{};
247
248 Aws::String m_managedBy;
249
250 Aws::String m_requestId;
251 Aws::Http::HttpResponseCode m_HttpResponseCode;
252 bool m_nameHasBeenSet = false;
253 bool m_arnHasBeenSet = false;
254 bool m_descriptionHasBeenSet = false;
255 bool m_kmsKeyIdentifierHasBeenSet = false;
256 bool m_deadLetterConfigHasBeenSet = false;
257 bool m_policyHasBeenSet = false;
258 bool m_logConfigHasBeenSet = false;
259 bool m_creationTimeHasBeenSet = false;
260 bool m_lastModifiedTimeHasBeenSet = false;
261 bool m_managedByHasBeenSet = false;
262 bool m_requestIdHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace EventBridge
267} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_EVENTBRIDGE_API DescribeEventBusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEventBusResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeEventBusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEventBusResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeEventBusResult & WithDeadLetterConfig(DeadLetterConfigT &&value)
DescribeEventBusResult & WithName(NameT &&value)
DescribeEventBusResult & WithPolicy(PolicyT &&value)
DescribeEventBusResult & WithLogConfig(LogConfigT &&value)
DescribeEventBusResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
DescribeEventBusResult & WithDescription(DescriptionT &&value)
DescribeEventBusResult & WithArn(ArnT &&value)
DescribeEventBusResult & WithManagedBy(ManagedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EVENTBRIDGE_API DescribeEventBusResult()=default
DescribeEventBusResult & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue