AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
OutputDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/MediaPackageOutputDestinationSettings.h>
11#include <aws/medialive/model/MultiplexProgramChannelDestinationSettings.h>
12#include <aws/medialive/model/OutputDestinationSettings.h>
13#include <aws/medialive/model/SrtOutputDestinationSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaLive {
25namespace Model {
26
33 public:
34 AWS_MEDIALIVE_API OutputDestination() = default;
35 AWS_MEDIALIVE_API OutputDestination(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 OutputDestination& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<MediaPackageOutputDestinationSettings>& GetMediaPackageSettings() const { return m_mediaPackageSettings; }
63 inline bool MediaPackageSettingsHasBeenSet() const { return m_mediaPackageSettingsHasBeenSet; }
64 template <typename MediaPackageSettingsT = Aws::Vector<MediaPackageOutputDestinationSettings>>
65 void SetMediaPackageSettings(MediaPackageSettingsT&& value) {
66 m_mediaPackageSettingsHasBeenSet = true;
67 m_mediaPackageSettings = std::forward<MediaPackageSettingsT>(value);
68 }
69 template <typename MediaPackageSettingsT = Aws::Vector<MediaPackageOutputDestinationSettings>>
70 OutputDestination& WithMediaPackageSettings(MediaPackageSettingsT&& value) {
71 SetMediaPackageSettings(std::forward<MediaPackageSettingsT>(value));
72 return *this;
73 }
74 template <typename MediaPackageSettingsT = MediaPackageOutputDestinationSettings>
75 OutputDestination& AddMediaPackageSettings(MediaPackageSettingsT&& value) {
76 m_mediaPackageSettingsHasBeenSet = true;
77 m_mediaPackageSettings.emplace_back(std::forward<MediaPackageSettingsT>(value));
78 return *this;
79 }
81
83
86 inline const MultiplexProgramChannelDestinationSettings& GetMultiplexSettings() const { return m_multiplexSettings; }
87 inline bool MultiplexSettingsHasBeenSet() const { return m_multiplexSettingsHasBeenSet; }
88 template <typename MultiplexSettingsT = MultiplexProgramChannelDestinationSettings>
89 void SetMultiplexSettings(MultiplexSettingsT&& value) {
90 m_multiplexSettingsHasBeenSet = true;
91 m_multiplexSettings = std::forward<MultiplexSettingsT>(value);
92 }
93 template <typename MultiplexSettingsT = MultiplexProgramChannelDestinationSettings>
94 OutputDestination& WithMultiplexSettings(MultiplexSettingsT&& value) {
95 SetMultiplexSettings(std::forward<MultiplexSettingsT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<OutputDestinationSettings>& GetSettings() const { return m_settings; }
106 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
107 template <typename SettingsT = Aws::Vector<OutputDestinationSettings>>
108 void SetSettings(SettingsT&& value) {
109 m_settingsHasBeenSet = true;
110 m_settings = std::forward<SettingsT>(value);
111 }
112 template <typename SettingsT = Aws::Vector<OutputDestinationSettings>>
113 OutputDestination& WithSettings(SettingsT&& value) {
114 SetSettings(std::forward<SettingsT>(value));
115 return *this;
116 }
117 template <typename SettingsT = OutputDestinationSettings>
118 OutputDestination& AddSettings(SettingsT&& value) {
119 m_settingsHasBeenSet = true;
120 m_settings.emplace_back(std::forward<SettingsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<SrtOutputDestinationSettings>& GetSrtSettings() const { return m_srtSettings; }
130 inline bool SrtSettingsHasBeenSet() const { return m_srtSettingsHasBeenSet; }
131 template <typename SrtSettingsT = Aws::Vector<SrtOutputDestinationSettings>>
132 void SetSrtSettings(SrtSettingsT&& value) {
133 m_srtSettingsHasBeenSet = true;
134 m_srtSettings = std::forward<SrtSettingsT>(value);
135 }
136 template <typename SrtSettingsT = Aws::Vector<SrtOutputDestinationSettings>>
137 OutputDestination& WithSrtSettings(SrtSettingsT&& value) {
138 SetSrtSettings(std::forward<SrtSettingsT>(value));
139 return *this;
140 }
141 template <typename SrtSettingsT = SrtOutputDestinationSettings>
142 OutputDestination& AddSrtSettings(SrtSettingsT&& value) {
143 m_srtSettingsHasBeenSet = true;
144 m_srtSettings.emplace_back(std::forward<SrtSettingsT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Vector<Aws::String>& GetLogicalInterfaceNames() const { return m_logicalInterfaceNames; }
155 inline bool LogicalInterfaceNamesHasBeenSet() const { return m_logicalInterfaceNamesHasBeenSet; }
156 template <typename LogicalInterfaceNamesT = Aws::Vector<Aws::String>>
157 void SetLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
158 m_logicalInterfaceNamesHasBeenSet = true;
159 m_logicalInterfaceNames = std::forward<LogicalInterfaceNamesT>(value);
160 }
161 template <typename LogicalInterfaceNamesT = Aws::Vector<Aws::String>>
162 OutputDestination& WithLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
163 SetLogicalInterfaceNames(std::forward<LogicalInterfaceNamesT>(value));
164 return *this;
165 }
166 template <typename LogicalInterfaceNamesT = Aws::String>
167 OutputDestination& AddLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
168 m_logicalInterfaceNamesHasBeenSet = true;
169 m_logicalInterfaceNames.emplace_back(std::forward<LogicalInterfaceNamesT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_id;
175
177
179
181
183
184 Aws::Vector<Aws::String> m_logicalInterfaceNames;
185 bool m_idHasBeenSet = false;
186 bool m_mediaPackageSettingsHasBeenSet = false;
187 bool m_multiplexSettingsHasBeenSet = false;
188 bool m_settingsHasBeenSet = false;
189 bool m_srtSettingsHasBeenSet = false;
190 bool m_logicalInterfaceNamesHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace MediaLive
195} // namespace Aws
OutputDestination & WithMultiplexSettings(MultiplexSettingsT &&value)
void SetMultiplexSettings(MultiplexSettingsT &&value)
OutputDestination & WithMediaPackageSettings(MediaPackageSettingsT &&value)
OutputDestination & WithSettings(SettingsT &&value)
void SetLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
OutputDestination & WithSrtSettings(SrtSettingsT &&value)
void SetMediaPackageSettings(MediaPackageSettingsT &&value)
AWS_MEDIALIVE_API OutputDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OutputDestinationSettings > & GetSettings() const
OutputDestination & WithId(IdT &&value)
OutputDestination & AddSettings(SettingsT &&value)
OutputDestination & AddSrtSettings(SrtSettingsT &&value)
const Aws::Vector< SrtOutputDestinationSettings > & GetSrtSettings() const
AWS_MEDIALIVE_API OutputDestination()=default
const MultiplexProgramChannelDestinationSettings & GetMultiplexSettings() const
const Aws::Vector< MediaPackageOutputDestinationSettings > & GetMediaPackageSettings() const
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetLogicalInterfaceNames() const
OutputDestination & WithLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
AWS_MEDIALIVE_API OutputDestination(Aws::Utils::Json::JsonView jsonValue)
OutputDestination & AddMediaPackageSettings(MediaPackageSettingsT &&value)
OutputDestination & AddLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue