AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InputCaptions.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elastictranscoder/model/CaptionSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElasticTranscoder
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICTRANSCODER_API InputCaptions() = default;
37 AWS_ELASTICTRANSCODER_API InputCaptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICTRANSCODER_API InputCaptions& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
59 inline const Aws::String& GetMergePolicy() const { return m_mergePolicy; }
60 inline bool MergePolicyHasBeenSet() const { return m_mergePolicyHasBeenSet; }
61 template<typename MergePolicyT = Aws::String>
62 void SetMergePolicy(MergePolicyT&& value) { m_mergePolicyHasBeenSet = true; m_mergePolicy = std::forward<MergePolicyT>(value); }
63 template<typename MergePolicyT = Aws::String>
64 InputCaptions& WithMergePolicy(MergePolicyT&& value) { SetMergePolicy(std::forward<MergePolicyT>(value)); return *this;}
66
68
73 inline const Aws::Vector<CaptionSource>& GetCaptionSources() const { return m_captionSources; }
74 inline bool CaptionSourcesHasBeenSet() const { return m_captionSourcesHasBeenSet; }
75 template<typename CaptionSourcesT = Aws::Vector<CaptionSource>>
76 void SetCaptionSources(CaptionSourcesT&& value) { m_captionSourcesHasBeenSet = true; m_captionSources = std::forward<CaptionSourcesT>(value); }
77 template<typename CaptionSourcesT = Aws::Vector<CaptionSource>>
78 InputCaptions& WithCaptionSources(CaptionSourcesT&& value) { SetCaptionSources(std::forward<CaptionSourcesT>(value)); return *this;}
79 template<typename CaptionSourcesT = CaptionSource>
80 InputCaptions& AddCaptionSources(CaptionSourcesT&& value) { m_captionSourcesHasBeenSet = true; m_captionSources.emplace_back(std::forward<CaptionSourcesT>(value)); return *this; }
82 private:
83
84 Aws::String m_mergePolicy;
85 bool m_mergePolicyHasBeenSet = false;
86
87 Aws::Vector<CaptionSource> m_captionSources;
88 bool m_captionSourcesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ElasticTranscoder
93} // namespace Aws
AWS_ELASTICTRANSCODER_API InputCaptions(Aws::Utils::Json::JsonView jsonValue)
InputCaptions & WithCaptionSources(CaptionSourcesT &&value)
void SetCaptionSources(CaptionSourcesT &&value)
const Aws::Vector< CaptionSource > & GetCaptionSources() const
void SetMergePolicy(MergePolicyT &&value)
InputCaptions & WithMergePolicy(MergePolicyT &&value)
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
InputCaptions & AddCaptionSources(CaptionSourcesT &&value)
AWS_ELASTICTRANSCODER_API InputCaptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMergePolicy() const
AWS_ELASTICTRANSCODER_API InputCaptions()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue