AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Bridge.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
10#include <aws/mediaconnect/model/BridgeOutput.h>
11#include <aws/mediaconnect/model/BridgeSource.h>
12#include <aws/mediaconnect/model/BridgeState.h>
13#include <aws/mediaconnect/model/EgressGatewayBridge.h>
14#include <aws/mediaconnect/model/FailoverConfig.h>
15#include <aws/mediaconnect/model/IngressGatewayBridge.h>
16#include <aws/mediaconnect/model/MessageDetail.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaConnect {
28namespace Model {
29
38class Bridge {
39 public:
40 AWS_MEDIACONNECT_API Bridge() = default;
41 AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API Bridge& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetBridgeArn() const { return m_bridgeArn; }
50 inline bool BridgeArnHasBeenSet() const { return m_bridgeArnHasBeenSet; }
51 template <typename BridgeArnT = Aws::String>
52 void SetBridgeArn(BridgeArnT&& value) {
53 m_bridgeArnHasBeenSet = true;
54 m_bridgeArn = std::forward<BridgeArnT>(value);
55 }
56 template <typename BridgeArnT = Aws::String>
57 Bridge& WithBridgeArn(BridgeArnT&& value) {
58 SetBridgeArn(std::forward<BridgeArnT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<MessageDetail>& GetBridgeMessages() const { return m_bridgeMessages; }
68 inline bool BridgeMessagesHasBeenSet() const { return m_bridgeMessagesHasBeenSet; }
69 template <typename BridgeMessagesT = Aws::Vector<MessageDetail>>
70 void SetBridgeMessages(BridgeMessagesT&& value) {
71 m_bridgeMessagesHasBeenSet = true;
72 m_bridgeMessages = std::forward<BridgeMessagesT>(value);
73 }
74 template <typename BridgeMessagesT = Aws::Vector<MessageDetail>>
75 Bridge& WithBridgeMessages(BridgeMessagesT&& value) {
76 SetBridgeMessages(std::forward<BridgeMessagesT>(value));
77 return *this;
78 }
79 template <typename BridgeMessagesT = MessageDetail>
80 Bridge& AddBridgeMessages(BridgeMessagesT&& value) {
81 m_bridgeMessagesHasBeenSet = true;
82 m_bridgeMessages.emplace_back(std::forward<BridgeMessagesT>(value));
83 return *this;
84 }
86
88
91 inline BridgeState GetBridgeState() const { return m_bridgeState; }
92 inline bool BridgeStateHasBeenSet() const { return m_bridgeStateHasBeenSet; }
93 inline void SetBridgeState(BridgeState value) {
94 m_bridgeStateHasBeenSet = true;
95 m_bridgeState = value;
96 }
98 SetBridgeState(value);
99 return *this;
100 }
102
104
108 inline const EgressGatewayBridge& GetEgressGatewayBridge() const { return m_egressGatewayBridge; }
109 inline bool EgressGatewayBridgeHasBeenSet() const { return m_egressGatewayBridgeHasBeenSet; }
110 template <typename EgressGatewayBridgeT = EgressGatewayBridge>
111 void SetEgressGatewayBridge(EgressGatewayBridgeT&& value) {
112 m_egressGatewayBridgeHasBeenSet = true;
113 m_egressGatewayBridge = std::forward<EgressGatewayBridgeT>(value);
114 }
115 template <typename EgressGatewayBridgeT = EgressGatewayBridge>
116 Bridge& WithEgressGatewayBridge(EgressGatewayBridgeT&& value) {
117 SetEgressGatewayBridge(std::forward<EgressGatewayBridgeT>(value));
118 return *this;
119 }
121
123
127 inline const IngressGatewayBridge& GetIngressGatewayBridge() const { return m_ingressGatewayBridge; }
128 inline bool IngressGatewayBridgeHasBeenSet() const { return m_ingressGatewayBridgeHasBeenSet; }
129 template <typename IngressGatewayBridgeT = IngressGatewayBridge>
130 void SetIngressGatewayBridge(IngressGatewayBridgeT&& value) {
131 m_ingressGatewayBridgeHasBeenSet = true;
132 m_ingressGatewayBridge = std::forward<IngressGatewayBridgeT>(value);
133 }
134 template <typename IngressGatewayBridgeT = IngressGatewayBridge>
135 Bridge& WithIngressGatewayBridge(IngressGatewayBridgeT&& value) {
136 SetIngressGatewayBridge(std::forward<IngressGatewayBridgeT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetName() const { return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 template <typename NameT = Aws::String>
148 void SetName(NameT&& value) {
149 m_nameHasBeenSet = true;
150 m_name = std::forward<NameT>(value);
151 }
152 template <typename NameT = Aws::String>
153 Bridge& WithName(NameT&& value) {
154 SetName(std::forward<NameT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<BridgeOutput>& GetOutputs() const { return m_outputs; }
164 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
165 template <typename OutputsT = Aws::Vector<BridgeOutput>>
166 void SetOutputs(OutputsT&& value) {
167 m_outputsHasBeenSet = true;
168 m_outputs = std::forward<OutputsT>(value);
169 }
170 template <typename OutputsT = Aws::Vector<BridgeOutput>>
171 Bridge& WithOutputs(OutputsT&& value) {
172 SetOutputs(std::forward<OutputsT>(value));
173 return *this;
174 }
175 template <typename OutputsT = BridgeOutput>
176 Bridge& AddOutputs(OutputsT&& value) {
177 m_outputsHasBeenSet = true;
178 m_outputs.emplace_back(std::forward<OutputsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetPlacementArn() const { return m_placementArn; }
188 inline bool PlacementArnHasBeenSet() const { return m_placementArnHasBeenSet; }
189 template <typename PlacementArnT = Aws::String>
190 void SetPlacementArn(PlacementArnT&& value) {
191 m_placementArnHasBeenSet = true;
192 m_placementArn = std::forward<PlacementArnT>(value);
193 }
194 template <typename PlacementArnT = Aws::String>
195 Bridge& WithPlacementArn(PlacementArnT&& value) {
196 SetPlacementArn(std::forward<PlacementArnT>(value));
197 return *this;
198 }
200
202
205 inline const FailoverConfig& GetSourceFailoverConfig() const { return m_sourceFailoverConfig; }
206 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
207 template <typename SourceFailoverConfigT = FailoverConfig>
208 void SetSourceFailoverConfig(SourceFailoverConfigT&& value) {
209 m_sourceFailoverConfigHasBeenSet = true;
210 m_sourceFailoverConfig = std::forward<SourceFailoverConfigT>(value);
211 }
212 template <typename SourceFailoverConfigT = FailoverConfig>
213 Bridge& WithSourceFailoverConfig(SourceFailoverConfigT&& value) {
214 SetSourceFailoverConfig(std::forward<SourceFailoverConfigT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<BridgeSource>& GetSources() const { return m_sources; }
224 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
225 template <typename SourcesT = Aws::Vector<BridgeSource>>
226 void SetSources(SourcesT&& value) {
227 m_sourcesHasBeenSet = true;
228 m_sources = std::forward<SourcesT>(value);
229 }
230 template <typename SourcesT = Aws::Vector<BridgeSource>>
231 Bridge& WithSources(SourcesT&& value) {
232 SetSources(std::forward<SourcesT>(value));
233 return *this;
234 }
235 template <typename SourcesT = BridgeSource>
236 Bridge& AddSources(SourcesT&& value) {
237 m_sourcesHasBeenSet = true;
238 m_sources.emplace_back(std::forward<SourcesT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_bridgeArn;
244
245 Aws::Vector<MessageDetail> m_bridgeMessages;
246
247 BridgeState m_bridgeState{BridgeState::NOT_SET};
248
249 EgressGatewayBridge m_egressGatewayBridge;
250
251 IngressGatewayBridge m_ingressGatewayBridge;
252
253 Aws::String m_name;
254
256
257 Aws::String m_placementArn;
258
259 FailoverConfig m_sourceFailoverConfig;
260
262 bool m_bridgeArnHasBeenSet = false;
263 bool m_bridgeMessagesHasBeenSet = false;
264 bool m_bridgeStateHasBeenSet = false;
265 bool m_egressGatewayBridgeHasBeenSet = false;
266 bool m_ingressGatewayBridgeHasBeenSet = false;
267 bool m_nameHasBeenSet = false;
268 bool m_outputsHasBeenSet = false;
269 bool m_placementArnHasBeenSet = false;
270 bool m_sourceFailoverConfigHasBeenSet = false;
271 bool m_sourcesHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace MediaConnect
276} // namespace Aws
bool BridgeStateHasBeenSet() const
Definition Bridge.h:92
const IngressGatewayBridge & GetIngressGatewayBridge() const
Definition Bridge.h:127
void SetIngressGatewayBridge(IngressGatewayBridgeT &&value)
Definition Bridge.h:130
void SetBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:70
void SetPlacementArn(PlacementArnT &&value)
Definition Bridge.h:190
AWS_MEDIACONNECT_API Bridge()=default
const EgressGatewayBridge & GetEgressGatewayBridge() const
Definition Bridge.h:108
bool PlacementArnHasBeenSet() const
Definition Bridge.h:188
bool EgressGatewayBridgeHasBeenSet() const
Definition Bridge.h:109
void SetOutputs(OutputsT &&value)
Definition Bridge.h:166
const FailoverConfig & GetSourceFailoverConfig() const
Definition Bridge.h:205
const Aws::String & GetName() const
Definition Bridge.h:145
Bridge & AddOutputs(OutputsT &&value)
Definition Bridge.h:176
AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue)
Bridge & WithPlacementArn(PlacementArnT &&value)
Definition Bridge.h:195
bool SourceFailoverConfigHasBeenSet() const
Definition Bridge.h:206
BridgeState GetBridgeState() const
Definition Bridge.h:91
void SetEgressGatewayBridge(EgressGatewayBridgeT &&value)
Definition Bridge.h:111
void SetSourceFailoverConfig(SourceFailoverConfigT &&value)
Definition Bridge.h:208
const Aws::Vector< BridgeSource > & GetSources() const
Definition Bridge.h:223
const Aws::Vector< BridgeOutput > & GetOutputs() const
Definition Bridge.h:163
Bridge & WithBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:75
AWS_MEDIACONNECT_API Bridge & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IngressGatewayBridgeHasBeenSet() const
Definition Bridge.h:128
void SetName(NameT &&value)
Definition Bridge.h:148
const Aws::Vector< MessageDetail > & GetBridgeMessages() const
Definition Bridge.h:67
Bridge & WithSources(SourcesT &&value)
Definition Bridge.h:231
Bridge & WithEgressGatewayBridge(EgressGatewayBridgeT &&value)
Definition Bridge.h:116
Bridge & WithBridgeState(BridgeState value)
Definition Bridge.h:97
void SetBridgeArn(BridgeArnT &&value)
Definition Bridge.h:52
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Bridge & WithIngressGatewayBridge(IngressGatewayBridgeT &&value)
Definition Bridge.h:135
void SetSources(SourcesT &&value)
Definition Bridge.h:226
Bridge & WithBridgeArn(BridgeArnT &&value)
Definition Bridge.h:57
bool BridgeArnHasBeenSet() const
Definition Bridge.h:50
void SetBridgeState(BridgeState value)
Definition Bridge.h:93
Bridge & WithName(NameT &&value)
Definition Bridge.h:153
Bridge & WithOutputs(OutputsT &&value)
Definition Bridge.h:171
const Aws::String & GetPlacementArn() const
Definition Bridge.h:187
Bridge & AddBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:80
Bridge & WithSourceFailoverConfig(SourceFailoverConfigT &&value)
Definition Bridge.h:213
const Aws::String & GetBridgeArn() const
Definition Bridge.h:49
bool BridgeMessagesHasBeenSet() const
Definition Bridge.h:68
Bridge & AddSources(SourcesT &&value)
Definition Bridge.h:236
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue