AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateSecretRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/secretsmanager/SecretsManagerRequest.h>
11#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecretsManager {
17namespace Model {
18
22 public:
23 AWS_SECRETSMANAGER_API UpdateSecretRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSecret"; }
30
31 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
42 inline const Aws::String& GetSecretId() const { return m_secretId; }
43 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
44 template <typename SecretIdT = Aws::String>
45 void SetSecretId(SecretIdT&& value) {
46 m_secretIdHasBeenSet = true;
47 m_secretId = std::forward<SecretIdT>(value);
48 }
49 template <typename SecretIdT = Aws::String>
50 UpdateSecretRequest& WithSecretId(SecretIdT&& value) {
51 SetSecretId(std::forward<SecretIdT>(value));
52 return *this;
53 }
55
57
73 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
74 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
75 template <typename ClientRequestTokenT = Aws::String>
76 void SetClientRequestToken(ClientRequestTokenT&& value) {
77 m_clientRequestTokenHasBeenSet = true;
78 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
79 }
80 template <typename ClientRequestTokenT = Aws::String>
81 UpdateSecretRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
82 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 UpdateSecretRequest& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
131 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
132 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
133 template <typename KmsKeyIdT = Aws::String>
134 void SetKmsKeyId(KmsKeyIdT&& value) {
135 m_kmsKeyIdHasBeenSet = true;
136 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
137 }
138 template <typename KmsKeyIdT = Aws::String>
139 UpdateSecretRequest& WithKmsKeyId(KmsKeyIdT&& value) {
140 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
141 return *this;
142 }
144
146
156 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const { return m_secretBinary; }
157 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
158 template <typename SecretBinaryT = Aws::Utils::CryptoBuffer>
159 void SetSecretBinary(SecretBinaryT&& value) {
160 m_secretBinaryHasBeenSet = true;
161 m_secretBinary = std::forward<SecretBinaryT>(value);
162 }
163 template <typename SecretBinaryT = Aws::Utils::CryptoBuffer>
164 UpdateSecretRequest& WithSecretBinary(SecretBinaryT&& value) {
165 SetSecretBinary(std::forward<SecretBinaryT>(value));
166 return *this;
167 }
169
171
180 inline const Aws::String& GetSecretString() const { return m_secretString; }
181 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
182 template <typename SecretStringT = Aws::String>
183 void SetSecretString(SecretStringT&& value) {
184 m_secretStringHasBeenSet = true;
185 m_secretString = std::forward<SecretStringT>(value);
186 }
187 template <typename SecretStringT = Aws::String>
188 UpdateSecretRequest& WithSecretString(SecretStringT&& value) {
189 SetSecretString(std::forward<SecretStringT>(value));
190 return *this;
191 }
193
195
201 inline const Aws::String& GetType() const { return m_type; }
202 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
203 template <typename TypeT = Aws::String>
204 void SetType(TypeT&& value) {
205 m_typeHasBeenSet = true;
206 m_type = std::forward<TypeT>(value);
207 }
208 template <typename TypeT = Aws::String>
210 SetType(std::forward<TypeT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_secretId;
216
217 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
218
219 Aws::String m_description;
220
221 Aws::String m_kmsKeyId;
222
223 Aws::Utils::CryptoBuffer m_secretBinary{};
224
225 Aws::String m_secretString;
226
227 Aws::String m_type;
228 bool m_secretIdHasBeenSet = false;
229 bool m_clientRequestTokenHasBeenSet = true;
230 bool m_descriptionHasBeenSet = false;
231 bool m_kmsKeyIdHasBeenSet = false;
232 bool m_secretBinaryHasBeenSet = false;
233 bool m_secretStringHasBeenSet = false;
234 bool m_typeHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace SecretsManager
239} // namespace Aws
AWS_SECRETSMANAGER_API UpdateSecretRequest()=default
UpdateSecretRequest & WithSecretId(SecretIdT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
UpdateSecretRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateSecretRequest & WithSecretString(SecretStringT &&value)
UpdateSecretRequest & WithDescription(DescriptionT &&value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
UpdateSecretRequest & WithSecretBinary(SecretBinaryT &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
UpdateSecretRequest & WithType(TypeT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSecretRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String