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/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() = default;
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 template<typename EventIdT = Aws::String>
50 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
51 template<typename EventIdT = Aws::String>
52 Event& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEventTypeName() const { return m_eventTypeName; }
60 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
61 template<typename EventTypeNameT = Aws::String>
62 void SetEventTypeName(EventTypeNameT&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::forward<EventTypeNameT>(value); }
63 template<typename EventTypeNameT = Aws::String>
64 Event& WithEventTypeName(EventTypeNameT&& value) { SetEventTypeName(std::forward<EventTypeNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetEventTimestamp() const { return m_eventTimestamp; }
73 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
74 template<typename EventTimestampT = Aws::String>
75 void SetEventTimestamp(EventTimestampT&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::forward<EventTimestampT>(value); }
76 template<typename EventTimestampT = Aws::String>
77 Event& WithEventTimestamp(EventTimestampT&& value) { SetEventTimestamp(std::forward<EventTimestampT>(value)); return *this;}
79
81
86 inline const Aws::Map<Aws::String, Aws::String>& GetEventVariables() const { return m_eventVariables; }
87 inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; }
88 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
89 void SetEventVariables(EventVariablesT&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::forward<EventVariablesT>(value); }
90 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
91 Event& WithEventVariables(EventVariablesT&& value) { SetEventVariables(std::forward<EventVariablesT>(value)); return *this;}
92 template<typename EventVariablesKeyT = Aws::String, typename EventVariablesValueT = Aws::String>
93 Event& AddEventVariables(EventVariablesKeyT&& key, EventVariablesValueT&& value) {
94 m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::forward<EventVariablesKeyT>(key), std::forward<EventVariablesValueT>(value)); return *this;
95 }
97
99
102 inline const Aws::String& GetCurrentLabel() const { return m_currentLabel; }
103 inline bool CurrentLabelHasBeenSet() const { return m_currentLabelHasBeenSet; }
104 template<typename CurrentLabelT = Aws::String>
105 void SetCurrentLabel(CurrentLabelT&& value) { m_currentLabelHasBeenSet = true; m_currentLabel = std::forward<CurrentLabelT>(value); }
106 template<typename CurrentLabelT = Aws::String>
107 Event& WithCurrentLabel(CurrentLabelT&& value) { SetCurrentLabel(std::forward<CurrentLabelT>(value)); return *this;}
109
111
115 inline const Aws::String& GetLabelTimestamp() const { return m_labelTimestamp; }
116 inline bool LabelTimestampHasBeenSet() const { return m_labelTimestampHasBeenSet; }
117 template<typename LabelTimestampT = Aws::String>
118 void SetLabelTimestamp(LabelTimestampT&& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = std::forward<LabelTimestampT>(value); }
119 template<typename LabelTimestampT = Aws::String>
120 Event& WithLabelTimestamp(LabelTimestampT&& value) { SetLabelTimestamp(std::forward<LabelTimestampT>(value)); return *this;}
122
124
127 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
128 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
129 template<typename EntitiesT = Aws::Vector<Entity>>
130 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
131 template<typename EntitiesT = Aws::Vector<Entity>>
132 Event& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
133 template<typename EntitiesT = Entity>
134 Event& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
136 private:
137
138 Aws::String m_eventId;
139 bool m_eventIdHasBeenSet = false;
140
141 Aws::String m_eventTypeName;
142 bool m_eventTypeNameHasBeenSet = false;
143
144 Aws::String m_eventTimestamp;
145 bool m_eventTimestampHasBeenSet = false;
146
147 Aws::Map<Aws::String, Aws::String> m_eventVariables;
148 bool m_eventVariablesHasBeenSet = false;
149
150 Aws::String m_currentLabel;
151 bool m_currentLabelHasBeenSet = false;
152
153 Aws::String m_labelTimestamp;
154 bool m_labelTimestampHasBeenSet = false;
155
156 Aws::Vector<Entity> m_entities;
157 bool m_entitiesHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace FraudDetector
162} // namespace Aws
void SetCurrentLabel(CurrentLabelT &&value)
Definition Event.h:105
const Aws::String & GetCurrentLabel() const
Definition Event.h:102
const Aws::Map< Aws::String, Aws::String > & GetEventVariables() const
Definition Event.h:86
Event & WithCurrentLabel(CurrentLabelT &&value)
Definition Event.h:107
void SetEventTimestamp(EventTimestampT &&value)
Definition Event.h:75
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Entity > & GetEntities() const
Definition Event.h:127
bool LabelTimestampHasBeenSet() const
Definition Event.h:116
Event & WithLabelTimestamp(LabelTimestampT &&value)
Definition Event.h:120
AWS_FRAUDDETECTOR_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventTypeName(EventTypeNameT &&value)
Definition Event.h:62
bool EntitiesHasBeenSet() const
Definition Event.h:128
void SetEntities(EntitiesT &&value)
Definition Event.h:130
AWS_FRAUDDETECTOR_API Event()=default
const Aws::String & GetEventId() const
Definition Event.h:47
Event & WithEventId(EventIdT &&value)
Definition Event.h:52
const Aws::String & GetEventTimestamp() const
Definition Event.h:72
AWS_FRAUDDETECTOR_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventVariables(EventVariablesT &&value)
Definition Event.h:91
Event & WithEventTimestamp(EventTimestampT &&value)
Definition Event.h:77
const Aws::String & GetEventTypeName() const
Definition Event.h:59
Event & WithEventTypeName(EventTypeNameT &&value)
Definition Event.h:64
void SetEventId(EventIdT &&value)
Definition Event.h:50
bool EventTypeNameHasBeenSet() const
Definition Event.h:60
bool CurrentLabelHasBeenSet() const
Definition Event.h:103
bool EventVariablesHasBeenSet() const
Definition Event.h:87
void SetLabelTimestamp(LabelTimestampT &&value)
Definition Event.h:118
bool EventTimestampHasBeenSet() const
Definition Event.h:73
Event & WithEntities(EntitiesT &&value)
Definition Event.h:132
Event & AddEntities(EntitiesT &&value)
Definition Event.h:134
Event & AddEventVariables(EventVariablesKeyT &&key, EventVariablesValueT &&value)
Definition Event.h:93
bool EventIdHasBeenSet() const
Definition Event.h:48
const Aws::String & GetLabelTimestamp() const
Definition Event.h:115
void SetEventVariables(EventVariablesT &&value)
Definition Event.h:89
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