AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CaptionSelector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/CaptionSourceSettings.h>
10#include <aws/mediaconvert/model/LanguageCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaConvert {
22namespace Model {
23
32 public:
33 AWS_MEDIACONVERT_API CaptionSelector() = default;
34 AWS_MEDIACONVERT_API CaptionSelector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONVERT_API CaptionSelector& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline const Aws::String& GetCustomLanguageCode() const { return m_customLanguageCode; }
49 inline bool CustomLanguageCodeHasBeenSet() const { return m_customLanguageCodeHasBeenSet; }
50 template <typename CustomLanguageCodeT = Aws::String>
51 void SetCustomLanguageCode(CustomLanguageCodeT&& value) {
52 m_customLanguageCodeHasBeenSet = true;
53 m_customLanguageCode = std::forward<CustomLanguageCodeT>(value);
54 }
55 template <typename CustomLanguageCodeT = Aws::String>
56 CaptionSelector& WithCustomLanguageCode(CustomLanguageCodeT&& value) {
57 SetCustomLanguageCode(std::forward<CustomLanguageCodeT>(value));
58 return *this;
59 }
61
63
71 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
72 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
73 inline void SetLanguageCode(LanguageCode value) {
74 m_languageCodeHasBeenSet = true;
75 m_languageCode = value;
76 }
78 SetLanguageCode(value);
79 return *this;
80 }
82
84
89 inline const CaptionSourceSettings& GetSourceSettings() const { return m_sourceSettings; }
90 inline bool SourceSettingsHasBeenSet() const { return m_sourceSettingsHasBeenSet; }
91 template <typename SourceSettingsT = CaptionSourceSettings>
92 void SetSourceSettings(SourceSettingsT&& value) {
93 m_sourceSettingsHasBeenSet = true;
94 m_sourceSettings = std::forward<SourceSettingsT>(value);
95 }
96 template <typename SourceSettingsT = CaptionSourceSettings>
97 CaptionSelector& WithSourceSettings(SourceSettingsT&& value) {
98 SetSourceSettings(std::forward<SourceSettingsT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_customLanguageCode;
104
105 LanguageCode m_languageCode{LanguageCode::NOT_SET};
106
107 CaptionSourceSettings m_sourceSettings;
108 bool m_customLanguageCodeHasBeenSet = false;
109 bool m_languageCodeHasBeenSet = false;
110 bool m_sourceSettingsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace MediaConvert
115} // namespace Aws
const Aws::String & GetCustomLanguageCode() const
AWS_MEDIACONVERT_API CaptionSelector()=default
CaptionSelector & WithSourceSettings(SourceSettingsT &&value)
AWS_MEDIACONVERT_API CaptionSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
CaptionSelector & WithLanguageCode(LanguageCode value)
void SetCustomLanguageCode(CustomLanguageCodeT &&value)
CaptionSelector & WithCustomLanguageCode(CustomLanguageCodeT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONVERT_API CaptionSelector(Aws::Utils::Json::JsonView jsonValue)
void SetSourceSettings(SourceSettingsT &&value)
const CaptionSourceSettings & GetSourceSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue