AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SrtOutputDestinationSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/ConnectionMode.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
30 public:
31 AWS_MEDIALIVE_API SrtOutputDestinationSettings() = default;
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEncryptionPassphraseSecretArn() const { return m_encryptionPassphraseSecretArn; }
41 inline bool EncryptionPassphraseSecretArnHasBeenSet() const { return m_encryptionPassphraseSecretArnHasBeenSet; }
42 template <typename EncryptionPassphraseSecretArnT = Aws::String>
43 void SetEncryptionPassphraseSecretArn(EncryptionPassphraseSecretArnT&& value) {
44 m_encryptionPassphraseSecretArnHasBeenSet = true;
45 m_encryptionPassphraseSecretArn = std::forward<EncryptionPassphraseSecretArnT>(value);
46 }
47 template <typename EncryptionPassphraseSecretArnT = Aws::String>
48 SrtOutputDestinationSettings& WithEncryptionPassphraseSecretArn(EncryptionPassphraseSecretArnT&& value) {
49 SetEncryptionPassphraseSecretArn(std::forward<EncryptionPassphraseSecretArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStreamId() const { return m_streamId; }
59 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
60 template <typename StreamIdT = Aws::String>
61 void SetStreamId(StreamIdT&& value) {
62 m_streamIdHasBeenSet = true;
63 m_streamId = std::forward<StreamIdT>(value);
64 }
65 template <typename StreamIdT = Aws::String>
67 SetStreamId(std::forward<StreamIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetUrl() const { return m_url; }
77 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
78 template <typename UrlT = Aws::String>
79 void SetUrl(UrlT&& value) {
80 m_urlHasBeenSet = true;
81 m_url = std::forward<UrlT>(value);
82 }
83 template <typename UrlT = Aws::String>
85 SetUrl(std::forward<UrlT>(value));
86 return *this;
87 }
89
91
95 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
96 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
97 inline void SetConnectionMode(ConnectionMode value) {
98 m_connectionModeHasBeenSet = true;
99 m_connectionMode = value;
100 }
102 SetConnectionMode(value);
103 return *this;
104 }
106
108
112 inline int GetListenerPort() const { return m_listenerPort; }
113 inline bool ListenerPortHasBeenSet() const { return m_listenerPortHasBeenSet; }
114 inline void SetListenerPort(int value) {
115 m_listenerPortHasBeenSet = true;
116 m_listenerPort = value;
117 }
119 SetListenerPort(value);
120 return *this;
121 }
123 private:
124 Aws::String m_encryptionPassphraseSecretArn;
125
126 Aws::String m_streamId;
127
128 Aws::String m_url;
129
130 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
131
132 int m_listenerPort{0};
133 bool m_encryptionPassphraseSecretArnHasBeenSet = false;
134 bool m_streamIdHasBeenSet = false;
135 bool m_urlHasBeenSet = false;
136 bool m_connectionModeHasBeenSet = false;
137 bool m_listenerPortHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace MediaLive
142} // namespace Aws
SrtOutputDestinationSettings & WithListenerPort(int value)
AWS_MEDIALIVE_API SrtOutputDestinationSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API SrtOutputDestinationSettings()=default
SrtOutputDestinationSettings & WithUrl(UrlT &&value)
void SetEncryptionPassphraseSecretArn(EncryptionPassphraseSecretArnT &&value)
SrtOutputDestinationSettings & WithConnectionMode(ConnectionMode value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API SrtOutputDestinationSettings(Aws::Utils::Json::JsonView jsonValue)
SrtOutputDestinationSettings & WithStreamId(StreamIdT &&value)
SrtOutputDestinationSettings & WithEncryptionPassphraseSecretArn(EncryptionPassphraseSecretArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue