AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Subtitles.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribe/model/SubtitleFormat.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 TranscribeService
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_TRANSCRIBESERVICE_API Subtitles() = default;
40 AWS_TRANSCRIBESERVICE_API Subtitles(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESERVICE_API Subtitles& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Vector<SubtitleFormat>& GetFormats() const { return m_formats; }
52 inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; }
53 template<typename FormatsT = Aws::Vector<SubtitleFormat>>
54 void SetFormats(FormatsT&& value) { m_formatsHasBeenSet = true; m_formats = std::forward<FormatsT>(value); }
55 template<typename FormatsT = Aws::Vector<SubtitleFormat>>
56 Subtitles& WithFormats(FormatsT&& value) { SetFormats(std::forward<FormatsT>(value)); return *this;}
57 inline Subtitles& AddFormats(SubtitleFormat value) { m_formatsHasBeenSet = true; m_formats.push_back(value); return *this; }
59
61
68 inline int GetOutputStartIndex() const { return m_outputStartIndex; }
69 inline bool OutputStartIndexHasBeenSet() const { return m_outputStartIndexHasBeenSet; }
70 inline void SetOutputStartIndex(int value) { m_outputStartIndexHasBeenSet = true; m_outputStartIndex = value; }
71 inline Subtitles& WithOutputStartIndex(int value) { SetOutputStartIndex(value); return *this;}
73 private:
74
76 bool m_formatsHasBeenSet = false;
77
78 int m_outputStartIndex{0};
79 bool m_outputStartIndexHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace TranscribeService
84} // namespace Aws
void SetFormats(FormatsT &&value)
Definition Subtitles.h:54
Subtitles & WithFormats(FormatsT &&value)
Definition Subtitles.h:56
const Aws::Vector< SubtitleFormat > & GetFormats() const
Definition Subtitles.h:51
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSCRIBESERVICE_API Subtitles(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API Subtitles()=default
AWS_TRANSCRIBESERVICE_API Subtitles & operator=(Aws::Utils::Json::JsonView jsonValue)
Subtitles & AddFormats(SubtitleFormat value)
Definition Subtitles.h:57
Subtitles & WithOutputStartIndex(int value)
Definition Subtitles.h:71
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue