AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CaptionLanguageMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaLive {
20namespace Model {
21
30 public:
31 AWS_MEDIALIVE_API CaptionLanguageMapping() = default;
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetCaptionChannel() const { return m_captionChannel; }
42 inline bool CaptionChannelHasBeenSet() const { return m_captionChannelHasBeenSet; }
43 inline void SetCaptionChannel(int value) {
44 m_captionChannelHasBeenSet = true;
45 m_captionChannel = value;
46 }
48 SetCaptionChannel(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
59 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
60 template <typename LanguageCodeT = Aws::String>
61 void SetLanguageCode(LanguageCodeT&& value) {
62 m_languageCodeHasBeenSet = true;
63 m_languageCode = std::forward<LanguageCodeT>(value);
64 }
65 template <typename LanguageCodeT = Aws::String>
66 CaptionLanguageMapping& WithLanguageCode(LanguageCodeT&& value) {
67 SetLanguageCode(std::forward<LanguageCodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLanguageDescription() const { return m_languageDescription; }
77 inline bool LanguageDescriptionHasBeenSet() const { return m_languageDescriptionHasBeenSet; }
78 template <typename LanguageDescriptionT = Aws::String>
79 void SetLanguageDescription(LanguageDescriptionT&& value) {
80 m_languageDescriptionHasBeenSet = true;
81 m_languageDescription = std::forward<LanguageDescriptionT>(value);
82 }
83 template <typename LanguageDescriptionT = Aws::String>
84 CaptionLanguageMapping& WithLanguageDescription(LanguageDescriptionT&& value) {
85 SetLanguageDescription(std::forward<LanguageDescriptionT>(value));
86 return *this;
87 }
89 private:
90 int m_captionChannel{0};
91
92 Aws::String m_languageCode;
93
94 Aws::String m_languageDescription;
95 bool m_captionChannelHasBeenSet = false;
96 bool m_languageCodeHasBeenSet = false;
97 bool m_languageDescriptionHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace MediaLive
102} // namespace Aws
AWS_MEDIALIVE_API CaptionLanguageMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
CaptionLanguageMapping & WithLanguageCode(LanguageCodeT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLanguageDescription(LanguageDescriptionT &&value)
CaptionLanguageMapping & WithCaptionChannel(int value)
CaptionLanguageMapping & WithLanguageDescription(LanguageDescriptionT &&value)
AWS_MEDIALIVE_API CaptionLanguageMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API CaptionLanguageMapping()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue