AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SourceEndpoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
12#include <aws/mediaconnect/model/EndpointEncryptionConfiguration.h>
13#include <aws/mediaconnect/model/EndpointEncryptionType.h>
14#include <aws/mediaconnect/model/EndpointLifecycle.h>
15#include <aws/mediaconnect/model/ResourceShareDetails.h>
16#include <aws/mediaconnect/model/ResourceShareOwnership.h>
17#include <aws/mediaconnect/model/SourceEndpointAssociatedResourceDetails.h>
18#include <aws/mediaconnect/model/SourceEndpointConfiguration.h>
19#include <aws/mediaconnect/model/SourceEndpointConnectionDetails.h>
20#include <aws/mediaconnect/model/SourceEndpointConnectionState.h>
21#include <aws/mediaconnect/model/SourceEndpointMessage.h>
22#include <aws/mediaconnect/model/SourceEndpointRegistrationState.h>
23#include <aws/mediaconnect/model/SourceEndpointType.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace MediaConnect {
35namespace Model {
36
44 public:
45 AWS_MEDIACONNECT_API SourceEndpoint() = default;
46 AWS_MEDIACONNECT_API SourceEndpoint(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIACONNECT_API SourceEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
62 SourceEndpoint& WithName(NameT&& value) {
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template <typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) {
76 m_arnHasBeenSet = true;
77 m_arn = std::forward<ArnT>(value);
78 }
79 template <typename ArnT = Aws::String>
80 SourceEndpoint& WithArn(ArnT&& value) {
81 SetArn(std::forward<ArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetId() const { return m_id; }
91 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
92 template <typename IdT = Aws::String>
93 void SetId(IdT&& value) {
94 m_idHasBeenSet = true;
95 m_id = std::forward<IdT>(value);
96 }
97 template <typename IdT = Aws::String>
98 SourceEndpoint& WithId(IdT&& value) {
99 SetId(std::forward<IdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 SourceEndpoint& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetRegionName() const { return m_regionName; }
128 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
129 template <typename RegionNameT = Aws::String>
130 void SetRegionName(RegionNameT&& value) {
131 m_regionNameHasBeenSet = true;
132 m_regionName = std::forward<RegionNameT>(value);
133 }
134 template <typename RegionNameT = Aws::String>
135 SourceEndpoint& WithRegionName(RegionNameT&& value) {
136 SetRegionName(std::forward<RegionNameT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
146 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
147 template <typename AvailabilityZoneT = Aws::String>
148 void SetAvailabilityZone(AvailabilityZoneT&& value) {
149 m_availabilityZoneHasBeenSet = true;
150 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
151 }
152 template <typename AvailabilityZoneT = Aws::String>
153 SourceEndpoint& WithAvailabilityZone(AvailabilityZoneT&& value) {
154 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
164 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
165 template <typename AvailabilityZoneIdT = Aws::String>
166 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
167 m_availabilityZoneIdHasBeenSet = true;
168 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
169 }
170 template <typename AvailabilityZoneIdT = Aws::String>
171 SourceEndpoint& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
172 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
182 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
184 void SetCreatedAt(CreatedAtT&& value) {
185 m_createdAtHasBeenSet = true;
186 m_createdAt = std::forward<CreatedAtT>(value);
187 }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 SourceEndpoint& WithCreatedAt(CreatedAtT&& value) {
190 SetCreatedAt(std::forward<CreatedAtT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
200 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
201 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 void SetUpdatedAt(UpdatedAtT&& value) {
203 m_updatedAtHasBeenSet = true;
204 m_updatedAt = std::forward<UpdatedAtT>(value);
205 }
206 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 SourceEndpoint& WithUpdatedAt(UpdatedAtT&& value) {
208 SetUpdatedAt(std::forward<UpdatedAtT>(value));
209 return *this;
210 }
212
214
217 inline EndpointLifecycle GetLifecycleManagement() const { return m_lifecycleManagement; }
218 inline bool LifecycleManagementHasBeenSet() const { return m_lifecycleManagementHasBeenSet; }
220 m_lifecycleManagementHasBeenSet = true;
221 m_lifecycleManagement = value;
222 }
225 return *this;
226 }
228
230
233 inline const Aws::Vector<SourceEndpointMessage>& GetMessages() const { return m_messages; }
234 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
235 template <typename MessagesT = Aws::Vector<SourceEndpointMessage>>
236 void SetMessages(MessagesT&& value) {
237 m_messagesHasBeenSet = true;
238 m_messages = std::forward<MessagesT>(value);
239 }
240 template <typename MessagesT = Aws::Vector<SourceEndpointMessage>>
241 SourceEndpoint& WithMessages(MessagesT&& value) {
242 SetMessages(std::forward<MessagesT>(value));
243 return *this;
244 }
245 template <typename MessagesT = SourceEndpointMessage>
246 SourceEndpoint& AddMessages(MessagesT&& value) {
247 m_messagesHasBeenSet = true;
248 m_messages.emplace_back(std::forward<MessagesT>(value));
249 return *this;
250 }
252
254
261 inline SourceEndpointType GetSourceType() const { return m_sourceType; }
262 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
264 m_sourceTypeHasBeenSet = true;
265 m_sourceType = value;
266 }
268 SetSourceType(value);
269 return *this;
270 }
272
274
277 inline const SourceEndpointConfiguration& GetConfiguration() const { return m_configuration; }
278 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
279 template <typename ConfigurationT = SourceEndpointConfiguration>
280 void SetConfiguration(ConfigurationT&& value) {
281 m_configurationHasBeenSet = true;
282 m_configuration = std::forward<ConfigurationT>(value);
283 }
284 template <typename ConfigurationT = SourceEndpointConfiguration>
285 SourceEndpoint& WithConfiguration(ConfigurationT&& value) {
286 SetConfiguration(std::forward<ConfigurationT>(value));
287 return *this;
288 }
290
292
296 inline ResourceShareOwnership GetResourceShareOwnership() const { return m_resourceShareOwnership; }
297 inline bool ResourceShareOwnershipHasBeenSet() const { return m_resourceShareOwnershipHasBeenSet; }
299 m_resourceShareOwnershipHasBeenSet = true;
300 m_resourceShareOwnership = value;
301 }
307
309
310 inline const ResourceShareDetails& GetResourceShareDetails() const { return m_resourceShareDetails; }
311 inline bool ResourceShareDetailsHasBeenSet() const { return m_resourceShareDetailsHasBeenSet; }
312 template <typename ResourceShareDetailsT = ResourceShareDetails>
313 void SetResourceShareDetails(ResourceShareDetailsT&& value) {
314 m_resourceShareDetailsHasBeenSet = true;
315 m_resourceShareDetails = std::forward<ResourceShareDetailsT>(value);
316 }
317 template <typename ResourceShareDetailsT = ResourceShareDetails>
318 SourceEndpoint& WithResourceShareDetails(ResourceShareDetailsT&& value) {
319 SetResourceShareDetails(std::forward<ResourceShareDetailsT>(value));
320 return *this;
321 }
323
325
334 inline SourceEndpointRegistrationState GetRegistrationState() const { return m_registrationState; }
335 inline bool RegistrationStateHasBeenSet() const { return m_registrationStateHasBeenSet; }
337 m_registrationStateHasBeenSet = true;
338 m_registrationState = value;
339 }
345
347
357 inline SourceEndpointConnectionState GetConnectionState() const { return m_connectionState; }
358 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
360 m_connectionStateHasBeenSet = true;
361 m_connectionState = value;
362 }
364 SetConnectionState(value);
365 return *this;
366 }
368
370
373 inline const SourceEndpointConnectionDetails& GetConnectionDetails() const { return m_connectionDetails; }
374 inline bool ConnectionDetailsHasBeenSet() const { return m_connectionDetailsHasBeenSet; }
375 template <typename ConnectionDetailsT = SourceEndpointConnectionDetails>
376 void SetConnectionDetails(ConnectionDetailsT&& value) {
377 m_connectionDetailsHasBeenSet = true;
378 m_connectionDetails = std::forward<ConnectionDetailsT>(value);
379 }
380 template <typename ConnectionDetailsT = SourceEndpointConnectionDetails>
381 SourceEndpoint& WithConnectionDetails(ConnectionDetailsT&& value) {
382 SetConnectionDetails(std::forward<ConnectionDetailsT>(value));
383 return *this;
384 }
386
388
392 inline const Aws::Vector<Aws::String>& GetConnectedDestinations() const { return m_connectedDestinations; }
393 inline bool ConnectedDestinationsHasBeenSet() const { return m_connectedDestinationsHasBeenSet; }
394 template <typename ConnectedDestinationsT = Aws::Vector<Aws::String>>
395 void SetConnectedDestinations(ConnectedDestinationsT&& value) {
396 m_connectedDestinationsHasBeenSet = true;
397 m_connectedDestinations = std::forward<ConnectedDestinationsT>(value);
398 }
399 template <typename ConnectedDestinationsT = Aws::Vector<Aws::String>>
400 SourceEndpoint& WithConnectedDestinations(ConnectedDestinationsT&& value) {
401 SetConnectedDestinations(std::forward<ConnectedDestinationsT>(value));
402 return *this;
403 }
404 template <typename ConnectedDestinationsT = Aws::String>
405 SourceEndpoint& AddConnectedDestinations(ConnectedDestinationsT&& value) {
406 m_connectedDestinationsHasBeenSet = true;
407 m_connectedDestinations.emplace_back(std::forward<ConnectedDestinationsT>(value));
408 return *this;
409 }
411
413
416 inline EndpointEncryptionType GetEncryptionType() const { return m_encryptionType; }
417 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
419 m_encryptionTypeHasBeenSet = true;
420 m_encryptionType = value;
421 }
423 SetEncryptionType(value);
424 return *this;
425 }
427
429
430 inline const EndpointEncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
431 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
432 template <typename EncryptionConfigurationT = EndpointEncryptionConfiguration>
433 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
434 m_encryptionConfigurationHasBeenSet = true;
435 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
436 }
437 template <typename EncryptionConfigurationT = EndpointEncryptionConfiguration>
438 SourceEndpoint& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
439 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
440 return *this;
441 }
443
445
448 inline const SourceEndpointAssociatedResourceDetails& GetAssociatedResourceDetails() const { return m_associatedResourceDetails; }
449 inline bool AssociatedResourceDetailsHasBeenSet() const { return m_associatedResourceDetailsHasBeenSet; }
450 template <typename AssociatedResourceDetailsT = SourceEndpointAssociatedResourceDetails>
451 void SetAssociatedResourceDetails(AssociatedResourceDetailsT&& value) {
452 m_associatedResourceDetailsHasBeenSet = true;
453 m_associatedResourceDetails = std::forward<AssociatedResourceDetailsT>(value);
454 }
455 template <typename AssociatedResourceDetailsT = SourceEndpointAssociatedResourceDetails>
456 SourceEndpoint& WithAssociatedResourceDetails(AssociatedResourceDetailsT&& value) {
457 SetAssociatedResourceDetails(std::forward<AssociatedResourceDetailsT>(value));
458 return *this;
459 }
461
463
467 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
468 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
469 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
470 void SetTags(TagsT&& value) {
471 m_tagsHasBeenSet = true;
472 m_tags = std::forward<TagsT>(value);
473 }
474 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
475 SourceEndpoint& WithTags(TagsT&& value) {
476 SetTags(std::forward<TagsT>(value));
477 return *this;
478 }
479 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
480 SourceEndpoint& AddTags(TagsKeyT&& key, TagsValueT&& value) {
481 m_tagsHasBeenSet = true;
482 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
483 return *this;
484 }
486 private:
487 Aws::String m_name;
488
489 Aws::String m_arn;
490
491 Aws::String m_id;
492
493 Aws::String m_description;
494
495 Aws::String m_regionName;
496
497 Aws::String m_availabilityZone;
498
499 Aws::String m_availabilityZoneId;
500
501 Aws::Utils::DateTime m_createdAt{};
502
503 Aws::Utils::DateTime m_updatedAt{};
504
505 EndpointLifecycle m_lifecycleManagement{EndpointLifecycle::NOT_SET};
506
508
510
511 SourceEndpointConfiguration m_configuration;
512
514
515 ResourceShareDetails m_resourceShareDetails;
516
518
520
521 SourceEndpointConnectionDetails m_connectionDetails;
522
523 Aws::Vector<Aws::String> m_connectedDestinations;
524
526
527 EndpointEncryptionConfiguration m_encryptionConfiguration;
528
529 SourceEndpointAssociatedResourceDetails m_associatedResourceDetails;
530
532 bool m_nameHasBeenSet = false;
533 bool m_arnHasBeenSet = false;
534 bool m_idHasBeenSet = false;
535 bool m_descriptionHasBeenSet = false;
536 bool m_regionNameHasBeenSet = false;
537 bool m_availabilityZoneHasBeenSet = false;
538 bool m_availabilityZoneIdHasBeenSet = false;
539 bool m_createdAtHasBeenSet = false;
540 bool m_updatedAtHasBeenSet = false;
541 bool m_lifecycleManagementHasBeenSet = false;
542 bool m_messagesHasBeenSet = false;
543 bool m_sourceTypeHasBeenSet = false;
544 bool m_configurationHasBeenSet = false;
545 bool m_resourceShareOwnershipHasBeenSet = false;
546 bool m_resourceShareDetailsHasBeenSet = false;
547 bool m_registrationStateHasBeenSet = false;
548 bool m_connectionStateHasBeenSet = false;
549 bool m_connectionDetailsHasBeenSet = false;
550 bool m_connectedDestinationsHasBeenSet = false;
551 bool m_encryptionTypeHasBeenSet = false;
552 bool m_encryptionConfigurationHasBeenSet = false;
553 bool m_associatedResourceDetailsHasBeenSet = false;
554 bool m_tagsHasBeenSet = false;
555};
556
557} // namespace Model
558} // namespace MediaConnect
559} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
void SetResourceShareOwnership(ResourceShareOwnership value)
const Aws::Vector< Aws::String > & GetConnectedDestinations() const
SourceEndpoint & WithConnectionDetails(ConnectionDetailsT &&value)
SourceEndpoint & WithMessages(MessagesT &&value)
SourceEndpointType GetSourceType() const
const EndpointEncryptionConfiguration & GetEncryptionConfiguration() const
const Aws::Vector< SourceEndpointMessage > & GetMessages() const
SourceEndpoint & WithId(IdT &&value)
SourceEndpoint & AddTags(TagsKeyT &&key, TagsValueT &&value)
SourceEndpoint & WithAssociatedResourceDetails(AssociatedResourceDetailsT &&value)
void SetEncryptionType(EndpointEncryptionType value)
SourceEndpoint & WithName(NameT &&value)
const Aws::String & GetDescription() const
SourceEndpoint & WithTags(TagsT &&value)
void SetResourceShareDetails(ResourceShareDetailsT &&value)
const Aws::String & GetId() const
void SetConnectionDetails(ConnectionDetailsT &&value)
SourceEndpoint & WithConnectionState(SourceEndpointConnectionState value)
SourceEndpoint & WithRegistrationState(SourceEndpointRegistrationState value)
void SetConfiguration(ConfigurationT &&value)
const SourceEndpointConfiguration & GetConfiguration() const
EndpointLifecycle GetLifecycleManagement() const
SourceEndpoint & WithSourceType(SourceEndpointType value)
SourceEndpoint & WithLifecycleManagement(EndpointLifecycle value)
const Aws::String & GetAvailabilityZone() const
SourceEndpoint & WithConnectedDestinations(ConnectedDestinationsT &&value)
SourceEndpoint & WithDescription(DescriptionT &&value)
SourceEndpointRegistrationState GetRegistrationState() const
SourceEndpoint & AddConnectedDestinations(ConnectedDestinationsT &&value)
SourceEndpoint & WithArn(ArnT &&value)
const Aws::String & GetArn() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetConnectedDestinations(ConnectedDestinationsT &&value)
SourceEndpoint & WithResourceShareDetails(ResourceShareDetailsT &&value)
SourceEndpoint & WithConfiguration(ConfigurationT &&value)
void SetRegistrationState(SourceEndpointRegistrationState value)
void SetDescription(DescriptionT &&value)
SourceEndpoint & WithCreatedAt(CreatedAtT &&value)
void SetSourceType(SourceEndpointType value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SourceEndpoint & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
SourceEndpoint & WithResourceShareOwnership(ResourceShareOwnership value)
SourceEndpoint & WithUpdatedAt(UpdatedAtT &&value)
SourceEndpoint & AddMessages(MessagesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetName() const
SourceEndpointConnectionState GetConnectionState() const
void SetRegionName(RegionNameT &&value)
void SetLifecycleManagement(EndpointLifecycle value)
void SetAssociatedResourceDetails(AssociatedResourceDetailsT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::String & GetAvailabilityZoneId() const
const ResourceShareDetails & GetResourceShareDetails() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_MEDIACONNECT_API SourceEndpoint()=default
const SourceEndpointAssociatedResourceDetails & GetAssociatedResourceDetails() const
SourceEndpoint & WithRegionName(RegionNameT &&value)
SourceEndpoint & WithEncryptionType(EndpointEncryptionType value)
const Aws::String & GetRegionName() const
ResourceShareOwnership GetResourceShareOwnership() const
SourceEndpoint & WithAvailabilityZone(AvailabilityZoneT &&value)
SourceEndpoint & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
EndpointEncryptionType GetEncryptionType() const
const SourceEndpointConnectionDetails & GetConnectionDetails() const
AWS_MEDIACONNECT_API SourceEndpoint(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionState(SourceEndpointConnectionState value)
AWS_MEDIACONNECT_API SourceEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue