AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PresetSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/AudioDescription.h>
10#include <aws/mediaconvert/model/CaptionDescriptionPreset.h>
11#include <aws/mediaconvert/model/ContainerSettings.h>
12#include <aws/mediaconvert/model/VideoDescription.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConvert {
24namespace Model {
25
32 public:
33 AWS_MEDIACONVERT_API PresetSettings() = default;
34 AWS_MEDIACONVERT_API PresetSettings(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONVERT_API PresetSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<AudioDescription>& GetAudioDescriptions() const { return m_audioDescriptions; }
44 inline bool AudioDescriptionsHasBeenSet() const { return m_audioDescriptionsHasBeenSet; }
45 template <typename AudioDescriptionsT = Aws::Vector<AudioDescription>>
46 void SetAudioDescriptions(AudioDescriptionsT&& value) {
47 m_audioDescriptionsHasBeenSet = true;
48 m_audioDescriptions = std::forward<AudioDescriptionsT>(value);
49 }
50 template <typename AudioDescriptionsT = Aws::Vector<AudioDescription>>
51 PresetSettings& WithAudioDescriptions(AudioDescriptionsT&& value) {
52 SetAudioDescriptions(std::forward<AudioDescriptionsT>(value));
53 return *this;
54 }
55 template <typename AudioDescriptionsT = AudioDescription>
56 PresetSettings& AddAudioDescriptions(AudioDescriptionsT&& value) {
57 m_audioDescriptionsHasBeenSet = true;
58 m_audioDescriptions.emplace_back(std::forward<AudioDescriptionsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<CaptionDescriptionPreset>& GetCaptionDescriptions() const { return m_captionDescriptions; }
69 inline bool CaptionDescriptionsHasBeenSet() const { return m_captionDescriptionsHasBeenSet; }
70 template <typename CaptionDescriptionsT = Aws::Vector<CaptionDescriptionPreset>>
71 void SetCaptionDescriptions(CaptionDescriptionsT&& value) {
72 m_captionDescriptionsHasBeenSet = true;
73 m_captionDescriptions = std::forward<CaptionDescriptionsT>(value);
74 }
75 template <typename CaptionDescriptionsT = Aws::Vector<CaptionDescriptionPreset>>
76 PresetSettings& WithCaptionDescriptions(CaptionDescriptionsT&& value) {
77 SetCaptionDescriptions(std::forward<CaptionDescriptionsT>(value));
78 return *this;
79 }
80 template <typename CaptionDescriptionsT = CaptionDescriptionPreset>
81 PresetSettings& AddCaptionDescriptions(CaptionDescriptionsT&& value) {
82 m_captionDescriptionsHasBeenSet = true;
83 m_captionDescriptions.emplace_back(std::forward<CaptionDescriptionsT>(value));
84 return *this;
85 }
87
89
92 inline const ContainerSettings& GetContainerSettings() const { return m_containerSettings; }
93 inline bool ContainerSettingsHasBeenSet() const { return m_containerSettingsHasBeenSet; }
94 template <typename ContainerSettingsT = ContainerSettings>
95 void SetContainerSettings(ContainerSettingsT&& value) {
96 m_containerSettingsHasBeenSet = true;
97 m_containerSettings = std::forward<ContainerSettingsT>(value);
98 }
99 template <typename ContainerSettingsT = ContainerSettings>
100 PresetSettings& WithContainerSettings(ContainerSettingsT&& value) {
101 SetContainerSettings(std::forward<ContainerSettingsT>(value));
102 return *this;
103 }
105
107
112 inline const VideoDescription& GetVideoDescription() const { return m_videoDescription; }
113 inline bool VideoDescriptionHasBeenSet() const { return m_videoDescriptionHasBeenSet; }
114 template <typename VideoDescriptionT = VideoDescription>
115 void SetVideoDescription(VideoDescriptionT&& value) {
116 m_videoDescriptionHasBeenSet = true;
117 m_videoDescription = std::forward<VideoDescriptionT>(value);
118 }
119 template <typename VideoDescriptionT = VideoDescription>
120 PresetSettings& WithVideoDescription(VideoDescriptionT&& value) {
121 SetVideoDescription(std::forward<VideoDescriptionT>(value));
122 return *this;
123 }
125 private:
126 Aws::Vector<AudioDescription> m_audioDescriptions;
127
128 Aws::Vector<CaptionDescriptionPreset> m_captionDescriptions;
129
130 ContainerSettings m_containerSettings;
131
132 VideoDescription m_videoDescription;
133 bool m_audioDescriptionsHasBeenSet = false;
134 bool m_captionDescriptionsHasBeenSet = false;
135 bool m_containerSettingsHasBeenSet = false;
136 bool m_videoDescriptionHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace MediaConvert
141} // namespace Aws
PresetSettings & WithVideoDescription(VideoDescriptionT &&value)
const VideoDescription & GetVideoDescription() const
void SetAudioDescriptions(AudioDescriptionsT &&value)
AWS_MEDIACONVERT_API PresetSettings()=default
PresetSettings & AddAudioDescriptions(AudioDescriptionsT &&value)
PresetSettings & WithAudioDescriptions(AudioDescriptionsT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
PresetSettings & WithContainerSettings(ContainerSettingsT &&value)
void SetContainerSettings(ContainerSettingsT &&value)
const Aws::Vector< CaptionDescriptionPreset > & GetCaptionDescriptions() const
void SetCaptionDescriptions(CaptionDescriptionsT &&value)
void SetVideoDescription(VideoDescriptionT &&value)
PresetSettings & WithCaptionDescriptions(CaptionDescriptionsT &&value)
AWS_MEDIACONVERT_API PresetSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContainerSettings & GetContainerSettings() const
AWS_MEDIACONVERT_API PresetSettings(Aws::Utils::Json::JsonView jsonValue)
PresetSettings & AddCaptionDescriptions(CaptionDescriptionsT &&value)
const Aws::Vector< AudioDescription > & GetAudioDescriptions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue