AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
OrganizationEventDetails.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 OrganizationEventDetails() = default;
40 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
48 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 template <typename AwsAccountIdT = Aws::String>
50 void SetAwsAccountId(AwsAccountIdT&& value) {
51 m_awsAccountIdHasBeenSet = true;
52 m_awsAccountId = std::forward<AwsAccountIdT>(value);
53 }
54 template <typename AwsAccountIdT = Aws::String>
56 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
57 return *this;
58 }
60
62
63 inline const Event& GetEvent() const { return m_event; }
64 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
65 template <typename EventT = Event>
66 void SetEvent(EventT&& value) {
67 m_eventHasBeenSet = true;
68 m_event = std::forward<EventT>(value);
69 }
70 template <typename EventT = Event>
72 SetEvent(std::forward<EventT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
80 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
81 template <typename EventDescriptionT = Aws::String>
82 void SetEventDescription(EventDescriptionT&& value) {
83 m_eventDescriptionHasBeenSet = true;
84 m_eventDescription = std::forward<EventDescriptionT>(value);
85 }
86 template <typename EventDescriptionT = Aws::String>
87 OrganizationEventDetails& WithEventDescription(EventDescriptionT&& value) {
88 SetEventDescription(std::forward<EventDescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const { return m_eventMetadata; }
98 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
99 template <typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
100 void SetEventMetadata(EventMetadataT&& value) {
101 m_eventMetadataHasBeenSet = true;
102 m_eventMetadata = std::forward<EventMetadataT>(value);
103 }
104 template <typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
106 SetEventMetadata(std::forward<EventMetadataT>(value));
107 return *this;
108 }
109 template <typename EventMetadataKeyT = Aws::String, typename EventMetadataValueT = Aws::String>
110 OrganizationEventDetails& AddEventMetadata(EventMetadataKeyT&& key, EventMetadataValueT&& value) {
111 m_eventMetadataHasBeenSet = true;
112 m_eventMetadata.emplace(std::forward<EventMetadataKeyT>(key), std::forward<EventMetadataValueT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_awsAccountId;
118
119 Event m_event;
120
121 Aws::String m_eventDescription;
122
124 bool m_awsAccountIdHasBeenSet = false;
125 bool m_eventHasBeenSet = false;
126 bool m_eventDescriptionHasBeenSet = false;
127 bool m_eventMetadataHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Health
132} // namespace Aws
OrganizationEventDetails & WithEvent(EventT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API OrganizationEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API OrganizationEventDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API OrganizationEventDetails()=default
OrganizationEventDetails & WithEventDescription(EventDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
OrganizationEventDetails & WithEventMetadata(EventMetadataT &&value)
OrganizationEventDetails & WithAwsAccountId(AwsAccountIdT &&value)
OrganizationEventDetails & AddEventMetadata(EventMetadataKeyT &&key, EventMetadataValueT &&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