AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEventPredictionRequest.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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/frauddetector/model/Entity.h>
13#include <aws/frauddetector/model/ModelEndpointDataBlob.h>
14#include <utility>
15
16namespace Aws
17{
18namespace FraudDetector
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_FRAUDDETECTOR_API GetEventPredictionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetEventPrediction"; }
35
36 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
37
38 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
46 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 template<typename DetectorIdT = Aws::String>
48 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
49 template<typename DetectorIdT = Aws::String>
50 GetEventPredictionRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDetectorVersionId() const { return m_detectorVersionId; }
58 inline bool DetectorVersionIdHasBeenSet() const { return m_detectorVersionIdHasBeenSet; }
59 template<typename DetectorVersionIdT = Aws::String>
60 void SetDetectorVersionId(DetectorVersionIdT&& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = std::forward<DetectorVersionIdT>(value); }
61 template<typename DetectorVersionIdT = Aws::String>
62 GetEventPredictionRequest& WithDetectorVersionId(DetectorVersionIdT&& value) { SetDetectorVersionId(std::forward<DetectorVersionIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetEventId() const { return m_eventId; }
70 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
71 template<typename EventIdT = Aws::String>
72 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
73 template<typename EventIdT = Aws::String>
74 GetEventPredictionRequest& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetEventTypeName() const { return m_eventTypeName; }
82 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
83 template<typename EventTypeNameT = Aws::String>
84 void SetEventTypeName(EventTypeNameT&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::forward<EventTypeNameT>(value); }
85 template<typename EventTypeNameT = Aws::String>
86 GetEventPredictionRequest& WithEventTypeName(EventTypeNameT&& value) { SetEventTypeName(std::forward<EventTypeNameT>(value)); return *this;}
88
90
95 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
96 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
97 template<typename EntitiesT = Aws::Vector<Entity>>
98 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
99 template<typename EntitiesT = Aws::Vector<Entity>>
100 GetEventPredictionRequest& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
101 template<typename EntitiesT = Entity>
102 GetEventPredictionRequest& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
104
106
110 inline const Aws::String& GetEventTimestamp() const { return m_eventTimestamp; }
111 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
112 template<typename EventTimestampT = Aws::String>
113 void SetEventTimestamp(EventTimestampT&& value) { m_eventTimestampHasBeenSet = true; m_eventTimestamp = std::forward<EventTimestampT>(value); }
114 template<typename EventTimestampT = Aws::String>
115 GetEventPredictionRequest& WithEventTimestamp(EventTimestampT&& value) { SetEventTimestamp(std::forward<EventTimestampT>(value)); return *this;}
117
119
136 inline const Aws::Map<Aws::String, Aws::String>& GetEventVariables() const { return m_eventVariables; }
137 inline bool EventVariablesHasBeenSet() const { return m_eventVariablesHasBeenSet; }
138 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
139 void SetEventVariables(EventVariablesT&& value) { m_eventVariablesHasBeenSet = true; m_eventVariables = std::forward<EventVariablesT>(value); }
140 template<typename EventVariablesT = Aws::Map<Aws::String, Aws::String>>
141 GetEventPredictionRequest& WithEventVariables(EventVariablesT&& value) { SetEventVariables(std::forward<EventVariablesT>(value)); return *this;}
142 template<typename EventVariablesKeyT = Aws::String, typename EventVariablesValueT = Aws::String>
143 GetEventPredictionRequest& AddEventVariables(EventVariablesKeyT&& key, EventVariablesValueT&& value) {
144 m_eventVariablesHasBeenSet = true; m_eventVariables.emplace(std::forward<EventVariablesKeyT>(key), std::forward<EventVariablesValueT>(value)); return *this;
145 }
147
149
152 inline const Aws::Map<Aws::String, ModelEndpointDataBlob>& GetExternalModelEndpointDataBlobs() const { return m_externalModelEndpointDataBlobs; }
153 inline bool ExternalModelEndpointDataBlobsHasBeenSet() const { return m_externalModelEndpointDataBlobsHasBeenSet; }
154 template<typename ExternalModelEndpointDataBlobsT = Aws::Map<Aws::String, ModelEndpointDataBlob>>
155 void SetExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsT&& value) { m_externalModelEndpointDataBlobsHasBeenSet = true; m_externalModelEndpointDataBlobs = std::forward<ExternalModelEndpointDataBlobsT>(value); }
156 template<typename ExternalModelEndpointDataBlobsT = Aws::Map<Aws::String, ModelEndpointDataBlob>>
157 GetEventPredictionRequest& WithExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsT&& value) { SetExternalModelEndpointDataBlobs(std::forward<ExternalModelEndpointDataBlobsT>(value)); return *this;}
158 template<typename ExternalModelEndpointDataBlobsKeyT = Aws::String, typename ExternalModelEndpointDataBlobsValueT = ModelEndpointDataBlob>
159 GetEventPredictionRequest& AddExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsKeyT&& key, ExternalModelEndpointDataBlobsValueT&& value) {
160 m_externalModelEndpointDataBlobsHasBeenSet = true; m_externalModelEndpointDataBlobs.emplace(std::forward<ExternalModelEndpointDataBlobsKeyT>(key), std::forward<ExternalModelEndpointDataBlobsValueT>(value)); return *this;
161 }
163 private:
164
165 Aws::String m_detectorId;
166 bool m_detectorIdHasBeenSet = false;
167
168 Aws::String m_detectorVersionId;
169 bool m_detectorVersionIdHasBeenSet = false;
170
171 Aws::String m_eventId;
172 bool m_eventIdHasBeenSet = false;
173
174 Aws::String m_eventTypeName;
175 bool m_eventTypeNameHasBeenSet = false;
176
177 Aws::Vector<Entity> m_entities;
178 bool m_entitiesHasBeenSet = false;
179
180 Aws::String m_eventTimestamp;
181 bool m_eventTimestampHasBeenSet = false;
182
183 Aws::Map<Aws::String, Aws::String> m_eventVariables;
184 bool m_eventVariablesHasBeenSet = false;
185
186 Aws::Map<Aws::String, ModelEndpointDataBlob> m_externalModelEndpointDataBlobs;
187 bool m_externalModelEndpointDataBlobsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace FraudDetector
192} // namespace Aws
GetEventPredictionRequest & WithEventVariables(EventVariablesT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetEventPredictionRequest & WithDetectorId(DetectorIdT &&value)
GetEventPredictionRequest & WithDetectorVersionId(DetectorVersionIdT &&value)
GetEventPredictionRequest & AddExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsKeyT &&key, ExternalModelEndpointDataBlobsValueT &&value)
AWS_FRAUDDETECTOR_API GetEventPredictionRequest()=default
GetEventPredictionRequest & AddEventVariables(EventVariablesKeyT &&key, EventVariablesValueT &&value)
GetEventPredictionRequest & WithEventTypeName(EventTypeNameT &&value)
GetEventPredictionRequest & WithExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsT &&value)
const Aws::Map< Aws::String, ModelEndpointDataBlob > & GetExternalModelEndpointDataBlobs() const
GetEventPredictionRequest & WithEventId(EventIdT &&value)
GetEventPredictionRequest & WithEventTimestamp(EventTimestampT &&value)
void SetExternalModelEndpointDataBlobs(ExternalModelEndpointDataBlobsT &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetEventVariables() const
virtual const char * GetServiceRequestName() const override
GetEventPredictionRequest & WithEntities(EntitiesT &&value)
GetEventPredictionRequest & AddEntities(EntitiesT &&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