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/BusState.h>
21namespace EventBridgeV2 {
33 AWS_EVENTBRIDGEV2_API
EventBusSummary(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
41 template <
typename NameT = Aws::String>
43 m_nameHasBeenSet =
true;
44 m_name = std::forward<NameT>(value);
46 template <
typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
57 template <
typename EventBusArnT = Aws::String>
59 m_eventBusArnHasBeenSet =
true;
60 m_eventBusArn = std::forward<EventBusArnT>(value);
62 template <
typename EventBusArnT = Aws::String>
73 template <
typename DescriptionT = Aws::String>
75 m_descriptionHasBeenSet =
true;
76 m_description = std::forward<DescriptionT>(value);
78 template <
typename DescriptionT = Aws::String>
91 template <
typename CreationTimeT = Aws::Utils::DateTime>
93 m_creationTimeHasBeenSet =
true;
94 m_creationTime = std::forward<CreationTimeT>(value);
96 template <
typename CreationTimeT = Aws::Utils::DateTime>
109 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
111 m_lastModifiedTimeHasBeenSet =
true;
112 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
114 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
126 m_stateHasBeenSet =
true;
139 template <
typename StateReasonT = Aws::String>
141 m_stateReasonHasBeenSet =
true;
142 m_stateReason = std::forward<StateReasonT>(value);
144 template <
typename StateReasonT = Aws::String>
155 template <
typename EventBusAccountIdT = Aws::String>
157 m_eventBusAccountIdHasBeenSet =
true;
158 m_eventBusAccountId = std::forward<EventBusAccountIdT>(value);
160 template <
typename EventBusAccountIdT = Aws::String>
182 bool m_nameHasBeenSet =
false;
183 bool m_eventBusArnHasBeenSet =
false;
184 bool m_descriptionHasBeenSet =
false;
185 bool m_creationTimeHasBeenSet =
false;
186 bool m_lastModifiedTimeHasBeenSet =
false;
187 bool m_stateHasBeenSet =
false;
188 bool m_stateReasonHasBeenSet =
false;
189 bool m_eventBusAccountIdHasBeenSet =
false;
EventBusSummary & WithName(NameT &&value)
void SetEventBusAccountId(EventBusAccountIdT &&value)
void SetStateReason(StateReasonT &&value)
AWS_EVENTBRIDGEV2_API EventBusSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EventBusSummary & WithDescription(DescriptionT &&value)
void SetEventBusArn(EventBusArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetStateReason() const
const Aws::Utils::DateTime & GetCreationTime() const
bool LastModifiedTimeHasBeenSet() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
BusState GetState() const
EventBusSummary & WithCreationTime(CreationTimeT &&value)
bool EventBusArnHasBeenSet() const
AWS_EVENTBRIDGEV2_API EventBusSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool StateHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
void SetDescription(DescriptionT &&value)
void SetState(BusState value)
EventBusSummary & WithState(BusState value)
EventBusSummary & WithEventBusArn(EventBusArnT &&value)
const Aws::String & GetName() const
EventBusSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
EventBusSummary & WithStateReason(StateReasonT &&value)
void SetName(NameT &&value)
AWS_EVENTBRIDGEV2_API EventBusSummary()=default
const Aws::String & GetEventBusAccountId() const
bool EventBusAccountIdHasBeenSet() const
EventBusSummary & WithEventBusAccountId(EventBusAccountIdT &&value)
bool StateReasonHasBeenSet() const
bool CreationTimeHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetEventBusArn() const
bool NameHasBeenSet() const
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String