AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SubtitlesOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribe/TranscribeService_EXPORTS.h>
10#include <aws/transcribe/model/SubtitleFormat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TranscribeService {
22namespace Model {
23
31 public:
32 AWS_TRANSCRIBESERVICE_API SubtitlesOutput() = default;
33 AWS_TRANSCRIBESERVICE_API SubtitlesOutput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSCRIBESERVICE_API SubtitlesOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<SubtitleFormat>& GetFormats() const { return m_formats; }
44 inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; }
45 template <typename FormatsT = Aws::Vector<SubtitleFormat>>
46 void SetFormats(FormatsT&& value) {
47 m_formatsHasBeenSet = true;
48 m_formats = std::forward<FormatsT>(value);
49 }
50 template <typename FormatsT = Aws::Vector<SubtitleFormat>>
51 SubtitlesOutput& WithFormats(FormatsT&& value) {
52 SetFormats(std::forward<FormatsT>(value));
53 return *this;
54 }
56 m_formatsHasBeenSet = true;
57 m_formats.push_back(value);
58 return *this;
59 }
61
63
79 inline const Aws::Vector<Aws::String>& GetSubtitleFileUris() const { return m_subtitleFileUris; }
80 inline bool SubtitleFileUrisHasBeenSet() const { return m_subtitleFileUrisHasBeenSet; }
81 template <typename SubtitleFileUrisT = Aws::Vector<Aws::String>>
82 void SetSubtitleFileUris(SubtitleFileUrisT&& value) {
83 m_subtitleFileUrisHasBeenSet = true;
84 m_subtitleFileUris = std::forward<SubtitleFileUrisT>(value);
85 }
86 template <typename SubtitleFileUrisT = Aws::Vector<Aws::String>>
87 SubtitlesOutput& WithSubtitleFileUris(SubtitleFileUrisT&& value) {
88 SetSubtitleFileUris(std::forward<SubtitleFileUrisT>(value));
89 return *this;
90 }
91 template <typename SubtitleFileUrisT = Aws::String>
92 SubtitlesOutput& AddSubtitleFileUris(SubtitleFileUrisT&& value) {
93 m_subtitleFileUrisHasBeenSet = true;
94 m_subtitleFileUris.emplace_back(std::forward<SubtitleFileUrisT>(value));
95 return *this;
96 }
98
100
105 inline int GetOutputStartIndex() const { return m_outputStartIndex; }
106 inline bool OutputStartIndexHasBeenSet() const { return m_outputStartIndexHasBeenSet; }
107 inline void SetOutputStartIndex(int value) {
108 m_outputStartIndexHasBeenSet = true;
109 m_outputStartIndex = value;
110 }
112 SetOutputStartIndex(value);
113 return *this;
114 }
116 private:
118
119 Aws::Vector<Aws::String> m_subtitleFileUris;
120
121 int m_outputStartIndex{0};
122 bool m_formatsHasBeenSet = false;
123 bool m_subtitleFileUrisHasBeenSet = false;
124 bool m_outputStartIndexHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace TranscribeService
129} // namespace Aws
AWS_TRANSCRIBESERVICE_API SubtitlesOutput(Aws::Utils::Json::JsonView jsonValue)
SubtitlesOutput & AddFormats(SubtitleFormat value)
AWS_TRANSCRIBESERVICE_API SubtitlesOutput()=default
AWS_TRANSCRIBESERVICE_API SubtitlesOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SubtitleFormat > & GetFormats() const
SubtitlesOutput & AddSubtitleFileUris(SubtitleFileUrisT &&value)
SubtitlesOutput & WithFormats(FormatsT &&value)
void SetSubtitleFileUris(SubtitleFileUrisT &&value)
SubtitlesOutput & WithSubtitleFileUris(SubtitleFileUrisT &&value)
SubtitlesOutput & WithOutputStartIndex(int value)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubtitleFileUris() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue