AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/evidently/model/EventType.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 CloudWatchEvidently
24{
25namespace Model
26{
27
36 class Event
37 {
38 public:
39 AWS_CLOUDWATCHEVIDENTLY_API Event() = default;
40 AWS_CLOUDWATCHEVIDENTLY_API Event(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVIDENTLY_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetData() const { return m_data; }
50 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
51 template<typename DataT = Aws::String>
52 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
53 template<typename DataT = Aws::String>
54 Event& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
62 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
63 template<typename TimestampT = Aws::Utils::DateTime>
64 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
65 template<typename TimestampT = Aws::Utils::DateTime>
66 Event& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
68
70
76 inline EventType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(EventType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline Event& WithType(EventType value) { SetType(value); return *this;}
81 private:
82
83 Aws::String m_data;
84 bool m_dataHasBeenSet = false;
85
86 Aws::Utils::DateTime m_timestamp{};
87 bool m_timestampHasBeenSet = false;
88
90 bool m_typeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudWatchEvidently
95} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Event & WithTimestamp(TimestampT &&value)
Definition Event.h:66
void SetTimestamp(TimestampT &&value)
Definition Event.h:64
Event & WithType(EventType value)
Definition Event.h:79
AWS_CLOUDWATCHEVIDENTLY_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithData(DataT &&value)
Definition Event.h:54
void SetData(DataT &&value)
Definition Event.h:52
const Aws::String & GetData() const
Definition Event.h:49
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
Definition Event.h:61
void SetType(EventType value)
Definition Event.h:78
AWS_CLOUDWATCHEVIDENTLY_API Event()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue