AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDecryption(const Encryption& value) { m_decryptionHasBeenSet = true; m_decryption = value; }
53 inline void SetDecryption(Encryption&& value) { m_decryptionHasBeenSet = true; m_decryption = std::move(value); }
54 inline SetSourceRequest& WithDecryption(const Encryption& value) { SetDecryption(value); return *this;}
55 inline SetSourceRequest& WithDecryption(Encryption&& value) { SetDecryption(std::move(value)); return *this;}
57
59
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline SetSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline SetSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline SetSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
79 inline const Aws::String& GetEntitlementArn() const{ return m_entitlementArn; }
80 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
81 inline void SetEntitlementArn(const Aws::String& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = value; }
82 inline void SetEntitlementArn(Aws::String&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::move(value); }
83 inline void SetEntitlementArn(const char* value) { m_entitlementArnHasBeenSet = true; m_entitlementArn.assign(value); }
84 inline SetSourceRequest& WithEntitlementArn(const Aws::String& value) { SetEntitlementArn(value); return *this;}
85 inline SetSourceRequest& WithEntitlementArn(Aws::String&& value) { SetEntitlementArn(std::move(value)); return *this;}
86 inline SetSourceRequest& WithEntitlementArn(const char* value) { SetEntitlementArn(value); return *this;}
88
90
93 inline int GetIngestPort() const{ return m_ingestPort; }
94 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
95 inline void SetIngestPort(int value) { m_ingestPortHasBeenSet = true; m_ingestPort = value; }
96 inline SetSourceRequest& WithIngestPort(int value) { SetIngestPort(value); return *this;}
98
100
103 inline int GetMaxBitrate() const{ return m_maxBitrate; }
104 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
105 inline void SetMaxBitrate(int value) { m_maxBitrateHasBeenSet = true; m_maxBitrate = value; }
106 inline SetSourceRequest& WithMaxBitrate(int value) { SetMaxBitrate(value); return *this;}
108
110
114 inline int GetMaxLatency() const{ return m_maxLatency; }
115 inline bool MaxLatencyHasBeenSet() const { return m_maxLatencyHasBeenSet; }
116 inline void SetMaxLatency(int value) { m_maxLatencyHasBeenSet = true; m_maxLatency = value; }
117 inline SetSourceRequest& WithMaxLatency(int value) { SetMaxLatency(value); return *this;}
119
121
124 inline int GetMaxSyncBuffer() const{ return m_maxSyncBuffer; }
125 inline bool MaxSyncBufferHasBeenSet() const { return m_maxSyncBufferHasBeenSet; }
126 inline void SetMaxSyncBuffer(int value) { m_maxSyncBufferHasBeenSet = true; m_maxSyncBuffer = value; }
127 inline SetSourceRequest& WithMaxSyncBuffer(int value) { SetMaxSyncBuffer(value); return *this;}
129
131
135 inline const Aws::Vector<MediaStreamSourceConfigurationRequest>& GetMediaStreamSourceConfigurations() const{ return m_mediaStreamSourceConfigurations; }
136 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
137 inline void SetMediaStreamSourceConfigurations(const Aws::Vector<MediaStreamSourceConfigurationRequest>& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = value; }
138 inline void SetMediaStreamSourceConfigurations(Aws::Vector<MediaStreamSourceConfigurationRequest>&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = std::move(value); }
141 inline SetSourceRequest& AddMediaStreamSourceConfigurations(const MediaStreamSourceConfigurationRequest& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.push_back(value); return *this; }
142 inline SetSourceRequest& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationRequest&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.push_back(std::move(value)); return *this; }
144
146
153 inline int GetMinLatency() const{ return m_minLatency; }
154 inline bool MinLatencyHasBeenSet() const { return m_minLatencyHasBeenSet; }
155 inline void SetMinLatency(int value) { m_minLatencyHasBeenSet = true; m_minLatency = value; }
156 inline SetSourceRequest& WithMinLatency(int value) { SetMinLatency(value); return *this;}
158
160
163 inline const Aws::String& GetName() const{ return m_name; }
164 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
165 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
166 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
167 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
168 inline SetSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
169 inline SetSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
170 inline SetSourceRequest& WithName(const char* value) { SetName(value); return *this;}
172
174
177 inline const Protocol& GetProtocol() const{ return m_protocol; }
178 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
179 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
180 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
181 inline SetSourceRequest& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
182 inline SetSourceRequest& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
184
186
190 inline int GetSenderControlPort() const{ return m_senderControlPort; }
191 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
192 inline void SetSenderControlPort(int value) { m_senderControlPortHasBeenSet = true; m_senderControlPort = value; }
193 inline SetSourceRequest& WithSenderControlPort(int value) { SetSenderControlPort(value); return *this;}
195
197
201 inline const Aws::String& GetSenderIpAddress() const{ return m_senderIpAddress; }
202 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
203 inline void SetSenderIpAddress(const Aws::String& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = value; }
204 inline void SetSenderIpAddress(Aws::String&& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = std::move(value); }
205 inline void SetSenderIpAddress(const char* value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress.assign(value); }
206 inline SetSourceRequest& WithSenderIpAddress(const Aws::String& value) { SetSenderIpAddress(value); return *this;}
207 inline SetSourceRequest& WithSenderIpAddress(Aws::String&& value) { SetSenderIpAddress(std::move(value)); return *this;}
208 inline SetSourceRequest& WithSenderIpAddress(const char* value) { SetSenderIpAddress(value); return *this;}
210
212
215 inline const Aws::String& GetSourceListenerAddress() const{ return m_sourceListenerAddress; }
216 inline bool SourceListenerAddressHasBeenSet() const { return m_sourceListenerAddressHasBeenSet; }
217 inline void SetSourceListenerAddress(const Aws::String& value) { m_sourceListenerAddressHasBeenSet = true; m_sourceListenerAddress = value; }
218 inline void SetSourceListenerAddress(Aws::String&& value) { m_sourceListenerAddressHasBeenSet = true; m_sourceListenerAddress = std::move(value); }
219 inline void SetSourceListenerAddress(const char* value) { m_sourceListenerAddressHasBeenSet = true; m_sourceListenerAddress.assign(value); }
221 inline SetSourceRequest& WithSourceListenerAddress(Aws::String&& value) { SetSourceListenerAddress(std::move(value)); return *this;}
222 inline SetSourceRequest& WithSourceListenerAddress(const char* value) { SetSourceListenerAddress(value); return *this;}
224
226
229 inline int GetSourceListenerPort() const{ return m_sourceListenerPort; }
230 inline bool SourceListenerPortHasBeenSet() const { return m_sourceListenerPortHasBeenSet; }
231 inline void SetSourceListenerPort(int value) { m_sourceListenerPortHasBeenSet = true; m_sourceListenerPort = value; }
232 inline SetSourceRequest& WithSourceListenerPort(int value) { SetSourceListenerPort(value); return *this;}
234
236
240 inline const Aws::String& GetStreamId() const{ return m_streamId; }
241 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
242 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
243 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
244 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
245 inline SetSourceRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
246 inline SetSourceRequest& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
247 inline SetSourceRequest& WithStreamId(const char* value) { SetStreamId(value); return *this;}
249
251
254 inline const Aws::String& GetVpcInterfaceName() const{ return m_vpcInterfaceName; }
255 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
256 inline void SetVpcInterfaceName(const Aws::String& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = value; }
257 inline void SetVpcInterfaceName(Aws::String&& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = std::move(value); }
258 inline void SetVpcInterfaceName(const char* value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName.assign(value); }
259 inline SetSourceRequest& WithVpcInterfaceName(const Aws::String& value) { SetVpcInterfaceName(value); return *this;}
260 inline SetSourceRequest& WithVpcInterfaceName(Aws::String&& value) { SetVpcInterfaceName(std::move(value)); return *this;}
261 inline SetSourceRequest& WithVpcInterfaceName(const char* value) { SetVpcInterfaceName(value); return *this;}
263
265
270 inline const Aws::String& GetWhitelistCidr() const{ return m_whitelistCidr; }
271 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
272 inline void SetWhitelistCidr(const Aws::String& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = value; }
273 inline void SetWhitelistCidr(Aws::String&& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = std::move(value); }
274 inline void SetWhitelistCidr(const char* value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr.assign(value); }
275 inline SetSourceRequest& WithWhitelistCidr(const Aws::String& value) { SetWhitelistCidr(value); return *this;}
276 inline SetSourceRequest& WithWhitelistCidr(Aws::String&& value) { SetWhitelistCidr(std::move(value)); return *this;}
277 inline SetSourceRequest& WithWhitelistCidr(const char* value) { SetWhitelistCidr(value); return *this;}
279
281
284 inline const SetGatewayBridgeSourceRequest& GetGatewayBridgeSource() const{ return m_gatewayBridgeSource; }
285 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
286 inline void SetGatewayBridgeSource(const SetGatewayBridgeSourceRequest& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = value; }
287 inline void SetGatewayBridgeSource(SetGatewayBridgeSourceRequest&& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = std::move(value); }
291 private:
292
293 Encryption m_decryption;
294 bool m_decryptionHasBeenSet = false;
295
296 Aws::String m_description;
297 bool m_descriptionHasBeenSet = false;
298
299 Aws::String m_entitlementArn;
300 bool m_entitlementArnHasBeenSet = false;
301
302 int m_ingestPort;
303 bool m_ingestPortHasBeenSet = false;
304
305 int m_maxBitrate;
306 bool m_maxBitrateHasBeenSet = false;
307
308 int m_maxLatency;
309 bool m_maxLatencyHasBeenSet = false;
310
311 int m_maxSyncBuffer;
312 bool m_maxSyncBufferHasBeenSet = false;
313
314 Aws::Vector<MediaStreamSourceConfigurationRequest> m_mediaStreamSourceConfigurations;
315 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
316
317 int m_minLatency;
318 bool m_minLatencyHasBeenSet = false;
319
320 Aws::String m_name;
321 bool m_nameHasBeenSet = false;
322
323 Protocol m_protocol;
324 bool m_protocolHasBeenSet = false;
325
326 int m_senderControlPort;
327 bool m_senderControlPortHasBeenSet = false;
328
329 Aws::String m_senderIpAddress;
330 bool m_senderIpAddressHasBeenSet = false;
331
332 Aws::String m_sourceListenerAddress;
333 bool m_sourceListenerAddressHasBeenSet = false;
334
335 int m_sourceListenerPort;
336 bool m_sourceListenerPortHasBeenSet = false;
337
338 Aws::String m_streamId;
339 bool m_streamIdHasBeenSet = false;
340
341 Aws::String m_vpcInterfaceName;
342 bool m_vpcInterfaceNameHasBeenSet = false;
343
344 Aws::String m_whitelistCidr;
345 bool m_whitelistCidrHasBeenSet = false;
346
347 SetGatewayBridgeSourceRequest m_gatewayBridgeSource;
348 bool m_gatewayBridgeSourceHasBeenSet = false;
349 };
350
351} // namespace Model
352} // namespace MediaConnect
353} // namespace Aws
SetSourceRequest & WithMaxSyncBuffer(int value)
SetSourceRequest & WithDescription(const char *value)
SetSourceRequest & WithStreamId(Aws::String &&value)
SetSourceRequest & WithVpcInterfaceName(const Aws::String &value)
SetSourceRequest & WithProtocol(const Protocol &value)
SetSourceRequest & WithDecryption(Encryption &&value)
SetSourceRequest & WithSourceListenerAddress(const Aws::String &value)
void SetGatewayBridgeSource(SetGatewayBridgeSourceRequest &&value)
SetSourceRequest & WithProtocol(Protocol &&value)
SetSourceRequest & WithWhitelistCidr(Aws::String &&value)
SetSourceRequest & WithSourceListenerAddress(Aws::String &&value)
SetSourceRequest & WithGatewayBridgeSource(const SetGatewayBridgeSourceRequest &value)
const Aws::String & GetDescription() const
void SetSourceListenerAddress(Aws::String &&value)
SetSourceRequest & WithSenderControlPort(int value)
void SetDecryption(const Encryption &value)
SetSourceRequest & WithSenderIpAddress(const char *value)
const Aws::String & GetWhitelistCidr() const
SetSourceRequest & WithStreamId(const char *value)
void SetWhitelistCidr(const Aws::String &value)
SetSourceRequest & WithSenderIpAddress(const Aws::String &value)
void SetSenderIpAddress(const Aws::String &value)
void SetName(const Aws::String &value)
SetSourceRequest & WithEntitlementArn(const Aws::String &value)
const Aws::Vector< MediaStreamSourceConfigurationRequest > & GetMediaStreamSourceConfigurations() const
void SetSourceListenerAddress(const Aws::String &value)
SetSourceRequest & WithName(const Aws::String &value)
SetSourceRequest & WithMaxBitrate(int value)
AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue)
SetSourceRequest & WithGatewayBridgeSource(SetGatewayBridgeSourceRequest &&value)
AWS_MEDIACONNECT_API SetSourceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSenderIpAddress() const
SetSourceRequest & WithIngestPort(int value)
const Aws::String & GetEntitlementArn() const
SetSourceRequest & WithMaxLatency(int value)
SetSourceRequest & WithSenderIpAddress(Aws::String &&value)
void SetEntitlementArn(const Aws::String &value)
void SetGatewayBridgeSource(const SetGatewayBridgeSourceRequest &value)
SetSourceRequest & AddMediaStreamSourceConfigurations(const MediaStreamSourceConfigurationRequest &value)
const Aws::String & GetSourceListenerAddress() const
void SetMediaStreamSourceConfigurations(const Aws::Vector< MediaStreamSourceConfigurationRequest > &value)
void SetStreamId(const Aws::String &value)
SetSourceRequest & AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationRequest &&value)
SetSourceRequest & WithMinLatency(int value)
const Aws::String & GetVpcInterfaceName() const
SetSourceRequest & WithEntitlementArn(const char *value)
SetSourceRequest & WithDescription(const Aws::String &value)
SetSourceRequest & WithSourceListenerAddress(const char *value)
SetSourceRequest & WithStreamId(const Aws::String &value)
void SetMediaStreamSourceConfigurations(Aws::Vector< MediaStreamSourceConfigurationRequest > &&value)
SetSourceRequest & WithMediaStreamSourceConfigurations(const Aws::Vector< MediaStreamSourceConfigurationRequest > &value)
SetSourceRequest & WithName(const char *value)
SetSourceRequest & WithSourceListenerPort(int value)
void SetVpcInterfaceName(const Aws::String &value)
SetSourceRequest & WithWhitelistCidr(const char *value)
SetSourceRequest & WithVpcInterfaceName(Aws::String &&value)
SetSourceRequest & WithMediaStreamSourceConfigurations(Aws::Vector< MediaStreamSourceConfigurationRequest > &&value)
SetSourceRequest & WithVpcInterfaceName(const char *value)
SetSourceRequest & WithWhitelistCidr(const Aws::String &value)
SetSourceRequest & WithName(Aws::String &&value)
SetSourceRequest & WithEntitlementArn(Aws::String &&value)
const SetGatewayBridgeSourceRequest & GetGatewayBridgeSource() const
void SetDescription(const Aws::String &value)
SetSourceRequest & WithDecryption(const Encryption &value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SetSourceRequest & WithDescription(Aws::String &&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