AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RtmpOutputSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/OutputLocationRef.h>
9#include <aws/medialive/model/RtmpOutputCertificateMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaLive {
21namespace Model {
22
29 public:
30 AWS_MEDIALIVE_API RtmpOutputSettings() = default;
31 AWS_MEDIALIVE_API RtmpOutputSettings(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline RtmpOutputCertificateMode GetCertificateMode() const { return m_certificateMode; }
42 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
44 m_certificateModeHasBeenSet = true;
45 m_certificateMode = value;
46 }
48 SetCertificateMode(value);
49 return *this;
50 }
52
54
58 inline int GetConnectionRetryInterval() const { return m_connectionRetryInterval; }
59 inline bool ConnectionRetryIntervalHasBeenSet() const { return m_connectionRetryIntervalHasBeenSet; }
60 inline void SetConnectionRetryInterval(int value) {
61 m_connectionRetryIntervalHasBeenSet = true;
62 m_connectionRetryInterval = value;
63 }
66 return *this;
67 }
69
71
76 inline const OutputLocationRef& GetDestination() const { return m_destination; }
77 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
78 template <typename DestinationT = OutputLocationRef>
79 void SetDestination(DestinationT&& value) {
80 m_destinationHasBeenSet = true;
81 m_destination = std::forward<DestinationT>(value);
82 }
83 template <typename DestinationT = OutputLocationRef>
84 RtmpOutputSettings& WithDestination(DestinationT&& value) {
85 SetDestination(std::forward<DestinationT>(value));
86 return *this;
87 }
89
91
94 inline int GetNumRetries() const { return m_numRetries; }
95 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
96 inline void SetNumRetries(int value) {
97 m_numRetriesHasBeenSet = true;
98 m_numRetries = value;
99 }
101 SetNumRetries(value);
102 return *this;
103 }
105 private:
107
108 int m_connectionRetryInterval{0};
109
110 OutputLocationRef m_destination;
111
112 int m_numRetries{0};
113 bool m_certificateModeHasBeenSet = false;
114 bool m_connectionRetryIntervalHasBeenSet = false;
115 bool m_destinationHasBeenSet = false;
116 bool m_numRetriesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MediaLive
121} // 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