AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
FraudDetectionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/voice-id/VoiceID_EXPORTS.h>
11#include <aws/voice-id/model/FraudDetectionConfiguration.h>
12#include <aws/voice-id/model/FraudDetectionDecision.h>
13#include <aws/voice-id/model/FraudDetectionReason.h>
14#include <aws/voice-id/model/FraudRiskDetails.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace VoiceID {
26namespace Model {
27
36 public:
37 AWS_VOICEID_API FraudDetectionResult() = default;
40 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::Utils::DateTime& GetAudioAggregationEndedAt() const { return m_audioAggregationEndedAt; }
48 inline bool AudioAggregationEndedAtHasBeenSet() const { return m_audioAggregationEndedAtHasBeenSet; }
49 template <typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
50 void SetAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) {
51 m_audioAggregationEndedAtHasBeenSet = true;
52 m_audioAggregationEndedAt = std::forward<AudioAggregationEndedAtT>(value);
53 }
54 template <typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
55 FraudDetectionResult& WithAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) {
56 SetAudioAggregationEndedAt(std::forward<AudioAggregationEndedAtT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Utils::DateTime& GetAudioAggregationStartedAt() const { return m_audioAggregationStartedAt; }
67 inline bool AudioAggregationStartedAtHasBeenSet() const { return m_audioAggregationStartedAtHasBeenSet; }
68 template <typename AudioAggregationStartedAtT = Aws::Utils::DateTime>
69 void SetAudioAggregationStartedAt(AudioAggregationStartedAtT&& value) {
70 m_audioAggregationStartedAtHasBeenSet = true;
71 m_audioAggregationStartedAt = std::forward<AudioAggregationStartedAtT>(value);
72 }
73 template <typename AudioAggregationStartedAtT = Aws::Utils::DateTime>
74 FraudDetectionResult& WithAudioAggregationStartedAt(AudioAggregationStartedAtT&& value) {
75 SetAudioAggregationStartedAt(std::forward<AudioAggregationStartedAtT>(value));
76 return *this;
77 }
79
81
85 inline const FraudDetectionConfiguration& GetConfiguration() const { return m_configuration; }
86 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
87 template <typename ConfigurationT = FraudDetectionConfiguration>
88 void SetConfiguration(ConfigurationT&& value) {
89 m_configurationHasBeenSet = true;
90 m_configuration = std::forward<ConfigurationT>(value);
91 }
92 template <typename ConfigurationT = FraudDetectionConfiguration>
93 FraudDetectionResult& WithConfiguration(ConfigurationT&& value) {
94 SetConfiguration(std::forward<ConfigurationT>(value));
95 return *this;
96 }
98
100
104 inline FraudDetectionDecision GetDecision() const { return m_decision; }
105 inline bool DecisionHasBeenSet() const { return m_decisionHasBeenSet; }
107 m_decisionHasBeenSet = true;
108 m_decision = value;
109 }
111 SetDecision(value);
112 return *this;
113 }
115
117
124 inline const Aws::String& GetFraudDetectionResultId() const { return m_fraudDetectionResultId; }
125 inline bool FraudDetectionResultIdHasBeenSet() const { return m_fraudDetectionResultIdHasBeenSet; }
126 template <typename FraudDetectionResultIdT = Aws::String>
127 void SetFraudDetectionResultId(FraudDetectionResultIdT&& value) {
128 m_fraudDetectionResultIdHasBeenSet = true;
129 m_fraudDetectionResultId = std::forward<FraudDetectionResultIdT>(value);
130 }
131 template <typename FraudDetectionResultIdT = Aws::String>
132 FraudDetectionResult& WithFraudDetectionResultId(FraudDetectionResultIdT&& value) {
133 SetFraudDetectionResultId(std::forward<FraudDetectionResultIdT>(value));
134 return *this;
135 }
137
139
145 inline const Aws::Vector<FraudDetectionReason>& GetReasons() const { return m_reasons; }
146 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
147 template <typename ReasonsT = Aws::Vector<FraudDetectionReason>>
148 void SetReasons(ReasonsT&& value) {
149 m_reasonsHasBeenSet = true;
150 m_reasons = std::forward<ReasonsT>(value);
151 }
152 template <typename ReasonsT = Aws::Vector<FraudDetectionReason>>
154 SetReasons(std::forward<ReasonsT>(value));
155 return *this;
156 }
158 m_reasonsHasBeenSet = true;
159 m_reasons.push_back(value);
160 return *this;
161 }
163
165
169 inline const FraudRiskDetails& GetRiskDetails() const { return m_riskDetails; }
170 inline bool RiskDetailsHasBeenSet() const { return m_riskDetailsHasBeenSet; }
171 template <typename RiskDetailsT = FraudRiskDetails>
172 void SetRiskDetails(RiskDetailsT&& value) {
173 m_riskDetailsHasBeenSet = true;
174 m_riskDetails = std::forward<RiskDetailsT>(value);
175 }
176 template <typename RiskDetailsT = FraudRiskDetails>
177 FraudDetectionResult& WithRiskDetails(RiskDetailsT&& value) {
178 SetRiskDetails(std::forward<RiskDetailsT>(value));
179 return *this;
180 }
182 private:
183 Aws::Utils::DateTime m_audioAggregationEndedAt{};
184
185 Aws::Utils::DateTime m_audioAggregationStartedAt{};
186
187 FraudDetectionConfiguration m_configuration;
188
190
191 Aws::String m_fraudDetectionResultId;
192
194
195 FraudRiskDetails m_riskDetails;
196 bool m_audioAggregationEndedAtHasBeenSet = false;
197 bool m_audioAggregationStartedAtHasBeenSet = false;
198 bool m_configurationHasBeenSet = false;
199 bool m_decisionHasBeenSet = false;
200 bool m_fraudDetectionResultIdHasBeenSet = false;
201 bool m_reasonsHasBeenSet = false;
202 bool m_riskDetailsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace VoiceID
207} // namespace Aws
FraudDetectionResult & WithFraudDetectionResultId(FraudDetectionResultIdT &&value)
void SetConfiguration(ConfigurationT &&value)
FraudDetectionResult & WithAudioAggregationStartedAt(AudioAggregationStartedAtT &&value)
FraudDetectionResult & AddReasons(FraudDetectionReason value)
AWS_VOICEID_API FraudDetectionResult(Aws::Utils::Json::JsonView jsonValue)
FraudDetectionResult & WithAudioAggregationEndedAt(AudioAggregationEndedAtT &&value)
AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDecision(FraudDetectionDecision value)
void SetFraudDetectionResultId(FraudDetectionResultIdT &&value)
FraudDetectionResult & WithReasons(ReasonsT &&value)
const Aws::Vector< FraudDetectionReason > & GetReasons() const
void SetAudioAggregationEndedAt(AudioAggregationEndedAtT &&value)
AWS_VOICEID_API FraudDetectionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
FraudDetectionResult & WithRiskDetails(RiskDetailsT &&value)
FraudDetectionResult & WithConfiguration(ConfigurationT &&value)
const FraudRiskDetails & GetRiskDetails() const
AWS_VOICEID_API FraudDetectionResult()=default
const Aws::String & GetFraudDetectionResultId() const
const Aws::Utils::DateTime & GetAudioAggregationStartedAt() const
const FraudDetectionConfiguration & GetConfiguration() const
FraudDetectionResult & WithDecision(FraudDetectionDecision value)
void SetAudioAggregationStartedAt(AudioAggregationStartedAtT &&value)
const Aws::Utils::DateTime & GetAudioAggregationEndedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue