AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ClusterNameT = Aws::String>
44 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
45 template<typename ClusterNameT = Aws::String>
46 RestoreClusterFromSnapshotRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
48
50
60 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
61 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
62 template<typename KmsKeyIdT = Aws::String>
63 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
64 template<typename KmsKeyIdT = Aws::String>
65 RestoreClusterFromSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
67
69
72 inline int GetShardCapacity() const { return m_shardCapacity; }
73 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
74 inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; }
75 inline RestoreClusterFromSnapshotRequest& WithShardCapacity(int value) { SetShardCapacity(value); return *this;}
77
79
85 inline int GetShardInstanceCount() const { return m_shardInstanceCount; }
86 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
87 inline void SetShardInstanceCount(int value) { m_shardInstanceCountHasBeenSet = true; m_shardInstanceCount = value; }
90
92
95 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
96 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
97 template<typename SnapshotArnT = Aws::String>
98 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
99 template<typename SnapshotArnT = Aws::String>
100 RestoreClusterFromSnapshotRequest& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
108 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
109 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
110 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
111 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
112 RestoreClusterFromSnapshotRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
113 template<typename SubnetIdsT = Aws::String>
114 RestoreClusterFromSnapshotRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
116
118
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 RestoreClusterFromSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
129 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 RestoreClusterFromSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
132 }
134
136
139 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
140 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
141 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
142 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
143 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
144 RestoreClusterFromSnapshotRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
145 template<typename VpcSecurityGroupIdsT = Aws::String>
146 RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
148 private:
149
150 Aws::String m_clusterName;
151 bool m_clusterNameHasBeenSet = false;
152
153 Aws::String m_kmsKeyId;
154 bool m_kmsKeyIdHasBeenSet = false;
155
156 int m_shardCapacity{0};
157 bool m_shardCapacityHasBeenSet = false;
158
159 int m_shardInstanceCount{0};
160 bool m_shardInstanceCountHasBeenSet = false;
161
162 Aws::String m_snapshotArn;
163 bool m_snapshotArnHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_subnetIds;
166 bool m_subnetIdsHasBeenSet = false;
167
169 bool m_tagsHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
172 bool m_vpcSecurityGroupIdsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace DocDBElastic
177} // namespace Aws
RestoreClusterFromSnapshotRequest & WithClusterName(ClusterNameT &&value)
RestoreClusterFromSnapshotRequest & WithSnapshotArn(SnapshotArnT &&value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
RestoreClusterFromSnapshotRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RestoreClusterFromSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
RestoreClusterFromSnapshotRequest & AddSubnetIds(SubnetIdsT &&value)
RestoreClusterFromSnapshotRequest & WithSubnetIds(SubnetIdsT &&value)
RestoreClusterFromSnapshotRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_DOCDBELASTIC_API RestoreClusterFromSnapshotRequest()=default
RestoreClusterFromSnapshotRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&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