AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SendEventRequest.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/FraudDetectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/frauddetector/model/Entity.h>
13#include <utility>
14
15namespace Aws
16{
17namespace FraudDetector
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FRAUDDETECTOR_API SendEventRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SendEvent"; }
34
35 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
36
37 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetEventId() const { return m_eventId; }
45 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
46 template<typename EventIdT = Aws::String>
47 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
48 template<typename EventIdT = Aws::String>
49 SendEventRequest& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEventTypeName() const { return m_eventTypeName; }
57 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
58 template<typename EventTypeNameT = Aws::String>
59 void SetEventTypeName(EventTypeNameT&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::forward<EventTypeNameT>(value); }
60 template<typename EventTypeNameT = Aws::String>
61 SendEventRequest& WithEventTypeName(EventTypeNameT&& value) { SetEventTypeName(std::forward<EventTypeNameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetEventTimestamp() const { return m_eventTimestamp; }
70 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
71 template<typename EventTimestampT = Aws::String>
72 void SetEventTimestamp(EventTimestampT&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::forward<EventTimestampT>(value); }
73 template<typename EventTimestampT = Aws::String>
74 SendEventRequest& WithEventTimestamp(EventTimestampT&& value) { SetEventTimestamp(std::forward<EventTimestampT>(value)); return *this;}
76
78
83 inline const Aws::Map<Aws::String, Aws::String>& GetEventVariables() const { return m_eventVariables; }
84 inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; }
85 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
86 void SetEventVariables(EventVariablesT&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::forward<EventVariablesT>(value); }
87 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
88 SendEventRequest& WithEventVariables(EventVariablesT&& value) { SetEventVariables(std::forward<EventVariablesT>(value)); return *this;}
89 template<typename EventVariablesKeyT = Aws::String, typename EventVariablesValueT = Aws::String>
90 SendEventRequest& AddEventVariables(EventVariablesKeyT&& key, EventVariablesValueT&& value) {
91 m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::forward<EventVariablesKeyT>(key), std::forward<EventVariablesValueT>(value)); return *this;
92 }
94
96
100 inline const Aws::String& GetAssignedLabel() const { return m_assignedLabel; }
101 inline bool AssignedLabelHasBeenSet() const { return m_assignedLabelHasBeenSet; }
102 template<typename AssignedLabelT = Aws::String>
103 void SetAssignedLabel(AssignedLabelT&& value) { m_assignedLabelHasBeenSet = true; m_assignedLabel = std::forward<AssignedLabelT>(value); }
104 template<typename AssignedLabelT = Aws::String>
105 SendEventRequest& WithAssignedLabel(AssignedLabelT&& value) { SetAssignedLabel(std::forward<AssignedLabelT>(value)); return *this;}
107
109
113 inline const Aws::String& GetLabelTimestamp() const { return m_labelTimestamp; }
114 inline bool LabelTimestampHasBeenSet() const { return m_labelTimestampHasBeenSet; }
115 template<typename LabelTimestampT = Aws::String>
116 void SetLabelTimestamp(LabelTimestampT&& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = std::forward<LabelTimestampT>(value); }
117 template<typename LabelTimestampT = Aws::String>
118 SendEventRequest& WithLabelTimestamp(LabelTimestampT&& value) { SetLabelTimestamp(std::forward<LabelTimestampT>(value)); return *this;}
120
122
125 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
126 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
127 template<typename EntitiesT = Aws::Vector<Entity>>
128 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
129 template<typename EntitiesT = Aws::Vector<Entity>>
130 SendEventRequest& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
131 template<typename EntitiesT = Entity>
132 SendEventRequest& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
134 private:
135
136 Aws::String m_eventId;
137 bool m_eventIdHasBeenSet = false;
138
139 Aws::String m_eventTypeName;
140 bool m_eventTypeNameHasBeenSet = false;
141
142 Aws::String m_eventTimestamp;
143 bool m_eventTimestampHasBeenSet = false;
144
145 Aws::Map<Aws::String, Aws::String> m_eventVariables;
146 bool m_eventVariablesHasBeenSet = false;
147
148 Aws::String m_assignedLabel;
149 bool m_assignedLabelHasBeenSet = false;
150
151 Aws::String m_labelTimestamp;
152 bool m_labelTimestampHasBeenSet = false;
153
154 Aws::Vector<Entity> m_entities;
155 bool m_entitiesHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace FraudDetector
160} // namespace Aws
SendEventRequest & WithLabelTimestamp(LabelTimestampT &&value)
void SetEventTimestamp(EventTimestampT &&value)
void SetLabelTimestamp(LabelTimestampT &&value)
const Aws::Vector< Entity > & GetEntities() const
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetEventVariables() const
SendEventRequest & WithEventTypeName(EventTypeNameT &&value)
SendEventRequest & WithEntities(EntitiesT &&value)
const Aws::String & GetEventTypeName() const
SendEventRequest & WithAssignedLabel(AssignedLabelT &&value)
SendEventRequest & AddEventVariables(EventVariablesKeyT &&key, EventVariablesValueT &&value)
void SetAssignedLabel(AssignedLabelT &&value)
const Aws::String & GetEventTimestamp() const
const Aws::String & GetLabelTimestamp() const
SendEventRequest & WithEventVariables(EventVariablesT &&value)
SendEventRequest & AddEntities(EntitiesT &&value)
void SetEventVariables(EventVariablesT &&value)
SendEventRequest & WithEventTimestamp(EventTimestampT &&value)
void SetEventTypeName(EventTypeNameT &&value)
SendEventRequest & WithEventId(EventIdT &&value)
AWS_FRAUDDETECTOR_API SendEventRequest()=default
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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