AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetSourceRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/Encryption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediaconnect/model/Protocol.h>
12#include <aws/mediaconnect/model/SetGatewayBridgeSourceRequest.h>
13#include <aws/mediaconnect/model/MediaStreamSourceConfigurationRequest.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConnect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MEDIACONNECT_API SetSourceRequest() = default;
40 AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API SetSourceRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Encryption& GetDecryption() const { return m_decryption; }
51 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
52 template<typename DecryptionT = Encryption>
53 void SetDecryption(DecryptionT&& value) { m_decryptionHasBeenSet = true; m_decryption = std::forward<DecryptionT>(value); }
54 template<typename DecryptionT = Encryption>
55 SetSourceRequest& WithDecryption(DecryptionT&& value) { SetDecryption(std::forward<DecryptionT>(value)); return *this;}
57
59
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 SetSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
77 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
78 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
79 template<typename EntitlementArnT = Aws::String>
80 void SetEntitlementArn(EntitlementArnT&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::forward<EntitlementArnT>(value); }
81 template<typename EntitlementArnT = Aws::String>
82 SetSourceRequest& WithEntitlementArn(EntitlementArnT&& value) { SetEntitlementArn(std::forward<EntitlementArnT>(value)); return *this;}
84
86
89 inline int GetIngestPort() const { return m_ingestPort; }
90 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
91 inline void SetIngestPort(int value) { m_ingestPortHasBeenSet = true; m_ingestPort = value; }
92 inline SetSourceRequest& WithIngestPort(int value) { SetIngestPort(value); return *this;}
94
96
99 inline int GetMaxBitrate() const { return m_maxBitrate; }
100 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
101 inline void SetMaxBitrate(int value) { m_maxBitrateHasBeenSet = true; m_maxBitrate = value; }
102 inline SetSourceRequest& WithMaxBitrate(int value) { SetMaxBitrate(value); return *this;}
104
106
110 inline int GetMaxLatency() const { return m_maxLatency; }
111 inline bool MaxLatencyHasBeenSet() const { return m_maxLatencyHasBeenSet; }
112 inline void SetMaxLatency(int value) { m_maxLatencyHasBeenSet = true; m_maxLatency = value; }
113 inline SetSourceRequest& WithMaxLatency(int value) { SetMaxLatency(value); return *this;}
115
117
121 inline int GetMaxSyncBuffer() const { return m_maxSyncBuffer; }
122 inline bool MaxSyncBufferHasBeenSet() const { return m_maxSyncBufferHasBeenSet; }
123 inline void SetMaxSyncBuffer(int value) { m_maxSyncBufferHasBeenSet = true; m_maxSyncBuffer = value; }
124 inline SetSourceRequest& WithMaxSyncBuffer(int value) { SetMaxSyncBuffer(value); return *this;}
126
128
132 inline const Aws::Vector<MediaStreamSourceConfigurationRequest>& GetMediaStreamSourceConfigurations() const { return m_mediaStreamSourceConfigurations; }
133 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
134 template<typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
135 void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = std::forward<MediaStreamSourceConfigurationsT>(value); }
136 template<typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
137 SetSourceRequest& WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { SetMediaStreamSourceConfigurations(std::forward<MediaStreamSourceConfigurationsT>(value)); return *this;}
138 template<typename MediaStreamSourceConfigurationsT = MediaStreamSourceConfigurationRequest>
139 SetSourceRequest& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.emplace_back(std::forward<MediaStreamSourceConfigurationsT>(value)); return *this; }
141
143
150 inline int GetMinLatency() const { return m_minLatency; }
151 inline bool MinLatencyHasBeenSet() const { return m_minLatencyHasBeenSet; }
152 inline void SetMinLatency(int value) { m_minLatencyHasBeenSet = true; m_minLatency = value; }
153 inline SetSourceRequest& WithMinLatency(int value) { SetMinLatency(value); return *this;}
155
157
160 inline const Aws::String& GetName() const { return m_name; }
161 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
162 template<typename NameT = Aws::String>
163 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
164 template<typename NameT = Aws::String>
165 SetSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
167
169
174 inline Protocol GetProtocol() const { return m_protocol; }
175 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
176 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
177 inline SetSourceRequest& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
179
181
185 inline int GetSenderControlPort() const { return m_senderControlPort; }
186 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
187 inline void SetSenderControlPort(int value) { m_senderControlPortHasBeenSet = true; m_senderControlPort = value; }
188 inline SetSourceRequest& WithSenderControlPort(int value) { SetSenderControlPort(value); return *this;}
190
192
196 inline const Aws::String& GetSenderIpAddress() const { return m_senderIpAddress; }
197 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
198 template<typename SenderIpAddressT = Aws::String>
199 void SetSenderIpAddress(SenderIpAddressT&& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = std::forward<SenderIpAddressT>(value); }
200 template<typename SenderIpAddressT = Aws::String>
201 SetSourceRequest& WithSenderIpAddress(SenderIpAddressT&& value) { SetSenderIpAddress(std::forward<SenderIpAddressT>(value)); return *this;}
203
205
208 inline const Aws::String& GetSourceListenerAddress() const { return m_sourceListenerAddress; }
209 inline bool SourceListenerAddressHasBeenSet() const { return m_sourceListenerAddressHasBeenSet; }
210 template<typename SourceListenerAddressT = Aws::String>
211 void SetSourceListenerAddress(SourceListenerAddressT&& value) { m_sourceListenerAddressHasBeenSet = true; m_sourceListenerAddress = std::forward<SourceListenerAddressT>(value); }
212 template<typename SourceListenerAddressT = Aws::String>
213 SetSourceRequest& WithSourceListenerAddress(SourceListenerAddressT&& value) { SetSourceListenerAddress(std::forward<SourceListenerAddressT>(value)); return *this;}
215
217
220 inline int GetSourceListenerPort() const { return m_sourceListenerPort; }
221 inline bool SourceListenerPortHasBeenSet() const { return m_sourceListenerPortHasBeenSet; }
222 inline void SetSourceListenerPort(int value) { m_sourceListenerPortHasBeenSet = true; m_sourceListenerPort = value; }
223 inline SetSourceRequest& WithSourceListenerPort(int value) { SetSourceListenerPort(value); return *this;}
225
227
231 inline const Aws::String& GetStreamId() const { return m_streamId; }
232 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
233 template<typename StreamIdT = Aws::String>
234 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
235 template<typename StreamIdT = Aws::String>
236 SetSourceRequest& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
238
240
243 inline const Aws::String& GetVpcInterfaceName() const { return m_vpcInterfaceName; }
244 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
245 template<typename VpcInterfaceNameT = Aws::String>
246 void SetVpcInterfaceName(VpcInterfaceNameT&& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = std::forward<VpcInterfaceNameT>(value); }
247 template<typename VpcInterfaceNameT = Aws::String>
248 SetSourceRequest& WithVpcInterfaceName(VpcInterfaceNameT&& value) { SetVpcInterfaceName(std::forward<VpcInterfaceNameT>(value)); return *this;}
250
252
257 inline const Aws::String& GetWhitelistCidr() const { return m_whitelistCidr; }
258 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
259 template<typename WhitelistCidrT = Aws::String>
260 void SetWhitelistCidr(WhitelistCidrT&& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = std::forward<WhitelistCidrT>(value); }
261 template<typename WhitelistCidrT = Aws::String>
262 SetSourceRequest& WithWhitelistCidr(WhitelistCidrT&& value) { SetWhitelistCidr(std::forward<WhitelistCidrT>(value)); return *this;}
264
266
270 inline const SetGatewayBridgeSourceRequest& GetGatewayBridgeSource() const { return m_gatewayBridgeSource; }
271 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
272 template<typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
273 void SetGatewayBridgeSource(GatewayBridgeSourceT&& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = std::forward<GatewayBridgeSourceT>(value); }
274 template<typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
275 SetSourceRequest& WithGatewayBridgeSource(GatewayBridgeSourceT&& value) { SetGatewayBridgeSource(std::forward<GatewayBridgeSourceT>(value)); return *this;}
277 private:
278
279 Encryption m_decryption;
280 bool m_decryptionHasBeenSet = false;
281
282 Aws::String m_description;
283 bool m_descriptionHasBeenSet = false;
284
285 Aws::String m_entitlementArn;
286 bool m_entitlementArnHasBeenSet = false;
287
288 int m_ingestPort{0};
289 bool m_ingestPortHasBeenSet = false;
290
291 int m_maxBitrate{0};
292 bool m_maxBitrateHasBeenSet = false;
293
294 int m_maxLatency{0};
295 bool m_maxLatencyHasBeenSet = false;
296
297 int m_maxSyncBuffer{0};
298 bool m_maxSyncBufferHasBeenSet = false;
299
300 Aws::Vector<MediaStreamSourceConfigurationRequest> m_mediaStreamSourceConfigurations;
301 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
302
303 int m_minLatency{0};
304 bool m_minLatencyHasBeenSet = false;
305
306 Aws::String m_name;
307 bool m_nameHasBeenSet = false;
308
309 Protocol m_protocol{Protocol::NOT_SET};
310 bool m_protocolHasBeenSet = false;
311
312 int m_senderControlPort{0};
313 bool m_senderControlPortHasBeenSet = false;
314
315 Aws::String m_senderIpAddress;
316 bool m_senderIpAddressHasBeenSet = false;
317
318 Aws::String m_sourceListenerAddress;
319 bool m_sourceListenerAddressHasBeenSet = false;
320
321 int m_sourceListenerPort{0};
322 bool m_sourceListenerPortHasBeenSet = false;
323
324 Aws::String m_streamId;
325 bool m_streamIdHasBeenSet = false;
326
327 Aws::String m_vpcInterfaceName;
328 bool m_vpcInterfaceNameHasBeenSet = false;
329
330 Aws::String m_whitelistCidr;
331 bool m_whitelistCidrHasBeenSet = false;
332
333 SetGatewayBridgeSourceRequest m_gatewayBridgeSource;
334 bool m_gatewayBridgeSourceHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace MediaConnect
339} // namespace Aws
SetSourceRequest & WithMaxSyncBuffer(int value)
void SetWhitelistCidr(WhitelistCidrT &&value)
SetSourceRequest & WithSenderIpAddress(SenderIpAddressT &&value)
void SetGatewayBridgeSource(GatewayBridgeSourceT &&value)
void SetEntitlementArn(EntitlementArnT &&value)
SetSourceRequest & WithGatewayBridgeSource(GatewayBridgeSourceT &&value)
const Aws::String & GetDescription() const
SetSourceRequest & WithSenderControlPort(int value)
const Aws::String & GetWhitelistCidr() const
const Aws::Vector< MediaStreamSourceConfigurationRequest > & GetMediaStreamSourceConfigurations() const
SetSourceRequest & WithName(NameT &&value)
SetSourceRequest & WithMaxBitrate(int value)
AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API SetSourceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SetSourceRequest & WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
const Aws::String & GetSenderIpAddress() const
SetSourceRequest & WithIngestPort(int value)
const Aws::String & GetEntitlementArn() const
SetSourceRequest & WithMaxLatency(int value)
void SetVpcInterfaceName(VpcInterfaceNameT &&value)
void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
SetSourceRequest & WithStreamId(StreamIdT &&value)
SetSourceRequest & WithSourceListenerAddress(SourceListenerAddressT &&value)
const Aws::String & GetSourceListenerAddress() const
SetSourceRequest & WithProtocol(Protocol value)
void SetSenderIpAddress(SenderIpAddressT &&value)
SetSourceRequest & WithDecryption(DecryptionT &&value)
SetSourceRequest & WithEntitlementArn(EntitlementArnT &&value)
SetSourceRequest & WithMinLatency(int value)
AWS_MEDIACONNECT_API SetSourceRequest()=default
const Aws::String & GetVpcInterfaceName() const
SetSourceRequest & WithSourceListenerPort(int value)
SetSourceRequest & AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
SetSourceRequest & WithVpcInterfaceName(VpcInterfaceNameT &&value)
void SetSourceListenerAddress(SourceListenerAddressT &&value)
const SetGatewayBridgeSourceRequest & GetGatewayBridgeSource() const
SetSourceRequest & WithDescription(DescriptionT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SetSourceRequest & WithWhitelistCidr(WhitelistCidrT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue