AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dsql/DSQLRequest.h>
12#include <aws/dsql/DSQL_EXPORTS.h>
13#include <aws/dsql/model/MetricGroupRequest.h>
14#include <aws/dsql/model/MultiRegionProperties.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DSQL {
20namespace Model {
21
25 public:
26 AWS_DSQL_API CreateClusterRequest() = 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 "CreateCluster"; }
33
34 AWS_DSQL_API Aws::String SerializePayload() const override;
35
37
41 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
42 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
43 inline void SetDeletionProtectionEnabled(bool value) {
44 m_deletionProtectionEnabledHasBeenSet = true;
45 m_deletionProtectionEnabled = value;
46 }
49 return *this;
50 }
52
54
59 inline const Aws::String& GetKmsEncryptionKey() const { return m_kmsEncryptionKey; }
60 inline bool KmsEncryptionKeyHasBeenSet() const { return m_kmsEncryptionKeyHasBeenSet; }
61 template <typename KmsEncryptionKeyT = Aws::String>
62 void SetKmsEncryptionKey(KmsEncryptionKeyT&& value) {
63 m_kmsEncryptionKeyHasBeenSet = true;
64 m_kmsEncryptionKey = std::forward<KmsEncryptionKeyT>(value);
65 }
66 template <typename KmsEncryptionKeyT = Aws::String>
67 CreateClusterRequest& WithKmsEncryptionKey(KmsEncryptionKeyT&& value) {
68 SetKmsEncryptionKey(std::forward<KmsEncryptionKeyT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
93 return *this;
94 }
96
98
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template <typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) {
111 m_clientTokenHasBeenSet = true;
112 m_clientToken = std::forward<ClientTokenT>(value);
113 }
114 template <typename ClientTokenT = Aws::String>
115 CreateClusterRequest& WithClientToken(ClientTokenT&& value) {
116 SetClientToken(std::forward<ClientTokenT>(value));
117 return *this;
118 }
120
122
126 inline const MultiRegionProperties& GetMultiRegionProperties() const { return m_multiRegionProperties; }
127 inline bool MultiRegionPropertiesHasBeenSet() const { return m_multiRegionPropertiesHasBeenSet; }
128 template <typename MultiRegionPropertiesT = MultiRegionProperties>
129 void SetMultiRegionProperties(MultiRegionPropertiesT&& value) {
130 m_multiRegionPropertiesHasBeenSet = true;
131 m_multiRegionProperties = std::forward<MultiRegionPropertiesT>(value);
132 }
133 template <typename MultiRegionPropertiesT = MultiRegionProperties>
134 CreateClusterRequest& WithMultiRegionProperties(MultiRegionPropertiesT&& value) {
135 SetMultiRegionProperties(std::forward<MultiRegionPropertiesT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetPolicy() const { return m_policy; }
146 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
147 template <typename PolicyT = Aws::String>
148 void SetPolicy(PolicyT&& value) {
149 m_policyHasBeenSet = true;
150 m_policy = std::forward<PolicyT>(value);
151 }
152 template <typename PolicyT = Aws::String>
154 SetPolicy(std::forward<PolicyT>(value));
155 return *this;
156 }
158
160
166 inline const Aws::Vector<MetricGroupRequest>& GetMetricGroups() const { return m_metricGroups; }
167 inline bool MetricGroupsHasBeenSet() const { return m_metricGroupsHasBeenSet; }
168 template <typename MetricGroupsT = Aws::Vector<MetricGroupRequest>>
169 void SetMetricGroups(MetricGroupsT&& value) {
170 m_metricGroupsHasBeenSet = true;
171 m_metricGroups = std::forward<MetricGroupsT>(value);
172 }
173 template <typename MetricGroupsT = Aws::Vector<MetricGroupRequest>>
174 CreateClusterRequest& WithMetricGroups(MetricGroupsT&& value) {
175 SetMetricGroups(std::forward<MetricGroupsT>(value));
176 return *this;
177 }
178 template <typename MetricGroupsT = MetricGroupRequest>
179 CreateClusterRequest& AddMetricGroups(MetricGroupsT&& value) {
180 m_metricGroupsHasBeenSet = true;
181 m_metricGroups.emplace_back(std::forward<MetricGroupsT>(value));
182 return *this;
183 }
185
187
192 inline bool GetBypassPolicyLockoutSafetyCheck() const { return m_bypassPolicyLockoutSafetyCheck; }
193 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
194 inline void SetBypassPolicyLockoutSafetyCheck(bool value) {
195 m_bypassPolicyLockoutSafetyCheckHasBeenSet = true;
196 m_bypassPolicyLockoutSafetyCheck = value;
197 }
200 return *this;
201 }
203 private:
204 bool m_deletionProtectionEnabled{false};
205
206 Aws::String m_kmsEncryptionKey;
207
209
211
212 MultiRegionProperties m_multiRegionProperties;
213
214 Aws::String m_policy;
215
216 Aws::Vector<MetricGroupRequest> m_metricGroups;
217
218 bool m_bypassPolicyLockoutSafetyCheck{false};
219 bool m_deletionProtectionEnabledHasBeenSet = false;
220 bool m_kmsEncryptionKeyHasBeenSet = false;
221 bool m_tagsHasBeenSet = false;
222 bool m_clientTokenHasBeenSet = true;
223 bool m_multiRegionPropertiesHasBeenSet = false;
224 bool m_policyHasBeenSet = false;
225 bool m_metricGroupsHasBeenSet = false;
226 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace DSQL
231} // namespace Aws
AWS_DSQL_API CreateClusterRequest()=default
CreateClusterRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
CreateClusterRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< MetricGroupRequest > & GetMetricGroups() const
const Aws::String & GetKmsEncryptionKey() const
AWS_DSQL_API Aws::String SerializePayload() const override
CreateClusterRequest & WithDeletionProtectionEnabled(bool value)
const MultiRegionProperties & GetMultiRegionProperties() const
CreateClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateClusterRequest & WithKmsEncryptionKey(KmsEncryptionKeyT &&value)
void SetMultiRegionProperties(MultiRegionPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithMultiRegionProperties(MultiRegionPropertiesT &&value)
CreateClusterRequest & WithPolicy(PolicyT &&value)
CreateClusterRequest & WithMetricGroups(MetricGroupsT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
CreateClusterRequest & AddMetricGroups(MetricGroupsT &&value)
void SetKmsEncryptionKey(KmsEncryptionKeyT &&value)
void SetMetricGroups(MetricGroupsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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