AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheCluster.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/ElastiCache_EXPORTS.h>
12#include <aws/elasticache/model/CacheNode.h>
13#include <aws/elasticache/model/CacheParameterGroupStatus.h>
14#include <aws/elasticache/model/CacheSecurityGroupMembership.h>
15#include <aws/elasticache/model/Endpoint.h>
16#include <aws/elasticache/model/IpDiscovery.h>
17#include <aws/elasticache/model/LogDeliveryConfiguration.h>
18#include <aws/elasticache/model/NetworkType.h>
19#include <aws/elasticache/model/NotificationConfiguration.h>
20#include <aws/elasticache/model/PendingModifiedValues.h>
21#include <aws/elasticache/model/SecurityGroupMembership.h>
22#include <aws/elasticache/model/TransitEncryptionMode.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Xml {
29class XmlNode;
30} // namespace Xml
31} // namespace Utils
32namespace ElastiCache {
33namespace Model {
34
42 public:
43 AWS_ELASTICACHE_API CacheCluster() = default;
44 AWS_ELASTICACHE_API CacheCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_ELASTICACHE_API CacheCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
51
55 inline const Aws::String& GetCacheClusterId() const { return m_cacheClusterId; }
56 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
57 template <typename CacheClusterIdT = Aws::String>
58 void SetCacheClusterId(CacheClusterIdT&& value) {
59 m_cacheClusterIdHasBeenSet = true;
60 m_cacheClusterId = std::forward<CacheClusterIdT>(value);
61 }
62 template <typename CacheClusterIdT = Aws::String>
63 CacheCluster& WithCacheClusterId(CacheClusterIdT&& value) {
64 SetCacheClusterId(std::forward<CacheClusterIdT>(value));
65 return *this;
66 }
68
70
76 inline const Endpoint& GetConfigurationEndpoint() const { return m_configurationEndpoint; }
77 inline bool ConfigurationEndpointHasBeenSet() const { return m_configurationEndpointHasBeenSet; }
78 template <typename ConfigurationEndpointT = Endpoint>
79 void SetConfigurationEndpoint(ConfigurationEndpointT&& value) {
80 m_configurationEndpointHasBeenSet = true;
81 m_configurationEndpoint = std::forward<ConfigurationEndpointT>(value);
82 }
83 template <typename ConfigurationEndpointT = Endpoint>
84 CacheCluster& WithConfigurationEndpoint(ConfigurationEndpointT&& value) {
85 SetConfigurationEndpoint(std::forward<ConfigurationEndpointT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetClientDownloadLandingPage() const { return m_clientDownloadLandingPage; }
96 inline bool ClientDownloadLandingPageHasBeenSet() const { return m_clientDownloadLandingPageHasBeenSet; }
97 template <typename ClientDownloadLandingPageT = Aws::String>
98 void SetClientDownloadLandingPage(ClientDownloadLandingPageT&& value) {
99 m_clientDownloadLandingPageHasBeenSet = true;
100 m_clientDownloadLandingPage = std::forward<ClientDownloadLandingPageT>(value);
101 }
102 template <typename ClientDownloadLandingPageT = Aws::String>
103 CacheCluster& WithClientDownloadLandingPage(ClientDownloadLandingPageT&& value) {
104 SetClientDownloadLandingPage(std::forward<ClientDownloadLandingPageT>(value));
105 return *this;
106 }
108
110
185 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
186 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
187 template <typename CacheNodeTypeT = Aws::String>
188 void SetCacheNodeType(CacheNodeTypeT&& value) {
189 m_cacheNodeTypeHasBeenSet = true;
190 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
191 }
192 template <typename CacheNodeTypeT = Aws::String>
193 CacheCluster& WithCacheNodeType(CacheNodeTypeT&& value) {
194 SetCacheNodeType(std::forward<CacheNodeTypeT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetEngine() const { return m_engine; }
205 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
206 template <typename EngineT = Aws::String>
207 void SetEngine(EngineT&& value) {
208 m_engineHasBeenSet = true;
209 m_engine = std::forward<EngineT>(value);
210 }
211 template <typename EngineT = Aws::String>
212 CacheCluster& WithEngine(EngineT&& value) {
213 SetEngine(std::forward<EngineT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
223 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
224 template <typename EngineVersionT = Aws::String>
225 void SetEngineVersion(EngineVersionT&& value) {
226 m_engineVersionHasBeenSet = true;
227 m_engineVersion = std::forward<EngineVersionT>(value);
228 }
229 template <typename EngineVersionT = Aws::String>
230 CacheCluster& WithEngineVersion(EngineVersionT&& value) {
231 SetEngineVersion(std::forward<EngineVersionT>(value));
232 return *this;
233 }
235
237
244 inline const Aws::String& GetCacheClusterStatus() const { return m_cacheClusterStatus; }
245 inline bool CacheClusterStatusHasBeenSet() const { return m_cacheClusterStatusHasBeenSet; }
246 template <typename CacheClusterStatusT = Aws::String>
247 void SetCacheClusterStatus(CacheClusterStatusT&& value) {
248 m_cacheClusterStatusHasBeenSet = true;
249 m_cacheClusterStatus = std::forward<CacheClusterStatusT>(value);
250 }
251 template <typename CacheClusterStatusT = Aws::String>
252 CacheCluster& WithCacheClusterStatus(CacheClusterStatusT&& value) {
253 SetCacheClusterStatus(std::forward<CacheClusterStatusT>(value));
254 return *this;
255 }
257
259
264 inline int GetNumCacheNodes() const { return m_numCacheNodes; }
265 inline bool NumCacheNodesHasBeenSet() const { return m_numCacheNodesHasBeenSet; }
266 inline void SetNumCacheNodes(int value) {
267 m_numCacheNodesHasBeenSet = true;
268 m_numCacheNodes = value;
269 }
270 inline CacheCluster& WithNumCacheNodes(int value) {
271 SetNumCacheNodes(value);
272 return *this;
273 }
275
277
281 inline const Aws::String& GetPreferredAvailabilityZone() const { return m_preferredAvailabilityZone; }
282 inline bool PreferredAvailabilityZoneHasBeenSet() const { return m_preferredAvailabilityZoneHasBeenSet; }
283 template <typename PreferredAvailabilityZoneT = Aws::String>
284 void SetPreferredAvailabilityZone(PreferredAvailabilityZoneT&& value) {
285 m_preferredAvailabilityZoneHasBeenSet = true;
286 m_preferredAvailabilityZone = std::forward<PreferredAvailabilityZoneT>(value);
287 }
288 template <typename PreferredAvailabilityZoneT = Aws::String>
289 CacheCluster& WithPreferredAvailabilityZone(PreferredAvailabilityZoneT&& value) {
290 SetPreferredAvailabilityZone(std::forward<PreferredAvailabilityZoneT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::String& GetPreferredOutpostArn() const { return m_preferredOutpostArn; }
300 inline bool PreferredOutpostArnHasBeenSet() const { return m_preferredOutpostArnHasBeenSet; }
301 template <typename PreferredOutpostArnT = Aws::String>
302 void SetPreferredOutpostArn(PreferredOutpostArnT&& value) {
303 m_preferredOutpostArnHasBeenSet = true;
304 m_preferredOutpostArn = std::forward<PreferredOutpostArnT>(value);
305 }
306 template <typename PreferredOutpostArnT = Aws::String>
307 CacheCluster& WithPreferredOutpostArn(PreferredOutpostArnT&& value) {
308 SetPreferredOutpostArn(std::forward<PreferredOutpostArnT>(value));
309 return *this;
310 }
312
314
317 inline const Aws::Utils::DateTime& GetCacheClusterCreateTime() const { return m_cacheClusterCreateTime; }
318 inline bool CacheClusterCreateTimeHasBeenSet() const { return m_cacheClusterCreateTimeHasBeenSet; }
319 template <typename CacheClusterCreateTimeT = Aws::Utils::DateTime>
320 void SetCacheClusterCreateTime(CacheClusterCreateTimeT&& value) {
321 m_cacheClusterCreateTimeHasBeenSet = true;
322 m_cacheClusterCreateTime = std::forward<CacheClusterCreateTimeT>(value);
323 }
324 template <typename CacheClusterCreateTimeT = Aws::Utils::DateTime>
325 CacheCluster& WithCacheClusterCreateTime(CacheClusterCreateTimeT&& value) {
326 SetCacheClusterCreateTime(std::forward<CacheClusterCreateTimeT>(value));
327 return *this;
328 }
330
332
342 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
343 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
344 template <typename PreferredMaintenanceWindowT = Aws::String>
345 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
346 m_preferredMaintenanceWindowHasBeenSet = true;
347 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
348 }
349 template <typename PreferredMaintenanceWindowT = Aws::String>
350 CacheCluster& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
351 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
352 return *this;
353 }
355
357
358 inline const PendingModifiedValues& GetPendingModifiedValues() const { return m_pendingModifiedValues; }
359 inline bool PendingModifiedValuesHasBeenSet() const { return m_pendingModifiedValuesHasBeenSet; }
360 template <typename PendingModifiedValuesT = PendingModifiedValues>
361 void SetPendingModifiedValues(PendingModifiedValuesT&& value) {
362 m_pendingModifiedValuesHasBeenSet = true;
363 m_pendingModifiedValues = std::forward<PendingModifiedValuesT>(value);
364 }
365 template <typename PendingModifiedValuesT = PendingModifiedValues>
366 CacheCluster& WithPendingModifiedValues(PendingModifiedValuesT&& value) {
367 SetPendingModifiedValues(std::forward<PendingModifiedValuesT>(value));
368 return *this;
369 }
371
373
378 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
379 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
380 template <typename NotificationConfigurationT = NotificationConfiguration>
381 void SetNotificationConfiguration(NotificationConfigurationT&& value) {
382 m_notificationConfigurationHasBeenSet = true;
383 m_notificationConfiguration = std::forward<NotificationConfigurationT>(value);
384 }
385 template <typename NotificationConfigurationT = NotificationConfiguration>
386 CacheCluster& WithNotificationConfiguration(NotificationConfigurationT&& value) {
387 SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value));
388 return *this;
389 }
391
393
397 inline const Aws::Vector<CacheSecurityGroupMembership>& GetCacheSecurityGroups() const { return m_cacheSecurityGroups; }
398 inline bool CacheSecurityGroupsHasBeenSet() const { return m_cacheSecurityGroupsHasBeenSet; }
399 template <typename CacheSecurityGroupsT = Aws::Vector<CacheSecurityGroupMembership>>
400 void SetCacheSecurityGroups(CacheSecurityGroupsT&& value) {
401 m_cacheSecurityGroupsHasBeenSet = true;
402 m_cacheSecurityGroups = std::forward<CacheSecurityGroupsT>(value);
403 }
404 template <typename CacheSecurityGroupsT = Aws::Vector<CacheSecurityGroupMembership>>
405 CacheCluster& WithCacheSecurityGroups(CacheSecurityGroupsT&& value) {
406 SetCacheSecurityGroups(std::forward<CacheSecurityGroupsT>(value));
407 return *this;
408 }
409 template <typename CacheSecurityGroupsT = CacheSecurityGroupMembership>
410 CacheCluster& AddCacheSecurityGroups(CacheSecurityGroupsT&& value) {
411 m_cacheSecurityGroupsHasBeenSet = true;
412 m_cacheSecurityGroups.emplace_back(std::forward<CacheSecurityGroupsT>(value));
413 return *this;
414 }
416
418
421 inline const CacheParameterGroupStatus& GetCacheParameterGroup() const { return m_cacheParameterGroup; }
422 inline bool CacheParameterGroupHasBeenSet() const { return m_cacheParameterGroupHasBeenSet; }
423 template <typename CacheParameterGroupT = CacheParameterGroupStatus>
424 void SetCacheParameterGroup(CacheParameterGroupT&& value) {
425 m_cacheParameterGroupHasBeenSet = true;
426 m_cacheParameterGroup = std::forward<CacheParameterGroupT>(value);
427 }
428 template <typename CacheParameterGroupT = CacheParameterGroupStatus>
429 CacheCluster& WithCacheParameterGroup(CacheParameterGroupT&& value) {
430 SetCacheParameterGroup(std::forward<CacheParameterGroupT>(value));
431 return *this;
432 }
434
436
439 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
440 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
441 template <typename CacheSubnetGroupNameT = Aws::String>
442 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) {
443 m_cacheSubnetGroupNameHasBeenSet = true;
444 m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value);
445 }
446 template <typename CacheSubnetGroupNameT = Aws::String>
447 CacheCluster& WithCacheSubnetGroupName(CacheSubnetGroupNameT&& value) {
448 SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value));
449 return *this;
450 }
452
454
457 inline const Aws::Vector<CacheNode>& GetCacheNodes() const { return m_cacheNodes; }
458 inline bool CacheNodesHasBeenSet() const { return m_cacheNodesHasBeenSet; }
459 template <typename CacheNodesT = Aws::Vector<CacheNode>>
460 void SetCacheNodes(CacheNodesT&& value) {
461 m_cacheNodesHasBeenSet = true;
462 m_cacheNodes = std::forward<CacheNodesT>(value);
463 }
464 template <typename CacheNodesT = Aws::Vector<CacheNode>>
465 CacheCluster& WithCacheNodes(CacheNodesT&& value) {
466 SetCacheNodes(std::forward<CacheNodesT>(value));
467 return *this;
468 }
469 template <typename CacheNodesT = CacheNode>
470 CacheCluster& AddCacheNodes(CacheNodesT&& value) {
471 m_cacheNodesHasBeenSet = true;
472 m_cacheNodes.emplace_back(std::forward<CacheNodesT>(value));
473 return *this;
474 }
476
478
483 inline bool GetAutoMinorVersionUpgrade() const { return m_autoMinorVersionUpgrade; }
484 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
485 inline void SetAutoMinorVersionUpgrade(bool value) {
486 m_autoMinorVersionUpgradeHasBeenSet = true;
487 m_autoMinorVersionUpgrade = value;
488 }
491 return *this;
492 }
494
496
499 inline const Aws::Vector<SecurityGroupMembership>& GetSecurityGroups() const { return m_securityGroups; }
500 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
501 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
502 void SetSecurityGroups(SecurityGroupsT&& value) {
503 m_securityGroupsHasBeenSet = true;
504 m_securityGroups = std::forward<SecurityGroupsT>(value);
505 }
506 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
507 CacheCluster& WithSecurityGroups(SecurityGroupsT&& value) {
508 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
509 return *this;
510 }
511 template <typename SecurityGroupsT = SecurityGroupMembership>
512 CacheCluster& AddSecurityGroups(SecurityGroupsT&& value) {
513 m_securityGroupsHasBeenSet = true;
514 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
515 return *this;
516 }
518
520
524 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
525 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
526 template <typename ReplicationGroupIdT = Aws::String>
527 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
528 m_replicationGroupIdHasBeenSet = true;
529 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
530 }
531 template <typename ReplicationGroupIdT = Aws::String>
532 CacheCluster& WithReplicationGroupId(ReplicationGroupIdT&& value) {
533 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
534 return *this;
535 }
537
539
547 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
548 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
549 inline void SetSnapshotRetentionLimit(int value) {
550 m_snapshotRetentionLimitHasBeenSet = true;
551 m_snapshotRetentionLimit = value;
552 }
555 return *this;
556 }
558
560
564 inline const Aws::String& GetSnapshotWindow() const { return m_snapshotWindow; }
565 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
566 template <typename SnapshotWindowT = Aws::String>
567 void SetSnapshotWindow(SnapshotWindowT&& value) {
568 m_snapshotWindowHasBeenSet = true;
569 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
570 }
571 template <typename SnapshotWindowT = Aws::String>
572 CacheCluster& WithSnapshotWindow(SnapshotWindowT&& value) {
573 SetSnapshotWindow(std::forward<SnapshotWindowT>(value));
574 return *this;
575 }
577
579
583 inline bool GetAuthTokenEnabled() const { return m_authTokenEnabled; }
584 inline bool AuthTokenEnabledHasBeenSet() const { return m_authTokenEnabledHasBeenSet; }
585 inline void SetAuthTokenEnabled(bool value) {
586 m_authTokenEnabledHasBeenSet = true;
587 m_authTokenEnabled = value;
588 }
589 inline CacheCluster& WithAuthTokenEnabled(bool value) {
590 SetAuthTokenEnabled(value);
591 return *this;
592 }
594
596
599 inline const Aws::Utils::DateTime& GetAuthTokenLastModifiedDate() const { return m_authTokenLastModifiedDate; }
600 inline bool AuthTokenLastModifiedDateHasBeenSet() const { return m_authTokenLastModifiedDateHasBeenSet; }
601 template <typename AuthTokenLastModifiedDateT = Aws::Utils::DateTime>
602 void SetAuthTokenLastModifiedDate(AuthTokenLastModifiedDateT&& value) {
603 m_authTokenLastModifiedDateHasBeenSet = true;
604 m_authTokenLastModifiedDate = std::forward<AuthTokenLastModifiedDateT>(value);
605 }
606 template <typename AuthTokenLastModifiedDateT = Aws::Utils::DateTime>
607 CacheCluster& WithAuthTokenLastModifiedDate(AuthTokenLastModifiedDateT&& value) {
608 SetAuthTokenLastModifiedDate(std::forward<AuthTokenLastModifiedDateT>(value));
609 return *this;
610 }
612
614
620 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
621 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
622 inline void SetTransitEncryptionEnabled(bool value) {
623 m_transitEncryptionEnabledHasBeenSet = true;
624 m_transitEncryptionEnabled = value;
625 }
628 return *this;
629 }
631
633
642 inline bool GetAtRestEncryptionEnabled() const { return m_atRestEncryptionEnabled; }
643 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
644 inline void SetAtRestEncryptionEnabled(bool value) {
645 m_atRestEncryptionEnabledHasBeenSet = true;
646 m_atRestEncryptionEnabled = value;
647 }
650 return *this;
651 }
653
655
658 inline const Aws::String& GetARN() const { return m_aRN; }
659 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
660 template <typename ARNT = Aws::String>
661 void SetARN(ARNT&& value) {
662 m_aRNHasBeenSet = true;
663 m_aRN = std::forward<ARNT>(value);
664 }
665 template <typename ARNT = Aws::String>
666 CacheCluster& WithARN(ARNT&& value) {
667 SetARN(std::forward<ARNT>(value));
668 return *this;
669 }
671
673
677 inline bool GetReplicationGroupLogDeliveryEnabled() const { return m_replicationGroupLogDeliveryEnabled; }
678 inline bool ReplicationGroupLogDeliveryEnabledHasBeenSet() const { return m_replicationGroupLogDeliveryEnabledHasBeenSet; }
680 m_replicationGroupLogDeliveryEnabledHasBeenSet = true;
681 m_replicationGroupLogDeliveryEnabled = value;
682 }
685 return *this;
686 }
688
690
693 inline const Aws::Vector<LogDeliveryConfiguration>& GetLogDeliveryConfigurations() const { return m_logDeliveryConfigurations; }
694 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
695 template <typename LogDeliveryConfigurationsT = Aws::Vector<LogDeliveryConfiguration>>
696 void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
697 m_logDeliveryConfigurationsHasBeenSet = true;
698 m_logDeliveryConfigurations = std::forward<LogDeliveryConfigurationsT>(value);
699 }
700 template <typename LogDeliveryConfigurationsT = Aws::Vector<LogDeliveryConfiguration>>
701 CacheCluster& WithLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
702 SetLogDeliveryConfigurations(std::forward<LogDeliveryConfigurationsT>(value));
703 return *this;
704 }
705 template <typename LogDeliveryConfigurationsT = LogDeliveryConfiguration>
706 CacheCluster& AddLogDeliveryConfigurations(LogDeliveryConfigurationsT&& value) {
707 m_logDeliveryConfigurationsHasBeenSet = true;
708 m_logDeliveryConfigurations.emplace_back(std::forward<LogDeliveryConfigurationsT>(value));
709 return *this;
710 }
712
714
721 inline NetworkType GetNetworkType() const { return m_networkType; }
722 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
723 inline void SetNetworkType(NetworkType value) {
724 m_networkTypeHasBeenSet = true;
725 m_networkType = value;
726 }
728 SetNetworkType(value);
729 return *this;
730 }
732
734
741 inline IpDiscovery GetIpDiscovery() const { return m_ipDiscovery; }
742 inline bool IpDiscoveryHasBeenSet() const { return m_ipDiscoveryHasBeenSet; }
743 inline void SetIpDiscovery(IpDiscovery value) {
744 m_ipDiscoveryHasBeenSet = true;
745 m_ipDiscovery = value;
746 }
748 SetIpDiscovery(value);
749 return *this;
750 }
752
754
758 inline TransitEncryptionMode GetTransitEncryptionMode() const { return m_transitEncryptionMode; }
759 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
761 m_transitEncryptionModeHasBeenSet = true;
762 m_transitEncryptionMode = value;
763 }
766 return *this;
767 }
769 private:
770 Aws::String m_cacheClusterId;
771
772 Endpoint m_configurationEndpoint;
773
774 Aws::String m_clientDownloadLandingPage;
775
776 Aws::String m_cacheNodeType;
777
778 Aws::String m_engine;
779
780 Aws::String m_engineVersion;
781
782 Aws::String m_cacheClusterStatus;
783
784 int m_numCacheNodes{0};
785
786 Aws::String m_preferredAvailabilityZone;
787
788 Aws::String m_preferredOutpostArn;
789
790 Aws::Utils::DateTime m_cacheClusterCreateTime{};
791
792 Aws::String m_preferredMaintenanceWindow;
793
794 PendingModifiedValues m_pendingModifiedValues;
795
796 NotificationConfiguration m_notificationConfiguration;
797
798 Aws::Vector<CacheSecurityGroupMembership> m_cacheSecurityGroups;
799
800 CacheParameterGroupStatus m_cacheParameterGroup;
801
802 Aws::String m_cacheSubnetGroupName;
803
804 Aws::Vector<CacheNode> m_cacheNodes;
805
806 bool m_autoMinorVersionUpgrade{false};
807
809
810 Aws::String m_replicationGroupId;
811
812 int m_snapshotRetentionLimit{0};
813
814 Aws::String m_snapshotWindow;
815
816 bool m_authTokenEnabled{false};
817
818 Aws::Utils::DateTime m_authTokenLastModifiedDate{};
819
820 bool m_transitEncryptionEnabled{false};
821
822 bool m_atRestEncryptionEnabled{false};
823
824 Aws::String m_aRN;
825
826 bool m_replicationGroupLogDeliveryEnabled{false};
827
828 Aws::Vector<LogDeliveryConfiguration> m_logDeliveryConfigurations;
829
830 NetworkType m_networkType{NetworkType::NOT_SET};
831
832 IpDiscovery m_ipDiscovery{IpDiscovery::NOT_SET};
833
835 bool m_cacheClusterIdHasBeenSet = false;
836 bool m_configurationEndpointHasBeenSet = false;
837 bool m_clientDownloadLandingPageHasBeenSet = false;
838 bool m_cacheNodeTypeHasBeenSet = false;
839 bool m_engineHasBeenSet = false;
840 bool m_engineVersionHasBeenSet = false;
841 bool m_cacheClusterStatusHasBeenSet = false;
842 bool m_numCacheNodesHasBeenSet = false;
843 bool m_preferredAvailabilityZoneHasBeenSet = false;
844 bool m_preferredOutpostArnHasBeenSet = false;
845 bool m_cacheClusterCreateTimeHasBeenSet = false;
846 bool m_preferredMaintenanceWindowHasBeenSet = false;
847 bool m_pendingModifiedValuesHasBeenSet = false;
848 bool m_notificationConfigurationHasBeenSet = false;
849 bool m_cacheSecurityGroupsHasBeenSet = false;
850 bool m_cacheParameterGroupHasBeenSet = false;
851 bool m_cacheSubnetGroupNameHasBeenSet = false;
852 bool m_cacheNodesHasBeenSet = false;
853 bool m_autoMinorVersionUpgradeHasBeenSet = false;
854 bool m_securityGroupsHasBeenSet = false;
855 bool m_replicationGroupIdHasBeenSet = false;
856 bool m_snapshotRetentionLimitHasBeenSet = false;
857 bool m_snapshotWindowHasBeenSet = false;
858 bool m_authTokenEnabledHasBeenSet = false;
859 bool m_authTokenLastModifiedDateHasBeenSet = false;
860 bool m_transitEncryptionEnabledHasBeenSet = false;
861 bool m_atRestEncryptionEnabledHasBeenSet = false;
862 bool m_aRNHasBeenSet = false;
863 bool m_replicationGroupLogDeliveryEnabledHasBeenSet = false;
864 bool m_logDeliveryConfigurationsHasBeenSet = false;
865 bool m_networkTypeHasBeenSet = false;
866 bool m_ipDiscoveryHasBeenSet = false;
867 bool m_transitEncryptionModeHasBeenSet = false;
868};
869
870} // namespace Model
871} // namespace ElastiCache
872} // namespace Aws
const Aws::String & GetCacheNodeType() const
CacheCluster & WithAutoMinorVersionUpgrade(bool value)
void SetReplicationGroupId(ReplicationGroupIdT &&value)
CacheCluster & WithCacheSecurityGroups(CacheSecurityGroupsT &&value)
void SetLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
CacheCluster & WithSnapshotRetentionLimit(int value)
void SetCacheParameterGroup(CacheParameterGroupT &&value)
void SetCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
CacheCluster & WithPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
const Aws::String & GetCacheSubnetGroupName() const
const Aws::String & GetClientDownloadLandingPage() const
CacheCluster & WithIpDiscovery(IpDiscovery value)
void SetReplicationGroupLogDeliveryEnabled(bool value)
const Aws::String & GetCacheClusterId() const
const Aws::String & GetSnapshotWindow() const
const Aws::String & GetPreferredOutpostArn() const
const CacheParameterGroupStatus & GetCacheParameterGroup() const
TransitEncryptionMode GetTransitEncryptionMode() const
CacheCluster & WithCacheClusterCreateTime(CacheClusterCreateTimeT &&value)
const Aws::Vector< CacheSecurityGroupMembership > & GetCacheSecurityGroups() const
void SetPendingModifiedValues(PendingModifiedValuesT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CacheCluster & WithARN(ARNT &&value)
const Endpoint & GetConfigurationEndpoint() const
const Aws::String & GetCacheClusterStatus() const
const Aws::String & GetPreferredMaintenanceWindow() const
CacheCluster & WithPendingModifiedValues(PendingModifiedValuesT &&value)
void SetCacheSecurityGroups(CacheSecurityGroupsT &&value)
CacheCluster & WithSecurityGroups(SecurityGroupsT &&value)
CacheCluster & WithConfigurationEndpoint(ConfigurationEndpointT &&value)
CacheCluster & WithLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
CacheCluster & WithNetworkType(NetworkType value)
CacheCluster & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
CacheCluster & WithCacheNodeType(CacheNodeTypeT &&value)
void SetCacheNodeType(CacheNodeTypeT &&value)
CacheCluster & WithTransitEncryptionMode(TransitEncryptionMode value)
void SetClientDownloadLandingPage(ClientDownloadLandingPageT &&value)
CacheCluster & WithCacheClusterId(CacheClusterIdT &&value)
void SetTransitEncryptionMode(TransitEncryptionMode value)
CacheCluster & WithCacheParameterGroup(CacheParameterGroupT &&value)
void SetSnapshotWindow(SnapshotWindowT &&value)
CacheCluster & WithTransitEncryptionEnabled(bool value)
const Aws::String & GetEngineVersion() const
AWS_ELASTICACHE_API CacheCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEngine() const
void SetEngineVersion(EngineVersionT &&value)
CacheCluster & WithNumCacheNodes(int value)
CacheCluster & WithEngineVersion(EngineVersionT &&value)
const Aws::String & GetReplicationGroupId() const
void SetPreferredOutpostArn(PreferredOutpostArnT &&value)
const Aws::Vector< CacheNode > & GetCacheNodes() const
CacheCluster & WithReplicationGroupLogDeliveryEnabled(bool value)
CacheCluster & WithNotificationConfiguration(NotificationConfigurationT &&value)
CacheCluster & AddCacheSecurityGroups(CacheSecurityGroupsT &&value)
void SetSecurityGroups(SecurityGroupsT &&value)
const Aws::Utils::DateTime & GetCacheClusterCreateTime() const
void SetNotificationConfiguration(NotificationConfigurationT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetAuthTokenLastModifiedDate() const
void SetNetworkType(NetworkType value)
const Aws::Vector< LogDeliveryConfiguration > & GetLogDeliveryConfigurations() const
CacheCluster & WithAuthTokenEnabled(bool value)
CacheCluster & AddSecurityGroups(SecurityGroupsT &&value)
void SetCacheClusterId(CacheClusterIdT &&value)
const NotificationConfiguration & GetNotificationConfiguration() const
AWS_ELASTICACHE_API CacheCluster()=default
CacheCluster & WithCacheClusterStatus(CacheClusterStatusT &&value)
AWS_ELASTICACHE_API CacheCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const PendingModifiedValues & GetPendingModifiedValues() const
CacheCluster & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
CacheCluster & WithClientDownloadLandingPage(ClientDownloadLandingPageT &&value)
const Aws::String & GetARN() const
void SetConfigurationEndpoint(ConfigurationEndpointT &&value)
CacheCluster & WithReplicationGroupId(ReplicationGroupIdT &&value)
void SetCacheClusterCreateTime(CacheClusterCreateTimeT &&value)
CacheCluster & WithAuthTokenLastModifiedDate(AuthTokenLastModifiedDateT &&value)
CacheCluster & AddLogDeliveryConfigurations(LogDeliveryConfigurationsT &&value)
const Aws::Vector< SecurityGroupMembership > & GetSecurityGroups() const
CacheCluster & WithPreferredOutpostArn(PreferredOutpostArnT &&value)
CacheCluster & AddCacheNodes(CacheNodesT &&value)
void SetAuthTokenLastModifiedDate(AuthTokenLastModifiedDateT &&value)
void SetPreferredAvailabilityZone(PreferredAvailabilityZoneT &&value)
void SetCacheClusterStatus(CacheClusterStatusT &&value)
CacheCluster & WithSnapshotWindow(SnapshotWindowT &&value)
CacheCluster & WithEngine(EngineT &&value)
CacheCluster & WithAtRestEncryptionEnabled(bool value)
CacheCluster & WithCacheNodes(CacheNodesT &&value)
bool ReplicationGroupLogDeliveryEnabledHasBeenSet() const
const Aws::String & GetPreferredAvailabilityZone() const
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
void SetCacheNodes(CacheNodesT &&value)
void SetIpDiscovery(IpDiscovery value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream