AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
EventDetails.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/health/model/Event.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Health
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_HEALTH_API EventDetails() = default;
43 AWS_HEALTH_API EventDetails(Aws::Utils::Json::JsonView jsonValue);
45 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Event& GetEvent() const { return m_event; }
53 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
54 template<typename EventT = Event>
55 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
56 template<typename EventT = Event>
57 EventDetails& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
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) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::forward<EventDescriptionT>(value); }
68 template<typename EventDescriptionT = Aws::String>
69 EventDetails& WithEventDescription(EventDescriptionT&& value) { SetEventDescription(std::forward<EventDescriptionT>(value)); return *this;}
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const { return m_eventMetadata; }
77 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
78 template<typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
79 void SetEventMetadata(EventMetadataT&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::forward<EventMetadataT>(value); }
80 template<typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
81 EventDetails& WithEventMetadata(EventMetadataT&& value) { SetEventMetadata(std::forward<EventMetadataT>(value)); return *this;}
82 template<typename EventMetadataKeyT = Aws::String, typename EventMetadataValueT = Aws::String>
83 EventDetails& AddEventMetadata(EventMetadataKeyT&& key, EventMetadataValueT&& value) {
84 m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::forward<EventMetadataKeyT>(key), std::forward<EventMetadataValueT>(value)); return *this;
85 }
87 private:
88
89 Event m_event;
90 bool m_eventHasBeenSet = false;
91
92 Aws::String m_eventDescription;
93 bool m_eventDescriptionHasBeenSet = false;
94
96 bool m_eventMetadataHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Health
101} // 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