AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HlsCaptionLanguageMapping.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/LanguageCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConvert {
21namespace Model {
22
29 public:
30 AWS_MEDIACONVERT_API HlsCaptionLanguageMapping() = default;
33 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetCaptionChannel() const { return m_captionChannel; }
40 inline bool CaptionChannelHasBeenSet() const { return m_captionChannelHasBeenSet; }
41 inline void SetCaptionChannel(int value) {
42 m_captionChannelHasBeenSet = true;
43 m_captionChannel = value;
44 }
46 SetCaptionChannel(value);
47 return *this;
48 }
50
52
57 inline const Aws::String& GetCustomLanguageCode() const { return m_customLanguageCode; }
58 inline bool CustomLanguageCodeHasBeenSet() const { return m_customLanguageCodeHasBeenSet; }
59 template <typename CustomLanguageCodeT = Aws::String>
60 void SetCustomLanguageCode(CustomLanguageCodeT&& value) {
61 m_customLanguageCodeHasBeenSet = true;
62 m_customLanguageCode = std::forward<CustomLanguageCodeT>(value);
63 }
64 template <typename CustomLanguageCodeT = Aws::String>
65 HlsCaptionLanguageMapping& WithCustomLanguageCode(CustomLanguageCodeT&& value) {
66 SetCustomLanguageCode(std::forward<CustomLanguageCodeT>(value));
67 return *this;
68 }
70
72
77 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
78 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
79 inline void SetLanguageCode(LanguageCode value) {
80 m_languageCodeHasBeenSet = true;
81 m_languageCode = value;
82 }
84 SetLanguageCode(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLanguageDescription() const { return m_languageDescription; }
94 inline bool LanguageDescriptionHasBeenSet() const { return m_languageDescriptionHasBeenSet; }
95 template <typename LanguageDescriptionT = Aws::String>
96 void SetLanguageDescription(LanguageDescriptionT&& value) {
97 m_languageDescriptionHasBeenSet = true;
98 m_languageDescription = std::forward<LanguageDescriptionT>(value);
99 }
100 template <typename LanguageDescriptionT = Aws::String>
101 HlsCaptionLanguageMapping& WithLanguageDescription(LanguageDescriptionT&& value) {
102 SetLanguageDescription(std::forward<LanguageDescriptionT>(value));
103 return *this;
104 }
106 private:
107 int m_captionChannel{0};
108
109 Aws::String m_customLanguageCode;
110
111 LanguageCode m_languageCode{LanguageCode::NOT_SET};
112
113 Aws::String m_languageDescription;
114 bool m_captionChannelHasBeenSet = false;
115 bool m_customLanguageCodeHasBeenSet = false;
116 bool m_languageCodeHasBeenSet = false;
117 bool m_languageDescriptionHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace MediaConvert
122} // namespace Aws
AWS_MEDIACONVERT_API HlsCaptionLanguageMapping()=default
HlsCaptionLanguageMapping & WithCaptionChannel(int value)
HlsCaptionLanguageMapping & WithLanguageCode(LanguageCode value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
HlsCaptionLanguageMapping & WithCustomLanguageCode(CustomLanguageCodeT &&value)
AWS_MEDIACONVERT_API HlsCaptionLanguageMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API HlsCaptionLanguageMapping(Aws::Utils::Json::JsonView jsonValue)
HlsCaptionLanguageMapping & WithLanguageDescription(LanguageDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue