AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
51 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
52 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
53 inline PutSecretValueRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
54 inline PutSecretValueRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
55 inline PutSecretValueRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
57
59
84 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
85 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
86 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
87 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
88 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
90 inline PutSecretValueRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
91 inline PutSecretValueRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
93
95
105 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
106 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
107 inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
108 inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
110 inline PutSecretValueRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
112
114
123 inline const Aws::String& GetSecretString() const{ return m_secretString; }
124 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
125 inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
126 inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
127 inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
128 inline PutSecretValueRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
129 inline PutSecretValueRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
130 inline PutSecretValueRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
132
134
146 inline const Aws::Vector<Aws::String>& GetVersionStages() const{ return m_versionStages; }
147 inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
148 inline void SetVersionStages(const Aws::Vector<Aws::String>& value) { m_versionStagesHasBeenSet = true; m_versionStages = value; }
149 inline void SetVersionStages(Aws::Vector<Aws::String>&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::move(value); }
151 inline PutSecretValueRequest& WithVersionStages(Aws::Vector<Aws::String>&& value) { SetVersionStages(std::move(value)); return *this;}
152 inline PutSecretValueRequest& AddVersionStages(const Aws::String& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
153 inline PutSecretValueRequest& AddVersionStages(Aws::String&& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(std::move(value)); return *this; }
154 inline PutSecretValueRequest& AddVersionStages(const char* value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
156
158
169 inline const Aws::String& GetRotationToken() const{ return m_rotationToken; }
170 inline bool RotationTokenHasBeenSet() const { return m_rotationTokenHasBeenSet; }
171 inline void SetRotationToken(const Aws::String& value) { m_rotationTokenHasBeenSet = true; m_rotationToken = value; }
172 inline void SetRotationToken(Aws::String&& value) { m_rotationTokenHasBeenSet = true; m_rotationToken = std::move(value); }
173 inline void SetRotationToken(const char* value) { m_rotationTokenHasBeenSet = true; m_rotationToken.assign(value); }
174 inline PutSecretValueRequest& WithRotationToken(const Aws::String& value) { SetRotationToken(value); return *this;}
175 inline PutSecretValueRequest& WithRotationToken(Aws::String&& value) { SetRotationToken(std::move(value)); return *this;}
176 inline PutSecretValueRequest& WithRotationToken(const char* value) { SetRotationToken(value); return *this;}
178 private:
179
180 Aws::String m_secretId;
181 bool m_secretIdHasBeenSet = false;
182
183 Aws::String m_clientRequestToken;
184 bool m_clientRequestTokenHasBeenSet = false;
185
186 Aws::Utils::CryptoBuffer m_secretBinary;
187 bool m_secretBinaryHasBeenSet = false;
188
189 Aws::String m_secretString;
190 bool m_secretStringHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_versionStages;
193 bool m_versionStagesHasBeenSet = false;
194
195 Aws::String m_rotationToken;
196 bool m_rotationTokenHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace SecretsManager
201} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetVersionStages(const Aws::Vector< Aws::String > &value)
PutSecretValueRequest & WithSecretId(const char *value)
PutSecretValueRequest & WithSecretString(const char *value)
PutSecretValueRequest & WithRotationToken(Aws::String &&value)
void SetVersionStages(Aws::Vector< Aws::String > &&value)
PutSecretValueRequest & WithRotationToken(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVersionStages() const
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
PutSecretValueRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
PutSecretValueRequest & WithSecretString(Aws::String &&value)
PutSecretValueRequest & WithVersionStages(const Aws::Vector< Aws::String > &value)
PutSecretValueRequest & WithClientRequestToken(const char *value)
PutSecretValueRequest & AddVersionStages(Aws::String &&value)
PutSecretValueRequest & WithSecretId(Aws::String &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutSecretValueRequest & WithVersionStages(Aws::Vector< Aws::String > &&value)
PutSecretValueRequest & WithSecretString(const Aws::String &value)
PutSecretValueRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
PutSecretValueRequest & WithClientRequestToken(Aws::String &&value)
PutSecretValueRequest & WithRotationToken(const char *value)
PutSecretValueRequest & WithSecretId(const Aws::String &value)
PutSecretValueRequest & WithClientRequestToken(const Aws::String &value)
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
PutSecretValueRequest & AddVersionStages(const char *value)
PutSecretValueRequest & AddVersionStages(const Aws::String &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