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>
21namespace resiliencehubv2 {
42 template <
typename EventIdT = Aws::String>
44 m_eventIdHasBeenSet =
true;
45 m_eventId = std::forward<EventIdT>(value);
47 template <
typename EventIdT = Aws::String>
61 template <
typename EventTypeT = Aws::String>
63 m_eventTypeHasBeenSet =
true;
64 m_eventType = std::forward<EventTypeT>(value);
66 template <
typename EventTypeT = Aws::String>
79 template <
typename MessageT = Aws::String>
81 m_messageHasBeenSet =
true;
82 m_message = std::forward<MessageT>(value);
84 template <
typename MessageT = Aws::String>
97 template <
typename TimestampT = Aws::Utils::DateTime>
99 m_timestampHasBeenSet =
true;
100 m_timestamp = std::forward<TimestampT>(value);
102 template <
typename TimestampT = Aws::Utils::DateTime>
115 template <
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
117 m_attributesHasBeenSet =
true;
118 m_attributes = std::forward<AttributesT>(value);
120 template <
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
125 template <
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
127 m_attributesHasBeenSet =
true;
128 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
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;
bool EventTypeHasBeenSet() const
void SetTimestamp(TimestampT &&value)
AWS_RESILIENCEHUBV2_API TestRunEvent(Aws::Utils::Json::JsonView jsonValue)
TestRunEvent & WithAttributes(AttributesT &&value)
bool TimestampHasBeenSet() const
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
bool AttributesHasBeenSet() const
AWS_RESILIENCEHUBV2_API TestRunEvent()=default
void SetEventType(EventTypeT &&value)
AWS_RESILIENCEHUBV2_API TestRunEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(EventIdT &&value)
const Aws::String & GetEventType() const
TestRunEvent & WithEventType(EventTypeT &&value)
TestRunEvent & WithTimestamp(TimestampT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
bool MessageHasBeenSet() const
void SetMessage(MessageT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
bool EventIdHasBeenSet() 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