AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCacheClusterRequest.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/elasticache/model/AZMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticache/model/OutpostMode.h>
13#include <aws/elasticache/model/NetworkType.h>
14#include <aws/elasticache/model/IpDiscovery.h>
15#include <aws/elasticache/model/Tag.h>
16#include <aws/elasticache/model/LogDeliveryConfigurationRequest.h>
17#include <utility>
18
19namespace Aws
20{
21namespace ElastiCache
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICACHE_API CreateCacheClusterRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateCacheCluster"; }
42
43 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
44
45 protected:
46 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
47
48 public:
49
51
58 inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
59 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
60 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
61 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
62 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
63 inline CreateCacheClusterRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
64 inline CreateCacheClusterRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
65 inline CreateCacheClusterRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
67
69
79 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
80 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
81 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
82 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
83 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
85 inline CreateCacheClusterRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
86 inline CreateCacheClusterRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
88
90
97 inline const AZMode& GetAZMode() const{ return m_aZMode; }
98 inline bool AZModeHasBeenSet() const { return m_aZModeHasBeenSet; }
99 inline void SetAZMode(const AZMode& value) { m_aZModeHasBeenSet = true; m_aZMode = value; }
100 inline void SetAZMode(AZMode&& value) { m_aZModeHasBeenSet = true; m_aZMode = std::move(value); }
101 inline CreateCacheClusterRequest& WithAZMode(const AZMode& value) { SetAZMode(value); return *this;}
102 inline CreateCacheClusterRequest& WithAZMode(AZMode&& value) { SetAZMode(std::move(value)); return *this;}
104
106
113 inline const Aws::String& GetPreferredAvailabilityZone() const{ return m_preferredAvailabilityZone; }
114 inline bool PreferredAvailabilityZoneHasBeenSet() const { return m_preferredAvailabilityZoneHasBeenSet; }
115 inline void SetPreferredAvailabilityZone(const Aws::String& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = value; }
116 inline void SetPreferredAvailabilityZone(Aws::String&& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = std::move(value); }
117 inline void SetPreferredAvailabilityZone(const char* value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone.assign(value); }
122
124
136 inline const Aws::Vector<Aws::String>& GetPreferredAvailabilityZones() const{ return m_preferredAvailabilityZones; }
137 inline bool PreferredAvailabilityZonesHasBeenSet() const { return m_preferredAvailabilityZonesHasBeenSet; }
138 inline void SetPreferredAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = value; }
139 inline void SetPreferredAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones = std::move(value); }
142 inline CreateCacheClusterRequest& AddPreferredAvailabilityZones(const Aws::String& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
143 inline CreateCacheClusterRequest& AddPreferredAvailabilityZones(Aws::String&& value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(std::move(value)); return *this; }
144 inline CreateCacheClusterRequest& AddPreferredAvailabilityZones(const char* value) { m_preferredAvailabilityZonesHasBeenSet = true; m_preferredAvailabilityZones.push_back(value); return *this; }
146
148
156 inline int GetNumCacheNodes() const{ return m_numCacheNodes; }
157 inline bool NumCacheNodesHasBeenSet() const { return m_numCacheNodesHasBeenSet; }
158 inline void SetNumCacheNodes(int value) { m_numCacheNodesHasBeenSet = true; m_numCacheNodes = value; }
159 inline CreateCacheClusterRequest& WithNumCacheNodes(int value) { SetNumCacheNodes(value); return *this;}
161
163
238 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
239 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
240 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
241 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
242 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
243 inline CreateCacheClusterRequest& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
244 inline CreateCacheClusterRequest& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
245 inline CreateCacheClusterRequest& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
247
249
253 inline const Aws::String& GetEngine() const{ return m_engine; }
254 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
255 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
256 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
257 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
258 inline CreateCacheClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
259 inline CreateCacheClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
260 inline CreateCacheClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
262
264
275 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
276 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
277 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
278 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
279 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
280 inline CreateCacheClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
281 inline CreateCacheClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
282 inline CreateCacheClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
284
286
292 inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
293 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
294 inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
295 inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
296 inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
299 inline CreateCacheClusterRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
301
303
312 inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; }
313 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
314 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
315 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
316 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
319 inline CreateCacheClusterRequest& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
321
323
328 inline const Aws::Vector<Aws::String>& GetCacheSecurityGroupNames() const{ return m_cacheSecurityGroupNames; }
329 inline bool CacheSecurityGroupNamesHasBeenSet() const { return m_cacheSecurityGroupNamesHasBeenSet; }
330 inline void SetCacheSecurityGroupNames(const Aws::Vector<Aws::String>& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames = value; }
331 inline void SetCacheSecurityGroupNames(Aws::Vector<Aws::String>&& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames = std::move(value); }
334 inline CreateCacheClusterRequest& AddCacheSecurityGroupNames(const Aws::String& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(value); return *this; }
335 inline CreateCacheClusterRequest& AddCacheSecurityGroupNames(Aws::String&& value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(std::move(value)); return *this; }
336 inline CreateCacheClusterRequest& AddCacheSecurityGroupNames(const char* value) { m_cacheSecurityGroupNamesHasBeenSet = true; m_cacheSecurityGroupNames.push_back(value); return *this; }
338
340
345 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
346 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
347 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
348 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
351 inline CreateCacheClusterRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
352 inline CreateCacheClusterRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
353 inline CreateCacheClusterRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
355
357
360 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
361 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
362 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
363 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
364 inline CreateCacheClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
365 inline CreateCacheClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
366 inline CreateCacheClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
367 inline CreateCacheClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
369
371
380 inline const Aws::Vector<Aws::String>& GetSnapshotArns() const{ return m_snapshotArns; }
381 inline bool SnapshotArnsHasBeenSet() const { return m_snapshotArnsHasBeenSet; }
382 inline void SetSnapshotArns(const Aws::Vector<Aws::String>& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns = value; }
383 inline void SetSnapshotArns(Aws::Vector<Aws::String>&& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns = std::move(value); }
385 inline CreateCacheClusterRequest& WithSnapshotArns(Aws::Vector<Aws::String>&& value) { SetSnapshotArns(std::move(value)); return *this;}
386 inline CreateCacheClusterRequest& AddSnapshotArns(const Aws::String& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(value); return *this; }
387 inline CreateCacheClusterRequest& AddSnapshotArns(Aws::String&& value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(std::move(value)); return *this; }
388 inline CreateCacheClusterRequest& AddSnapshotArns(const char* value) { m_snapshotArnsHasBeenSet = true; m_snapshotArns.push_back(value); return *this; }
390
392
399 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
400 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
401 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
402 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
403 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
404 inline CreateCacheClusterRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
405 inline CreateCacheClusterRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
406 inline CreateCacheClusterRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
408
410
415 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
416 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
417 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
418 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
419 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
424
426
429 inline int GetPort() const{ return m_port; }
430 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
431 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
432 inline CreateCacheClusterRequest& WithPort(int value) { SetPort(value); return *this;}
434
436
441 inline const Aws::String& GetNotificationTopicArn() const{ return m_notificationTopicArn; }
442 inline bool NotificationTopicArnHasBeenSet() const { return m_notificationTopicArnHasBeenSet; }
443 inline void SetNotificationTopicArn(const Aws::String& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = value; }
444 inline void SetNotificationTopicArn(Aws::String&& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = std::move(value); }
445 inline void SetNotificationTopicArn(const char* value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn.assign(value); }
448 inline CreateCacheClusterRequest& WithNotificationTopicArn(const char* value) { SetNotificationTopicArn(value); return *this;}
450
452
457 inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
458 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
459 inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
462
464
472 inline int GetSnapshotRetentionLimit() const{ return m_snapshotRetentionLimit; }
473 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
474 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
477
479
486 inline const Aws::String& GetSnapshotWindow() const{ return m_snapshotWindow; }
487 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
488 inline void SetSnapshotWindow(const Aws::String& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = value; }
489 inline void SetSnapshotWindow(Aws::String&& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = std::move(value); }
490 inline void SetSnapshotWindow(const char* value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow.assign(value); }
491 inline CreateCacheClusterRequest& WithSnapshotWindow(const Aws::String& value) { SetSnapshotWindow(value); return *this;}
492 inline CreateCacheClusterRequest& WithSnapshotWindow(Aws::String&& value) { SetSnapshotWindow(std::move(value)); return *this;}
493 inline CreateCacheClusterRequest& WithSnapshotWindow(const char* value) { SetSnapshotWindow(value); return *this;}
495
497
507 inline const Aws::String& GetAuthToken() const{ return m_authToken; }
508 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
509 inline void SetAuthToken(const Aws::String& value) { m_authTokenHasBeenSet = true; m_authToken = value; }
510 inline void SetAuthToken(Aws::String&& value) { m_authTokenHasBeenSet = true; m_authToken = std::move(value); }
511 inline void SetAuthToken(const char* value) { m_authTokenHasBeenSet = true; m_authToken.assign(value); }
512 inline CreateCacheClusterRequest& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;}
513 inline CreateCacheClusterRequest& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;}
514 inline CreateCacheClusterRequest& WithAuthToken(const char* value) { SetAuthToken(value); return *this;}
516
518
522 inline const OutpostMode& GetOutpostMode() const{ return m_outpostMode; }
523 inline bool OutpostModeHasBeenSet() const { return m_outpostModeHasBeenSet; }
524 inline void SetOutpostMode(const OutpostMode& value) { m_outpostModeHasBeenSet = true; m_outpostMode = value; }
525 inline void SetOutpostMode(OutpostMode&& value) { m_outpostModeHasBeenSet = true; m_outpostMode = std::move(value); }
526 inline CreateCacheClusterRequest& WithOutpostMode(const OutpostMode& value) { SetOutpostMode(value); return *this;}
527 inline CreateCacheClusterRequest& WithOutpostMode(OutpostMode&& value) { SetOutpostMode(std::move(value)); return *this;}
529
531
534 inline const Aws::String& GetPreferredOutpostArn() const{ return m_preferredOutpostArn; }
535 inline bool PreferredOutpostArnHasBeenSet() const { return m_preferredOutpostArnHasBeenSet; }
536 inline void SetPreferredOutpostArn(const Aws::String& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = value; }
537 inline void SetPreferredOutpostArn(Aws::String&& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = std::move(value); }
538 inline void SetPreferredOutpostArn(const char* value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn.assign(value); }
540 inline CreateCacheClusterRequest& WithPreferredOutpostArn(Aws::String&& value) { SetPreferredOutpostArn(std::move(value)); return *this;}
541 inline CreateCacheClusterRequest& WithPreferredOutpostArn(const char* value) { SetPreferredOutpostArn(value); return *this;}
543
545
548 inline const Aws::Vector<Aws::String>& GetPreferredOutpostArns() const{ return m_preferredOutpostArns; }
549 inline bool PreferredOutpostArnsHasBeenSet() const { return m_preferredOutpostArnsHasBeenSet; }
550 inline void SetPreferredOutpostArns(const Aws::Vector<Aws::String>& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns = value; }
551 inline void SetPreferredOutpostArns(Aws::Vector<Aws::String>&& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns = std::move(value); }
554 inline CreateCacheClusterRequest& AddPreferredOutpostArns(const Aws::String& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(value); return *this; }
555 inline CreateCacheClusterRequest& AddPreferredOutpostArns(Aws::String&& value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(std::move(value)); return *this; }
556 inline CreateCacheClusterRequest& AddPreferredOutpostArns(const char* value) { m_preferredOutpostArnsHasBeenSet = true; m_preferredOutpostArns.push_back(value); return *this; }
558
560
563 inline const Aws::Vector<LogDeliveryConfigurationRequest>& GetLogDeliveryConfigurations() const{ return m_logDeliveryConfigurations; }
564 inline bool LogDeliveryConfigurationsHasBeenSet() const { return m_logDeliveryConfigurationsHasBeenSet; }
565 inline void SetLogDeliveryConfigurations(const Aws::Vector<LogDeliveryConfigurationRequest>& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = value; }
566 inline void SetLogDeliveryConfigurations(Aws::Vector<LogDeliveryConfigurationRequest>&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations = std::move(value); }
569 inline CreateCacheClusterRequest& AddLogDeliveryConfigurations(const LogDeliveryConfigurationRequest& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.push_back(value); return *this; }
570 inline CreateCacheClusterRequest& AddLogDeliveryConfigurations(LogDeliveryConfigurationRequest&& value) { m_logDeliveryConfigurationsHasBeenSet = true; m_logDeliveryConfigurations.push_back(std::move(value)); return *this; }
572
574
577 inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
578 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
579 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
582
584
591 inline const NetworkType& GetNetworkType() const{ return m_networkType; }
592 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
593 inline void SetNetworkType(const NetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
594 inline void SetNetworkType(NetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
595 inline CreateCacheClusterRequest& WithNetworkType(const NetworkType& value) { SetNetworkType(value); return *this;}
596 inline CreateCacheClusterRequest& WithNetworkType(NetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
598
600
607 inline const IpDiscovery& GetIpDiscovery() const{ return m_ipDiscovery; }
608 inline bool IpDiscoveryHasBeenSet() const { return m_ipDiscoveryHasBeenSet; }
609 inline void SetIpDiscovery(const IpDiscovery& value) { m_ipDiscoveryHasBeenSet = true; m_ipDiscovery = value; }
610 inline void SetIpDiscovery(IpDiscovery&& value) { m_ipDiscoveryHasBeenSet = true; m_ipDiscovery = std::move(value); }
611 inline CreateCacheClusterRequest& WithIpDiscovery(const IpDiscovery& value) { SetIpDiscovery(value); return *this;}
612 inline CreateCacheClusterRequest& WithIpDiscovery(IpDiscovery&& value) { SetIpDiscovery(std::move(value)); return *this;}
614 private:
615
616 Aws::String m_cacheClusterId;
617 bool m_cacheClusterIdHasBeenSet = false;
618
619 Aws::String m_replicationGroupId;
620 bool m_replicationGroupIdHasBeenSet = false;
621
622 AZMode m_aZMode;
623 bool m_aZModeHasBeenSet = false;
624
625 Aws::String m_preferredAvailabilityZone;
626 bool m_preferredAvailabilityZoneHasBeenSet = false;
627
628 Aws::Vector<Aws::String> m_preferredAvailabilityZones;
629 bool m_preferredAvailabilityZonesHasBeenSet = false;
630
631 int m_numCacheNodes;
632 bool m_numCacheNodesHasBeenSet = false;
633
634 Aws::String m_cacheNodeType;
635 bool m_cacheNodeTypeHasBeenSet = false;
636
637 Aws::String m_engine;
638 bool m_engineHasBeenSet = false;
639
640 Aws::String m_engineVersion;
641 bool m_engineVersionHasBeenSet = false;
642
643 Aws::String m_cacheParameterGroupName;
644 bool m_cacheParameterGroupNameHasBeenSet = false;
645
646 Aws::String m_cacheSubnetGroupName;
647 bool m_cacheSubnetGroupNameHasBeenSet = false;
648
649 Aws::Vector<Aws::String> m_cacheSecurityGroupNames;
650 bool m_cacheSecurityGroupNamesHasBeenSet = false;
651
652 Aws::Vector<Aws::String> m_securityGroupIds;
653 bool m_securityGroupIdsHasBeenSet = false;
654
655 Aws::Vector<Tag> m_tags;
656 bool m_tagsHasBeenSet = false;
657
658 Aws::Vector<Aws::String> m_snapshotArns;
659 bool m_snapshotArnsHasBeenSet = false;
660
661 Aws::String m_snapshotName;
662 bool m_snapshotNameHasBeenSet = false;
663
664 Aws::String m_preferredMaintenanceWindow;
665 bool m_preferredMaintenanceWindowHasBeenSet = false;
666
667 int m_port;
668 bool m_portHasBeenSet = false;
669
670 Aws::String m_notificationTopicArn;
671 bool m_notificationTopicArnHasBeenSet = false;
672
673 bool m_autoMinorVersionUpgrade;
674 bool m_autoMinorVersionUpgradeHasBeenSet = false;
675
676 int m_snapshotRetentionLimit;
677 bool m_snapshotRetentionLimitHasBeenSet = false;
678
679 Aws::String m_snapshotWindow;
680 bool m_snapshotWindowHasBeenSet = false;
681
682 Aws::String m_authToken;
683 bool m_authTokenHasBeenSet = false;
684
685 OutpostMode m_outpostMode;
686 bool m_outpostModeHasBeenSet = false;
687
688 Aws::String m_preferredOutpostArn;
689 bool m_preferredOutpostArnHasBeenSet = false;
690
691 Aws::Vector<Aws::String> m_preferredOutpostArns;
692 bool m_preferredOutpostArnsHasBeenSet = false;
693
694 Aws::Vector<LogDeliveryConfigurationRequest> m_logDeliveryConfigurations;
695 bool m_logDeliveryConfigurationsHasBeenSet = false;
696
697 bool m_transitEncryptionEnabled;
698 bool m_transitEncryptionEnabledHasBeenSet = false;
699
700 NetworkType m_networkType;
701 bool m_networkTypeHasBeenSet = false;
702
703 IpDiscovery m_ipDiscovery;
704 bool m_ipDiscoveryHasBeenSet = false;
705 };
706
707} // namespace Model
708} // namespace ElastiCache
709} // namespace Aws
CreateCacheClusterRequest & AddCacheSecurityGroupNames(const Aws::String &value)
CreateCacheClusterRequest & WithSnapshotWindow(const char *value)
const Aws::Vector< Aws::String > & GetSnapshotArns() const
CreateCacheClusterRequest & AddSecurityGroupIds(const char *value)
virtual const char * GetServiceRequestName() const override
CreateCacheClusterRequest & WithNumCacheNodes(int value)
CreateCacheClusterRequest & AddCacheSecurityGroupNames(Aws::String &&value)
CreateCacheClusterRequest & WithPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
void SetLogDeliveryConfigurations(Aws::Vector< LogDeliveryConfigurationRequest > &&value)
CreateCacheClusterRequest & AddCacheSecurityGroupNames(const char *value)
CreateCacheClusterRequest & WithAZMode(AZMode &&value)
CreateCacheClusterRequest & WithNotificationTopicArn(const char *value)
CreateCacheClusterRequest & WithTransitEncryptionEnabled(bool value)
CreateCacheClusterRequest & WithSnapshotArns(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & WithCacheParameterGroupName(Aws::String &&value)
CreateCacheClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
void SetCacheSecurityGroupNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetCacheSecurityGroupNames() const
const Aws::Vector< Aws::String > & GetPreferredAvailabilityZones() const
CreateCacheClusterRequest & WithCacheParameterGroupName(const char *value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCacheClusterRequest & WithPreferredAvailabilityZone(const Aws::String &value)
CreateCacheClusterRequest & AddPreferredAvailabilityZones(const char *value)
CreateCacheClusterRequest & WithIpDiscovery(const IpDiscovery &value)
CreateCacheClusterRequest & WithSnapshotWindow(Aws::String &&value)
CreateCacheClusterRequest & WithReplicationGroupId(const char *value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithAuthToken(const char *value)
CreateCacheClusterRequest & WithPreferredOutpostArns(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & WithCacheNodeType(Aws::String &&value)
CreateCacheClusterRequest & WithEngine(const Aws::String &value)
CreateCacheClusterRequest & WithReplicationGroupId(const Aws::String &value)
CreateCacheClusterRequest & WithLogDeliveryConfigurations(Aws::Vector< LogDeliveryConfigurationRequest > &&value)
CreateCacheClusterRequest & WithPreferredAvailabilityZone(Aws::String &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateCacheClusterRequest & AddSnapshotArns(const Aws::String &value)
CreateCacheClusterRequest & WithCacheSecurityGroupNames(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateCacheClusterRequest & WithEngineVersion(Aws::String &&value)
CreateCacheClusterRequest & AddSnapshotArns(const char *value)
void SetPreferredOutpostArns(Aws::Vector< Aws::String > &&value)
void SetPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithOutpostMode(OutpostMode &&value)
CreateCacheClusterRequest & WithCacheClusterId(const char *value)
CreateCacheClusterRequest & WithSnapshotName(const char *value)
CreateCacheClusterRequest & WithReplicationGroupId(Aws::String &&value)
void SetSnapshotArns(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithAuthToken(const Aws::String &value)
const Aws::Vector< LogDeliveryConfigurationRequest > & GetLogDeliveryConfigurations() const
CreateCacheClusterRequest & AddPreferredOutpostArns(Aws::String &&value)
CreateCacheClusterRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPreferredOutpostArns() const
void SetSnapshotArns(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & AddSecurityGroupIds(const Aws::String &value)
CreateCacheClusterRequest & WithPreferredOutpostArn(const char *value)
CreateCacheClusterRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateCacheClusterRequest & WithPreferredAvailabilityZone(const char *value)
CreateCacheClusterRequest & WithCacheSecurityGroupNames(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithEngineVersion(const Aws::String &value)
CreateCacheClusterRequest & WithCacheParameterGroupName(const Aws::String &value)
CreateCacheClusterRequest & WithSnapshotName(Aws::String &&value)
CreateCacheClusterRequest & WithEngineVersion(const char *value)
CreateCacheClusterRequest & WithCacheNodeType(const char *value)
CreateCacheClusterRequest & WithNetworkType(NetworkType &&value)
CreateCacheClusterRequest & WithCacheSubnetGroupName(const Aws::String &value)
CreateCacheClusterRequest & WithOutpostMode(const OutpostMode &value)
CreateCacheClusterRequest & AddLogDeliveryConfigurations(const LogDeliveryConfigurationRequest &value)
void SetPreferredAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & AddLogDeliveryConfigurations(LogDeliveryConfigurationRequest &&value)
CreateCacheClusterRequest & WithNotificationTopicArn(Aws::String &&value)
CreateCacheClusterRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & WithPreferredOutpostArn(Aws::String &&value)
CreateCacheClusterRequest & WithPreferredMaintenanceWindow(const char *value)
CreateCacheClusterRequest & WithSnapshotArns(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithNetworkType(const NetworkType &value)
CreateCacheClusterRequest & WithCacheSubnetGroupName(const char *value)
CreateCacheClusterRequest & AddSecurityGroupIds(Aws::String &&value)
CreateCacheClusterRequest & WithSnapshotRetentionLimit(int value)
CreateCacheClusterRequest & WithNotificationTopicArn(const Aws::String &value)
CreateCacheClusterRequest & WithTags(const Aws::Vector< Tag > &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetPreferredOutpostArns(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & AddSnapshotArns(Aws::String &&value)
CreateCacheClusterRequest & AddTags(const Tag &value)
CreateCacheClusterRequest & AddPreferredAvailabilityZones(const Aws::String &value)
CreateCacheClusterRequest & WithCacheSubnetGroupName(Aws::String &&value)
CreateCacheClusterRequest & WithEngine(const char *value)
CreateCacheClusterRequest & WithCacheNodeType(const Aws::String &value)
CreateCacheClusterRequest & WithPreferredOutpostArn(const Aws::String &value)
CreateCacheClusterRequest & AddPreferredOutpostArns(const Aws::String &value)
CreateCacheClusterRequest & WithAZMode(const AZMode &value)
CreateCacheClusterRequest & WithSnapshotWindow(const Aws::String &value)
CreateCacheClusterRequest & AddPreferredAvailabilityZones(Aws::String &&value)
CreateCacheClusterRequest & WithAutoMinorVersionUpgrade(bool value)
void SetLogDeliveryConfigurations(const Aws::Vector< LogDeliveryConfigurationRequest > &value)
CreateCacheClusterRequest & WithCacheClusterId(const Aws::String &value)
void SetCacheSecurityGroupNames(Aws::Vector< Aws::String > &&value)
CreateCacheClusterRequest & WithPreferredAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateCacheClusterRequest & WithIpDiscovery(IpDiscovery &&value)
CreateCacheClusterRequest & WithEngine(Aws::String &&value)
CreateCacheClusterRequest & WithAuthToken(Aws::String &&value)
CreateCacheClusterRequest & AddPreferredOutpostArns(const char *value)
CreateCacheClusterRequest & WithSnapshotName(const Aws::String &value)
CreateCacheClusterRequest & WithLogDeliveryConfigurations(const Aws::Vector< LogDeliveryConfigurationRequest > &value)
CreateCacheClusterRequest & WithCacheClusterId(Aws::String &&value)
CreateCacheClusterRequest & WithPreferredOutpostArns(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector