AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutSecretValueRequest.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 <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SecretsManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECRETSMANAGER_API PutSecretValueRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutSecretValue"; }
34
35 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline const Aws::String& GetSecretId() const { return m_secretId; }
49 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
50 template<typename SecretIdT = Aws::String>
51 void SetSecretId(SecretIdT&& value) { m_secretIdHasBeenSet = true; m_secretId = std::forward<SecretIdT>(value); }
52 template<typename SecretIdT = Aws::String>
53 PutSecretValueRequest& WithSecretId(SecretIdT&& value) { SetSecretId(std::forward<SecretIdT>(value)); return *this;}
55
57
82 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
83 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
84 template<typename ClientRequestTokenT = Aws::String>
85 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
86 template<typename ClientRequestTokenT = Aws::String>
87 PutSecretValueRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
89
91
101 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const { return m_secretBinary; }
102 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
103 template<typename SecretBinaryT = Aws::Utils::CryptoBuffer>
104 void SetSecretBinary(SecretBinaryT&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::forward<SecretBinaryT>(value); }
105 template<typename SecretBinaryT = Aws::Utils::CryptoBuffer>
106 PutSecretValueRequest& WithSecretBinary(SecretBinaryT&& value) { SetSecretBinary(std::forward<SecretBinaryT>(value)); return *this;}
108
110
119 inline const Aws::String& GetSecretString() const { return m_secretString; }
120 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
121 template<typename SecretStringT = Aws::String>
122 void SetSecretString(SecretStringT&& value) { m_secretStringHasBeenSet = true; m_secretString = std::forward<SecretStringT>(value); }
123 template<typename SecretStringT = Aws::String>
124 PutSecretValueRequest& WithSecretString(SecretStringT&& value) { SetSecretString(std::forward<SecretStringT>(value)); return *this;}
126
128
140 inline const Aws::Vector<Aws::String>& GetVersionStages() const { return m_versionStages; }
141 inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
142 template<typename VersionStagesT = Aws::Vector<Aws::String>>
143 void SetVersionStages(VersionStagesT&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::forward<VersionStagesT>(value); }
144 template<typename VersionStagesT = Aws::Vector<Aws::String>>
145 PutSecretValueRequest& WithVersionStages(VersionStagesT&& value) { SetVersionStages(std::forward<VersionStagesT>(value)); return *this;}
146 template<typename VersionStagesT = Aws::String>
147 PutSecretValueRequest& AddVersionStages(VersionStagesT&& value) { m_versionStagesHasBeenSet = true; m_versionStages.emplace_back(std::forward<VersionStagesT>(value)); return *this; }
149
151
162 inline const Aws::String& GetRotationToken() const { return m_rotationToken; }
163 inline bool RotationTokenHasBeenSet() const { return m_rotationTokenHasBeenSet; }
164 template<typename RotationTokenT = Aws::String>
165 void SetRotationToken(RotationTokenT&& value) { m_rotationTokenHasBeenSet = true; m_rotationToken = std::forward<RotationTokenT>(value); }
166 template<typename RotationTokenT = Aws::String>
167 PutSecretValueRequest& WithRotationToken(RotationTokenT&& value) { SetRotationToken(std::forward<RotationTokenT>(value)); return *this;}
169 private:
170
171 Aws::String m_secretId;
172 bool m_secretIdHasBeenSet = false;
173
174 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
175 bool m_clientRequestTokenHasBeenSet = true;
176
177 Aws::Utils::CryptoBuffer m_secretBinary{};
178 bool m_secretBinaryHasBeenSet = false;
179
180 Aws::String m_secretString;
181 bool m_secretStringHasBeenSet = false;
182
183 Aws::Vector<Aws::String> m_versionStages;
184 bool m_versionStagesHasBeenSet = false;
185
186 Aws::String m_rotationToken;
187 bool m_rotationTokenHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SecretsManager
192} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SECRETSMANAGER_API PutSecretValueRequest()=default
PutSecretValueRequest & AddVersionStages(VersionStagesT &&value)
PutSecretValueRequest & WithSecretId(SecretIdT &&value)
const Aws::Vector< Aws::String > & GetVersionStages() const
PutSecretValueRequest & WithVersionStages(VersionStagesT &&value)
PutSecretValueRequest & WithRotationToken(RotationTokenT &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
PutSecretValueRequest & WithSecretString(SecretStringT &&value)
PutSecretValueRequest & WithSecretBinary(SecretBinaryT &&value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
PutSecretValueRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() 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
std::vector< T, Aws::Allocator< T > > Vector