AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSecretRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/secretsmanager/model/Tag.h>
13#include <aws/secretsmanager/model/ReplicaRegionType.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SecretsManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SECRETSMANAGER_API CreateSecretRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSecret"; }
36
37 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
38
39 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline CreateSecretRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline CreateSecretRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline CreateSecretRequest& WithName(const char* value) { SetName(value); return *this;}
60
62
89 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
90 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
91 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
92 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
93 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
94 inline CreateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
95 inline CreateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
96 inline CreateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
98
100
103 inline const Aws::String& GetDescription() const{ return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 inline CreateSecretRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 inline CreateSecretRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 inline CreateSecretRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
112
114
129 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
130 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
131 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
132 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
133 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
134 inline CreateSecretRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
135 inline CreateSecretRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
136 inline CreateSecretRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
138
140
150 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
151 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
152 inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
153 inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
155 inline CreateSecretRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
157
159
171 inline const Aws::String& GetSecretString() const{ return m_secretString; }
172 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
173 inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
174 inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
175 inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
176 inline CreateSecretRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
177 inline CreateSecretRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
178 inline CreateSecretRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
180
182
208 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
211 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
212 inline CreateSecretRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
213 inline CreateSecretRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
214 inline CreateSecretRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
215 inline CreateSecretRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
217
219
222 inline const Aws::Vector<ReplicaRegionType>& GetAddReplicaRegions() const{ return m_addReplicaRegions; }
223 inline bool AddReplicaRegionsHasBeenSet() const { return m_addReplicaRegionsHasBeenSet; }
224 inline void SetAddReplicaRegions(const Aws::Vector<ReplicaRegionType>& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = value; }
225 inline void SetAddReplicaRegions(Aws::Vector<ReplicaRegionType>&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = std::move(value); }
228 inline CreateSecretRequest& AddAddReplicaRegions(const ReplicaRegionType& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(value); return *this; }
229 inline CreateSecretRequest& AddAddReplicaRegions(ReplicaRegionType&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(std::move(value)); return *this; }
231
233
237 inline bool GetForceOverwriteReplicaSecret() const{ return m_forceOverwriteReplicaSecret; }
238 inline bool ForceOverwriteReplicaSecretHasBeenSet() const { return m_forceOverwriteReplicaSecretHasBeenSet; }
239 inline void SetForceOverwriteReplicaSecret(bool value) { m_forceOverwriteReplicaSecretHasBeenSet = true; m_forceOverwriteReplicaSecret = value; }
242 private:
243
244 Aws::String m_name;
245 bool m_nameHasBeenSet = false;
246
247 Aws::String m_clientRequestToken;
248 bool m_clientRequestTokenHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_kmsKeyId;
254 bool m_kmsKeyIdHasBeenSet = false;
255
256 Aws::Utils::CryptoBuffer m_secretBinary;
257 bool m_secretBinaryHasBeenSet = false;
258
259 Aws::String m_secretString;
260 bool m_secretStringHasBeenSet = false;
261
262 Aws::Vector<Tag> m_tags;
263 bool m_tagsHasBeenSet = false;
264
265 Aws::Vector<ReplicaRegionType> m_addReplicaRegions;
266 bool m_addReplicaRegionsHasBeenSet = false;
267
268 bool m_forceOverwriteReplicaSecret;
269 bool m_forceOverwriteReplicaSecretHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace SecretsManager
274} // namespace Aws
CreateSecretRequest & WithClientRequestToken(Aws::String &&value)
CreateSecretRequest & AddAddReplicaRegions(ReplicaRegionType &&value)
CreateSecretRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
CreateSecretRequest & WithKmsKeyId(const Aws::String &value)
CreateSecretRequest & WithKmsKeyId(Aws::String &&value)
CreateSecretRequest & WithName(const Aws::String &value)
CreateSecretRequest & WithClientRequestToken(const char *value)
CreateSecretRequest & AddAddReplicaRegions(const ReplicaRegionType &value)
CreateSecretRequest & WithClientRequestToken(const Aws::String &value)
CreateSecretRequest & WithAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
CreateSecretRequest & WithName(Aws::String &&value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
const Aws::Vector< ReplicaRegionType > & GetAddReplicaRegions() const
void SetTags(const Aws::Vector< Tag > &value)
CreateSecretRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
virtual const char * GetServiceRequestName() const override
CreateSecretRequest & WithDescription(const char *value)
CreateSecretRequest & WithDescription(Aws::String &&value)
CreateSecretRequest & WithSecretString(Aws::String &&value)
CreateSecretRequest & WithSecretString(const char *value)
CreateSecretRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
void SetAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
void SetClientRequestToken(const Aws::String &value)
CreateSecretRequest & WithDescription(const Aws::String &value)
CreateSecretRequest & WithForceOverwriteReplicaSecret(bool value)
CreateSecretRequest & AddTags(const Tag &value)
CreateSecretRequest & WithName(const char *value)
CreateSecretRequest & WithKmsKeyId(const char *value)
void SetAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
CreateSecretRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSecretRequest & WithSecretString(const Aws::String &value)
CreateSecretRequest & WithAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector