AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Source.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/Transport.h>
12#include <aws/mediaconnect/model/GatewayBridgeSource.h>
13#include <aws/mediaconnect/model/MediaStreamSourceConfiguration.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
36 class Source
37 {
38 public:
39 AWS_MEDIACONNECT_API Source() = default;
40 AWS_MEDIACONNECT_API Source(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API Source& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline int GetDataTransferSubscriberFeePercent() const { return m_dataTransferSubscriberFeePercent; }
51 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
52 inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
55
57
61 inline const Encryption& GetDecryption() const { return m_decryption; }
62 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
63 template<typename DecryptionT = Encryption>
64 void SetDecryption(DecryptionT&& value) { m_decryptionHasBeenSet = true; m_decryption = std::forward<DecryptionT>(value); }
65 template<typename DecryptionT = Encryption>
66 Source& WithDecryption(DecryptionT&& value) { SetDecryption(std::forward<DecryptionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 Source& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
89 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
90 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
91 template<typename EntitlementArnT = Aws::String>
92 void SetEntitlementArn(EntitlementArnT&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::forward<EntitlementArnT>(value); }
93 template<typename EntitlementArnT = Aws::String>
94 Source& WithEntitlementArn(EntitlementArnT&& value) { SetEntitlementArn(std::forward<EntitlementArnT>(value)); return *this;}
96
98
101 inline const Aws::String& GetIngestIp() const { return m_ingestIp; }
102 inline bool IngestIpHasBeenSet() const { return m_ingestIpHasBeenSet; }
103 template<typename IngestIpT = Aws::String>
104 void SetIngestIp(IngestIpT&& value) { m_ingestIpHasBeenSet = true; m_ingestIp = std::forward<IngestIpT>(value); }
105 template<typename IngestIpT = Aws::String>
106 Source& WithIngestIp(IngestIpT&& value) { SetIngestIp(std::forward<IngestIpT>(value)); return *this;}
108
110
113 inline int GetIngestPort() const { return m_ingestPort; }
114 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
115 inline void SetIngestPort(int value) { m_ingestPortHasBeenSet = true; m_ingestPort = value; }
116 inline Source& WithIngestPort(int value) { SetIngestPort(value); return *this;}
118
120
124 inline const Aws::Vector<MediaStreamSourceConfiguration>& GetMediaStreamSourceConfigurations() const { return m_mediaStreamSourceConfigurations; }
125 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
126 template<typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfiguration>>
127 void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = std::forward<MediaStreamSourceConfigurationsT>(value); }
128 template<typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfiguration>>
129 Source& WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { SetMediaStreamSourceConfigurations(std::forward<MediaStreamSourceConfigurationsT>(value)); return *this;}
130 template<typename MediaStreamSourceConfigurationsT = MediaStreamSourceConfiguration>
131 Source& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.emplace_back(std::forward<MediaStreamSourceConfigurationsT>(value)); return *this; }
133
135
138 inline const Aws::String& GetName() const { return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 template<typename NameT = Aws::String>
141 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
142 template<typename NameT = Aws::String>
143 Source& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
145
147
151 inline int GetSenderControlPort() const { return m_senderControlPort; }
152 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
153 inline void SetSenderControlPort(int value) { m_senderControlPortHasBeenSet = true; m_senderControlPort = value; }
154 inline Source& WithSenderControlPort(int value) { SetSenderControlPort(value); return *this;}
156
158
162 inline const Aws::String& GetSenderIpAddress() const { return m_senderIpAddress; }
163 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
164 template<typename SenderIpAddressT = Aws::String>
165 void SetSenderIpAddress(SenderIpAddressT&& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = std::forward<SenderIpAddressT>(value); }
166 template<typename SenderIpAddressT = Aws::String>
167 Source& WithSenderIpAddress(SenderIpAddressT&& value) { SetSenderIpAddress(std::forward<SenderIpAddressT>(value)); return *this;}
169
171
174 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
175 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
176 template<typename SourceArnT = Aws::String>
177 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
178 template<typename SourceArnT = Aws::String>
179 Source& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
181
183
186 inline const Transport& GetTransport() const { return m_transport; }
187 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
188 template<typename TransportT = Transport>
189 void SetTransport(TransportT&& value) { m_transportHasBeenSet = true; m_transport = std::forward<TransportT>(value); }
190 template<typename TransportT = Transport>
191 Source& WithTransport(TransportT&& value) { SetTransport(std::forward<TransportT>(value)); return *this;}
193
195
198 inline const Aws::String& GetVpcInterfaceName() const { return m_vpcInterfaceName; }
199 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
200 template<typename VpcInterfaceNameT = Aws::String>
201 void SetVpcInterfaceName(VpcInterfaceNameT&& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = std::forward<VpcInterfaceNameT>(value); }
202 template<typename VpcInterfaceNameT = Aws::String>
203 Source& WithVpcInterfaceName(VpcInterfaceNameT&& value) { SetVpcInterfaceName(std::forward<VpcInterfaceNameT>(value)); return *this;}
205
207
212 inline const Aws::String& GetWhitelistCidr() const { return m_whitelistCidr; }
213 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
214 template<typename WhitelistCidrT = Aws::String>
215 void SetWhitelistCidr(WhitelistCidrT&& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = std::forward<WhitelistCidrT>(value); }
216 template<typename WhitelistCidrT = Aws::String>
217 Source& WithWhitelistCidr(WhitelistCidrT&& value) { SetWhitelistCidr(std::forward<WhitelistCidrT>(value)); return *this;}
219
221
225 inline const GatewayBridgeSource& GetGatewayBridgeSource() const { return m_gatewayBridgeSource; }
226 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
227 template<typename GatewayBridgeSourceT = GatewayBridgeSource>
228 void SetGatewayBridgeSource(GatewayBridgeSourceT&& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = std::forward<GatewayBridgeSourceT>(value); }
229 template<typename GatewayBridgeSourceT = GatewayBridgeSource>
230 Source& WithGatewayBridgeSource(GatewayBridgeSourceT&& value) { SetGatewayBridgeSource(std::forward<GatewayBridgeSourceT>(value)); return *this;}
232
234
246 inline const Aws::String& GetPeerIpAddress() const { return m_peerIpAddress; }
247 inline bool PeerIpAddressHasBeenSet() const { return m_peerIpAddressHasBeenSet; }
248 template<typename PeerIpAddressT = Aws::String>
249 void SetPeerIpAddress(PeerIpAddressT&& value) { m_peerIpAddressHasBeenSet = true; m_peerIpAddress = std::forward<PeerIpAddressT>(value); }
250 template<typename PeerIpAddressT = Aws::String>
251 Source& WithPeerIpAddress(PeerIpAddressT&& value) { SetPeerIpAddress(std::forward<PeerIpAddressT>(value)); return *this;}
253 private:
254
255 int m_dataTransferSubscriberFeePercent{0};
256 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
257
258 Encryption m_decryption;
259 bool m_decryptionHasBeenSet = false;
260
261 Aws::String m_description;
262 bool m_descriptionHasBeenSet = false;
263
264 Aws::String m_entitlementArn;
265 bool m_entitlementArnHasBeenSet = false;
266
267 Aws::String m_ingestIp;
268 bool m_ingestIpHasBeenSet = false;
269
270 int m_ingestPort{0};
271 bool m_ingestPortHasBeenSet = false;
272
273 Aws::Vector<MediaStreamSourceConfiguration> m_mediaStreamSourceConfigurations;
274 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
275
276 Aws::String m_name;
277 bool m_nameHasBeenSet = false;
278
279 int m_senderControlPort{0};
280 bool m_senderControlPortHasBeenSet = false;
281
282 Aws::String m_senderIpAddress;
283 bool m_senderIpAddressHasBeenSet = false;
284
285 Aws::String m_sourceArn;
286 bool m_sourceArnHasBeenSet = false;
287
288 Transport m_transport;
289 bool m_transportHasBeenSet = false;
290
291 Aws::String m_vpcInterfaceName;
292 bool m_vpcInterfaceNameHasBeenSet = false;
293
294 Aws::String m_whitelistCidr;
295 bool m_whitelistCidrHasBeenSet = false;
296
297 GatewayBridgeSource m_gatewayBridgeSource;
298 bool m_gatewayBridgeSourceHasBeenSet = false;
299
300 Aws::String m_peerIpAddress;
301 bool m_peerIpAddressHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace MediaConnect
306} // namespace Aws
bool MediaStreamSourceConfigurationsHasBeenSet() const
Definition Source.h:125
void SetDecryption(DecryptionT &&value)
Definition Source.h:64
void SetName(NameT &&value)
Definition Source.h:141
void SetIngestIp(IngestIpT &&value)
Definition Source.h:104
bool WhitelistCidrHasBeenSet() const
Definition Source.h:213
Source & WithTransport(TransportT &&value)
Definition Source.h:191
Source & WithSenderIpAddress(SenderIpAddressT &&value)
Definition Source.h:167
Source & WithIngestIp(IngestIpT &&value)
Definition Source.h:106
const Aws::String & GetEntitlementArn() const
Definition Source.h:89
void SetWhitelistCidr(WhitelistCidrT &&value)
Definition Source.h:215
Source & WithDecryption(DecryptionT &&value)
Definition Source.h:66
bool IngestPortHasBeenSet() const
Definition Source.h:114
Source & WithGatewayBridgeSource(GatewayBridgeSourceT &&value)
Definition Source.h:230
void SetPeerIpAddress(PeerIpAddressT &&value)
Definition Source.h:249
void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
Definition Source.h:127
void SetIngestPort(int value)
Definition Source.h:115
const Aws::String & GetSenderIpAddress() const
Definition Source.h:162
Source & WithDescription(DescriptionT &&value)
Definition Source.h:79
void SetTransport(TransportT &&value)
Definition Source.h:189
AWS_MEDIACONNECT_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Source()=default
void SetEntitlementArn(EntitlementArnT &&value)
Definition Source.h:92
const Encryption & GetDecryption() const
Definition Source.h:61
const Aws::Vector< MediaStreamSourceConfiguration > & GetMediaStreamSourceConfigurations() const
Definition Source.h:124
bool PeerIpAddressHasBeenSet() const
Definition Source.h:247
void SetSenderIpAddress(SenderIpAddressT &&value)
Definition Source.h:165
const GatewayBridgeSource & GetGatewayBridgeSource() const
Definition Source.h:225
void SetVpcInterfaceName(VpcInterfaceNameT &&value)
Definition Source.h:201
Source & WithSenderControlPort(int value)
Definition Source.h:154
Source & WithPeerIpAddress(PeerIpAddressT &&value)
Definition Source.h:251
AWS_MEDIACONNECT_API Source(Aws::Utils::Json::JsonView jsonValue)
void SetSourceArn(SourceArnT &&value)
Definition Source.h:177
Source & WithDataTransferSubscriberFeePercent(int value)
Definition Source.h:53
void SetGatewayBridgeSource(GatewayBridgeSourceT &&value)
Definition Source.h:228
const Aws::String & GetIngestIp() const
Definition Source.h:101
Source & AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
Definition Source.h:131
void SetSenderControlPort(int value)
Definition Source.h:153
void SetDescription(DescriptionT &&value)
Definition Source.h:77
const Aws::String & GetVpcInterfaceName() const
Definition Source.h:198
void SetDataTransferSubscriberFeePercent(int value)
Definition Source.h:52
Source & WithSourceArn(SourceArnT &&value)
Definition Source.h:179
bool SenderControlPortHasBeenSet() const
Definition Source.h:152
Source & WithEntitlementArn(EntitlementArnT &&value)
Definition Source.h:94
Source & WithVpcInterfaceName(VpcInterfaceNameT &&value)
Definition Source.h:203
bool SenderIpAddressHasBeenSet() const
Definition Source.h:163
int GetDataTransferSubscriberFeePercent() const
Definition Source.h:50
const Aws::String & GetName() const
Definition Source.h:138
bool VpcInterfaceNameHasBeenSet() const
Definition Source.h:199
Source & WithIngestPort(int value)
Definition Source.h:116
bool GatewayBridgeSourceHasBeenSet() const
Definition Source.h:226
const Aws::String & GetDescription() const
Definition Source.h:74
Source & WithName(NameT &&value)
Definition Source.h:143
const Transport & GetTransport() const
Definition Source.h:186
bool DataTransferSubscriberFeePercentHasBeenSet() const
Definition Source.h:51
bool DescriptionHasBeenSet() const
Definition Source.h:75
Source & WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
Definition Source.h:129
bool DecryptionHasBeenSet() const
Definition Source.h:62
const Aws::String & GetPeerIpAddress() const
Definition Source.h:246
const Aws::String & GetSourceArn() const
Definition Source.h:174
bool EntitlementArnHasBeenSet() const
Definition Source.h:90
const Aws::String & GetWhitelistCidr() const
Definition Source.h:212
Source & WithWhitelistCidr(WhitelistCidrT &&value)
Definition Source.h:217
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue