AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
47 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
48 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
49 inline SendEventRequest& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
50 inline SendEventRequest& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
51 inline SendEventRequest& WithEventId(const char* value) { SetEventId(value); return *this;}
53
55
58 inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; }
59 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
60 inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; }
61 inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); }
62 inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); }
63 inline SendEventRequest& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;}
64 inline SendEventRequest& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;}
65 inline SendEventRequest& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;}
67
69
73 inline const Aws::String& GetEventTimestamp() const{ return m_eventTimestamp; }
74 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
75 inline void SetEventTimestamp(const Aws::String& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = value; }
76 inline void SetEventTimestamp(Aws::String&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::move(value); }
77 inline void SetEventTimestamp(const char* value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp.assign(value); }
78 inline SendEventRequest& WithEventTimestamp(const Aws::String& value) { SetEventTimestamp(value); return *this;}
79 inline SendEventRequest& WithEventTimestamp(Aws::String&& value) { SetEventTimestamp(std::move(value)); return *this;}
80 inline SendEventRequest& WithEventTimestamp(const char* value) { SetEventTimestamp(value); return *this;}
82
84
89 inline const Aws::Map<Aws::String, Aws::String>& GetEventVariables() const{ return m_eventVariables; }
90 inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; }
91 inline void SetEventVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = value; }
92 inline void SetEventVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::move(value); }
95 inline SendEventRequest& AddEventVariables(const Aws::String& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; }
96 inline SendEventRequest& AddEventVariables(Aws::String&& key, const Aws::String& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; }
97 inline SendEventRequest& AddEventVariables(const Aws::String& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; }
98 inline SendEventRequest& AddEventVariables(Aws::String&& key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), std::move(value)); return *this; }
99 inline SendEventRequest& AddEventVariables(const char* key, Aws::String&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, std::move(value)); return *this; }
100 inline SendEventRequest& AddEventVariables(Aws::String&& key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::move(key), value); return *this; }
101 inline SendEventRequest& AddEventVariables(const char* key, const char* value) { m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(key, value); return *this; }
103
105
109 inline const Aws::String& GetAssignedLabel() const{ return m_assignedLabel; }
110 inline bool AssignedLabelHasBeenSet() const { return m_assignedLabelHasBeenSet; }
111 inline void SetAssignedLabel(const Aws::String& value) { m_assignedLabelHasBeenSet = true; m_assignedLabel = value; }
112 inline void SetAssignedLabel(Aws::String&& value) { m_assignedLabelHasBeenSet = true; m_assignedLabel = std::move(value); }
113 inline void SetAssignedLabel(const char* value) { m_assignedLabelHasBeenSet = true; m_assignedLabel.assign(value); }
114 inline SendEventRequest& WithAssignedLabel(const Aws::String& value) { SetAssignedLabel(value); return *this;}
115 inline SendEventRequest& WithAssignedLabel(Aws::String&& value) { SetAssignedLabel(std::move(value)); return *this;}
116 inline SendEventRequest& WithAssignedLabel(const char* value) { SetAssignedLabel(value); return *this;}
118
120
124 inline const Aws::String& GetLabelTimestamp() const{ return m_labelTimestamp; }
125 inline bool LabelTimestampHasBeenSet() const { return m_labelTimestampHasBeenSet; }
126 inline void SetLabelTimestamp(const Aws::String& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = value; }
127 inline void SetLabelTimestamp(Aws::String&& value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp = std::move(value); }
128 inline void SetLabelTimestamp(const char* value) { m_labelTimestampHasBeenSet = true; m_labelTimestamp.assign(value); }
129 inline SendEventRequest& WithLabelTimestamp(const Aws::String& value) { SetLabelTimestamp(value); return *this;}
130 inline SendEventRequest& WithLabelTimestamp(Aws::String&& value) { SetLabelTimestamp(std::move(value)); return *this;}
131 inline SendEventRequest& WithLabelTimestamp(const char* value) { SetLabelTimestamp(value); return *this;}
133
135
138 inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
139 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
140 inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
141 inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
142 inline SendEventRequest& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
143 inline SendEventRequest& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
144 inline SendEventRequest& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
145 inline SendEventRequest& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_eventId;
150 bool m_eventIdHasBeenSet = false;
151
152 Aws::String m_eventTypeName;
153 bool m_eventTypeNameHasBeenSet = false;
154
155 Aws::String m_eventTimestamp;
156 bool m_eventTimestampHasBeenSet = false;
157
158 Aws::Map<Aws::String, Aws::String> m_eventVariables;
159 bool m_eventVariablesHasBeenSet = false;
160
161 Aws::String m_assignedLabel;
162 bool m_assignedLabelHasBeenSet = false;
163
164 Aws::String m_labelTimestamp;
165 bool m_labelTimestampHasBeenSet = false;
166
167 Aws::Vector<Entity> m_entities;
168 bool m_entitiesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace FraudDetector
173} // namespace Aws
SendEventRequest & WithEventTimestamp(const char *value)
SendEventRequest & WithEventTypeName(Aws::String &&value)
void SetEventTypeName(const Aws::String &value)
SendEventRequest & WithLabelTimestamp(const char *value)
SendEventRequest & AddEventVariables(const char *key, const char *value)
SendEventRequest & WithLabelTimestamp(const Aws::String &value)
SendEventRequest & WithEventTypeName(const char *value)
SendEventRequest & WithAssignedLabel(const Aws::String &value)
const Aws::Vector< Entity > & GetEntities() const
SendEventRequest & AddEventVariables(Aws::String &&key, Aws::String &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetEventVariables() const
SendEventRequest & WithEventTimestamp(const Aws::String &value)
SendEventRequest & WithEntities(Aws::Vector< Entity > &&value)
SendEventRequest & AddEventVariables(Aws::String &&key, const Aws::String &value)
void SetEntities(Aws::Vector< Entity > &&value)
SendEventRequest & WithEntities(const Aws::Vector< Entity > &value)
SendEventRequest & AddEventVariables(const Aws::String &key, Aws::String &&value)
SendEventRequest & AddEntities(const Entity &value)
const Aws::String & GetEventTypeName() const
void SetEventTimestamp(const Aws::String &value)
SendEventRequest & WithAssignedLabel(Aws::String &&value)
void SetEventVariables(const Aws::Map< Aws::String, Aws::String > &value)
SendEventRequest & AddEventVariables(const char *key, Aws::String &&value)
void SetEventVariables(Aws::Map< Aws::String, Aws::String > &&value)
void SetAssignedLabel(const Aws::String &value)
SendEventRequest & WithEventId(Aws::String &&value)
SendEventRequest & WithEventId(const Aws::String &value)
SendEventRequest & WithEventId(const char *value)
const Aws::String & GetEventTimestamp() const
SendEventRequest & WithEventVariables(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetLabelTimestamp() const
void SetLabelTimestamp(const Aws::String &value)
SendEventRequest & WithLabelTimestamp(Aws::String &&value)
SendEventRequest & AddEntities(Entity &&value)
SendEventRequest & AddEventVariables(Aws::String &&key, const char *value)
SendEventRequest & WithEventTimestamp(Aws::String &&value)
SendEventRequest & WithEventVariables(Aws::Map< Aws::String, Aws::String > &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEventId(const Aws::String &value)
SendEventRequest & WithEventTypeName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SendEventRequest & WithAssignedLabel(const char *value)
void SetEntities(const Aws::Vector< Entity > &value)
SendEventRequest & AddEventVariables(const Aws::String &key, const Aws::String &value)
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