7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/Event.h>
38 AWS_HEALTH_API
EventDetails(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_HEALTH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
48 template <
typename EventT = Event>
50 m_eventHasBeenSet =
true;
51 m_event = std::forward<EventT>(value);
53 template <
typename EventT = Event>
55 SetEvent(std::forward<EventT>(value));
66 template <
typename EventDescriptionT = Aws::String>
68 m_eventDescriptionHasBeenSet =
true;
69 m_eventDescription = std::forward<EventDescriptionT>(value);
71 template <
typename EventDescriptionT = Aws::String>
84 template <
typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
86 m_eventMetadataHasBeenSet =
true;
87 m_eventMetadata = std::forward<EventMetadataT>(value);
89 template <
typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
94 template <
typename EventMetadataKeyT = Aws::String,
typename EventMetadataValueT = Aws::String>
96 m_eventMetadataHasBeenSet =
true;
97 m_eventMetadata.emplace(std::forward<EventMetadataKeyT>(key), std::forward<EventMetadataValueT>(value));
107 bool m_eventHasBeenSet =
false;
108 bool m_eventDescriptionHasBeenSet =
false;
109 bool m_eventMetadataHasBeenSet =
false;
bool EventMetadataHasBeenSet() const
void SetEvent(EventT &&value)
AWS_HEALTH_API EventDetails & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEventDescription(EventDescriptionT &&value)
bool EventHasBeenSet() const
const Aws::String & GetEventDescription() const
EventDetails & WithEventMetadata(EventMetadataT &&value)
bool EventDescriptionHasBeenSet() const
EventDetails & WithEvent(EventT &&value)
const Event & GetEvent() const
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventDetails & AddEventMetadata(EventMetadataKeyT &&key, EventMetadataValueT &&value)
AWS_HEALTH_API EventDetails(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEventMetadata(EventMetadataT &&value)
EventDetails & WithEventDescription(EventDescriptionT &&value)
AWS_HEALTH_API EventDetails()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String