AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicationGroupRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/NetworkType.h>
12#include <aws/elasticache/model/IpDiscovery.h>
13#include <aws/elasticache/model/TransitEncryptionMode.h>
14#include <aws/elasticache/model/ClusterMode.h>
15#include <aws/elasticache/model/NodeGroupConfiguration.h>
16#include <aws/elasticache/model/Tag.h>
17#include <aws/elasticache/model/LogDeliveryConfigurationRequest.h>
18#include <utility>
19
20namespace Aws
21{
22namespace ElastiCache
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICACHE_API CreateReplicationGroupRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationGroup"; }
43
44 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
45
46 protected:
47 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
48
49 public:
50
52
59 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
60 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
61 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
62 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
63 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
66 inline CreateReplicationGroupRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
68
70
73 inline const Aws::String& GetReplicationGroupDescription() const{ return m_replicationGroupDescription; }
74 inline bool ReplicationGroupDescriptionHasBeenSet() const { return m_replicationGroupDescriptionHasBeenSet; }
75 inline void SetReplicationGroupDescription(const Aws::String& value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription = value; }
76 inline void SetReplicationGroupDescription(Aws::String&& value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription = std::move(value); }
77 inline void SetReplicationGroupDescription(const char* value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription.assign(value); }
82
84
87 inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
88 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
89 inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
90 inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
91 inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
96
98
105 inline const Aws::String& GetPrimaryClusterId() const{ return m_primaryClusterId; }
106 inline bool PrimaryClusterIdHasBeenSet() const { return m_primaryClusterIdHasBeenSet; }
107 inline void SetPrimaryClusterId(const Aws::String& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = value; }
108 inline void SetPrimaryClusterId(Aws::String&& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = std::move(value); }
109 inline void SetPrimaryClusterId(const char* value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId.assign(value); }
111 inline CreateReplicationGroupRequest& WithPrimaryClusterId(Aws::String&& value) { SetPrimaryClusterId(std::move(value)); return *this;}
112 inline CreateReplicationGroupRequest& WithPrimaryClusterId(const char* value) { SetPrimaryClusterId(value); return *this;}
114
116
122 inline bool GetAutomaticFailoverEnabled() const{ return m_automaticFailoverEnabled; }
123 inline bool AutomaticFailoverEnabledHasBeenSet() const { return m_automaticFailoverEnabledHasBeenSet; }
124 inline void SetAutomaticFailoverEnabled(bool value) { m_automaticFailoverEnabledHasBeenSet = true; m_automaticFailoverEnabled = value; }
127
129
135 inline bool GetMultiAZEnabled() const{ return m_multiAZEnabled; }
136 inline bool MultiAZEnabledHasBeenSet() const { return m_multiAZEnabledHasBeenSet; }
137 inline void SetMultiAZEnabled(bool value) { m_multiAZEnabledHasBeenSet = true; m_multiAZEnabled = value; }
138 inline CreateReplicationGroupRequest& WithMultiAZEnabled(bool value) { SetMultiAZEnabled(value); return *this;}
140
142
152 inline int GetNumCacheClusters() const{ return m_numCacheClusters; }
153 inline bool NumCacheClustersHasBeenSet() const { return m_numCacheClustersHasBeenSet; }
154 inline void SetNumCacheClusters(int value) { m_numCacheClustersHasBeenSet = true; m_numCacheClusters = value; }
157
159
171 inline const Aws::Vector<Aws::String>& GetPreferredCacheClusterAZs() const{ return m_preferredCacheClusterAZs; }
172 inline bool PreferredCacheClusterAZsHasBeenSet() const { return m_preferredCacheClusterAZsHasBeenSet; }
173 inline void SetPreferredCacheClusterAZs(const Aws::Vector<Aws::String>& value) { m_preferredCacheClusterAZsHasBeenSet = true; m_preferredCacheClusterAZs = value; }
174 inline void SetPreferredCacheClusterAZs(Aws::Vector<Aws::String>&& value) { m_preferredCacheClusterAZsHasBeenSet = true; m_preferredCacheClusterAZs = std::move(value); }
177 inline CreateReplicationGroupRequest& AddPreferredCacheClusterAZs(const Aws::String& value) { m_preferredCacheClusterAZsHasBeenSet = true; m_preferredCacheClusterAZs.push_back(value); return *this; }
178 inline CreateReplicationGroupRequest& AddPreferredCacheClusterAZs(Aws::String&& value) { m_preferredCacheClusterAZsHasBeenSet = true; m_preferredCacheClusterAZs.push_back(std::move(value)); return *this; }
179 inline CreateReplicationGroupRequest& AddPreferredCacheClusterAZs(const char* value) { m_preferredCacheClusterAZsHasBeenSet = true; m_preferredCacheClusterAZs.push_back(value); return *this; }
181
183
189 inline int GetNumNodeGroups() const{ return m_numNodeGroups; }
190 inline bool NumNodeGroupsHasBeenSet() const { return m_numNodeGroupsHasBeenSet; }
191 inline void SetNumNodeGroups(int value) { m_numNodeGroupsHasBeenSet = true; m_numNodeGroups = value; }
192 inline CreateReplicationGroupRequest& WithNumNodeGroups(int value) { SetNumNodeGroups(value); return *this;}
194
196
200 inline int GetReplicasPerNodeGroup() const{ return m_replicasPerNodeGroup; }
201 inline bool ReplicasPerNodeGroupHasBeenSet() const { return m_replicasPerNodeGroupHasBeenSet; }
202 inline void SetReplicasPerNodeGroup(int value) { m_replicasPerNodeGroupHasBeenSet = true; m_replicasPerNodeGroup = value; }
205
207
219 inline const Aws::Vector<NodeGroupConfiguration>& GetNodeGroupConfiguration() const{ return m_nodeGroupConfiguration; }
220 inline bool NodeGroupConfigurationHasBeenSet() const { return m_nodeGroupConfigurationHasBeenSet; }
221 inline void SetNodeGroupConfiguration(const Aws::Vector<NodeGroupConfiguration>& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration = value; }
222 inline void SetNodeGroupConfiguration(Aws::Vector<NodeGroupConfiguration>&& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration = std::move(value); }
225 inline CreateReplicationGroupRequest& AddNodeGroupConfiguration(const NodeGroupConfiguration& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration.push_back(value); return *this; }
226 inline CreateReplicationGroupRequest& AddNodeGroupConfiguration(NodeGroupConfiguration&& value) { m_nodeGroupConfigurationHasBeenSet = true; m_nodeGroupConfiguration.push_back(std::move(value)); return *this; }
228
230
305 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
306 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
307 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
308 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
309 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
311 inline CreateReplicationGroupRequest& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
312 inline CreateReplicationGroupRequest& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
314
316
320 inline const Aws::String& GetEngine() const{ return m_engine; }
321 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
322 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
323 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
324 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
325 inline CreateReplicationGroupRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
326 inline CreateReplicationGroupRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
327 inline CreateReplicationGroupRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
329
331
342 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
343 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
344 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
345 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
346 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
348 inline CreateReplicationGroupRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
349 inline CreateReplicationGroupRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
351
353
365 inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
366 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
367 inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
368 inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
369 inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
374
376
384 inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; }
385 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
386 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
387 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
388 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
391 inline CreateReplicationGroupRequest& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
393
395
399 inline const Aws::Vector<Aws::String>& GetCacheSecurityGroupNames() const{ return m_cacheSecurityGroupNames; }
400 inline bool CacheSecurityGroupNamesHasBeenSet() const { return m_cacheSecurityGroupNamesHasBeenSet; }
401 inline void SetCacheSecurityGroupNames(const Aws::Vector<Aws::String>& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames = value; }
402 inline void SetCacheSecurityGroupNames(Aws::Vector<Aws::String>&& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames = std::move(value); }
405 inline CreateReplicationGroupRequest& AddCacheSecurityGroupNames(const Aws::String& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(value); return *this; }
406 inline CreateReplicationGroupRequest& AddCacheSecurityGroupNames(Aws::String&& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(std::move(value)); return *this; }
407 inline CreateReplicationGroupRequest& AddCacheSecurityGroupNames(const char* value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(value); return *this; }
409
411
416 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
417 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
418 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
419 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
422 inline CreateReplicationGroupRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
423 inline CreateReplicationGroupRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
424 inline CreateReplicationGroupRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
426
428
436 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
437 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
438 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
439 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
440 inline CreateReplicationGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
441 inline CreateReplicationGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
442 inline CreateReplicationGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
443 inline CreateReplicationGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
445
447
457 inline const Aws::Vector<Aws::String>& GetSnapshotArns() const{ return m_snapshotArns; }
458 inline bool SnapshotArnsHasBeenSet() const { return m_snapshotArnsHasBeenSet; }
459 inline void SetSnapshotArns(const Aws::Vector<Aws::String>& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns = value; }
460 inline void SetSnapshotArns(Aws::Vector<Aws::String>&& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns = std::move(value); }
463 inline CreateReplicationGroupRequest& AddSnapshotArns(const Aws::String& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(value); return *this; }
464 inline CreateReplicationGroupRequest& AddSnapshotArns(Aws::String&& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(std::move(value)); return *this; }
465 inline CreateReplicationGroupRequest& AddSnapshotArns(const char* value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(value); return *this; }
467
469
474 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
475 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
476 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
477 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
478 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
479 inline CreateReplicationGroupRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
480 inline CreateReplicationGroupRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
481 inline CreateReplicationGroupRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
483
485
495 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
496 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
497 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
498 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
499 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
504
506
510 inline int GetPort() const{ return m_port; }
511 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
512 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
513 inline CreateReplicationGroupRequest& WithPort(int value) { SetPort(value); return *this;}
515
517
522 inline const Aws::String& GetNotificationTopicArn() const{ return m_notificationTopicArn; }
523 inline bool NotificationTopicArnHasBeenSet() const { return m_notificationTopicArnHasBeenSet; }
524 inline void SetNotificationTopicArn(const Aws::String& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = value; }
525 inline void SetNotificationTopicArn(Aws::String&& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = std::move(value); }
526 inline void SetNotificationTopicArn(const char* value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn.assign(value); }
529 inline CreateReplicationGroupRequest& WithNotificationTopicArn(const char* value) { SetNotificationTopicArn(value); return *this;}
531
533
538 inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
539 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
540 inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
543
545
551 inline int GetSnapshotRetentionLimit() const{ return m_snapshotRetentionLimit; }
552 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
553 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
556
558
564 inline const Aws::String& GetSnapshotWindow() const{ return m_snapshotWindow; }
565 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
566 inline void SetSnapshotWindow(const Aws::String& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = value; }
567 inline void SetSnapshotWindow(Aws::String&& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = std::move(value); }
568 inline void SetSnapshotWindow(const char* value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow.assign(value); }
570 inline CreateReplicationGroupRequest& WithSnapshotWindow(Aws::String&& value) { SetSnapshotWindow(std::move(value)); return *this;}
571 inline CreateReplicationGroupRequest& WithSnapshotWindow(const char* value) { SetSnapshotWindow(value); return *this;}
573
575
590 inline const Aws::String& GetAuthToken() const{ return m_authToken; }
591 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
592 inline void SetAuthToken(const Aws::String& value) { m_authTokenHasBeenSet = true; m_authToken = value; }
593 inline void SetAuthToken(Aws::String&& value) { m_authTokenHasBeenSet = true; m_authToken = std::move(value); }
594 inline void SetAuthToken(const char* value) { m_authTokenHasBeenSet = true; m_authToken.assign(value); }
595 inline CreateReplicationGroupRequest& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;}
596 inline CreateReplicationGroupRequest& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;}
597 inline CreateReplicationGroupRequest& WithAuthToken(const char* value) { SetAuthToken(value); return *this;}
599
601
614 inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
615 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
616 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
619
621
631 inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
632 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
633 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
636
638
641 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
642 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
643 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
644 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
645 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
646 inline CreateReplicationGroupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
647 inline CreateReplicationGroupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
648 inline CreateReplicationGroupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
650
652
655 inline const Aws::Vector<Aws::String>& GetUserGroupIds() const{ return m_userGroupIds; }
656 inline bool UserGroupIdsHasBeenSet() const { return m_userGroupIdsHasBeenSet; }
657 inline void SetUserGroupIds(const Aws::Vector<Aws::String>& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds = value; }
658 inline void SetUserGroupIds(Aws::Vector<Aws::String>&& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds = std::move(value); }
661 inline CreateReplicationGroupRequest& AddUserGroupIds(const Aws::String& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(value); return *this; }
662 inline CreateReplicationGroupRequest& AddUserGroupIds(Aws::String&& value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(std::move(value)); return *this; }
663 inline CreateReplicationGroupRequest& AddUserGroupIds(const char* value) { m_userGroupIdsHasBeenSet = true; m_userGroupIds.push_back(value); return *this; }
665
667
670 inline const Aws::Vector<LogDeliveryConfigurationRequest>& GetLogDeliveryConfigurations() const{ return m_logDeliveryConfigurations; }
671 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
672 inline void SetLogDeliveryConfigurations(const Aws::Vector<LogDeliveryConfigurationRequest>& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = value; }
673 inline void SetLogDeliveryConfigurations(Aws::Vector<LogDeliveryConfigurationRequest>&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = std::move(value); }
676 inline CreateReplicationGroupRequest& AddLogDeliveryConfigurations(const LogDeliveryConfigurationRequest& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.push_back(value); return *this; }
677 inline CreateReplicationGroupRequest& AddLogDeliveryConfigurations(LogDeliveryConfigurationRequest&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.push_back(std::move(value)); return *this; }
679
681
688 inline bool GetDataTieringEnabled() const{ return m_dataTieringEnabled; }
689 inline bool DataTieringEnabledHasBeenSet() const { return m_dataTieringEnabledHasBeenSet; }
690 inline void SetDataTieringEnabled(bool value) { m_dataTieringEnabledHasBeenSet = true; m_dataTieringEnabled = value; }
693
695
702 inline const NetworkType& GetNetworkType() const{ return m_networkType; }
703 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
704 inline void SetNetworkType(const NetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
705 inline void SetNetworkType(NetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
706 inline CreateReplicationGroupRequest& WithNetworkType(const NetworkType& value) { SetNetworkType(value); return *this;}
707 inline CreateReplicationGroupRequest& WithNetworkType(NetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
709
711
718 inline const IpDiscovery& GetIpDiscovery() const{ return m_ipDiscovery; }
719 inline bool IpDiscoveryHasBeenSet() const { return m_ipDiscoveryHasBeenSet; }
720 inline void SetIpDiscovery(const IpDiscovery& value) { m_ipDiscoveryHasBeenSet = true; m_ipDiscovery = value; }
721 inline void SetIpDiscovery(IpDiscovery&& value) { m_ipDiscoveryHasBeenSet = true; m_ipDiscovery = std::move(value); }
722 inline CreateReplicationGroupRequest& WithIpDiscovery(const IpDiscovery& value) { SetIpDiscovery(value); return *this;}
723 inline CreateReplicationGroupRequest& WithIpDiscovery(IpDiscovery&& value) { SetIpDiscovery(std::move(value)); return *this;}
725
727
741 inline const TransitEncryptionMode& GetTransitEncryptionMode() const{ return m_transitEncryptionMode; }
742 inline bool TransitEncryptionModeHasBeenSet() const { return m_transitEncryptionModeHasBeenSet; }
743 inline void SetTransitEncryptionMode(const TransitEncryptionMode& value) { m_transitEncryptionModeHasBeenSet = true; m_transitEncryptionMode = value; }
744 inline void SetTransitEncryptionMode(TransitEncryptionMode&& value) { m_transitEncryptionModeHasBeenSet = true; m_transitEncryptionMode = std::move(value); }
748
750
758 inline const ClusterMode& GetClusterMode() const{ return m_clusterMode; }
759 inline bool ClusterModeHasBeenSet() const { return m_clusterModeHasBeenSet; }
760 inline void SetClusterMode(const ClusterMode& value) { m_clusterModeHasBeenSet = true; m_clusterMode = value; }
761 inline void SetClusterMode(ClusterMode&& value) { m_clusterModeHasBeenSet = true; m_clusterMode = std::move(value); }
762 inline CreateReplicationGroupRequest& WithClusterMode(const ClusterMode& value) { SetClusterMode(value); return *this;}
763 inline CreateReplicationGroupRequest& WithClusterMode(ClusterMode&& value) { SetClusterMode(std::move(value)); return *this;}
765
767
771 inline const Aws::String& GetServerlessCacheSnapshotName() const{ return m_serverlessCacheSnapshotName; }
772 inline bool ServerlessCacheSnapshotNameHasBeenSet() const { return m_serverlessCacheSnapshotNameHasBeenSet; }
773 inline void SetServerlessCacheSnapshotName(const Aws::String& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = value; }
774 inline void SetServerlessCacheSnapshotName(Aws::String&& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = std::move(value); }
775 inline void SetServerlessCacheSnapshotName(const char* value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName.assign(value); }
780 private:
781
782 Aws::String m_replicationGroupId;
783 bool m_replicationGroupIdHasBeenSet = false;
784
785 Aws::String m_replicationGroupDescription;
786 bool m_replicationGroupDescriptionHasBeenSet = false;
787
788 Aws::String m_globalReplicationGroupId;
789 bool m_globalReplicationGroupIdHasBeenSet = false;
790
791 Aws::String m_primaryClusterId;
792 bool m_primaryClusterIdHasBeenSet = false;
793
794 bool m_automaticFailoverEnabled;
795 bool m_automaticFailoverEnabledHasBeenSet = false;
796
797 bool m_multiAZEnabled;
798 bool m_multiAZEnabledHasBeenSet = false;
799
800 int m_numCacheClusters;
801 bool m_numCacheClustersHasBeenSet = false;
802
803 Aws::Vector<Aws::String> m_preferredCacheClusterAZs;
804 bool m_preferredCacheClusterAZsHasBeenSet = false;
805
806 int m_numNodeGroups;
807 bool m_numNodeGroupsHasBeenSet = false;
808
809 int m_replicasPerNodeGroup;
810 bool m_replicasPerNodeGroupHasBeenSet = false;
811
812 Aws::Vector<NodeGroupConfiguration> m_nodeGroupConfiguration;
813 bool m_nodeGroupConfigurationHasBeenSet = false;
814
815 Aws::String m_cacheNodeType;
816 bool m_cacheNodeTypeHasBeenSet = false;
817
818 Aws::String m_engine;
819 bool m_engineHasBeenSet = false;
820
821 Aws::String m_engineVersion;
822 bool m_engineVersionHasBeenSet = false;
823
824 Aws::String m_cacheParameterGroupName;
825 bool m_cacheParameterGroupNameHasBeenSet = false;
826
827 Aws::String m_cacheSubnetGroupName;
828 bool m_cacheSubnetGroupNameHasBeenSet = false;
829
830 Aws::Vector<Aws::String> m_cacheSecurityGroupNames;
831 bool m_cacheSecurityGroupNamesHasBeenSet = false;
832
833 Aws::Vector<Aws::String> m_securityGroupIds;
834 bool m_securityGroupIdsHasBeenSet = false;
835
836 Aws::Vector<Tag> m_tags;
837 bool m_tagsHasBeenSet = false;
838
839 Aws::Vector<Aws::String> m_snapshotArns;
840 bool m_snapshotArnsHasBeenSet = false;
841
842 Aws::String m_snapshotName;
843 bool m_snapshotNameHasBeenSet = false;
844
845 Aws::String m_preferredMaintenanceWindow;
846 bool m_preferredMaintenanceWindowHasBeenSet = false;
847
848 int m_port;
849 bool m_portHasBeenSet = false;
850
851 Aws::String m_notificationTopicArn;
852 bool m_notificationTopicArnHasBeenSet = false;
853
854 bool m_autoMinorVersionUpgrade;
855 bool m_autoMinorVersionUpgradeHasBeenSet = false;
856
857 int m_snapshotRetentionLimit;
858 bool m_snapshotRetentionLimitHasBeenSet = false;
859
860 Aws::String m_snapshotWindow;
861 bool m_snapshotWindowHasBeenSet = false;
862
863 Aws::String m_authToken;
864 bool m_authTokenHasBeenSet = false;
865
866 bool m_transitEncryptionEnabled;
867 bool m_transitEncryptionEnabledHasBeenSet = false;
868
869 bool m_atRestEncryptionEnabled;
870 bool m_atRestEncryptionEnabledHasBeenSet = false;
871
872 Aws::String m_kmsKeyId;
873 bool m_kmsKeyIdHasBeenSet = false;
874
875 Aws::Vector<Aws::String> m_userGroupIds;
876 bool m_userGroupIdsHasBeenSet = false;
877
878 Aws::Vector<LogDeliveryConfigurationRequest> m_logDeliveryConfigurations;
879 bool m_logDeliveryConfigurationsHasBeenSet = false;
880
881 bool m_dataTieringEnabled;
882 bool m_dataTieringEnabledHasBeenSet = false;
883
884 NetworkType m_networkType;
885 bool m_networkTypeHasBeenSet = false;
886
887 IpDiscovery m_ipDiscovery;
888 bool m_ipDiscoveryHasBeenSet = false;
889
890 TransitEncryptionMode m_transitEncryptionMode;
891 bool m_transitEncryptionModeHasBeenSet = false;
892
893 ClusterMode m_clusterMode;
894 bool m_clusterModeHasBeenSet = false;
895
896 Aws::String m_serverlessCacheSnapshotName;
897 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
898 };
899
900} // namespace Model
901} // namespace ElastiCache
902} // namespace Aws
CreateReplicationGroupRequest & WithGlobalReplicationGroupId(Aws::String &&value)
CreateReplicationGroupRequest & WithDataTieringEnabled(bool value)
CreateReplicationGroupRequest & WithLogDeliveryConfigurations(Aws::Vector< LogDeliveryConfigurationRequest > &&value)
CreateReplicationGroupRequest & WithKmsKeyId(Aws::String &&value)
CreateReplicationGroupRequest & WithAutomaticFailoverEnabled(bool value)
CreateReplicationGroupRequest & WithTransitEncryptionMode(TransitEncryptionMode &&value)
CreateReplicationGroupRequest & WithTransitEncryptionMode(const TransitEncryptionMode &value)
CreateReplicationGroupRequest & WithEngine(Aws::String &&value)
CreateReplicationGroupRequest & WithCacheParameterGroupName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetPreferredCacheClusterAZs() const
CreateReplicationGroupRequest & AddSecurityGroupIds(const Aws::String &value)
CreateReplicationGroupRequest & WithAutoMinorVersionUpgrade(bool value)
CreateReplicationGroupRequest & WithPreferredMaintenanceWindow(const char *value)
CreateReplicationGroupRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithAuthToken(Aws::String &&value)
CreateReplicationGroupRequest & WithNotificationTopicArn(const Aws::String &value)
CreateReplicationGroupRequest & WithGlobalReplicationGroupId(const Aws::String &value)
CreateReplicationGroupRequest & WithCacheSubnetGroupName(Aws::String &&value)
CreateReplicationGroupRequest & WithCacheSubnetGroupName(const Aws::String &value)
CreateReplicationGroupRequest & WithAtRestEncryptionEnabled(bool value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateReplicationGroupRequest & AddUserGroupIds(const char *value)
CreateReplicationGroupRequest & WithUserGroupIds(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & AddNodeGroupConfiguration(const NodeGroupConfiguration &value)
const Aws::Vector< LogDeliveryConfigurationRequest > & GetLogDeliveryConfigurations() const
CreateReplicationGroupRequest & WithSnapshotName(Aws::String &&value)
CreateReplicationGroupRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateReplicationGroupRequest & WithAuthToken(const char *value)
CreateReplicationGroupRequest & WithNumCacheClusters(int value)
CreateReplicationGroupRequest & AddNodeGroupConfiguration(NodeGroupConfiguration &&value)
CreateReplicationGroupRequest & AddSnapshotArns(Aws::String &&value)
CreateReplicationGroupRequest & WithPrimaryClusterId(const char *value)
CreateReplicationGroupRequest & AddLogDeliveryConfigurations(const LogDeliveryConfigurationRequest &value)
CreateReplicationGroupRequest & WithSnapshotRetentionLimit(int value)
CreateReplicationGroupRequest & WithSnapshotName(const char *value)
const Aws::Vector< Aws::String > & GetCacheSecurityGroupNames() const
void SetLogDeliveryConfigurations(Aws::Vector< LogDeliveryConfigurationRequest > &&value)
CreateReplicationGroupRequest & WithPrimaryClusterId(Aws::String &&value)
CreateReplicationGroupRequest & AddCacheSecurityGroupNames(Aws::String &&value)
CreateReplicationGroupRequest & AddPreferredCacheClusterAZs(const Aws::String &value)
CreateReplicationGroupRequest & AddSecurityGroupIds(const char *value)
CreateReplicationGroupRequest & AddSecurityGroupIds(Aws::String &&value)
CreateReplicationGroupRequest & WithNetworkType(const NetworkType &value)
CreateReplicationGroupRequest & WithIpDiscovery(const IpDiscovery &value)
CreateReplicationGroupRequest & WithEngine(const char *value)
void SetPreferredCacheClusterAZs(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithCacheParameterGroupName(const char *value)
CreateReplicationGroupRequest & AddPreferredCacheClusterAZs(const char *value)
CreateReplicationGroupRequest & WithSnapshotWindow(const Aws::String &value)
CreateReplicationGroupRequest & WithReplicationGroupDescription(const Aws::String &value)
CreateReplicationGroupRequest & WithCacheSubnetGroupName(const char *value)
const Aws::Vector< NodeGroupConfiguration > & GetNodeGroupConfiguration() const
CreateReplicationGroupRequest & AddUserGroupIds(const Aws::String &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateReplicationGroupRequest & AddSnapshotArns(const char *value)
CreateReplicationGroupRequest & WithServerlessCacheSnapshotName(const char *value)
CreateReplicationGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateReplicationGroupRequest & AddTags(const Tag &value)
CreateReplicationGroupRequest & WithSnapshotWindow(Aws::String &&value)
CreateReplicationGroupRequest & WithClusterMode(ClusterMode &&value)
CreateReplicationGroupRequest & WithPrimaryClusterId(const Aws::String &value)
void SetPreferredCacheClusterAZs(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithLogDeliveryConfigurations(const Aws::Vector< LogDeliveryConfigurationRequest > &value)
CreateReplicationGroupRequest & WithEngine(const Aws::String &value)
void SetUserGroupIds(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithCacheNodeType(Aws::String &&value)
CreateReplicationGroupRequest & WithKmsKeyId(const Aws::String &value)
CreateReplicationGroupRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateReplicationGroupRequest & WithServerlessCacheSnapshotName(const Aws::String &value)
CreateReplicationGroupRequest & WithGlobalReplicationGroupId(const char *value)
CreateReplicationGroupRequest & WithSnapshotArns(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithKmsKeyId(const char *value)
CreateReplicationGroupRequest & WithReplicationGroupDescription(const char *value)
CreateReplicationGroupRequest & WithPreferredCacheClusterAZs(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & AddPreferredCacheClusterAZs(Aws::String &&value)
CreateReplicationGroupRequest & WithServerlessCacheSnapshotName(Aws::String &&value)
CreateReplicationGroupRequest & WithEngineVersion(Aws::String &&value)
CreateReplicationGroupRequest & WithNotificationTopicArn(Aws::String &&value)
CreateReplicationGroupRequest & WithCacheParameterGroupName(const Aws::String &value)
void SetCacheSecurityGroupNames(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithAuthToken(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithMultiAZEnabled(bool value)
CreateReplicationGroupRequest & WithNotificationTopicArn(const char *value)
CreateReplicationGroupRequest & WithCacheSecurityGroupNames(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithEngineVersion(const Aws::String &value)
void SetNodeGroupConfiguration(Aws::Vector< NodeGroupConfiguration > &&value)
CreateReplicationGroupRequest & AddUserGroupIds(Aws::String &&value)
CreateReplicationGroupRequest & WithReplicationGroupDescription(Aws::String &&value)
CreateReplicationGroupRequest & WithNetworkType(NetworkType &&value)
CreateReplicationGroupRequest & WithCacheSecurityGroupNames(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithSnapshotWindow(const char *value)
CreateReplicationGroupRequest & AddCacheSecurityGroupNames(const char *value)
CreateReplicationGroupRequest & WithReplicasPerNodeGroup(int value)
CreateReplicationGroupRequest & WithUserGroupIds(Aws::Vector< Aws::String > &&value)
void SetCacheSecurityGroupNames(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & WithIpDiscovery(IpDiscovery &&value)
CreateReplicationGroupRequest & AddCacheSecurityGroupNames(const Aws::String &value)
CreateReplicationGroupRequest & WithReplicationGroupId(const char *value)
CreateReplicationGroupRequest & WithReplicationGroupId(Aws::String &&value)
CreateReplicationGroupRequest & AddSnapshotArns(const Aws::String &value)
CreateReplicationGroupRequest & WithClusterMode(const ClusterMode &value)
void SetSnapshotArns(const Aws::Vector< Aws::String > &value)
CreateReplicationGroupRequest & AddLogDeliveryConfigurations(LogDeliveryConfigurationRequest &&value)
void SetLogDeliveryConfigurations(const Aws::Vector< LogDeliveryConfigurationRequest > &value)
CreateReplicationGroupRequest & WithTransitEncryptionEnabled(bool value)
CreateReplicationGroupRequest & WithNodeGroupConfiguration(Aws::Vector< NodeGroupConfiguration > &&value)
CreateReplicationGroupRequest & WithReplicationGroupId(const Aws::String &value)
CreateReplicationGroupRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithNodeGroupConfiguration(const Aws::Vector< NodeGroupConfiguration > &value)
void SetNodeGroupConfiguration(const Aws::Vector< NodeGroupConfiguration > &value)
CreateReplicationGroupRequest & WithCacheNodeType(const char *value)
CreateReplicationGroupRequest & WithEngineVersion(const char *value)
CreateReplicationGroupRequest & WithSnapshotName(const Aws::String &value)
CreateReplicationGroupRequest & WithSnapshotArns(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateReplicationGroupRequest & WithPreferredCacheClusterAZs(Aws::Vector< Aws::String > &&value)
CreateReplicationGroupRequest & WithCacheNodeType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector