AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
TestRunEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
30 public:
31 AWS_RESILIENCEHUBV2_API TestRunEvent() = default;
32 AWS_RESILIENCEHUBV2_API TestRunEvent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API TestRunEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEventId() const { return m_eventId; }
41 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
42 template <typename EventIdT = Aws::String>
43 void SetEventId(EventIdT&& value) {
44 m_eventIdHasBeenSet = true;
45 m_eventId = std::forward<EventIdT>(value);
46 }
47 template <typename EventIdT = Aws::String>
48 TestRunEvent& WithEventId(EventIdT&& value) {
49 SetEventId(std::forward<EventIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetEventType() const { return m_eventType; }
60 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
61 template <typename EventTypeT = Aws::String>
62 void SetEventType(EventTypeT&& value) {
63 m_eventTypeHasBeenSet = true;
64 m_eventType = std::forward<EventTypeT>(value);
65 }
66 template <typename EventTypeT = Aws::String>
67 TestRunEvent& WithEventType(EventTypeT&& value) {
68 SetEventType(std::forward<EventTypeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template <typename MessageT = Aws::String>
80 void SetMessage(MessageT&& value) {
81 m_messageHasBeenSet = true;
82 m_message = std::forward<MessageT>(value);
83 }
84 template <typename MessageT = Aws::String>
85 TestRunEvent& WithMessage(MessageT&& value) {
86 SetMessage(std::forward<MessageT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
96 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
97 template <typename TimestampT = Aws::Utils::DateTime>
98 void SetTimestamp(TimestampT&& value) {
99 m_timestampHasBeenSet = true;
100 m_timestamp = std::forward<TimestampT>(value);
101 }
102 template <typename TimestampT = Aws::Utils::DateTime>
103 TestRunEvent& WithTimestamp(TimestampT&& value) {
104 SetTimestamp(std::forward<TimestampT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
114 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
115 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
116 void SetAttributes(AttributesT&& value) {
117 m_attributesHasBeenSet = true;
118 m_attributes = std::forward<AttributesT>(value);
119 }
120 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
121 TestRunEvent& WithAttributes(AttributesT&& value) {
122 SetAttributes(std::forward<AttributesT>(value));
123 return *this;
124 }
125 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
126 TestRunEvent& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
127 m_attributesHasBeenSet = true;
128 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_eventId;
134
135 Aws::String m_eventType;
136
137 Aws::String m_message;
138
139 Aws::Utils::DateTime m_timestamp{};
140
142 bool m_eventIdHasBeenSet = false;
143 bool m_eventTypeHasBeenSet = false;
144 bool m_messageHasBeenSet = false;
145 bool m_timestampHasBeenSet = false;
146 bool m_attributesHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace resiliencehubv2
151} // namespace Aws
void SetTimestamp(TimestampT &&value)
AWS_RESILIENCEHUBV2_API TestRunEvent(Aws::Utils::Json::JsonView jsonValue)
TestRunEvent & WithAttributes(AttributesT &&value)
TestRunEvent & WithMessage(MessageT &&value)
void SetAttributes(AttributesT &&value)
TestRunEvent & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
TestRunEvent & WithEventId(EventIdT &&value)
const Aws::String & GetMessage() const
const Aws::String & GetEventId() const
AWS_RESILIENCEHUBV2_API TestRunEvent()=default
void SetEventType(EventTypeT &&value)
AWS_RESILIENCEHUBV2_API TestRunEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEventType() const
TestRunEvent & WithEventType(EventTypeT &&value)
TestRunEvent & WithTimestamp(TimestampT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
const Aws::Utils::DateTime & GetTimestamp() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
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