AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Transcript.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribestreaming/model/Result.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TranscribeStreamingService
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript() = default;
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::Vector<Result>& GetResults() const { return m_results; }
53 inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; }
54 template<typename ResultsT = Aws::Vector<Result>>
55 void SetResults(ResultsT&& value) { m_resultsHasBeenSet = true; m_results = std::forward<ResultsT>(value); }
56 template<typename ResultsT = Aws::Vector<Result>>
57 Transcript& WithResults(ResultsT&& value) { SetResults(std::forward<ResultsT>(value)); return *this;}
58 template<typename ResultsT = Result>
59 Transcript& AddResults(ResultsT&& value) { m_resultsHasBeenSet = true; m_results.emplace_back(std::forward<ResultsT>(value)); return *this; }
61 private:
62
63 Aws::Vector<Result> m_results;
64 bool m_resultsHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace TranscribeStreamingService
69} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Result > & GetResults() const
Definition Transcript.h:52
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript()=default
Transcript & WithResults(ResultsT &&value)
Definition Transcript.h:57
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Transcript & AddResults(ResultsT &&value)
Definition Transcript.h:59
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue