AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
52 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
53 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
54 inline Event& WithData(const Aws::String& value) { SetData(value); return *this;}
55 inline Event& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
56 inline Event& WithData(const char* value) { SetData(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
64 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
65 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
66 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
67 inline Event& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
68 inline Event& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
70
72
78 inline const EventType& GetType() const{ return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(const EventType& value) { m_typeHasBeenSet = true; m_type = value; }
81 inline void SetType(EventType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
82 inline Event& WithType(const EventType& value) { SetType(value); return *this;}
83 inline Event& WithType(EventType&& value) { SetType(std::move(value)); return *this;}
85 private:
86
87 Aws::String m_data;
88 bool m_dataHasBeenSet = false;
89
90 Aws::Utils::DateTime m_timestamp;
91 bool m_timestampHasBeenSet = false;
92
93 EventType m_type;
94 bool m_typeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudWatchEvidently
99} // namespace Aws
Event & WithTimestamp(Aws::Utils::DateTime &&value)
Definition Event.h:68
AWS_CLOUDWATCHEVIDENTLY_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Event & WithTimestamp(const Aws::Utils::DateTime &value)
Definition Event.h:67
AWS_CLOUDWATCHEVIDENTLY_API Event()
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition Event.h:66
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition Event.h:65
AWS_CLOUDWATCHEVIDENTLY_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetData(Aws::String &&value)
Definition Event.h:52
Event & WithData(const Aws::String &value)
Definition Event.h:54
void SetType(EventType &&value)
Definition Event.h:81
const Aws::String & GetData() const
Definition Event.h:49
Event & WithType(EventType &&value)
Definition Event.h:83
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
Definition Event.h:63
void SetType(const EventType &value)
Definition Event.h:80
Event & WithData(const char *value)
Definition Event.h:56
const EventType & GetType() const
Definition Event.h:78
Event & WithData(Aws::String &&value)
Definition Event.h:55
Event & WithType(const EventType &value)
Definition Event.h:82
void SetData(const Aws::String &value)
Definition Event.h:51
void SetData(const char *value)
Definition Event.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue