/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaConvert { namespace Model { /** * Caption Language Mapping

See Also:

AWS * API Reference

*/ class HlsCaptionLanguageMapping { public: AWS_MEDIACONVERT_API HlsCaptionLanguageMapping(); AWS_MEDIACONVERT_API HlsCaptionLanguageMapping(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API HlsCaptionLanguageMapping& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * Caption channel. */ inline int GetCaptionChannel() const{ return m_captionChannel; } /** * Caption channel. */ inline bool CaptionChannelHasBeenSet() const { return m_captionChannelHasBeenSet; } /** * Caption channel. */ inline void SetCaptionChannel(int value) { m_captionChannelHasBeenSet = true; m_captionChannel = value; } /** * Caption channel. */ inline HlsCaptionLanguageMapping& WithCaptionChannel(int value) { SetCaptionChannel(value); return *this;} /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline const Aws::String& GetCustomLanguageCode() const{ return m_customLanguageCode; } /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline bool CustomLanguageCodeHasBeenSet() const { return m_customLanguageCodeHasBeenSet; } /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline void SetCustomLanguageCode(const Aws::String& value) { m_customLanguageCodeHasBeenSet = true; m_customLanguageCode = value; } /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline void SetCustomLanguageCode(Aws::String&& value) { m_customLanguageCodeHasBeenSet = true; m_customLanguageCode = std::move(value); } /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline void SetCustomLanguageCode(const char* value) { m_customLanguageCodeHasBeenSet = true; m_customLanguageCode.assign(value); } /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline HlsCaptionLanguageMapping& WithCustomLanguageCode(const Aws::String& value) { SetCustomLanguageCode(value); return *this;} /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline HlsCaptionLanguageMapping& WithCustomLanguageCode(Aws::String&& value) { SetCustomLanguageCode(std::move(value)); return *this;} /** * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 * three-letter language code */ inline HlsCaptionLanguageMapping& WithCustomLanguageCode(const char* value) { SetCustomLanguageCode(value); return *this;} /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline HlsCaptionLanguageMapping& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** * Specify the language, using the ISO 639-2 three-letter code listed at * https://www.loc.gov/standards/iso639-2/php/code_list.php. */ inline HlsCaptionLanguageMapping& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** * Caption language description. */ inline const Aws::String& GetLanguageDescription() const{ return m_languageDescription; } /** * Caption language description. */ inline bool LanguageDescriptionHasBeenSet() const { return m_languageDescriptionHasBeenSet; } /** * Caption language description. */ inline void SetLanguageDescription(const Aws::String& value) { m_languageDescriptionHasBeenSet = true; m_languageDescription = value; } /** * Caption language description. */ inline void SetLanguageDescription(Aws::String&& value) { m_languageDescriptionHasBeenSet = true; m_languageDescription = std::move(value); } /** * Caption language description. */ inline void SetLanguageDescription(const char* value) { m_languageDescriptionHasBeenSet = true; m_languageDescription.assign(value); } /** * Caption language description. */ inline HlsCaptionLanguageMapping& WithLanguageDescription(const Aws::String& value) { SetLanguageDescription(value); return *this;} /** * Caption language description. */ inline HlsCaptionLanguageMapping& WithLanguageDescription(Aws::String&& value) { SetLanguageDescription(std::move(value)); return *this;} /** * Caption language description. */ inline HlsCaptionLanguageMapping& WithLanguageDescription(const char* value) { SetLanguageDescription(value); return *this;} private: int m_captionChannel; bool m_captionChannelHasBeenSet = false; Aws::String m_customLanguageCode; bool m_customLanguageCodeHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::String m_languageDescription; bool m_languageDescriptionHasBeenSet = false; }; } // namespace Model } // namespace MediaConvert } // namespace Aws