AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Bridge.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconnect/model/BridgeState.h>
11#include <aws/mediaconnect/model/EgressGatewayBridge.h>
12#include <aws/mediaconnect/model/IngressGatewayBridge.h>
13#include <aws/mediaconnect/model/FailoverConfig.h>
14#include <aws/mediaconnect/model/MessageDetail.h>
15#include <aws/mediaconnect/model/BridgeOutput.h>
16#include <aws/mediaconnect/model/BridgeSource.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace MediaConnect
30{
31namespace Model
32{
33
42 class Bridge
43 {
44 public:
45 AWS_MEDIACONNECT_API Bridge() = default;
46 AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIACONNECT_API Bridge& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetBridgeArn() const { return m_bridgeArn; }
56 inline bool BridgeArnHasBeenSet() const { return m_bridgeArnHasBeenSet; }
57 template<typename BridgeArnT = Aws::String>
58 void SetBridgeArn(BridgeArnT&& value) { m_bridgeArnHasBeenSet = true; m_bridgeArn = std::forward<BridgeArnT>(value); }
59 template<typename BridgeArnT = Aws::String>
60 Bridge& WithBridgeArn(BridgeArnT&& value) { SetBridgeArn(std::forward<BridgeArnT>(value)); return *this;}
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) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages = std::forward<BridgeMessagesT>(value); }
71 template<typename BridgeMessagesT = Aws::Vector<MessageDetail>>
72 Bridge& WithBridgeMessages(BridgeMessagesT&& value) { SetBridgeMessages(std::forward<BridgeMessagesT>(value)); return *this;}
73 template<typename BridgeMessagesT = MessageDetail>
74 Bridge& AddBridgeMessages(BridgeMessagesT&& value) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages.emplace_back(std::forward<BridgeMessagesT>(value)); return *this; }
76
78
81 inline BridgeState GetBridgeState() const { return m_bridgeState; }
82 inline bool BridgeStateHasBeenSet() const { return m_bridgeStateHasBeenSet; }
83 inline void SetBridgeState(BridgeState value) { m_bridgeStateHasBeenSet = true; m_bridgeState = value; }
84 inline Bridge& WithBridgeState(BridgeState value) { SetBridgeState(value); return *this;}
86
88
92 inline const EgressGatewayBridge& GetEgressGatewayBridge() const { return m_egressGatewayBridge; }
93 inline bool EgressGatewayBridgeHasBeenSet() const { return m_egressGatewayBridgeHasBeenSet; }
94 template<typename EgressGatewayBridgeT = EgressGatewayBridge>
95 void SetEgressGatewayBridge(EgressGatewayBridgeT&& value) { m_egressGatewayBridgeHasBeenSet = true; m_egressGatewayBridge = std::forward<EgressGatewayBridgeT>(value); }
96 template<typename EgressGatewayBridgeT = EgressGatewayBridge>
97 Bridge& WithEgressGatewayBridge(EgressGatewayBridgeT&& value) { SetEgressGatewayBridge(std::forward<EgressGatewayBridgeT>(value)); return *this;}
99
101
105 inline const IngressGatewayBridge& GetIngressGatewayBridge() const { return m_ingressGatewayBridge; }
106 inline bool IngressGatewayBridgeHasBeenSet() const { return m_ingressGatewayBridgeHasBeenSet; }
107 template<typename IngressGatewayBridgeT = IngressGatewayBridge>
108 void SetIngressGatewayBridge(IngressGatewayBridgeT&& value) { m_ingressGatewayBridgeHasBeenSet = true; m_ingressGatewayBridge = std::forward<IngressGatewayBridgeT>(value); }
109 template<typename IngressGatewayBridgeT = IngressGatewayBridge>
110 Bridge& WithIngressGatewayBridge(IngressGatewayBridgeT&& value) { SetIngressGatewayBridge(std::forward<IngressGatewayBridgeT>(value)); return *this;}
112
114
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 Bridge& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline const Aws::Vector<BridgeOutput>& GetOutputs() const { return m_outputs; }
130 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
131 template<typename OutputsT = Aws::Vector<BridgeOutput>>
132 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
133 template<typename OutputsT = Aws::Vector<BridgeOutput>>
134 Bridge& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
135 template<typename OutputsT = BridgeOutput>
136 Bridge& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
138
140
143 inline const Aws::String& GetPlacementArn() const { return m_placementArn; }
144 inline bool PlacementArnHasBeenSet() const { return m_placementArnHasBeenSet; }
145 template<typename PlacementArnT = Aws::String>
146 void SetPlacementArn(PlacementArnT&& value) { m_placementArnHasBeenSet = true; m_placementArn = std::forward<PlacementArnT>(value); }
147 template<typename PlacementArnT = Aws::String>
148 Bridge& WithPlacementArn(PlacementArnT&& value) { SetPlacementArn(std::forward<PlacementArnT>(value)); return *this;}
150
152
155 inline const FailoverConfig& GetSourceFailoverConfig() const { return m_sourceFailoverConfig; }
156 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
157 template<typename SourceFailoverConfigT = FailoverConfig>
158 void SetSourceFailoverConfig(SourceFailoverConfigT&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::forward<SourceFailoverConfigT>(value); }
159 template<typename SourceFailoverConfigT = FailoverConfig>
160 Bridge& WithSourceFailoverConfig(SourceFailoverConfigT&& value) { SetSourceFailoverConfig(std::forward<SourceFailoverConfigT>(value)); return *this;}
162
164
167 inline const Aws::Vector<BridgeSource>& GetSources() const { return m_sources; }
168 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
169 template<typename SourcesT = Aws::Vector<BridgeSource>>
170 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
171 template<typename SourcesT = Aws::Vector<BridgeSource>>
172 Bridge& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
173 template<typename SourcesT = BridgeSource>
174 Bridge& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
176 private:
177
178 Aws::String m_bridgeArn;
179 bool m_bridgeArnHasBeenSet = false;
180
181 Aws::Vector<MessageDetail> m_bridgeMessages;
182 bool m_bridgeMessagesHasBeenSet = false;
183
184 BridgeState m_bridgeState{BridgeState::NOT_SET};
185 bool m_bridgeStateHasBeenSet = false;
186
187 EgressGatewayBridge m_egressGatewayBridge;
188 bool m_egressGatewayBridgeHasBeenSet = false;
189
190 IngressGatewayBridge m_ingressGatewayBridge;
191 bool m_ingressGatewayBridgeHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
197 bool m_outputsHasBeenSet = false;
198
199 Aws::String m_placementArn;
200 bool m_placementArnHasBeenSet = false;
201
202 FailoverConfig m_sourceFailoverConfig;
203 bool m_sourceFailoverConfigHasBeenSet = false;
204
206 bool m_sourcesHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace MediaConnect
211} // namespace Aws
bool BridgeStateHasBeenSet() const
Definition Bridge.h:82
const IngressGatewayBridge & GetIngressGatewayBridge() const
Definition Bridge.h:105
void SetIngressGatewayBridge(IngressGatewayBridgeT &&value)
Definition Bridge.h:108
void SetBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:70
void SetPlacementArn(PlacementArnT &&value)
Definition Bridge.h:146
AWS_MEDIACONNECT_API Bridge()=default
const EgressGatewayBridge & GetEgressGatewayBridge() const
Definition Bridge.h:92
bool PlacementArnHasBeenSet() const
Definition Bridge.h:144
bool EgressGatewayBridgeHasBeenSet() const
Definition Bridge.h:93
void SetOutputs(OutputsT &&value)
Definition Bridge.h:132
const FailoverConfig & GetSourceFailoverConfig() const
Definition Bridge.h:155
const Aws::String & GetName() const
Definition Bridge.h:117
Bridge & AddOutputs(OutputsT &&value)
Definition Bridge.h:136
AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue)
Bridge & WithPlacementArn(PlacementArnT &&value)
Definition Bridge.h:148
bool SourceFailoverConfigHasBeenSet() const
Definition Bridge.h:156
BridgeState GetBridgeState() const
Definition Bridge.h:81
void SetEgressGatewayBridge(EgressGatewayBridgeT &&value)
Definition Bridge.h:95
void SetSourceFailoverConfig(SourceFailoverConfigT &&value)
Definition Bridge.h:158
const Aws::Vector< BridgeSource > & GetSources() const
Definition Bridge.h:167
const Aws::Vector< BridgeOutput > & GetOutputs() const
Definition Bridge.h:129
Bridge & WithBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:72
AWS_MEDIACONNECT_API Bridge & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IngressGatewayBridgeHasBeenSet() const
Definition Bridge.h:106
void SetName(NameT &&value)
Definition Bridge.h:120
const Aws::Vector< MessageDetail > & GetBridgeMessages() const
Definition Bridge.h:67
Bridge & WithSources(SourcesT &&value)
Definition Bridge.h:172
Bridge & WithEgressGatewayBridge(EgressGatewayBridgeT &&value)
Definition Bridge.h:97
Bridge & WithBridgeState(BridgeState value)
Definition Bridge.h:84
void SetBridgeArn(BridgeArnT &&value)
Definition Bridge.h:58
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Bridge & WithIngressGatewayBridge(IngressGatewayBridgeT &&value)
Definition Bridge.h:110
void SetSources(SourcesT &&value)
Definition Bridge.h:170
Bridge & WithBridgeArn(BridgeArnT &&value)
Definition Bridge.h:60
bool BridgeArnHasBeenSet() const
Definition Bridge.h:56
void SetBridgeState(BridgeState value)
Definition Bridge.h:83
Bridge & WithName(NameT &&value)
Definition Bridge.h:122
Bridge & WithOutputs(OutputsT &&value)
Definition Bridge.h:134
const Aws::String & GetPlacementArn() const
Definition Bridge.h:143
Bridge & AddBridgeMessages(BridgeMessagesT &&value)
Definition Bridge.h:74
Bridge & WithSourceFailoverConfig(SourceFailoverConfigT &&value)
Definition Bridge.h:160
const Aws::String & GetBridgeArn() const
Definition Bridge.h:55
bool BridgeMessagesHasBeenSet() const
Definition Bridge.h:68
Bridge & AddSources(SourcesT &&value)
Definition Bridge.h:174
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue