AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreClusterFromSnapshotRequest.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/docdb-elastic/DocDBElasticRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDBElastic
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DOCDBELASTIC_API RestoreClusterFromSnapshotRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RestoreClusterFromSnapshot"; }
33
34 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
42 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
43 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
44 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
45 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
46 inline RestoreClusterFromSnapshotRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
47 inline RestoreClusterFromSnapshotRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
48 inline RestoreClusterFromSnapshotRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
50
52
62 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
63 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
64 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
65 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
66 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
67 inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
68 inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
69 inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
71
73
76 inline int GetShardCapacity() const{ return m_shardCapacity; }
77 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
78 inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; }
79 inline RestoreClusterFromSnapshotRequest& WithShardCapacity(int value) { SetShardCapacity(value); return *this;}
81
83
89 inline int GetShardInstanceCount() const{ return m_shardInstanceCount; }
90 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
91 inline void SetShardInstanceCount(int value) { m_shardInstanceCountHasBeenSet = true; m_shardInstanceCount = value; }
94
96
99 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
100 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
101 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
102 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
103 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
105 inline RestoreClusterFromSnapshotRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
106 inline RestoreClusterFromSnapshotRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
108
110
113 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
114 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
115 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
116 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
119 inline RestoreClusterFromSnapshotRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
120 inline RestoreClusterFromSnapshotRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
121 inline RestoreClusterFromSnapshotRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
123
125
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline RestoreClusterFromSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline RestoreClusterFromSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline RestoreClusterFromSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline RestoreClusterFromSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144
146
149 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
150 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
151 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
152 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
155 inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
156 inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
157 inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
159 private:
160
161 Aws::String m_clusterName;
162 bool m_clusterNameHasBeenSet = false;
163
164 Aws::String m_kmsKeyId;
165 bool m_kmsKeyIdHasBeenSet = false;
166
167 int m_shardCapacity;
168 bool m_shardCapacityHasBeenSet = false;
169
170 int m_shardInstanceCount;
171 bool m_shardInstanceCountHasBeenSet = false;
172
173 Aws::String m_snapshotArn;
174 bool m_snapshotArnHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_subnetIds;
177 bool m_subnetIdsHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
183 bool m_vpcSecurityGroupIdsHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace DocDBElastic
188} // namespace Aws
RestoreClusterFromSnapshotRequest & AddVpcSecurityGroupIds(const char *value)
RestoreClusterFromSnapshotRequest & AddTags(Aws::String &&key, const char *value)
RestoreClusterFromSnapshotRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
RestoreClusterFromSnapshotRequest & WithClusterName(const char *value)
RestoreClusterFromSnapshotRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
RestoreClusterFromSnapshotRequest & WithSnapshotArn(const char *value)
RestoreClusterFromSnapshotRequest & AddSubnetIds(const char *value)
RestoreClusterFromSnapshotRequest & AddTags(const char *key, const char *value)
RestoreClusterFromSnapshotRequest & AddTags(const Aws::String &key, const Aws::String &value)
RestoreClusterFromSnapshotRequest & AddVpcSecurityGroupIds(const Aws::String &value)
RestoreClusterFromSnapshotRequest & AddTags(const char *key, Aws::String &&value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
RestoreClusterFromSnapshotRequest & AddTags(const Aws::String &key, Aws::String &&value)
RestoreClusterFromSnapshotRequest & AddSubnetIds(const Aws::String &value)
RestoreClusterFromSnapshotRequest & WithSnapshotArn(const Aws::String &value)
RestoreClusterFromSnapshotRequest & AddSubnetIds(Aws::String &&value)
RestoreClusterFromSnapshotRequest & AddTags(Aws::String &&key, Aws::String &&value)
RestoreClusterFromSnapshotRequest & WithSnapshotArn(Aws::String &&value)
RestoreClusterFromSnapshotRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
RestoreClusterFromSnapshotRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
RestoreClusterFromSnapshotRequest & WithKmsKeyId(const char *value)
RestoreClusterFromSnapshotRequest & WithKmsKeyId(Aws::String &&value)
RestoreClusterFromSnapshotRequest & AddVpcSecurityGroupIds(Aws::String &&value)
RestoreClusterFromSnapshotRequest & WithKmsKeyId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RestoreClusterFromSnapshotRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RestoreClusterFromSnapshotRequest & AddTags(Aws::String &&key, const Aws::String &value)
RestoreClusterFromSnapshotRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
RestoreClusterFromSnapshotRequest & WithClusterName(const Aws::String &value)
RestoreClusterFromSnapshotRequest & WithClusterName(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector