AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SrtOutputSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/UdpContainerSettings.h>
9#include <aws/medialive/model/OutputLocationRef.h>
10#include <aws/medialive/model/SrtEncryptionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIALIVE_API SrtOutputSettings() = default;
37 AWS_MEDIALIVE_API SrtOutputSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline int GetBufferMsec() const { return m_bufferMsec; }
50 inline bool BufferMsecHasBeenSet() const { return m_bufferMsecHasBeenSet; }
51 inline void SetBufferMsec(int value) { m_bufferMsecHasBeenSet = true; m_bufferMsec = value; }
52 inline SrtOutputSettings& WithBufferMsec(int value) { SetBufferMsec(value); return *this;}
54
56
57 inline const UdpContainerSettings& GetContainerSettings() const { return m_containerSettings; }
58 inline bool ContainerSettingsHasBeenSet() const { return m_containerSettingsHasBeenSet; }
59 template<typename ContainerSettingsT = UdpContainerSettings>
60 void SetContainerSettings(ContainerSettingsT&& value) { m_containerSettingsHasBeenSet = true; m_containerSettings = std::forward<ContainerSettingsT>(value); }
61 template<typename ContainerSettingsT = UdpContainerSettings>
62 SrtOutputSettings& WithContainerSettings(ContainerSettingsT&& value) { SetContainerSettings(std::forward<ContainerSettingsT>(value)); return *this;}
64
66
67 inline const OutputLocationRef& GetDestination() const { return m_destination; }
68 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
69 template<typename DestinationT = OutputLocationRef>
70 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
71 template<typename DestinationT = OutputLocationRef>
72 SrtOutputSettings& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
74
76
81 inline SrtEncryptionType GetEncryptionType() const { return m_encryptionType; }
82 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
83 inline void SetEncryptionType(SrtEncryptionType value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
86
88
97 inline int GetLatency() const { return m_latency; }
98 inline bool LatencyHasBeenSet() const { return m_latencyHasBeenSet; }
99 inline void SetLatency(int value) { m_latencyHasBeenSet = true; m_latency = value; }
100 inline SrtOutputSettings& WithLatency(int value) { SetLatency(value); return *this;}
102 private:
103
104 int m_bufferMsec{0};
105 bool m_bufferMsecHasBeenSet = false;
106
107 UdpContainerSettings m_containerSettings;
108 bool m_containerSettingsHasBeenSet = false;
109
110 OutputLocationRef m_destination;
111 bool m_destinationHasBeenSet = false;
112
114 bool m_encryptionTypeHasBeenSet = false;
115
116 int m_latency{0};
117 bool m_latencyHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace MediaLive
122} // namespace Aws
AWS_MEDIALIVE_API SrtOutputSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContainerSettings(ContainerSettingsT &&value)
AWS_MEDIALIVE_API SrtOutputSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
SrtOutputSettings & WithLatency(int value)
SrtOutputSettings & WithEncryptionType(SrtEncryptionType value)
const OutputLocationRef & GetDestination() const
AWS_MEDIALIVE_API SrtOutputSettings()=default
const UdpContainerSettings & GetContainerSettings() const
void SetDestination(DestinationT &&value)
SrtEncryptionType GetEncryptionType() const
void SetEncryptionType(SrtEncryptionType value)
SrtOutputSettings & WithDestination(DestinationT &&value)
SrtOutputSettings & WithBufferMsec(int value)
SrtOutputSettings & WithContainerSettings(ContainerSettingsT &&value)
Aws::Utils::Json::JsonValue JsonValue