AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RtmpGroupSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/AuthenticationScheme.h>
10#include <aws/medialive/model/IncludeFillerNalUnits.h>
11#include <aws/medialive/model/InputLossActionForRtmpOut.h>
12#include <aws/medialive/model/RtmpAdMarkers.h>
13#include <aws/medialive/model/RtmpCacheFullBehavior.h>
14#include <aws/medialive/model/RtmpCaptionData.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive {
26namespace Model {
27
34 public:
35 AWS_MEDIALIVE_API RtmpGroupSettings() = default;
36 AWS_MEDIALIVE_API RtmpGroupSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::Vector<RtmpAdMarkers>& GetAdMarkers() const { return m_adMarkers; }
47 inline bool AdMarkersHasBeenSet() const { return m_adMarkersHasBeenSet; }
48 template <typename AdMarkersT = Aws::Vector<RtmpAdMarkers>>
49 void SetAdMarkers(AdMarkersT&& value) {
50 m_adMarkersHasBeenSet = true;
51 m_adMarkers = std::forward<AdMarkersT>(value);
52 }
53 template <typename AdMarkersT = Aws::Vector<RtmpAdMarkers>>
54 RtmpGroupSettings& WithAdMarkers(AdMarkersT&& value) {
55 SetAdMarkers(std::forward<AdMarkersT>(value));
56 return *this;
57 }
59 m_adMarkersHasBeenSet = true;
60 m_adMarkers.push_back(value);
61 return *this;
62 }
64
66
69 inline AuthenticationScheme GetAuthenticationScheme() const { return m_authenticationScheme; }
70 inline bool AuthenticationSchemeHasBeenSet() const { return m_authenticationSchemeHasBeenSet; }
72 m_authenticationSchemeHasBeenSet = true;
73 m_authenticationScheme = value;
74 }
77 return *this;
78 }
80
82
91 inline RtmpCacheFullBehavior GetCacheFullBehavior() const { return m_cacheFullBehavior; }
92 inline bool CacheFullBehaviorHasBeenSet() const { return m_cacheFullBehaviorHasBeenSet; }
94 m_cacheFullBehaviorHasBeenSet = true;
95 m_cacheFullBehavior = value;
96 }
99 return *this;
100 }
102
104
107 inline int GetCacheLength() const { return m_cacheLength; }
108 inline bool CacheLengthHasBeenSet() const { return m_cacheLengthHasBeenSet; }
109 inline void SetCacheLength(int value) {
110 m_cacheLengthHasBeenSet = true;
111 m_cacheLength = value;
112 }
114 SetCacheLength(value);
115 return *this;
116 }
118
120
127 inline RtmpCaptionData GetCaptionData() const { return m_captionData; }
128 inline bool CaptionDataHasBeenSet() const { return m_captionDataHasBeenSet; }
129 inline void SetCaptionData(RtmpCaptionData value) {
130 m_captionDataHasBeenSet = true;
131 m_captionData = value;
132 }
134 SetCaptionData(value);
135 return *this;
136 }
138
140
148 inline InputLossActionForRtmpOut GetInputLossAction() const { return m_inputLossAction; }
149 inline bool InputLossActionHasBeenSet() const { return m_inputLossActionHasBeenSet; }
151 m_inputLossActionHasBeenSet = true;
152 m_inputLossAction = value;
153 }
155 SetInputLossAction(value);
156 return *this;
157 }
159
161
165 inline int GetRestartDelay() const { return m_restartDelay; }
166 inline bool RestartDelayHasBeenSet() const { return m_restartDelayHasBeenSet; }
167 inline void SetRestartDelay(int value) {
168 m_restartDelayHasBeenSet = true;
169 m_restartDelay = value;
170 }
172 SetRestartDelay(value);
173 return *this;
174 }
176
178
185 inline IncludeFillerNalUnits GetIncludeFillerNalUnits() const { return m_includeFillerNalUnits; }
186 inline bool IncludeFillerNalUnitsHasBeenSet() const { return m_includeFillerNalUnitsHasBeenSet; }
188 m_includeFillerNalUnitsHasBeenSet = true;
189 m_includeFillerNalUnits = value;
190 }
193 return *this;
194 }
196 private:
197 Aws::Vector<RtmpAdMarkers> m_adMarkers;
198
200
202
203 int m_cacheLength{0};
204
206
208
209 int m_restartDelay{0};
210
212 bool m_adMarkersHasBeenSet = false;
213 bool m_authenticationSchemeHasBeenSet = false;
214 bool m_cacheFullBehaviorHasBeenSet = false;
215 bool m_cacheLengthHasBeenSet = false;
216 bool m_captionDataHasBeenSet = false;
217 bool m_inputLossActionHasBeenSet = false;
218 bool m_restartDelayHasBeenSet = false;
219 bool m_includeFillerNalUnitsHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace MediaLive
224} // namespace Aws
AWS_MEDIALIVE_API RtmpGroupSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
RtmpGroupSettings & WithCacheLength(int value)
RtmpGroupSettings & WithInputLossAction(InputLossActionForRtmpOut value)
RtmpCacheFullBehavior GetCacheFullBehavior() const
const Aws::Vector< RtmpAdMarkers > & GetAdMarkers() const
void SetCacheFullBehavior(RtmpCacheFullBehavior value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
RtmpGroupSettings & AddAdMarkers(RtmpAdMarkers value)
RtmpGroupSettings & WithIncludeFillerNalUnits(IncludeFillerNalUnits value)
RtmpGroupSettings & WithAdMarkers(AdMarkersT &&value)
AWS_MEDIALIVE_API RtmpGroupSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API RtmpGroupSettings()=default
void SetAuthenticationScheme(AuthenticationScheme value)
IncludeFillerNalUnits GetIncludeFillerNalUnits() const
RtmpGroupSettings & WithAuthenticationScheme(AuthenticationScheme value)
RtmpGroupSettings & WithCacheFullBehavior(RtmpCacheFullBehavior value)
void SetCaptionData(RtmpCaptionData value)
RtmpGroupSettings & WithRestartDelay(int value)
InputLossActionForRtmpOut GetInputLossAction() const
void SetInputLossAction(InputLossActionForRtmpOut value)
void SetIncludeFillerNalUnits(IncludeFillerNalUnits value)
AuthenticationScheme GetAuthenticationScheme() const
RtmpGroupSettings & WithCaptionData(RtmpCaptionData value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue