/** * 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 ElasticTranscoder { namespace Model { /** *

The captions to be created, if any.

See Also:

AWS * API Reference

*/ class Captions { public: AWS_ELASTICTRANSCODER_API Captions(); AWS_ELASTICTRANSCODER_API Captions(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICTRANSCODER_API Captions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline const Aws::Vector& GetCaptionFormats() const{ return m_captionFormats; } /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline bool CaptionFormatsHasBeenSet() const { return m_captionFormatsHasBeenSet; } /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline void SetCaptionFormats(const Aws::Vector& value) { m_captionFormatsHasBeenSet = true; m_captionFormats = value; } /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline void SetCaptionFormats(Aws::Vector&& value) { m_captionFormatsHasBeenSet = true; m_captionFormats = std::move(value); } /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline Captions& WithCaptionFormats(const Aws::Vector& value) { SetCaptionFormats(value); return *this;} /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline Captions& WithCaptionFormats(Aws::Vector&& value) { SetCaptionFormats(std::move(value)); return *this;} /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline Captions& AddCaptionFormats(const CaptionFormat& value) { m_captionFormatsHasBeenSet = true; m_captionFormats.push_back(value); return *this; } /** *

The array of file formats for the output captions. If you leave this value * blank, Elastic Transcoder returns an error.

*/ inline Captions& AddCaptionFormats(CaptionFormat&& value) { m_captionFormatsHasBeenSet = true; m_captionFormats.push_back(std::move(value)); return *this; } private: Aws::Vector m_captionFormats; bool m_captionFormatsHasBeenSet = false; }; } // namespace Model } // namespace ElasticTranscoder } // namespace Aws