AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
EventDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/health/Health_EXPORTS.h>
10#include <aws/health/model/Event.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health {
22namespace Model {
23
36 public:
37 AWS_HEALTH_API EventDetails() = default;
38 AWS_HEALTH_API EventDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Event& GetEvent() const { return m_event; }
47 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
48 template <typename EventT = Event>
49 void SetEvent(EventT&& value) {
50 m_eventHasBeenSet = true;
51 m_event = std::forward<EventT>(value);
52 }
53 template <typename EventT = Event>
54 EventDetails& WithEvent(EventT&& value) {
55 SetEvent(std::forward<EventT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
65 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
66 template <typename EventDescriptionT = Aws::String>
67 void SetEventDescription(EventDescriptionT&& value) {
68 m_eventDescriptionHasBeenSet = true;
69 m_eventDescription = std::forward<EventDescriptionT>(value);
70 }
71 template <typename EventDescriptionT = Aws::String>
72 EventDetails& WithEventDescription(EventDescriptionT&& value) {
73 SetEventDescription(std::forward<EventDescriptionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const { return m_eventMetadata; }
83 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
84 template <typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
85 void SetEventMetadata(EventMetadataT&& value) {
86 m_eventMetadataHasBeenSet = true;
87 m_eventMetadata = std::forward<EventMetadataT>(value);
88 }
89 template <typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
90 EventDetails& WithEventMetadata(EventMetadataT&& value) {
91 SetEventMetadata(std::forward<EventMetadataT>(value));
92 return *this;
93 }
94 template <typename EventMetadataKeyT = Aws::String, typename EventMetadataValueT = Aws::String>
95 EventDetails& AddEventMetadata(EventMetadataKeyT&& key, EventMetadataValueT&& value) {
96 m_eventMetadataHasBeenSet = true;
97 m_eventMetadata.emplace(std::forward<EventMetadataKeyT>(key), std::forward<EventMetadataValueT>(value));
98 return *this;
99 }
101 private:
102 Event m_event;
103
104 Aws::String m_eventDescription;
105
107 bool m_eventHasBeenSet = false;
108 bool m_eventDescriptionHasBeenSet = false;
109 bool m_eventMetadataHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Health
114} // namespace Aws
void SetEvent(EventT &&value)
void SetEventDescription(EventDescriptionT &&value)
const Aws::String & GetEventDescription() const
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
EventDetails & WithEventMetadata(EventMetadataT &&value)
EventDetails & WithEvent(EventT &&value)
const Event & GetEvent() const
AWS_HEALTH_API EventDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
EventDetails & AddEventMetadata(EventMetadataKeyT &&key, EventMetadataValueT &&value)
AWS_HEALTH_API EventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue