AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
209
210 private:
211 Aws::String m_name;
212
213 Aws::String m_arn;
214
215 Aws::String m_description;
216
217 Aws::String m_kmsKeyIdentifier;
218
219 DeadLetterConfig m_deadLetterConfig;
220
221 Aws::String m_policy;
222
223 LogConfig m_logConfig;
224
225 Aws::Utils::DateTime m_creationTime{};
226
227 Aws::Utils::DateTime m_lastModifiedTime{};
228
229 Aws::String m_requestId;
230 Aws::Http::HttpResponseCode m_HttpResponseCode;
231 bool m_nameHasBeenSet = false;
232 bool m_arnHasBeenSet = false;
233 bool m_descriptionHasBeenSet = false;
234 bool m_kmsKeyIdentifierHasBeenSet = false;
235 bool m_deadLetterConfigHasBeenSet = false;
236 bool m_policyHasBeenSet = false;
237 bool m_logConfigHasBeenSet = false;
238 bool m_creationTimeHasBeenSet = false;
239 bool m_lastModifiedTimeHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace EventBridge
245} // 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)
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