AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
49 inline int GetDataTransferSubscriberFeePercent() const{ return m_dataTransferSubscriberFeePercent; }
50 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
51 inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
54
56
59 inline const Encryption& GetDecryption() const{ return m_decryption; }
60 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
61 inline void SetDecryption(const Encryption& value) { m_decryptionHasBeenSet = true; m_decryption = value; }
62 inline void SetDecryption(Encryption&& value) { m_decryptionHasBeenSet = true; m_decryption = std::move(value); }
63 inline Source& WithDecryption(const Encryption& value) { SetDecryption(value); return *this;}
64 inline Source& WithDecryption(Encryption&& value) { SetDecryption(std::move(value)); return *this;}
66
68
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline Source& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline Source& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline Source& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
88 inline const Aws::String& GetEntitlementArn() const{ return m_entitlementArn; }
89 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
90 inline void SetEntitlementArn(const Aws::String& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = value; }
91 inline void SetEntitlementArn(Aws::String&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::move(value); }
92 inline void SetEntitlementArn(const char* value) { m_entitlementArnHasBeenSet = true; m_entitlementArn.assign(value); }
93 inline Source& WithEntitlementArn(const Aws::String& value) { SetEntitlementArn(value); return *this;}
94 inline Source& WithEntitlementArn(Aws::String&& value) { SetEntitlementArn(std::move(value)); return *this;}
95 inline Source& WithEntitlementArn(const char* value) { SetEntitlementArn(value); return *this;}
97
99
102 inline const Aws::String& GetIngestIp() const{ return m_ingestIp; }
103 inline bool IngestIpHasBeenSet() const { return m_ingestIpHasBeenSet; }
104 inline void SetIngestIp(const Aws::String& value) { m_ingestIpHasBeenSet = true; m_ingestIp = value; }
105 inline void SetIngestIp(Aws::String&& value) { m_ingestIpHasBeenSet = true; m_ingestIp = std::move(value); }
106 inline void SetIngestIp(const char* value) { m_ingestIpHasBeenSet = true; m_ingestIp.assign(value); }
107 inline Source& WithIngestIp(const Aws::String& value) { SetIngestIp(value); return *this;}
108 inline Source& WithIngestIp(Aws::String&& value) { SetIngestIp(std::move(value)); return *this;}
109 inline Source& WithIngestIp(const char* value) { SetIngestIp(value); return *this;}
111
113
116 inline int GetIngestPort() const{ return m_ingestPort; }
117 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
118 inline void SetIngestPort(int value) { m_ingestPortHasBeenSet = true; m_ingestPort = value; }
119 inline Source& WithIngestPort(int value) { SetIngestPort(value); return *this;}
121
123
127 inline const Aws::Vector<MediaStreamSourceConfiguration>& GetMediaStreamSourceConfigurations() const{ return m_mediaStreamSourceConfigurations; }
128 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
129 inline void SetMediaStreamSourceConfigurations(const Aws::Vector<MediaStreamSourceConfiguration>& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = value; }
130 inline void SetMediaStreamSourceConfigurations(Aws::Vector<MediaStreamSourceConfiguration>&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations = std::move(value); }
133 inline Source& AddMediaStreamSourceConfigurations(const MediaStreamSourceConfiguration& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.push_back(value); return *this; }
134 inline Source& AddMediaStreamSourceConfigurations(MediaStreamSourceConfiguration&& value) { m_mediaStreamSourceConfigurationsHasBeenSet = true; m_mediaStreamSourceConfigurations.push_back(std::move(value)); return *this; }
136
138
141 inline const Aws::String& GetName() const{ return m_name; }
142 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
143 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
144 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
145 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
146 inline Source& WithName(const Aws::String& value) { SetName(value); return *this;}
147 inline Source& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
148 inline Source& WithName(const char* value) { SetName(value); return *this;}
150
152
156 inline int GetSenderControlPort() const{ return m_senderControlPort; }
157 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
158 inline void SetSenderControlPort(int value) { m_senderControlPortHasBeenSet = true; m_senderControlPort = value; }
159 inline Source& WithSenderControlPort(int value) { SetSenderControlPort(value); return *this;}
161
163
167 inline const Aws::String& GetSenderIpAddress() const{ return m_senderIpAddress; }
168 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
169 inline void SetSenderIpAddress(const Aws::String& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = value; }
170 inline void SetSenderIpAddress(Aws::String&& value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress = std::move(value); }
171 inline void SetSenderIpAddress(const char* value) { m_senderIpAddressHasBeenSet = true; m_senderIpAddress.assign(value); }
172 inline Source& WithSenderIpAddress(const Aws::String& value) { SetSenderIpAddress(value); return *this;}
173 inline Source& WithSenderIpAddress(Aws::String&& value) { SetSenderIpAddress(std::move(value)); return *this;}
174 inline Source& WithSenderIpAddress(const char* value) { SetSenderIpAddress(value); return *this;}
176
178
181 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
182 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
183 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
184 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
185 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
186 inline Source& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
187 inline Source& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
188 inline Source& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
190
192
195 inline const Transport& GetTransport() const{ return m_transport; }
196 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
197 inline void SetTransport(const Transport& value) { m_transportHasBeenSet = true; m_transport = value; }
198 inline void SetTransport(Transport&& value) { m_transportHasBeenSet = true; m_transport = std::move(value); }
199 inline Source& WithTransport(const Transport& value) { SetTransport(value); return *this;}
200 inline Source& WithTransport(Transport&& value) { SetTransport(std::move(value)); return *this;}
202
204
207 inline const Aws::String& GetVpcInterfaceName() const{ return m_vpcInterfaceName; }
208 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
209 inline void SetVpcInterfaceName(const Aws::String& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = value; }
210 inline void SetVpcInterfaceName(Aws::String&& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = std::move(value); }
211 inline void SetVpcInterfaceName(const char* value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName.assign(value); }
212 inline Source& WithVpcInterfaceName(const Aws::String& value) { SetVpcInterfaceName(value); return *this;}
213 inline Source& WithVpcInterfaceName(Aws::String&& value) { SetVpcInterfaceName(std::move(value)); return *this;}
214 inline Source& WithVpcInterfaceName(const char* value) { SetVpcInterfaceName(value); return *this;}
216
218
223 inline const Aws::String& GetWhitelistCidr() const{ return m_whitelistCidr; }
224 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
225 inline void SetWhitelistCidr(const Aws::String& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = value; }
226 inline void SetWhitelistCidr(Aws::String&& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = std::move(value); }
227 inline void SetWhitelistCidr(const char* value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr.assign(value); }
228 inline Source& WithWhitelistCidr(const Aws::String& value) { SetWhitelistCidr(value); return *this;}
229 inline Source& WithWhitelistCidr(Aws::String&& value) { SetWhitelistCidr(std::move(value)); return *this;}
230 inline Source& WithWhitelistCidr(const char* value) { SetWhitelistCidr(value); return *this;}
232
234
237 inline const GatewayBridgeSource& GetGatewayBridgeSource() const{ return m_gatewayBridgeSource; }
238 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
239 inline void SetGatewayBridgeSource(const GatewayBridgeSource& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = value; }
240 inline void SetGatewayBridgeSource(GatewayBridgeSource&& value) { m_gatewayBridgeSourceHasBeenSet = true; m_gatewayBridgeSource = std::move(value); }
241 inline Source& WithGatewayBridgeSource(const GatewayBridgeSource& value) { SetGatewayBridgeSource(value); return *this;}
242 inline Source& WithGatewayBridgeSource(GatewayBridgeSource&& value) { SetGatewayBridgeSource(std::move(value)); return *this;}
244 private:
245
246 int m_dataTransferSubscriberFeePercent;
247 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
248
249 Encryption m_decryption;
250 bool m_decryptionHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::String m_entitlementArn;
256 bool m_entitlementArnHasBeenSet = false;
257
258 Aws::String m_ingestIp;
259 bool m_ingestIpHasBeenSet = false;
260
261 int m_ingestPort;
262 bool m_ingestPortHasBeenSet = false;
263
264 Aws::Vector<MediaStreamSourceConfiguration> m_mediaStreamSourceConfigurations;
265 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 int m_senderControlPort;
271 bool m_senderControlPortHasBeenSet = false;
272
273 Aws::String m_senderIpAddress;
274 bool m_senderIpAddressHasBeenSet = false;
275
276 Aws::String m_sourceArn;
277 bool m_sourceArnHasBeenSet = false;
278
279 Transport m_transport;
280 bool m_transportHasBeenSet = false;
281
282 Aws::String m_vpcInterfaceName;
283 bool m_vpcInterfaceNameHasBeenSet = false;
284
285 Aws::String m_whitelistCidr;
286 bool m_whitelistCidrHasBeenSet = false;
287
288 GatewayBridgeSource m_gatewayBridgeSource;
289 bool m_gatewayBridgeSourceHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace MediaConnect
294} // namespace Aws
bool MediaStreamSourceConfigurationsHasBeenSet() const
Definition Source.h:128
void SetDescription(const char *value)
Definition Source.h:76
Source & WithSourceArn(const char *value)
Definition Source.h:188
bool WhitelistCidrHasBeenSet() const
Definition Source.h:224
Source & WithDecryption(Encryption &&value)
Definition Source.h:64
const Aws::String & GetEntitlementArn() const
Definition Source.h:88
void SetEntitlementArn(Aws::String &&value)
Definition Source.h:91
Source & WithEntitlementArn(const char *value)
Definition Source.h:95
Source & WithEntitlementArn(const Aws::String &value)
Definition Source.h:93
Source & WithVpcInterfaceName(const char *value)
Definition Source.h:214
void SetIngestIp(Aws::String &&value)
Definition Source.h:105
void SetSenderIpAddress(const char *value)
Definition Source.h:171
Source & WithTransport(const Transport &value)
Definition Source.h:199
AWS_MEDIACONNECT_API Source()
void SetWhitelistCidr(Aws::String &&value)
Definition Source.h:226
bool IngestPortHasBeenSet() const
Definition Source.h:117
Source & WithVpcInterfaceName(const Aws::String &value)
Definition Source.h:212
void SetName(Aws::String &&value)
Definition Source.h:144
void SetGatewayBridgeSource(const GatewayBridgeSource &value)
Definition Source.h:239
Source & WithWhitelistCidr(const char *value)
Definition Source.h:230
void SetIngestPort(int value)
Definition Source.h:118
const Aws::String & GetSenderIpAddress() const
Definition Source.h:167
Source & WithSenderIpAddress(Aws::String &&value)
Definition Source.h:173
Source & WithDescription(Aws::String &&value)
Definition Source.h:78
Source & WithName(Aws::String &&value)
Definition Source.h:147
AWS_MEDIACONNECT_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
const Encryption & GetDecryption() const
Definition Source.h:59
void SetSourceArn(Aws::String &&value)
Definition Source.h:184
Source & WithMediaStreamSourceConfigurations(Aws::Vector< MediaStreamSourceConfiguration > &&value)
Definition Source.h:132
void SetGatewayBridgeSource(GatewayBridgeSource &&value)
Definition Source.h:240
Source & WithDecryption(const Encryption &value)
Definition Source.h:63
const Aws::Vector< MediaStreamSourceConfiguration > & GetMediaStreamSourceConfigurations() const
Definition Source.h:127
Source & WithVpcInterfaceName(Aws::String &&value)
Definition Source.h:213
Source & WithDescription(const Aws::String &value)
Definition Source.h:77
const GatewayBridgeSource & GetGatewayBridgeSource() const
Definition Source.h:237
Source & WithMediaStreamSourceConfigurations(const Aws::Vector< MediaStreamSourceConfiguration > &value)
Definition Source.h:131
void SetSenderIpAddress(Aws::String &&value)
Definition Source.h:170
Source & WithSenderControlPort(int value)
Definition Source.h:159
void SetMediaStreamSourceConfigurations(Aws::Vector< MediaStreamSourceConfiguration > &&value)
Definition Source.h:130
Source & WithSenderIpAddress(const Aws::String &value)
Definition Source.h:172
AWS_MEDIACONNECT_API Source(Aws::Utils::Json::JsonView jsonValue)
void SetIngestIp(const Aws::String &value)
Definition Source.h:104
Source & WithDataTransferSubscriberFeePercent(int value)
Definition Source.h:52
Source & WithName(const char *value)
Definition Source.h:148
Source & WithIngestIp(const Aws::String &value)
Definition Source.h:107
void SetSenderIpAddress(const Aws::String &value)
Definition Source.h:169
Source & WithName(const Aws::String &value)
Definition Source.h:146
const Aws::String & GetIngestIp() const
Definition Source.h:102
Source & AddMediaStreamSourceConfigurations(const MediaStreamSourceConfiguration &value)
Definition Source.h:133
void SetSenderControlPort(int value)
Definition Source.h:158
void SetEntitlementArn(const char *value)
Definition Source.h:92
Source & WithEntitlementArn(Aws::String &&value)
Definition Source.h:94
void SetIngestIp(const char *value)
Definition Source.h:106
void SetDecryption(Encryption &&value)
Definition Source.h:62
const Aws::String & GetVpcInterfaceName() const
Definition Source.h:207
void SetDataTransferSubscriberFeePercent(int value)
Definition Source.h:51
void SetDecryption(const Encryption &value)
Definition Source.h:61
bool SenderControlPortHasBeenSet() const
Definition Source.h:157
void SetSourceArn(const Aws::String &value)
Definition Source.h:183
Source & WithIngestIp(const char *value)
Definition Source.h:109
Source & WithWhitelistCidr(Aws::String &&value)
Definition Source.h:229
void SetDescription(const Aws::String &value)
Definition Source.h:74
void SetWhitelistCidr(const Aws::String &value)
Definition Source.h:225
Source & WithGatewayBridgeSource(GatewayBridgeSource &&value)
Definition Source.h:242
Source & WithSourceArn(Aws::String &&value)
Definition Source.h:187
void SetName(const Aws::String &value)
Definition Source.h:143
void SetMediaStreamSourceConfigurations(const Aws::Vector< MediaStreamSourceConfiguration > &value)
Definition Source.h:129
bool SenderIpAddressHasBeenSet() const
Definition Source.h:168
void SetEntitlementArn(const Aws::String &value)
Definition Source.h:90
void SetTransport(Transport &&value)
Definition Source.h:198
void SetVpcInterfaceName(Aws::String &&value)
Definition Source.h:210
Source & WithIngestIp(Aws::String &&value)
Definition Source.h:108
int GetDataTransferSubscriberFeePercent() const
Definition Source.h:49
void SetVpcInterfaceName(const Aws::String &value)
Definition Source.h:209
void SetWhitelistCidr(const char *value)
Definition Source.h:227
const Aws::String & GetName() const
Definition Source.h:141
bool VpcInterfaceNameHasBeenSet() const
Definition Source.h:208
Source & WithIngestPort(int value)
Definition Source.h:119
Source & WithWhitelistCidr(const Aws::String &value)
Definition Source.h:228
Source & AddMediaStreamSourceConfigurations(MediaStreamSourceConfiguration &&value)
Definition Source.h:134
bool GatewayBridgeSourceHasBeenSet() const
Definition Source.h:238
const Aws::String & GetDescription() const
Definition Source.h:72
void SetVpcInterfaceName(const char *value)
Definition Source.h:211
const Transport & GetTransport() const
Definition Source.h:195
bool DataTransferSubscriberFeePercentHasBeenSet() const
Definition Source.h:50
bool DescriptionHasBeenSet() const
Definition Source.h:73
Source & WithDescription(const char *value)
Definition Source.h:79
Source & WithSourceArn(const Aws::String &value)
Definition Source.h:186
Source & WithGatewayBridgeSource(const GatewayBridgeSource &value)
Definition Source.h:241
bool DecryptionHasBeenSet() const
Definition Source.h:60
Source & WithTransport(Transport &&value)
Definition Source.h:200
void SetSourceArn(const char *value)
Definition Source.h:185
const Aws::String & GetSourceArn() const
Definition Source.h:181
void SetDescription(Aws::String &&value)
Definition Source.h:75
void SetTransport(const Transport &value)
Definition Source.h:197
bool EntitlementArnHasBeenSet() const
Definition Source.h:89
void SetName(const char *value)
Definition Source.h:145
Source & WithSenderIpAddress(const char *value)
Definition Source.h:174
const Aws::String & GetWhitelistCidr() const
Definition Source.h:223
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