AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
41 class Bridge
42 {
43 public:
44 AWS_MEDIACONNECT_API Bridge();
45 AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MEDIACONNECT_API Bridge& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetBridgeArn() const{ return m_bridgeArn; }
55 inline bool BridgeArnHasBeenSet() const { return m_bridgeArnHasBeenSet; }
56 inline void SetBridgeArn(const Aws::String& value) { m_bridgeArnHasBeenSet = true; m_bridgeArn = value; }
57 inline void SetBridgeArn(Aws::String&& value) { m_bridgeArnHasBeenSet = true; m_bridgeArn = std::move(value); }
58 inline void SetBridgeArn(const char* value) { m_bridgeArnHasBeenSet = true; m_bridgeArn.assign(value); }
59 inline Bridge& WithBridgeArn(const Aws::String& value) { SetBridgeArn(value); return *this;}
60 inline Bridge& WithBridgeArn(Aws::String&& value) { SetBridgeArn(std::move(value)); return *this;}
61 inline Bridge& WithBridgeArn(const char* value) { SetBridgeArn(value); return *this;}
63
65
66 inline const Aws::Vector<MessageDetail>& GetBridgeMessages() const{ return m_bridgeMessages; }
67 inline bool BridgeMessagesHasBeenSet() const { return m_bridgeMessagesHasBeenSet; }
68 inline void SetBridgeMessages(const Aws::Vector<MessageDetail>& value) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages = value; }
69 inline void SetBridgeMessages(Aws::Vector<MessageDetail>&& value) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages = std::move(value); }
70 inline Bridge& WithBridgeMessages(const Aws::Vector<MessageDetail>& value) { SetBridgeMessages(value); return *this;}
71 inline Bridge& WithBridgeMessages(Aws::Vector<MessageDetail>&& value) { SetBridgeMessages(std::move(value)); return *this;}
72 inline Bridge& AddBridgeMessages(const MessageDetail& value) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages.push_back(value); return *this; }
73 inline Bridge& AddBridgeMessages(MessageDetail&& value) { m_bridgeMessagesHasBeenSet = true; m_bridgeMessages.push_back(std::move(value)); return *this; }
75
77
78 inline const BridgeState& GetBridgeState() const{ return m_bridgeState; }
79 inline bool BridgeStateHasBeenSet() const { return m_bridgeStateHasBeenSet; }
80 inline void SetBridgeState(const BridgeState& value) { m_bridgeStateHasBeenSet = true; m_bridgeState = value; }
81 inline void SetBridgeState(BridgeState&& value) { m_bridgeStateHasBeenSet = true; m_bridgeState = std::move(value); }
82 inline Bridge& WithBridgeState(const BridgeState& value) { SetBridgeState(value); return *this;}
83 inline Bridge& WithBridgeState(BridgeState&& value) { SetBridgeState(std::move(value)); return *this;}
85
87
88 inline const EgressGatewayBridge& GetEgressGatewayBridge() const{ return m_egressGatewayBridge; }
89 inline bool EgressGatewayBridgeHasBeenSet() const { return m_egressGatewayBridgeHasBeenSet; }
90 inline void SetEgressGatewayBridge(const EgressGatewayBridge& value) { m_egressGatewayBridgeHasBeenSet = true; m_egressGatewayBridge = value; }
91 inline void SetEgressGatewayBridge(EgressGatewayBridge&& value) { m_egressGatewayBridgeHasBeenSet = true; m_egressGatewayBridge = std::move(value); }
92 inline Bridge& WithEgressGatewayBridge(const EgressGatewayBridge& value) { SetEgressGatewayBridge(value); return *this;}
93 inline Bridge& WithEgressGatewayBridge(EgressGatewayBridge&& value) { SetEgressGatewayBridge(std::move(value)); return *this;}
95
97
98 inline const IngressGatewayBridge& GetIngressGatewayBridge() const{ return m_ingressGatewayBridge; }
99 inline bool IngressGatewayBridgeHasBeenSet() const { return m_ingressGatewayBridgeHasBeenSet; }
100 inline void SetIngressGatewayBridge(const IngressGatewayBridge& value) { m_ingressGatewayBridgeHasBeenSet = true; m_ingressGatewayBridge = value; }
101 inline void SetIngressGatewayBridge(IngressGatewayBridge&& value) { m_ingressGatewayBridgeHasBeenSet = true; m_ingressGatewayBridge = std::move(value); }
103 inline Bridge& WithIngressGatewayBridge(IngressGatewayBridge&& value) { SetIngressGatewayBridge(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const{ return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
113 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
114 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
115 inline Bridge& WithName(const Aws::String& value) { SetName(value); return *this;}
116 inline Bridge& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 inline Bridge& WithName(const char* value) { SetName(value); return *this;}
119
121
124 inline const Aws::Vector<BridgeOutput>& GetOutputs() const{ return m_outputs; }
125 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
126 inline void SetOutputs(const Aws::Vector<BridgeOutput>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
127 inline void SetOutputs(Aws::Vector<BridgeOutput>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
128 inline Bridge& WithOutputs(const Aws::Vector<BridgeOutput>& value) { SetOutputs(value); return *this;}
129 inline Bridge& WithOutputs(Aws::Vector<BridgeOutput>&& value) { SetOutputs(std::move(value)); return *this;}
130 inline Bridge& AddOutputs(const BridgeOutput& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
131 inline Bridge& AddOutputs(BridgeOutput&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
133
135
138 inline const Aws::String& GetPlacementArn() const{ return m_placementArn; }
139 inline bool PlacementArnHasBeenSet() const { return m_placementArnHasBeenSet; }
140 inline void SetPlacementArn(const Aws::String& value) { m_placementArnHasBeenSet = true; m_placementArn = value; }
141 inline void SetPlacementArn(Aws::String&& value) { m_placementArnHasBeenSet = true; m_placementArn = std::move(value); }
142 inline void SetPlacementArn(const char* value) { m_placementArnHasBeenSet = true; m_placementArn.assign(value); }
143 inline Bridge& WithPlacementArn(const Aws::String& value) { SetPlacementArn(value); return *this;}
144 inline Bridge& WithPlacementArn(Aws::String&& value) { SetPlacementArn(std::move(value)); return *this;}
145 inline Bridge& WithPlacementArn(const char* value) { SetPlacementArn(value); return *this;}
147
149
150 inline const FailoverConfig& GetSourceFailoverConfig() const{ return m_sourceFailoverConfig; }
151 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
152 inline void SetSourceFailoverConfig(const FailoverConfig& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = value; }
153 inline void SetSourceFailoverConfig(FailoverConfig&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::move(value); }
154 inline Bridge& WithSourceFailoverConfig(const FailoverConfig& value) { SetSourceFailoverConfig(value); return *this;}
155 inline Bridge& WithSourceFailoverConfig(FailoverConfig&& value) { SetSourceFailoverConfig(std::move(value)); return *this;}
157
159
162 inline const Aws::Vector<BridgeSource>& GetSources() const{ return m_sources; }
163 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
164 inline void SetSources(const Aws::Vector<BridgeSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
165 inline void SetSources(Aws::Vector<BridgeSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
166 inline Bridge& WithSources(const Aws::Vector<BridgeSource>& value) { SetSources(value); return *this;}
167 inline Bridge& WithSources(Aws::Vector<BridgeSource>&& value) { SetSources(std::move(value)); return *this;}
168 inline Bridge& AddSources(const BridgeSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
169 inline Bridge& AddSources(BridgeSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
171 private:
172
173 Aws::String m_bridgeArn;
174 bool m_bridgeArnHasBeenSet = false;
175
176 Aws::Vector<MessageDetail> m_bridgeMessages;
177 bool m_bridgeMessagesHasBeenSet = false;
178
179 BridgeState m_bridgeState;
180 bool m_bridgeStateHasBeenSet = false;
181
182 EgressGatewayBridge m_egressGatewayBridge;
183 bool m_egressGatewayBridgeHasBeenSet = false;
184
185 IngressGatewayBridge m_ingressGatewayBridge;
186 bool m_ingressGatewayBridgeHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
192 bool m_outputsHasBeenSet = false;
193
194 Aws::String m_placementArn;
195 bool m_placementArnHasBeenSet = false;
196
197 FailoverConfig m_sourceFailoverConfig;
198 bool m_sourceFailoverConfigHasBeenSet = false;
199
201 bool m_sourcesHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace MediaConnect
206} // namespace Aws
void SetBridgeArn(Aws::String &&value)
Definition Bridge.h:57
Bridge & AddSources(BridgeSource &&value)
Definition Bridge.h:169
bool BridgeStateHasBeenSet() const
Definition Bridge.h:79
Bridge & WithBridgeMessages(Aws::Vector< MessageDetail > &&value)
Definition Bridge.h:71
void SetIngressGatewayBridge(const IngressGatewayBridge &value)
Definition Bridge.h:100
const IngressGatewayBridge & GetIngressGatewayBridge() const
Definition Bridge.h:98
void SetOutputs(const Aws::Vector< BridgeOutput > &value)
Definition Bridge.h:126
Bridge & WithBridgeState(const BridgeState &value)
Definition Bridge.h:82
const EgressGatewayBridge & GetEgressGatewayBridge() const
Definition Bridge.h:88
void SetPlacementArn(const char *value)
Definition Bridge.h:142
void SetBridgeArn(const Aws::String &value)
Definition Bridge.h:56
Bridge & WithPlacementArn(Aws::String &&value)
Definition Bridge.h:144
bool PlacementArnHasBeenSet() const
Definition Bridge.h:139
bool EgressGatewayBridgeHasBeenSet() const
Definition Bridge.h:89
const FailoverConfig & GetSourceFailoverConfig() const
Definition Bridge.h:150
void SetPlacementArn(const Aws::String &value)
Definition Bridge.h:140
Bridge & WithOutputs(const Aws::Vector< BridgeOutput > &value)
Definition Bridge.h:128
const Aws::String & GetName() const
Definition Bridge.h:110
AWS_MEDIACONNECT_API Bridge(Aws::Utils::Json::JsonView jsonValue)
bool SourceFailoverConfigHasBeenSet() const
Definition Bridge.h:151
Bridge & WithSources(Aws::Vector< BridgeSource > &&value)
Definition Bridge.h:167
Bridge & WithEgressGatewayBridge(EgressGatewayBridge &&value)
Definition Bridge.h:93
void SetEgressGatewayBridge(const EgressGatewayBridge &value)
Definition Bridge.h:90
const Aws::Vector< BridgeSource > & GetSources() const
Definition Bridge.h:162
Bridge & WithSources(const Aws::Vector< BridgeSource > &value)
Definition Bridge.h:166
Bridge & WithBridgeArn(const Aws::String &value)
Definition Bridge.h:59
void SetOutputs(Aws::Vector< BridgeOutput > &&value)
Definition Bridge.h:127
const Aws::Vector< BridgeOutput > & GetOutputs() const
Definition Bridge.h:124
void SetSources(const Aws::Vector< BridgeSource > &value)
Definition Bridge.h:164
Bridge & WithIngressGatewayBridge(const IngressGatewayBridge &value)
Definition Bridge.h:102
AWS_MEDIACONNECT_API Bridge & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IngressGatewayBridgeHasBeenSet() const
Definition Bridge.h:99
Bridge & WithBridgeMessages(const Aws::Vector< MessageDetail > &value)
Definition Bridge.h:70
void SetPlacementArn(Aws::String &&value)
Definition Bridge.h:141
void SetName(const char *value)
Definition Bridge.h:114
const Aws::Vector< MessageDetail > & GetBridgeMessages() const
Definition Bridge.h:66
Bridge & AddBridgeMessages(MessageDetail &&value)
Definition Bridge.h:73
Bridge & WithPlacementArn(const char *value)
Definition Bridge.h:145
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Bridge & WithOutputs(Aws::Vector< BridgeOutput > &&value)
Definition Bridge.h:129
Bridge & WithIngressGatewayBridge(IngressGatewayBridge &&value)
Definition Bridge.h:103
Bridge & AddSources(const BridgeSource &value)
Definition Bridge.h:168
Bridge & WithBridgeState(BridgeState &&value)
Definition Bridge.h:83
Bridge & WithBridgeArn(const char *value)
Definition Bridge.h:61
void SetIngressGatewayBridge(IngressGatewayBridge &&value)
Definition Bridge.h:101
Bridge & WithName(Aws::String &&value)
Definition Bridge.h:116
Bridge & AddOutputs(BridgeOutput &&value)
Definition Bridge.h:131
bool BridgeArnHasBeenSet() const
Definition Bridge.h:55
void SetBridgeState(const BridgeState &value)
Definition Bridge.h:80
Bridge & WithName(const char *value)
Definition Bridge.h:117
void SetName(Aws::String &&value)
Definition Bridge.h:113
void SetBridgeState(BridgeState &&value)
Definition Bridge.h:81
void SetBridgeMessages(Aws::Vector< MessageDetail > &&value)
Definition Bridge.h:69
const BridgeState & GetBridgeState() const
Definition Bridge.h:78
AWS_MEDIACONNECT_API Bridge()
void SetSourceFailoverConfig(FailoverConfig &&value)
Definition Bridge.h:153
const Aws::String & GetPlacementArn() const
Definition Bridge.h:138
void SetSources(Aws::Vector< BridgeSource > &&value)
Definition Bridge.h:165
void SetBridgeMessages(const Aws::Vector< MessageDetail > &value)
Definition Bridge.h:68
void SetSourceFailoverConfig(const FailoverConfig &value)
Definition Bridge.h:152
Bridge & WithSourceFailoverConfig(const FailoverConfig &value)
Definition Bridge.h:154
Bridge & WithSourceFailoverConfig(FailoverConfig &&value)
Definition Bridge.h:155
Bridge & WithName(const Aws::String &value)
Definition Bridge.h:115
Bridge & AddOutputs(const BridgeOutput &value)
Definition Bridge.h:130
Bridge & WithBridgeArn(Aws::String &&value)
Definition Bridge.h:60
void SetName(const Aws::String &value)
Definition Bridge.h:112
const Aws::String & GetBridgeArn() const
Definition Bridge.h:54
Bridge & AddBridgeMessages(const MessageDetail &value)
Definition Bridge.h:72
Bridge & WithPlacementArn(const Aws::String &value)
Definition Bridge.h:143
Bridge & WithEgressGatewayBridge(const EgressGatewayBridge &value)
Definition Bridge.h:92
bool BridgeMessagesHasBeenSet() const
Definition Bridge.h:67
void SetBridgeArn(const char *value)
Definition Bridge.h:58
void SetEgressGatewayBridge(EgressGatewayBridge &&value)
Definition Bridge.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue