AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AuthenticationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/voice-id/VoiceID_EXPORTS.h>
10#include <aws/voice-id/model/AuthenticationConfiguration.h>
11#include <aws/voice-id/model/AuthenticationDecision.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VoiceID {
23namespace Model {
24
32 public:
33 AWS_VOICEID_API AuthenticationResult() = default;
36 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Utils::DateTime& GetAudioAggregationEndedAt() const { return m_audioAggregationEndedAt; }
44 inline bool AudioAggregationEndedAtHasBeenSet() const { return m_audioAggregationEndedAtHasBeenSet; }
45 template <typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
46 void SetAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) {
47 m_audioAggregationEndedAtHasBeenSet = true;
48 m_audioAggregationEndedAt = std::forward<AudioAggregationEndedAtT>(value);
49 }
50 template <typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
51 AuthenticationResult& WithAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) {
52 SetAudioAggregationEndedAt(std::forward<AudioAggregationEndedAtT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetAudioAggregationStartedAt() const { return m_audioAggregationStartedAt; }
63 inline bool AudioAggregationStartedAtHasBeenSet() const { return m_audioAggregationStartedAtHasBeenSet; }
64 template <typename AudioAggregationStartedAtT = Aws::Utils::DateTime>
65 void SetAudioAggregationStartedAt(AudioAggregationStartedAtT&& value) {
66 m_audioAggregationStartedAtHasBeenSet = true;
67 m_audioAggregationStartedAt = std::forward<AudioAggregationStartedAtT>(value);
68 }
69 template <typename AudioAggregationStartedAtT = Aws::Utils::DateTime>
70 AuthenticationResult& WithAudioAggregationStartedAt(AudioAggregationStartedAtT&& value) {
71 SetAudioAggregationStartedAt(std::forward<AudioAggregationStartedAtT>(value));
72 return *this;
73 }
75
77
85 inline const Aws::String& GetAuthenticationResultId() const { return m_authenticationResultId; }
86 inline bool AuthenticationResultIdHasBeenSet() const { return m_authenticationResultIdHasBeenSet; }
87 template <typename AuthenticationResultIdT = Aws::String>
88 void SetAuthenticationResultId(AuthenticationResultIdT&& value) {
89 m_authenticationResultIdHasBeenSet = true;
90 m_authenticationResultId = std::forward<AuthenticationResultIdT>(value);
91 }
92 template <typename AuthenticationResultIdT = Aws::String>
93 AuthenticationResult& WithAuthenticationResultId(AuthenticationResultIdT&& value) {
94 SetAuthenticationResultId(std::forward<AuthenticationResultIdT>(value));
95 return *this;
96 }
98
100
104 inline const AuthenticationConfiguration& GetConfiguration() const { return m_configuration; }
105 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
106 template <typename ConfigurationT = AuthenticationConfiguration>
107 void SetConfiguration(ConfigurationT&& value) {
108 m_configurationHasBeenSet = true;
109 m_configuration = std::forward<ConfigurationT>(value);
110 }
111 template <typename ConfigurationT = AuthenticationConfiguration>
112 AuthenticationResult& WithConfiguration(ConfigurationT&& value) {
113 SetConfiguration(std::forward<ConfigurationT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetCustomerSpeakerId() const { return m_customerSpeakerId; }
125 inline bool CustomerSpeakerIdHasBeenSet() const { return m_customerSpeakerIdHasBeenSet; }
126 template <typename CustomerSpeakerIdT = Aws::String>
127 void SetCustomerSpeakerId(CustomerSpeakerIdT&& value) {
128 m_customerSpeakerIdHasBeenSet = true;
129 m_customerSpeakerId = std::forward<CustomerSpeakerIdT>(value);
130 }
131 template <typename CustomerSpeakerIdT = Aws::String>
132 AuthenticationResult& WithCustomerSpeakerId(CustomerSpeakerIdT&& value) {
133 SetCustomerSpeakerId(std::forward<CustomerSpeakerIdT>(value));
134 return *this;
135 }
137
139
143 inline AuthenticationDecision GetDecision() const { return m_decision; }
144 inline bool DecisionHasBeenSet() const { return m_decisionHasBeenSet; }
146 m_decisionHasBeenSet = true;
147 m_decision = value;
148 }
150 SetDecision(value);
151 return *this;
152 }
154
156
160 inline const Aws::String& GetGeneratedSpeakerId() const { return m_generatedSpeakerId; }
161 inline bool GeneratedSpeakerIdHasBeenSet() const { return m_generatedSpeakerIdHasBeenSet; }
162 template <typename GeneratedSpeakerIdT = Aws::String>
163 void SetGeneratedSpeakerId(GeneratedSpeakerIdT&& value) {
164 m_generatedSpeakerIdHasBeenSet = true;
165 m_generatedSpeakerId = std::forward<GeneratedSpeakerIdT>(value);
166 }
167 template <typename GeneratedSpeakerIdT = Aws::String>
168 AuthenticationResult& WithGeneratedSpeakerId(GeneratedSpeakerIdT&& value) {
169 SetGeneratedSpeakerId(std::forward<GeneratedSpeakerIdT>(value));
170 return *this;
171 }
173
175
180 inline int GetScore() const { return m_score; }
181 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
182 inline void SetScore(int value) {
183 m_scoreHasBeenSet = true;
184 m_score = value;
185 }
186 inline AuthenticationResult& WithScore(int value) {
187 SetScore(value);
188 return *this;
189 }
191 private:
192 Aws::Utils::DateTime m_audioAggregationEndedAt{};
193
194 Aws::Utils::DateTime m_audioAggregationStartedAt{};
195
196 Aws::String m_authenticationResultId;
197
198 AuthenticationConfiguration m_configuration;
199
200 Aws::String m_customerSpeakerId;
201
203
204 Aws::String m_generatedSpeakerId;
205
206 int m_score{0};
207 bool m_audioAggregationEndedAtHasBeenSet = false;
208 bool m_audioAggregationStartedAtHasBeenSet = false;
209 bool m_authenticationResultIdHasBeenSet = false;
210 bool m_configurationHasBeenSet = false;
211 bool m_customerSpeakerIdHasBeenSet = false;
212 bool m_decisionHasBeenSet = false;
213 bool m_generatedSpeakerIdHasBeenSet = false;
214 bool m_scoreHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace VoiceID
219} // namespace Aws
AuthenticationResult & WithGeneratedSpeakerId(GeneratedSpeakerIdT &&value)
AuthenticationResult & WithDecision(AuthenticationDecision value)
const Aws::String & GetAuthenticationResultId() const
AWS_VOICEID_API AuthenticationResult(Aws::Utils::Json::JsonView jsonValue)
AuthenticationResult & WithAudioAggregationStartedAt(AudioAggregationStartedAtT &&value)
AWS_VOICEID_API AuthenticationResult()=default
AuthenticationResult & WithConfiguration(ConfigurationT &&value)
const Aws::String & GetGeneratedSpeakerId() const
AuthenticationResult & WithCustomerSpeakerId(CustomerSpeakerIdT &&value)
AuthenticationResult & WithAuthenticationResultId(AuthenticationResultIdT &&value)
void SetGeneratedSpeakerId(GeneratedSpeakerIdT &&value)
void SetCustomerSpeakerId(CustomerSpeakerIdT &&value)
AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const
AuthenticationResult & WithScore(int value)
const Aws::Utils::DateTime & GetAudioAggregationStartedAt() const
AuthenticationResult & WithAudioAggregationEndedAt(AudioAggregationEndedAtT &&value)
const Aws::Utils::DateTime & GetAudioAggregationEndedAt() const
void SetAudioAggregationStartedAt(AudioAggregationStartedAtT &&value)
void SetDecision(AuthenticationDecision value)
void SetAuthenticationResultId(AuthenticationResultIdT &&value)
void SetAudioAggregationEndedAt(AudioAggregationEndedAtT &&value)
AWS_VOICEID_API AuthenticationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const AuthenticationConfiguration & GetConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue