AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
Subtitles.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/transcribe/TranscribeService_EXPORTS.h>
9#include <aws/transcribe/model/SubtitleFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TranscribeService {
21namespace Model {
22
32class Subtitles {
33 public:
34 AWS_TRANSCRIBESERVICE_API Subtitles() = default;
35 AWS_TRANSCRIBESERVICE_API Subtitles(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSCRIBESERVICE_API Subtitles& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Vector<SubtitleFormat>& GetFormats() const { return m_formats; }
46 inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; }
47 template <typename FormatsT = Aws::Vector<SubtitleFormat>>
48 void SetFormats(FormatsT&& value) {
49 m_formatsHasBeenSet = true;
50 m_formats = std::forward<FormatsT>(value);
51 }
52 template <typename FormatsT = Aws::Vector<SubtitleFormat>>
53 Subtitles& WithFormats(FormatsT&& value) {
54 SetFormats(std::forward<FormatsT>(value));
55 return *this;
56 }
58 m_formatsHasBeenSet = true;
59 m_formats.push_back(value);
60 return *this;
61 }
63
65
72 inline int GetOutputStartIndex() const { return m_outputStartIndex; }
73 inline bool OutputStartIndexHasBeenSet() const { return m_outputStartIndexHasBeenSet; }
74 inline void SetOutputStartIndex(int value) {
75 m_outputStartIndexHasBeenSet = true;
76 m_outputStartIndex = value;
77 }
78 inline Subtitles& WithOutputStartIndex(int value) {
80 return *this;
81 }
83 private:
85
86 int m_outputStartIndex{0};
87 bool m_formatsHasBeenSet = false;
88 bool m_outputStartIndexHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace TranscribeService
93} // namespace Aws
void SetFormats(FormatsT &&value)
Definition Subtitles.h:48
Subtitles & WithFormats(FormatsT &&value)
Definition Subtitles.h:53
const Aws::Vector< SubtitleFormat > & GetFormats() const
Definition Subtitles.h:45
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:78
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue