AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EnrollmentJobFraudDetectionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/voice-id/VoiceID_EXPORTS.h>
10#include <aws/voice-id/model/FraudDetectionAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VoiceID {
22namespace Model {
23
31 public:
32 AWS_VOICEID_API EnrollmentJobFraudDetectionConfig() = default;
35 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline FraudDetectionAction GetFraudDetectionAction() const { return m_fraudDetectionAction; }
45 inline bool FraudDetectionActionHasBeenSet() const { return m_fraudDetectionActionHasBeenSet; }
47 m_fraudDetectionActionHasBeenSet = true;
48 m_fraudDetectionAction = value;
49 }
52 return *this;
53 }
55
57
62 inline int GetRiskThreshold() const { return m_riskThreshold; }
63 inline bool RiskThresholdHasBeenSet() const { return m_riskThresholdHasBeenSet; }
64 inline void SetRiskThreshold(int value) {
65 m_riskThresholdHasBeenSet = true;
66 m_riskThreshold = value;
67 }
69 SetRiskThreshold(value);
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetWatchlistIds() const { return m_watchlistIds; }
79 inline bool WatchlistIdsHasBeenSet() const { return m_watchlistIdsHasBeenSet; }
80 template <typename WatchlistIdsT = Aws::Vector<Aws::String>>
81 void SetWatchlistIds(WatchlistIdsT&& value) {
82 m_watchlistIdsHasBeenSet = true;
83 m_watchlistIds = std::forward<WatchlistIdsT>(value);
84 }
85 template <typename WatchlistIdsT = Aws::Vector<Aws::String>>
87 SetWatchlistIds(std::forward<WatchlistIdsT>(value));
88 return *this;
89 }
90 template <typename WatchlistIdsT = Aws::String>
92 m_watchlistIdsHasBeenSet = true;
93 m_watchlistIds.emplace_back(std::forward<WatchlistIdsT>(value));
94 return *this;
95 }
97 private:
99
100 int m_riskThreshold{0};
101
102 Aws::Vector<Aws::String> m_watchlistIds;
103 bool m_fraudDetectionActionHasBeenSet = false;
104 bool m_riskThresholdHasBeenSet = false;
105 bool m_watchlistIdsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace VoiceID
110} // namespace Aws
EnrollmentJobFraudDetectionConfig & WithRiskThreshold(int value)
EnrollmentJobFraudDetectionConfig & WithWatchlistIds(WatchlistIdsT &&value)
AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VOICEID_API EnrollmentJobFraudDetectionConfig(Aws::Utils::Json::JsonView jsonValue)
EnrollmentJobFraudDetectionConfig & AddWatchlistIds(WatchlistIdsT &&value)
AWS_VOICEID_API EnrollmentJobFraudDetectionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
EnrollmentJobFraudDetectionConfig & WithFraudDetectionAction(FraudDetectionAction value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue