AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PresetSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconvert/model/ContainerSettings.h>
10#include <aws/mediaconvert/model/VideoDescription.h>
11#include <aws/mediaconvert/model/AudioDescription.h>
12#include <aws/mediaconvert/model/CaptionDescriptionPreset.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaConvert
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_MEDIACONVERT_API PresetSettings() = default;
39 AWS_MEDIACONVERT_API PresetSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API PresetSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<AudioDescription>& GetAudioDescriptions() const { return m_audioDescriptions; }
50 inline bool AudioDescriptionsHasBeenSet() const { return m_audioDescriptionsHasBeenSet; }
51 template<typename AudioDescriptionsT = Aws::Vector<AudioDescription>>
52 void SetAudioDescriptions(AudioDescriptionsT&& value) { m_audioDescriptionsHasBeenSet = true; m_audioDescriptions = std::forward<AudioDescriptionsT>(value); }
53 template<typename AudioDescriptionsT = Aws::Vector<AudioDescription>>
54 PresetSettings& WithAudioDescriptions(AudioDescriptionsT&& value) { SetAudioDescriptions(std::forward<AudioDescriptionsT>(value)); return *this;}
55 template<typename AudioDescriptionsT = AudioDescription>
56 PresetSettings& AddAudioDescriptions(AudioDescriptionsT&& value) { m_audioDescriptionsHasBeenSet = true; m_audioDescriptions.emplace_back(std::forward<AudioDescriptionsT>(value)); return *this; }
58
60
64 inline const Aws::Vector<CaptionDescriptionPreset>& GetCaptionDescriptions() const { return m_captionDescriptions; }
65 inline bool CaptionDescriptionsHasBeenSet() const { return m_captionDescriptionsHasBeenSet; }
66 template<typename CaptionDescriptionsT = Aws::Vector<CaptionDescriptionPreset>>
67 void SetCaptionDescriptions(CaptionDescriptionsT&& value) { m_captionDescriptionsHasBeenSet = true; m_captionDescriptions = std::forward<CaptionDescriptionsT>(value); }
68 template<typename CaptionDescriptionsT = Aws::Vector<CaptionDescriptionPreset>>
69 PresetSettings& WithCaptionDescriptions(CaptionDescriptionsT&& value) { SetCaptionDescriptions(std::forward<CaptionDescriptionsT>(value)); return *this;}
70 template<typename CaptionDescriptionsT = CaptionDescriptionPreset>
71 PresetSettings& AddCaptionDescriptions(CaptionDescriptionsT&& value) { m_captionDescriptionsHasBeenSet = true; m_captionDescriptions.emplace_back(std::forward<CaptionDescriptionsT>(value)); return *this; }
73
75
78 inline const ContainerSettings& GetContainerSettings() const { return m_containerSettings; }
79 inline bool ContainerSettingsHasBeenSet() const { return m_containerSettingsHasBeenSet; }
80 template<typename ContainerSettingsT = ContainerSettings>
81 void SetContainerSettings(ContainerSettingsT&& value) { m_containerSettingsHasBeenSet = true; m_containerSettings = std::forward<ContainerSettingsT>(value); }
82 template<typename ContainerSettingsT = ContainerSettings>
83 PresetSettings& WithContainerSettings(ContainerSettingsT&& value) { SetContainerSettings(std::forward<ContainerSettingsT>(value)); return *this;}
85
87
92 inline const VideoDescription& GetVideoDescription() const { return m_videoDescription; }
93 inline bool VideoDescriptionHasBeenSet() const { return m_videoDescriptionHasBeenSet; }
94 template<typename VideoDescriptionT = VideoDescription>
95 void SetVideoDescription(VideoDescriptionT&& value) { m_videoDescriptionHasBeenSet = true; m_videoDescription = std::forward<VideoDescriptionT>(value); }
96 template<typename VideoDescriptionT = VideoDescription>
97 PresetSettings& WithVideoDescription(VideoDescriptionT&& value) { SetVideoDescription(std::forward<VideoDescriptionT>(value)); return *this;}
99 private:
100
101 Aws::Vector<AudioDescription> m_audioDescriptions;
102 bool m_audioDescriptionsHasBeenSet = false;
103
104 Aws::Vector<CaptionDescriptionPreset> m_captionDescriptions;
105 bool m_captionDescriptionsHasBeenSet = false;
106
107 ContainerSettings m_containerSettings;
108 bool m_containerSettingsHasBeenSet = false;
109
110 VideoDescription m_videoDescription;
111 bool m_videoDescriptionHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MediaConvert
116} // 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