AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BridgeNetworkSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/MulticastSourceSettings.h>
10#include <aws/mediaconnect/model/Protocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaConnect {
22namespace Model {
23
31 public:
32 AWS_MEDIACONNECT_API BridgeNetworkSource() = default;
33 AWS_MEDIACONNECT_API BridgeNetworkSource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMulticastIp() const { return m_multicastIp; }
42 inline bool MulticastIpHasBeenSet() const { return m_multicastIpHasBeenSet; }
43 template <typename MulticastIpT = Aws::String>
44 void SetMulticastIp(MulticastIpT&& value) {
45 m_multicastIpHasBeenSet = true;
46 m_multicastIp = std::forward<MulticastIpT>(value);
47 }
48 template <typename MulticastIpT = Aws::String>
49 BridgeNetworkSource& WithMulticastIp(MulticastIpT&& value) {
50 SetMulticastIp(std::forward<MulticastIpT>(value));
51 return *this;
52 }
54
56
59 inline const MulticastSourceSettings& GetMulticastSourceSettings() const { return m_multicastSourceSettings; }
60 inline bool MulticastSourceSettingsHasBeenSet() const { return m_multicastSourceSettingsHasBeenSet; }
61 template <typename MulticastSourceSettingsT = MulticastSourceSettings>
62 void SetMulticastSourceSettings(MulticastSourceSettingsT&& value) {
63 m_multicastSourceSettingsHasBeenSet = true;
64 m_multicastSourceSettings = std::forward<MulticastSourceSettingsT>(value);
65 }
66 template <typename MulticastSourceSettingsT = MulticastSourceSettings>
67 BridgeNetworkSource& WithMulticastSourceSettings(MulticastSourceSettingsT&& value) {
68 SetMulticastSourceSettings(std::forward<MulticastSourceSettingsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 BridgeNetworkSource& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetNetworkName() const { return m_networkName; }
96 inline bool NetworkNameHasBeenSet() const { return m_networkNameHasBeenSet; }
97 template <typename NetworkNameT = Aws::String>
98 void SetNetworkName(NetworkNameT&& value) {
99 m_networkNameHasBeenSet = true;
100 m_networkName = std::forward<NetworkNameT>(value);
101 }
102 template <typename NetworkNameT = Aws::String>
103 BridgeNetworkSource& WithNetworkName(NetworkNameT&& value) {
104 SetNetworkName(std::forward<NetworkNameT>(value));
105 return *this;
106 }
108
110
113 inline int GetPort() const { return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 inline void SetPort(int value) {
116 m_portHasBeenSet = true;
117 m_port = value;
118 }
119 inline BridgeNetworkSource& WithPort(int value) {
120 SetPort(value);
121 return *this;
122 }
124
126
131 inline Protocol GetProtocol() const { return m_protocol; }
132 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
133 inline void SetProtocol(Protocol value) {
134 m_protocolHasBeenSet = true;
135 m_protocol = value;
136 }
138 SetProtocol(value);
139 return *this;
140 }
142 private:
143 Aws::String m_multicastIp;
144
145 MulticastSourceSettings m_multicastSourceSettings;
146
147 Aws::String m_name;
148
149 Aws::String m_networkName;
150
151 int m_port{0};
152
153 Protocol m_protocol{Protocol::NOT_SET};
154 bool m_multicastIpHasBeenSet = false;
155 bool m_multicastSourceSettingsHasBeenSet = false;
156 bool m_nameHasBeenSet = false;
157 bool m_networkNameHasBeenSet = false;
158 bool m_portHasBeenSet = false;
159 bool m_protocolHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace MediaConnect
164} // namespace Aws
BridgeNetworkSource & WithNetworkName(NetworkNameT &&value)
BridgeNetworkSource & WithMulticastSourceSettings(MulticastSourceSettingsT &&value)
AWS_MEDIACONNECT_API BridgeNetworkSource(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API BridgeNetworkSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const MulticastSourceSettings & GetMulticastSourceSettings() const
BridgeNetworkSource & WithProtocol(Protocol value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API BridgeNetworkSource()=default
void SetMulticastSourceSettings(MulticastSourceSettingsT &&value)
BridgeNetworkSource & WithMulticastIp(MulticastIpT &&value)
BridgeNetworkSource & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue