AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
DescribeEventSourceResult.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/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/EventSourceConfiguration.h>
13#include <aws/eventbridgev2/model/EventSourceState.h>
14
15#include <utility>
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace EventBridgeV2 {
26namespace Model {
28 public:
29 AWS_EVENTBRIDGEV2_API DescribeEventSourceResult() = default;
32
34
35 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
36 template <typename EventSourceArnT = Aws::String>
37 void SetEventSourceArn(EventSourceArnT&& value) {
38 m_eventSourceArnHasBeenSet = true;
39 m_eventSourceArn = std::forward<EventSourceArnT>(value);
40 }
41 template <typename EventSourceArnT = Aws::String>
43 SetEventSourceArn(std::forward<EventSourceArnT>(value));
44 return *this;
45 }
47
49
50 inline const Aws::String& GetName() const { return m_name; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
65 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
66 template <typename EventBusArnT = Aws::String>
67 void SetEventBusArn(EventBusArnT&& value) {
68 m_eventBusArnHasBeenSet = true;
69 m_eventBusArn = std::forward<EventBusArnT>(value);
70 }
71 template <typename EventBusArnT = Aws::String>
73 SetEventBusArn(std::forward<EventBusArnT>(value));
74 return *this;
75 }
77
79
80 inline const EventSourceConfiguration& GetConfiguration() const { return m_configuration; }
81 template <typename ConfigurationT = EventSourceConfiguration>
82 void SetConfiguration(ConfigurationT&& value) {
83 m_configurationHasBeenSet = true;
84 m_configuration = std::forward<ConfigurationT>(value);
85 }
86 template <typename ConfigurationT = EventSourceConfiguration>
88 SetConfiguration(std::forward<ConfigurationT>(value));
89 return *this;
90 }
92
94
95 inline const Aws::String& GetDescription() const { return m_description; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
110 inline EventSourceState GetState() const { return m_state; }
111 inline void SetState(EventSourceState value) {
112 m_stateHasBeenSet = true;
113 m_state = value;
114 }
116 SetState(value);
117 return *this;
118 }
120
122
129 inline bool GetRevoked() const { return m_revoked; }
130 inline void SetRevoked(bool value) {
131 m_revokedHasBeenSet = true;
132 m_revoked = value;
133 }
135 SetRevoked(value);
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
145 template <typename CreationTimeT = Aws::Utils::DateTime>
146 void SetCreationTime(CreationTimeT&& value) {
147 m_creationTimeHasBeenSet = true;
148 m_creationTime = std::forward<CreationTimeT>(value);
149 }
150 template <typename CreationTimeT = Aws::Utils::DateTime>
152 SetCreationTime(std::forward<CreationTimeT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
162 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
163 void SetLastModifiedTime(LastModifiedTimeT&& value) {
164 m_lastModifiedTimeHasBeenSet = true;
165 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
166 }
167 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
169 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
170 return *this;
171 }
173
175
176 inline const Aws::String& GetRequestId() const { return m_requestId; }
177 template <typename RequestIdT = Aws::String>
178 void SetRequestId(RequestIdT&& value) {
179 m_requestIdHasBeenSet = true;
180 m_requestId = std::forward<RequestIdT>(value);
181 }
182 template <typename RequestIdT = Aws::String>
184 SetRequestId(std::forward<RequestIdT>(value));
185 return *this;
186 }
188 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
189
190 private:
191 Aws::String m_eventSourceArn;
192
193 Aws::String m_name;
194
195 Aws::String m_eventBusArn;
196
197 EventSourceConfiguration m_configuration;
198
199 Aws::String m_description;
200
202
203 bool m_revoked{false};
204
205 Aws::Utils::DateTime m_creationTime{};
206
207 Aws::Utils::DateTime m_lastModifiedTime{};
208
209 Aws::String m_requestId;
210 Aws::Http::HttpResponseCode m_HttpResponseCode;
211 bool m_eventSourceArnHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_eventBusArnHasBeenSet = false;
214 bool m_configurationHasBeenSet = false;
215 bool m_descriptionHasBeenSet = false;
216 bool m_stateHasBeenSet = false;
217 bool m_revokedHasBeenSet = false;
218 bool m_creationTimeHasBeenSet = false;
219 bool m_lastModifiedTimeHasBeenSet = false;
220 bool m_requestIdHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace EventBridgeV2
225} // namespace Aws
DescribeEventSourceResult & WithEventBusArn(EventBusArnT &&value)
DescribeEventSourceResult & WithEventSourceArn(EventSourceArnT &&value)
DescribeEventSourceResult & WithName(NameT &&value)
DescribeEventSourceResult & WithCreationTime(CreationTimeT &&value)
DescribeEventSourceResult & WithRequestId(RequestIdT &&value)
DescribeEventSourceResult & WithState(EventSourceState value)
const EventSourceConfiguration & GetConfiguration() const
AWS_EVENTBRIDGEV2_API DescribeEventSourceResult()=default
DescribeEventSourceResult & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGEV2_API DescribeEventSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeEventSourceResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_EVENTBRIDGEV2_API DescribeEventSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeEventSourceResult & WithConfiguration(ConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String