AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
DestinationEndpoint.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/DestinationEndpointAssociatedResourceDetails.h>
13#include <aws/mediaconnect/model/DestinationEndpointConfiguration.h>
14#include <aws/mediaconnect/model/DestinationEndpointConnectionDetails.h>
15#include <aws/mediaconnect/model/DestinationEndpointConnectionState.h>
16#include <aws/mediaconnect/model/DestinationEndpointMessage.h>
17#include <aws/mediaconnect/model/DestinationEndpointRegistrationState.h>
18#include <aws/mediaconnect/model/DestinationEndpointType.h>
19#include <aws/mediaconnect/model/EndpointEncryptionConfiguration.h>
20#include <aws/mediaconnect/model/EndpointEncryptionType.h>
21#include <aws/mediaconnect/model/EndpointLifecycle.h>
22#include <aws/mediaconnect/model/ResourceShareDetails.h>
23#include <aws/mediaconnect/model/ResourceShareOwnership.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 DestinationEndpoint() = default;
46 AWS_MEDIACONNECT_API DestinationEndpoint(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 DestinationEndpoint& 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>
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>
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 DestinationEndpoint& 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 DestinationEndpoint& 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 DestinationEndpoint& WithAvailabilityZone(AvailabilityZoneT&& value) {
154 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
165 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
166 template <typename AvailabilityZoneIdT = Aws::String>
167 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
168 m_availabilityZoneIdHasBeenSet = true;
169 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
170 }
171 template <typename AvailabilityZoneIdT = Aws::String>
172 DestinationEndpoint& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
173 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
183 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
185 void SetCreatedAt(CreatedAtT&& value) {
186 m_createdAtHasBeenSet = true;
187 m_createdAt = std::forward<CreatedAtT>(value);
188 }
189 template <typename CreatedAtT = Aws::Utils::DateTime>
190 DestinationEndpoint& WithCreatedAt(CreatedAtT&& value) {
191 SetCreatedAt(std::forward<CreatedAtT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
201 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
202 template <typename UpdatedAtT = Aws::Utils::DateTime>
203 void SetUpdatedAt(UpdatedAtT&& value) {
204 m_updatedAtHasBeenSet = true;
205 m_updatedAt = std::forward<UpdatedAtT>(value);
206 }
207 template <typename UpdatedAtT = Aws::Utils::DateTime>
208 DestinationEndpoint& WithUpdatedAt(UpdatedAtT&& value) {
209 SetUpdatedAt(std::forward<UpdatedAtT>(value));
210 return *this;
211 }
213
215
218 inline EndpointLifecycle GetLifecycleManagement() const { return m_lifecycleManagement; }
219 inline bool LifecycleManagementHasBeenSet() const { return m_lifecycleManagementHasBeenSet; }
221 m_lifecycleManagementHasBeenSet = true;
222 m_lifecycleManagement = value;
223 }
226 return *this;
227 }
229
231
234 inline const Aws::Vector<DestinationEndpointMessage>& GetMessages() const { return m_messages; }
235 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
236 template <typename MessagesT = Aws::Vector<DestinationEndpointMessage>>
237 void SetMessages(MessagesT&& value) {
238 m_messagesHasBeenSet = true;
239 m_messages = std::forward<MessagesT>(value);
240 }
241 template <typename MessagesT = Aws::Vector<DestinationEndpointMessage>>
242 DestinationEndpoint& WithMessages(MessagesT&& value) {
243 SetMessages(std::forward<MessagesT>(value));
244 return *this;
245 }
246 template <typename MessagesT = DestinationEndpointMessage>
247 DestinationEndpoint& AddMessages(MessagesT&& value) {
248 m_messagesHasBeenSet = true;
249 m_messages.emplace_back(std::forward<MessagesT>(value));
250 return *this;
251 }
253
255
262 inline DestinationEndpointType GetDestinationType() const { return m_destinationType; }
263 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
265 m_destinationTypeHasBeenSet = true;
266 m_destinationType = value;
267 }
269 SetDestinationType(value);
270 return *this;
271 }
273
275
278 inline const DestinationEndpointConfiguration& GetConfiguration() const { return m_configuration; }
279 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
280 template <typename ConfigurationT = DestinationEndpointConfiguration>
281 void SetConfiguration(ConfigurationT&& value) {
282 m_configurationHasBeenSet = true;
283 m_configuration = std::forward<ConfigurationT>(value);
284 }
285 template <typename ConfigurationT = DestinationEndpointConfiguration>
286 DestinationEndpoint& WithConfiguration(ConfigurationT&& value) {
287 SetConfiguration(std::forward<ConfigurationT>(value));
288 return *this;
289 }
291
293
297 inline ResourceShareOwnership GetResourceShareOwnership() const { return m_resourceShareOwnership; }
298 inline bool ResourceShareOwnershipHasBeenSet() const { return m_resourceShareOwnershipHasBeenSet; }
300 m_resourceShareOwnershipHasBeenSet = true;
301 m_resourceShareOwnership = value;
302 }
308
310
311 inline const ResourceShareDetails& GetResourceShareDetails() const { return m_resourceShareDetails; }
312 inline bool ResourceShareDetailsHasBeenSet() const { return m_resourceShareDetailsHasBeenSet; }
313 template <typename ResourceShareDetailsT = ResourceShareDetails>
314 void SetResourceShareDetails(ResourceShareDetailsT&& value) {
315 m_resourceShareDetailsHasBeenSet = true;
316 m_resourceShareDetails = std::forward<ResourceShareDetailsT>(value);
317 }
318 template <typename ResourceShareDetailsT = ResourceShareDetails>
319 DestinationEndpoint& WithResourceShareDetails(ResourceShareDetailsT&& value) {
320 SetResourceShareDetails(std::forward<ResourceShareDetailsT>(value));
321 return *this;
322 }
324
326
335 inline DestinationEndpointRegistrationState GetRegistrationState() const { return m_registrationState; }
336 inline bool RegistrationStateHasBeenSet() const { return m_registrationStateHasBeenSet; }
338 m_registrationStateHasBeenSet = true;
339 m_registrationState = value;
340 }
346
348
351 inline const DestinationEndpointConnectionDetails& GetConnectionDetails() const { return m_connectionDetails; }
352 inline bool ConnectionDetailsHasBeenSet() const { return m_connectionDetailsHasBeenSet; }
353 template <typename ConnectionDetailsT = DestinationEndpointConnectionDetails>
354 void SetConnectionDetails(ConnectionDetailsT&& value) {
355 m_connectionDetailsHasBeenSet = true;
356 m_connectionDetails = std::forward<ConnectionDetailsT>(value);
357 }
358 template <typename ConnectionDetailsT = DestinationEndpointConnectionDetails>
359 DestinationEndpoint& WithConnectionDetails(ConnectionDetailsT&& value) {
360 SetConnectionDetails(std::forward<ConnectionDetailsT>(value));
361 return *this;
362 }
364
366
375 inline DestinationEndpointConnectionState GetConnectionState() const { return m_connectionState; }
376 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
378 m_connectionStateHasBeenSet = true;
379 m_connectionState = value;
380 }
386
388
392 inline const Aws::String& GetConnectedSource() const { return m_connectedSource; }
393 inline bool ConnectedSourceHasBeenSet() const { return m_connectedSourceHasBeenSet; }
394 template <typename ConnectedSourceT = Aws::String>
395 void SetConnectedSource(ConnectedSourceT&& value) {
396 m_connectedSourceHasBeenSet = true;
397 m_connectedSource = std::forward<ConnectedSourceT>(value);
398 }
399 template <typename ConnectedSourceT = Aws::String>
400 DestinationEndpoint& WithConnectedSource(ConnectedSourceT&& value) {
401 SetConnectedSource(std::forward<ConnectedSourceT>(value));
402 return *this;
403 }
405
407
410 inline EndpointEncryptionType GetDecryptionType() const { return m_decryptionType; }
411 inline bool DecryptionTypeHasBeenSet() const { return m_decryptionTypeHasBeenSet; }
413 m_decryptionTypeHasBeenSet = true;
414 m_decryptionType = value;
415 }
417 SetDecryptionType(value);
418 return *this;
419 }
421
423
424 inline const EndpointEncryptionConfiguration& GetDecryptionConfiguration() const { return m_decryptionConfiguration; }
425 inline bool DecryptionConfigurationHasBeenSet() const { return m_decryptionConfigurationHasBeenSet; }
426 template <typename DecryptionConfigurationT = EndpointEncryptionConfiguration>
427 void SetDecryptionConfiguration(DecryptionConfigurationT&& value) {
428 m_decryptionConfigurationHasBeenSet = true;
429 m_decryptionConfiguration = std::forward<DecryptionConfigurationT>(value);
430 }
431 template <typename DecryptionConfigurationT = EndpointEncryptionConfiguration>
432 DestinationEndpoint& WithDecryptionConfiguration(DecryptionConfigurationT&& value) {
433 SetDecryptionConfiguration(std::forward<DecryptionConfigurationT>(value));
434 return *this;
435 }
437
439
443 inline const DestinationEndpointAssociatedResourceDetails& GetAssociatedResourceDetails() const { return m_associatedResourceDetails; }
444 inline bool AssociatedResourceDetailsHasBeenSet() const { return m_associatedResourceDetailsHasBeenSet; }
445 template <typename AssociatedResourceDetailsT = DestinationEndpointAssociatedResourceDetails>
446 void SetAssociatedResourceDetails(AssociatedResourceDetailsT&& value) {
447 m_associatedResourceDetailsHasBeenSet = true;
448 m_associatedResourceDetails = std::forward<AssociatedResourceDetailsT>(value);
449 }
450 template <typename AssociatedResourceDetailsT = DestinationEndpointAssociatedResourceDetails>
451 DestinationEndpoint& WithAssociatedResourceDetails(AssociatedResourceDetailsT&& value) {
452 SetAssociatedResourceDetails(std::forward<AssociatedResourceDetailsT>(value));
453 return *this;
454 }
456
458
462 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
463 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
464 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
465 void SetTags(TagsT&& value) {
466 m_tagsHasBeenSet = true;
467 m_tags = std::forward<TagsT>(value);
468 }
469 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
471 SetTags(std::forward<TagsT>(value));
472 return *this;
473 }
474 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
475 DestinationEndpoint& AddTags(TagsKeyT&& key, TagsValueT&& value) {
476 m_tagsHasBeenSet = true;
477 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
478 return *this;
479 }
481 private:
482 Aws::String m_name;
483
484 Aws::String m_arn;
485
486 Aws::String m_id;
487
488 Aws::String m_description;
489
490 Aws::String m_regionName;
491
492 Aws::String m_availabilityZone;
493
494 Aws::String m_availabilityZoneId;
495
496 Aws::Utils::DateTime m_createdAt{};
497
498 Aws::Utils::DateTime m_updatedAt{};
499
500 EndpointLifecycle m_lifecycleManagement{EndpointLifecycle::NOT_SET};
501
503
505
506 DestinationEndpointConfiguration m_configuration;
507
509
510 ResourceShareDetails m_resourceShareDetails;
511
513
514 DestinationEndpointConnectionDetails m_connectionDetails;
515
517
518 Aws::String m_connectedSource;
519
521
522 EndpointEncryptionConfiguration m_decryptionConfiguration;
523
524 DestinationEndpointAssociatedResourceDetails m_associatedResourceDetails;
525
527 bool m_nameHasBeenSet = false;
528 bool m_arnHasBeenSet = false;
529 bool m_idHasBeenSet = false;
530 bool m_descriptionHasBeenSet = false;
531 bool m_regionNameHasBeenSet = false;
532 bool m_availabilityZoneHasBeenSet = false;
533 bool m_availabilityZoneIdHasBeenSet = false;
534 bool m_createdAtHasBeenSet = false;
535 bool m_updatedAtHasBeenSet = false;
536 bool m_lifecycleManagementHasBeenSet = false;
537 bool m_messagesHasBeenSet = false;
538 bool m_destinationTypeHasBeenSet = false;
539 bool m_configurationHasBeenSet = false;
540 bool m_resourceShareOwnershipHasBeenSet = false;
541 bool m_resourceShareDetailsHasBeenSet = false;
542 bool m_registrationStateHasBeenSet = false;
543 bool m_connectionDetailsHasBeenSet = false;
544 bool m_connectionStateHasBeenSet = false;
545 bool m_connectedSourceHasBeenSet = false;
546 bool m_decryptionTypeHasBeenSet = false;
547 bool m_decryptionConfigurationHasBeenSet = false;
548 bool m_associatedResourceDetailsHasBeenSet = false;
549 bool m_tagsHasBeenSet = false;
550};
551
552} // namespace Model
553} // namespace MediaConnect
554} // namespace Aws
const EndpointEncryptionConfiguration & GetDecryptionConfiguration() const
void SetLifecycleManagement(EndpointLifecycle value)
AWS_MEDIACONNECT_API DestinationEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceShareOwnership(ResourceShareOwnership value)
void SetDestinationType(DestinationEndpointType value)
const ResourceShareDetails & GetResourceShareDetails() const
DestinationEndpoint & WithResourceShareDetails(ResourceShareDetailsT &&value)
DestinationEndpoint & WithCreatedAt(CreatedAtT &&value)
DestinationEndpoint & WithResourceShareOwnership(ResourceShareOwnership value)
DestinationEndpoint & WithDescription(DescriptionT &&value)
DestinationEndpoint & WithArn(ArnT &&value)
DestinationEndpoint & WithAssociatedResourceDetails(AssociatedResourceDetailsT &&value)
DestinationEndpoint & WithRegistrationState(DestinationEndpointRegistrationState value)
AWS_MEDIACONNECT_API DestinationEndpoint()=default
DestinationEndpoint & WithConnectionState(DestinationEndpointConnectionState value)
DestinationEndpoint & WithLifecycleManagement(EndpointLifecycle value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetAssociatedResourceDetails(AssociatedResourceDetailsT &&value)
DestinationEndpoint & WithConnectionDetails(ConnectionDetailsT &&value)
DestinationEndpoint & AddMessages(MessagesT &&value)
DestinationEndpointType GetDestinationType() const
const DestinationEndpointAssociatedResourceDetails & GetAssociatedResourceDetails() const
ResourceShareOwnership GetResourceShareOwnership() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DestinationEndpoint & WithUpdatedAt(UpdatedAtT &&value)
DestinationEndpoint & WithId(IdT &&value)
const DestinationEndpointConfiguration & GetConfiguration() const
void SetConnectionDetails(ConnectionDetailsT &&value)
void SetDecryptionType(EndpointEncryptionType value)
DestinationEndpoint & WithName(NameT &&value)
DestinationEndpoint & WithMessages(MessagesT &&value)
DestinationEndpoint & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
DestinationEndpoint & WithDecryptionConfiguration(DecryptionConfigurationT &&value)
DestinationEndpoint & WithDecryptionType(EndpointEncryptionType value)
DestinationEndpointRegistrationState GetRegistrationState() const
void SetConnectionState(DestinationEndpointConnectionState value)
const Aws::Utils::DateTime & GetCreatedAt() const
DestinationEndpoint & WithConfiguration(ConfigurationT &&value)
const Aws::Vector< DestinationEndpointMessage > & GetMessages() const
DestinationEndpoint & WithDestinationType(DestinationEndpointType value)
void SetResourceShareDetails(ResourceShareDetailsT &&value)
DestinationEndpoint & WithTags(TagsT &&value)
void SetRegistrationState(DestinationEndpointRegistrationState value)
void SetConnectedSource(ConnectedSourceT &&value)
DestinationEndpoint & WithAvailabilityZone(AvailabilityZoneT &&value)
DestinationEndpoint & WithConnectedSource(ConnectedSourceT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_MEDIACONNECT_API DestinationEndpoint(Aws::Utils::Json::JsonView jsonValue)
void SetDecryptionConfiguration(DecryptionConfigurationT &&value)
DestinationEndpointConnectionState GetConnectionState() const
DestinationEndpoint & WithRegionName(RegionNameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const DestinationEndpointConnectionDetails & GetConnectionDetails() const
DestinationEndpoint & AddTags(TagsKeyT &&key, TagsValueT &&value)
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