AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
55 inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
56 inline EventDetails& WithEvent(const Event& value) { SetEvent(value); return *this;}
57 inline EventDetails& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
65 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
66 inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
67 inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
68 inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
69 inline EventDetails& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
70 inline EventDetails& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
71 inline EventDetails& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const{ return m_eventMetadata; }
79 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
80 inline void SetEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = value; }
81 inline void SetEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::move(value); }
83 inline EventDetails& WithEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetEventMetadata(std::move(value)); return *this;}
84 inline EventDetails& AddEventMetadata(const Aws::String& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
85 inline EventDetails& AddEventMetadata(Aws::String&& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
86 inline EventDetails& AddEventMetadata(const Aws::String& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
87 inline EventDetails& AddEventMetadata(Aws::String&& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), std::move(value)); return *this; }
88 inline EventDetails& AddEventMetadata(const char* key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
89 inline EventDetails& AddEventMetadata(Aws::String&& key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
90 inline EventDetails& AddEventMetadata(const char* key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
92 private:
93
94 Event m_event;
95 bool m_eventHasBeenSet = false;
96
97 Aws::String m_eventDescription;
98 bool m_eventDescriptionHasBeenSet = false;
99
101 bool m_eventMetadataHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Health
106} // namespace Aws
EventDetails & WithEventMetadata(const Aws::Map< Aws::String, Aws::String > &value)
EventDetails & AddEventMetadata(const Aws::String &key, Aws::String &&value)
EventDetails & WithEvent(Event &&value)
EventDetails & AddEventMetadata(const char *key, Aws::String &&value)
void SetEventMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetEventDescription() const
EventDetails & WithEvent(const Event &value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetEvent(const Event &value)
EventDetails & AddEventMetadata(Aws::String &&key, const char *value)
EventDetails & AddEventMetadata(const Aws::String &key, const Aws::String &value)
void SetEventDescription(const char *value)
const Event & GetEvent() const
EventDetails & AddEventMetadata(const char *key, const char *value)
AWS_HEALTH_API EventDetails(Aws::Utils::Json::JsonView jsonValue)
EventDetails & AddEventMetadata(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
void SetEventDescription(Aws::String &&value)
EventDetails & WithEventDescription(Aws::String &&value)
AWS_HEALTH_API EventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EventDetails & AddEventMetadata(Aws::String &&key, Aws::String &&value)
EventDetails & WithEventDescription(const Aws::String &value)
void SetEventDescription(const Aws::String &value)
EventDetails & WithEventMetadata(Aws::Map< Aws::String, Aws::String > &&value)
EventDetails & WithEventDescription(const char *value)
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