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>
22namespace EventBridgeV2 {
34 AWS_EVENTBRIDGEV2_API
EventSourceSummary(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_EVENTBRIDGEV2_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename EventSourceArnT = Aws::String>
44 m_eventSourceArnHasBeenSet =
true;
45 m_eventSourceArn = std::forward<EventSourceArnT>(value);
47 template <
typename EventSourceArnT = Aws::String>
58 template <
typename NameT = Aws::String>
60 m_nameHasBeenSet =
true;
61 m_name = std::forward<NameT>(value);
63 template <
typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
74 template <
typename EventBusArnT = Aws::String>
76 m_eventBusArnHasBeenSet =
true;
77 m_eventBusArn = std::forward<EventBusArnT>(value);
79 template <
typename EventBusArnT = Aws::String>
91 m_typeHasBeenSet =
true;
105 m_stateHasBeenSet =
true;
123 m_revokedHasBeenSet =
true;
138 template <
typename CreationTimeT = Aws::Utils::DateTime>
140 m_creationTimeHasBeenSet =
true;
141 m_creationTime = std::forward<CreationTimeT>(value);
143 template <
typename CreationTimeT = Aws::Utils::DateTime>
156 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
158 m_lastModifiedTimeHasBeenSet =
true;
159 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
161 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
172 template <
typename EventSourceAccountIdT = Aws::String>
174 m_eventSourceAccountIdHasBeenSet =
true;
175 m_eventSourceAccountId = std::forward<EventSourceAccountIdT>(value);
177 template <
typename EventSourceAccountIdT = Aws::String>
194 bool m_revoked{
false};
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;
bool CreationTimeHasBeenSet() const
const Aws::String & GetEventSourceArn() const
bool EventSourceAccountIdHasBeenSet() const
EventSourceSummary & WithEventSourceArn(EventSourceArnT &&value)
const Aws::String & GetEventSourceAccountId() const
EventSourceSummary & WithEventSourceAccountId(EventSourceAccountIdT &&value)
AWS_EVENTBRIDGEV2_API EventSourceSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool EventBusArnHasBeenSet() const
const Aws::String & GetName() const
void SetEventBusArn(EventBusArnT &&value)
AWS_EVENTBRIDGEV2_API EventSourceSummary()=default
bool StateHasBeenSet() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
EventSourceSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
EventSourceType GetType() const
void SetEventSourceAccountId(EventSourceAccountIdT &&value)
EventSourceState GetState() const
EventSourceSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetEventBusArn() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetRevoked(bool value)
bool EventSourceArnHasBeenSet() const
void SetEventSourceArn(EventSourceArnT &&value)
AWS_EVENTBRIDGEV2_API EventSourceSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool LastModifiedTimeHasBeenSet() const
EventSourceSummary & WithState(EventSourceState value)
EventSourceSummary & WithType(EventSourceType value)
void SetCreationTime(CreationTimeT &&value)
void SetState(EventSourceState value)
void SetType(EventSourceType value)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventSourceSummary & WithRevoked(bool value)
bool RevokedHasBeenSet() const
bool TypeHasBeenSet() const
void SetName(NameT &&value)
bool NameHasBeenSet() const
EventSourceSummary & WithEventBusArn(EventBusArnT &&value)
EventSourceSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String