AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
Transcript.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
9#include <aws/transcribestreaming/model/Result.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TranscribeStreamingService {
21namespace Model {
22
32 public:
33 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript() = default;
34 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::Vector<Result>& GetResults() const { return m_results; }
47 inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; }
48 template <typename ResultsT = Aws::Vector<Result>>
49 void SetResults(ResultsT&& value) {
50 m_resultsHasBeenSet = true;
51 m_results = std::forward<ResultsT>(value);
52 }
53 template <typename ResultsT = Aws::Vector<Result>>
54 Transcript& WithResults(ResultsT&& value) {
55 SetResults(std::forward<ResultsT>(value));
56 return *this;
57 }
58 template <typename ResultsT = Result>
59 Transcript& AddResults(ResultsT&& value) {
60 m_resultsHasBeenSet = true;
61 m_results.emplace_back(std::forward<ResultsT>(value));
62 return *this;
63 }
65 private:
66 Aws::Vector<Result> m_results;
67 bool m_resultsHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace TranscribeStreamingService
72} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Result > & GetResults() const
Definition Transcript.h:46
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript()=default
Transcript & WithResults(ResultsT &&value)
Definition Transcript.h:54
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