AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthenticationResult.h
1
6#pragma once
7#include <aws/voice-id/VoiceID_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/voice-id/model/AuthenticationConfiguration.h>
11#include <aws/voice-id/model/AuthenticationDecision.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace VoiceID
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_VOICEID_API AuthenticationResult() = default;
41 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Utils::DateTime& GetAudioAggregationEndedAt() const { return m_audioAggregationEndedAt; }
50 inline bool AudioAggregationEndedAtHasBeenSet() const { return m_audioAggregationEndedAtHasBeenSet; }
51 template<typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
52 void SetAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) { m_audioAggregationEndedAtHasBeenSet = true; m_audioAggregationEndedAt = std::forward<AudioAggregationEndedAtT>(value); }
53 template<typename AudioAggregationEndedAtT = Aws::Utils::DateTime>
54 AuthenticationResult& WithAudioAggregationEndedAt(AudioAggregationEndedAtT&& value) { SetAudioAggregationEndedAt(std::forward<AudioAggregationEndedAtT>(value)); return *this;}
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) { m_audioAggregationStartedAtHasBeenSet = true; m_audioAggregationStartedAt = std::forward<AudioAggregationStartedAtT>(value); }
66 template<typename AudioAggregationStartedAtT = Aws::Utils::DateTime>
67 AuthenticationResult& WithAudioAggregationStartedAt(AudioAggregationStartedAtT&& value) { SetAudioAggregationStartedAt(std::forward<AudioAggregationStartedAtT>(value)); return *this;}
69
71
79 inline const Aws::String& GetAuthenticationResultId() const { return m_authenticationResultId; }
80 inline bool AuthenticationResultIdHasBeenSet() const { return m_authenticationResultIdHasBeenSet; }
81 template<typename AuthenticationResultIdT = Aws::String>
82 void SetAuthenticationResultId(AuthenticationResultIdT&& value) { m_authenticationResultIdHasBeenSet = true; m_authenticationResultId = std::forward<AuthenticationResultIdT>(value); }
83 template<typename AuthenticationResultIdT = Aws::String>
84 AuthenticationResult& WithAuthenticationResultId(AuthenticationResultIdT&& value) { SetAuthenticationResultId(std::forward<AuthenticationResultIdT>(value)); return *this;}
86
88
92 inline const AuthenticationConfiguration& GetConfiguration() const { return m_configuration; }
93 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
94 template<typename ConfigurationT = AuthenticationConfiguration>
95 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
96 template<typename ConfigurationT = AuthenticationConfiguration>
97 AuthenticationResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
99
101
106 inline const Aws::String& GetCustomerSpeakerId() const { return m_customerSpeakerId; }
107 inline bool CustomerSpeakerIdHasBeenSet() const { return m_customerSpeakerIdHasBeenSet; }
108 template<typename CustomerSpeakerIdT = Aws::String>
109 void SetCustomerSpeakerId(CustomerSpeakerIdT&& value) { m_customerSpeakerIdHasBeenSet = true; m_customerSpeakerId = std::forward<CustomerSpeakerIdT>(value); }
110 template<typename CustomerSpeakerIdT = Aws::String>
111 AuthenticationResult& WithCustomerSpeakerId(CustomerSpeakerIdT&& value) { SetCustomerSpeakerId(std::forward<CustomerSpeakerIdT>(value)); return *this;}
113
115
119 inline AuthenticationDecision GetDecision() const { return m_decision; }
120 inline bool DecisionHasBeenSet() const { return m_decisionHasBeenSet; }
121 inline void SetDecision(AuthenticationDecision value) { m_decisionHasBeenSet = true; m_decision = value; }
124
126
130 inline const Aws::String& GetGeneratedSpeakerId() const { return m_generatedSpeakerId; }
131 inline bool GeneratedSpeakerIdHasBeenSet() const { return m_generatedSpeakerIdHasBeenSet; }
132 template<typename GeneratedSpeakerIdT = Aws::String>
133 void SetGeneratedSpeakerId(GeneratedSpeakerIdT&& value) { m_generatedSpeakerIdHasBeenSet = true; m_generatedSpeakerId = std::forward<GeneratedSpeakerIdT>(value); }
134 template<typename GeneratedSpeakerIdT = Aws::String>
135 AuthenticationResult& WithGeneratedSpeakerId(GeneratedSpeakerIdT&& value) { SetGeneratedSpeakerId(std::forward<GeneratedSpeakerIdT>(value)); return *this;}
137
139
144 inline int GetScore() const { return m_score; }
145 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
146 inline void SetScore(int value) { m_scoreHasBeenSet = true; m_score = value; }
147 inline AuthenticationResult& WithScore(int value) { SetScore(value); return *this;}
149 private:
150
151 Aws::Utils::DateTime m_audioAggregationEndedAt{};
152 bool m_audioAggregationEndedAtHasBeenSet = false;
153
154 Aws::Utils::DateTime m_audioAggregationStartedAt{};
155 bool m_audioAggregationStartedAtHasBeenSet = false;
156
157 Aws::String m_authenticationResultId;
158 bool m_authenticationResultIdHasBeenSet = false;
159
160 AuthenticationConfiguration m_configuration;
161 bool m_configurationHasBeenSet = false;
162
163 Aws::String m_customerSpeakerId;
164 bool m_customerSpeakerIdHasBeenSet = false;
165
167 bool m_decisionHasBeenSet = false;
168
169 Aws::String m_generatedSpeakerId;
170 bool m_generatedSpeakerIdHasBeenSet = false;
171
172 int m_score{0};
173 bool m_scoreHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace VoiceID
178} // namespace Aws
void SetConfiguration(ConfigurationT &&value)
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