AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
SrtSettings.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/SrtCallerSource.h>
10#include <aws/medialive/model/SrtListenerSettings.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
31 public:
32 AWS_MEDIALIVE_API SrtSettings() = default;
33 AWS_MEDIALIVE_API SrtSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API SrtSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::Vector<SrtCallerSource>& GetSrtCallerSources() const { return m_srtCallerSources; }
40 inline bool SrtCallerSourcesHasBeenSet() const { return m_srtCallerSourcesHasBeenSet; }
41 template <typename SrtCallerSourcesT = Aws::Vector<SrtCallerSource>>
42 void SetSrtCallerSources(SrtCallerSourcesT&& value) {
43 m_srtCallerSourcesHasBeenSet = true;
44 m_srtCallerSources = std::forward<SrtCallerSourcesT>(value);
45 }
46 template <typename SrtCallerSourcesT = Aws::Vector<SrtCallerSource>>
47 SrtSettings& WithSrtCallerSources(SrtCallerSourcesT&& value) {
48 SetSrtCallerSources(std::forward<SrtCallerSourcesT>(value));
49 return *this;
50 }
51 template <typename SrtCallerSourcesT = SrtCallerSource>
52 SrtSettings& AddSrtCallerSources(SrtCallerSourcesT&& value) {
53 m_srtCallerSourcesHasBeenSet = true;
54 m_srtCallerSources.emplace_back(std::forward<SrtCallerSourcesT>(value));
55 return *this;
56 }
58
60
61 inline const SrtListenerSettings& GetSrtListenerSettings() const { return m_srtListenerSettings; }
62 inline bool SrtListenerSettingsHasBeenSet() const { return m_srtListenerSettingsHasBeenSet; }
63 template <typename SrtListenerSettingsT = SrtListenerSettings>
64 void SetSrtListenerSettings(SrtListenerSettingsT&& value) {
65 m_srtListenerSettingsHasBeenSet = true;
66 m_srtListenerSettings = std::forward<SrtListenerSettingsT>(value);
67 }
68 template <typename SrtListenerSettingsT = SrtListenerSettings>
69 SrtSettings& WithSrtListenerSettings(SrtListenerSettingsT&& value) {
70 SetSrtListenerSettings(std::forward<SrtListenerSettingsT>(value));
71 return *this;
72 }
74 private:
75 Aws::Vector<SrtCallerSource> m_srtCallerSources;
76
77 SrtListenerSettings m_srtListenerSettings;
78 bool m_srtCallerSourcesHasBeenSet = false;
79 bool m_srtListenerSettingsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace MediaLive
84} // namespace Aws
const Aws::Vector< SrtCallerSource > & GetSrtCallerSources() const
Definition SrtSettings.h:39
void SetSrtListenerSettings(SrtListenerSettingsT &&value)
Definition SrtSettings.h:64
void SetSrtCallerSources(SrtCallerSourcesT &&value)
Definition SrtSettings.h:42
SrtSettings & WithSrtListenerSettings(SrtListenerSettingsT &&value)
Definition SrtSettings.h:69
SrtSettings & WithSrtCallerSources(SrtCallerSourcesT &&value)
Definition SrtSettings.h:47
AWS_MEDIALIVE_API SrtSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
SrtSettings & AddSrtCallerSources(SrtCallerSourcesT &&value)
Definition SrtSettings.h:52
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API SrtSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API SrtSettings()=default
const SrtListenerSettings & GetSrtListenerSettings() const
Definition SrtSettings.h:61
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue