AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
RtmpOutputSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/RtmpOutputCertificateMode.h>
9#include <aws/medialive/model/OutputLocationRef.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIALIVE_API RtmpOutputSettings() = default;
36 AWS_MEDIALIVE_API RtmpOutputSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline RtmpOutputCertificateMode GetCertificateMode() const { return m_certificateMode; }
48 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
49 inline void SetCertificateMode(RtmpOutputCertificateMode value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
52
54
58 inline int GetConnectionRetryInterval() const { return m_connectionRetryInterval; }
59 inline bool ConnectionRetryIntervalHasBeenSet() const { return m_connectionRetryIntervalHasBeenSet; }
60 inline void SetConnectionRetryInterval(int value) { m_connectionRetryIntervalHasBeenSet = true; m_connectionRetryInterval = value; }
63
65
70 inline const OutputLocationRef& GetDestination() const { return m_destination; }
71 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
72 template<typename DestinationT = OutputLocationRef>
73 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
74 template<typename DestinationT = OutputLocationRef>
75 RtmpOutputSettings& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
77
79
82 inline int GetNumRetries() const { return m_numRetries; }
83 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
84 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
85 inline RtmpOutputSettings& WithNumRetries(int value) { SetNumRetries(value); return *this;}
87 private:
88
90 bool m_certificateModeHasBeenSet = false;
91
92 int m_connectionRetryInterval{0};
93 bool m_connectionRetryIntervalHasBeenSet = false;
94
95 OutputLocationRef m_destination;
96 bool m_destinationHasBeenSet = false;
97
98 int m_numRetries{0};
99 bool m_numRetriesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace MediaLive
104} // namespace Aws
RtmpOutputSettings & WithDestination(DestinationT &&value)
const OutputLocationRef & GetDestination() const
RtmpOutputSettings & WithNumRetries(int value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API RtmpOutputSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateMode(RtmpOutputCertificateMode value)
RtmpOutputSettings & WithConnectionRetryInterval(int value)
RtmpOutputCertificateMode GetCertificateMode() const
RtmpOutputSettings & WithCertificateMode(RtmpOutputCertificateMode value)
AWS_MEDIALIVE_API RtmpOutputSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API RtmpOutputSettings()=default
Aws::Utils::Json::JsonValue JsonValue