AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
EventSourceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/EventSourceState.h>
12#include <aws/eventbridgev2/model/EventSourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace EventBridgeV2 {
23namespace Model {
24
32 public:
33 AWS_EVENTBRIDGEV2_API EventSourceSummary() = default;
34 AWS_EVENTBRIDGEV2_API EventSourceSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API EventSourceSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
40 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
41 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
42 template <typename EventSourceArnT = Aws::String>
43 void SetEventSourceArn(EventSourceArnT&& value) {
44 m_eventSourceArnHasBeenSet = true;
45 m_eventSourceArn = std::forward<EventSourceArnT>(value);
46 }
47 template <typename EventSourceArnT = Aws::String>
48 EventSourceSummary& WithEventSourceArn(EventSourceArnT&& value) {
49 SetEventSourceArn(std::forward<EventSourceArnT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 EventSourceSummary& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
73 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
74 template <typename EventBusArnT = Aws::String>
75 void SetEventBusArn(EventBusArnT&& value) {
76 m_eventBusArnHasBeenSet = true;
77 m_eventBusArn = std::forward<EventBusArnT>(value);
78 }
79 template <typename EventBusArnT = Aws::String>
80 EventSourceSummary& WithEventBusArn(EventBusArnT&& value) {
81 SetEventBusArn(std::forward<EventBusArnT>(value));
82 return *this;
83 }
85
87
88 inline EventSourceType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(EventSourceType value) {
91 m_typeHasBeenSet = true;
92 m_type = value;
93 }
95 SetType(value);
96 return *this;
97 }
99
101
102 inline EventSourceState GetState() const { return m_state; }
103 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 inline void SetState(EventSourceState value) {
105 m_stateHasBeenSet = true;
106 m_state = value;
107 }
109 SetState(value);
110 return *this;
111 }
113
115
120 inline bool GetRevoked() const { return m_revoked; }
121 inline bool RevokedHasBeenSet() const { return m_revokedHasBeenSet; }
122 inline void SetRevoked(bool value) {
123 m_revokedHasBeenSet = true;
124 m_revoked = value;
125 }
126 inline EventSourceSummary& WithRevoked(bool value) {
127 SetRevoked(value);
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
137 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
138 template <typename CreationTimeT = Aws::Utils::DateTime>
139 void SetCreationTime(CreationTimeT&& value) {
140 m_creationTimeHasBeenSet = true;
141 m_creationTime = std::forward<CreationTimeT>(value);
142 }
143 template <typename CreationTimeT = Aws::Utils::DateTime>
144 EventSourceSummary& WithCreationTime(CreationTimeT&& value) {
145 SetCreationTime(std::forward<CreationTimeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
155 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
156 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
157 void SetLastModifiedTime(LastModifiedTimeT&& value) {
158 m_lastModifiedTimeHasBeenSet = true;
159 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
160 }
161 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
162 EventSourceSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
163 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
164 return *this;
165 }
167
169
170 inline const Aws::String& GetEventSourceAccountId() const { return m_eventSourceAccountId; }
171 inline bool EventSourceAccountIdHasBeenSet() const { return m_eventSourceAccountIdHasBeenSet; }
172 template <typename EventSourceAccountIdT = Aws::String>
173 void SetEventSourceAccountId(EventSourceAccountIdT&& value) {
174 m_eventSourceAccountIdHasBeenSet = true;
175 m_eventSourceAccountId = std::forward<EventSourceAccountIdT>(value);
176 }
177 template <typename EventSourceAccountIdT = Aws::String>
178 EventSourceSummary& WithEventSourceAccountId(EventSourceAccountIdT&& value) {
179 SetEventSourceAccountId(std::forward<EventSourceAccountIdT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_eventSourceArn;
185
186 Aws::String m_name;
187
188 Aws::String m_eventBusArn;
189
191
193
194 bool m_revoked{false};
195
196 Aws::Utils::DateTime m_creationTime{};
197
198 Aws::Utils::DateTime m_lastModifiedTime{};
199
200 Aws::String m_eventSourceAccountId;
201 bool m_eventSourceArnHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_eventBusArnHasBeenSet = false;
204 bool m_typeHasBeenSet = false;
205 bool m_stateHasBeenSet = false;
206 bool m_revokedHasBeenSet = false;
207 bool m_creationTimeHasBeenSet = false;
208 bool m_lastModifiedTimeHasBeenSet = false;
209 bool m_eventSourceAccountIdHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace EventBridgeV2
214} // namespace Aws
EventSourceSummary & WithEventSourceArn(EventSourceArnT &&value)
EventSourceSummary & WithEventSourceAccountId(EventSourceAccountIdT &&value)
AWS_EVENTBRIDGEV2_API EventSourceSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API EventSourceSummary()=default
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
EventSourceSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetEventSourceAccountId(EventSourceAccountIdT &&value)
EventSourceSummary & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetEventSourceArn(EventSourceArnT &&value)
AWS_EVENTBRIDGEV2_API EventSourceSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EventSourceSummary & WithState(EventSourceState value)
EventSourceSummary & WithType(EventSourceType value)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventSourceSummary & WithRevoked(bool value)
EventSourceSummary & WithEventBusArn(EventBusArnT &&value)
EventSourceSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String