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/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/frauddetector/model/Entity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FraudDetector
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
37 AWS_FRAUDDETECTOR_API Event();
38 AWS_FRAUDDETECTOR_API Event(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FRAUDDETECTOR_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetEventId() const{ return m_eventId; }
48 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
49 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
50 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
51 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
52 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
53 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
54 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
56
58
61 inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; }
62 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
63 inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; }
64 inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); }
65 inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); }
66 inline Event& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;}
67 inline Event& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;}
68 inline Event& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;}
70
72
76 inline const Aws::String& GetEventTimestamp() const{ return m_eventTimestamp; }
77 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
78 inline void SetEventTimestamp(const Aws::String& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = value; }
79 inline void SetEventTimestamp(Aws::String&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::move(value); }
80 inline void SetEventTimestamp(const char* value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp.assign(value); }
81 inline Event& WithEventTimestamp(const Aws::String& value) { SetEventTimestamp(value); return *this;}
82 inline Event& WithEventTimestamp(Aws::String&& value) { SetEventTimestamp(std::move(value)); return *this;}
83 inline Event& WithEventTimestamp(const char* value) { SetEventTimestamp(value); return *this;}
85
87
92 inline const Aws::Map<Aws::String, Aws::String>& GetEventVariables() const{ return m_eventVariables; }
93 inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; }
94 inline void SetEventVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = value; }
95 inline void SetEventVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::move(value); }
97 inline Event& WithEventVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetEventVariables(std::move(value)); return *this;}
98 inline Event& AddEventVariables(const Aws::String& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; }
99 inline Event& AddEventVariables(Aws::String&& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; }
100 inline Event& AddEventVariables(const Aws::String& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; }
101 inline Event& AddEventVariables(Aws::String&& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), std::move(value)); return *this; }
102 inline Event& AddEventVariables(const char* key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; }
103 inline Event& AddEventVariables(Aws::String&& key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; }
104 inline Event& AddEventVariables(const char* key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; }
106
108
111 inline const Aws::String& GetCurrentLabel() const{ return m_currentLabel; }
112 inline bool CurrentLabelHasBeenSet() const { return m_currentLabelHasBeenSet; }
113 inline void SetCurrentLabel(const Aws::String& value) { m_currentLabelHasBeenSet = true; m_currentLabel = value; }
114 inline void SetCurrentLabel(Aws::String&& value) { m_currentLabelHasBeenSet = true; m_currentLabel = std::move(value); }
115 inline void SetCurrentLabel(const char* value) { m_currentLabelHasBeenSet = true; m_currentLabel.assign(value); }
116 inline Event& WithCurrentLabel(const Aws::String& value) { SetCurrentLabel(value); return *this;}
117 inline Event& WithCurrentLabel(Aws::String&& value) { SetCurrentLabel(std::move(value)); return *this;}
118 inline Event& WithCurrentLabel(const char* value) { SetCurrentLabel(value); return *this;}
120
122
126 inline const Aws::String& GetLabelTimestamp() const{ return m_labelTimestamp; }
127 inline bool LabelTimestampHasBeenSet() const { return m_labelTimestampHasBeenSet; }
128 inline void SetLabelTimestamp(const Aws::String& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = value; }
129 inline void SetLabelTimestamp(Aws::String&& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = std::move(value); }
130 inline void SetLabelTimestamp(const char* value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp.assign(value); }
131 inline Event& WithLabelTimestamp(const Aws::String& value) { SetLabelTimestamp(value); return *this;}
132 inline Event& WithLabelTimestamp(Aws::String&& value) { SetLabelTimestamp(std::move(value)); return *this;}
133 inline Event& WithLabelTimestamp(const char* value) { SetLabelTimestamp(value); return *this;}
135
137
140 inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
141 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
142 inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
143 inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
144 inline Event& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
145 inline Event& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
146 inline Event& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
147 inline Event& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
149 private:
150
151 Aws::String m_eventId;
152 bool m_eventIdHasBeenSet = false;
153
154 Aws::String m_eventTypeName;
155 bool m_eventTypeNameHasBeenSet = false;
156
157 Aws::String m_eventTimestamp;
158 bool m_eventTimestampHasBeenSet = false;
159
160 Aws::Map<Aws::String, Aws::String> m_eventVariables;
161 bool m_eventVariablesHasBeenSet = false;
162
163 Aws::String m_currentLabel;
164 bool m_currentLabelHasBeenSet = false;
165
166 Aws::String m_labelTimestamp;
167 bool m_labelTimestampHasBeenSet = false;
168
169 Aws::Vector<Entity> m_entities;
170 bool m_entitiesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace FraudDetector
175} // namespace Aws
Event & AddEventVariables(const Aws::String &key, Aws::String &&value)
Definition Event.h:100
Event & WithEventVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition Event.h:97
void SetEventTimestamp(const char *value)
Definition Event.h:80
void SetEventId(const Aws::String &value)
Definition Event.h:49
const Aws::String & GetCurrentLabel() const
Definition Event.h:111
void SetEventTypeName(Aws::String &&value)
Definition Event.h:64
void SetLabelTimestamp(const Aws::String &value)
Definition Event.h:128
void SetEntities(const Aws::Vector< Entity > &value)
Definition Event.h:142
Event & AddEventVariables(Aws::String &&key, const Aws::String &value)
Definition Event.h:99
const Aws::Map< Aws::String, Aws::String > & GetEventVariables() const
Definition Event.h:92
Event & AddEventVariables(Aws::String &&key, const char *value)
Definition Event.h:103
Event & WithCurrentLabel(const char *value)
Definition Event.h:118
Event & WithEntities(Aws::Vector< Entity > &&value)
Definition Event.h:145
void SetEventId(Aws::String &&value)
Definition Event.h:50
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
Event & WithEventId(Aws::String &&value)
Definition Event.h:53
Event & WithEventTimestamp(const Aws::String &value)
Definition Event.h:81
Event & WithEventId(const char *value)
Definition Event.h:54
Event & WithEventTypeName(Aws::String &&value)
Definition Event.h:67
Event & WithLabelTimestamp(const char *value)
Definition Event.h:133
const Aws::Vector< Entity > & GetEntities() const
Definition Event.h:140
void SetEventVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition Event.h:95
bool LabelTimestampHasBeenSet() const
Definition Event.h:127
Event & AddEntities(const Entity &value)
Definition Event.h:146
Event & WithLabelTimestamp(Aws::String &&value)
Definition Event.h:132
void SetCurrentLabel(const char *value)
Definition Event.h:115
void SetEventVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition Event.h:94
AWS_FRAUDDETECTOR_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EntitiesHasBeenSet() const
Definition Event.h:141
Event & WithEventVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition Event.h:96
const Aws::String & GetEventId() const
Definition Event.h:47
void SetEventTimestamp(Aws::String &&value)
Definition Event.h:79
Event & WithEventTimestamp(const char *value)
Definition Event.h:83
const Aws::String & GetEventTimestamp() const
Definition Event.h:76
AWS_FRAUDDETECTOR_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & AddEntities(Entity &&value)
Definition Event.h:147
void SetCurrentLabel(const Aws::String &value)
Definition Event.h:113
Event & WithEventTypeName(const Aws::String &value)
Definition Event.h:66
Event & WithEntities(const Aws::Vector< Entity > &value)
Definition Event.h:144
const Aws::String & GetEventTypeName() const
Definition Event.h:61
Event & AddEventVariables(const char *key, Aws::String &&value)
Definition Event.h:102
Event & AddEventVariables(const Aws::String &key, const Aws::String &value)
Definition Event.h:98
AWS_FRAUDDETECTOR_API Event()
bool EventTypeNameHasBeenSet() const
Definition Event.h:62
void SetEventTimestamp(const Aws::String &value)
Definition Event.h:78
bool CurrentLabelHasBeenSet() const
Definition Event.h:112
bool EventVariablesHasBeenSet() const
Definition Event.h:93
Event & WithEventTimestamp(Aws::String &&value)
Definition Event.h:82
void SetLabelTimestamp(const char *value)
Definition Event.h:130
Event & AddEventVariables(const char *key, const char *value)
Definition Event.h:104
Event & WithLabelTimestamp(const Aws::String &value)
Definition Event.h:131
Event & WithCurrentLabel(const Aws::String &value)
Definition Event.h:116
Event & AddEventVariables(Aws::String &&key, Aws::String &&value)
Definition Event.h:101
Event & WithEventTypeName(const char *value)
Definition Event.h:68
bool EventTimestampHasBeenSet() const
Definition Event.h:77
Event & WithCurrentLabel(Aws::String &&value)
Definition Event.h:117
bool EventIdHasBeenSet() const
Definition Event.h:48
void SetCurrentLabel(Aws::String &&value)
Definition Event.h:114
void SetEventTypeName(const Aws::String &value)
Definition Event.h:63
void SetEventTypeName(const char *value)
Definition Event.h:65
const Aws::String & GetLabelTimestamp() const
Definition Event.h:126
Event & WithEventId(const Aws::String &value)
Definition Event.h:52
void SetLabelTimestamp(Aws::String &&value)
Definition Event.h:129
void SetEventId(const char *value)
Definition Event.h:51
void SetEntities(Aws::Vector< Entity > &&value)
Definition Event.h:143
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue