AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSecretRequest.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 <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace SecretsManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECRETSMANAGER_API UpdateSecretRequest();
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 "UpdateSecret"; }
33
34 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
46 inline const Aws::String& GetSecretId() const{ return m_secretId; }
47 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
48 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
49 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
50 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
51 inline UpdateSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
52 inline UpdateSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
53 inline UpdateSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
55
57
73 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
74 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
75 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
76 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
77 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
78 inline UpdateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
79 inline UpdateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
80 inline UpdateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
82
84
87 inline const Aws::String& GetDescription() const{ return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 inline UpdateSecretRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
93 inline UpdateSecretRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
94 inline UpdateSecretRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
96
98
123 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
124 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
125 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
126 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
127 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
128 inline UpdateSecretRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
129 inline UpdateSecretRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
130 inline UpdateSecretRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
132
134
144 inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
145 inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
146 inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
147 inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
149 inline UpdateSecretRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
151
153
162 inline const Aws::String& GetSecretString() const{ return m_secretString; }
163 inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
164 inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
165 inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
166 inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
167 inline UpdateSecretRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
168 inline UpdateSecretRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
169 inline UpdateSecretRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
171 private:
172
173 Aws::String m_secretId;
174 bool m_secretIdHasBeenSet = false;
175
176 Aws::String m_clientRequestToken;
177 bool m_clientRequestTokenHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_kmsKeyId;
183 bool m_kmsKeyIdHasBeenSet = false;
184
185 Aws::Utils::CryptoBuffer m_secretBinary;
186 bool m_secretBinaryHasBeenSet = false;
187
188 Aws::String m_secretString;
189 bool m_secretStringHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace SecretsManager
194} // namespace Aws
UpdateSecretRequest & WithKmsKeyId(const Aws::String &value)
UpdateSecretRequest & WithClientRequestToken(Aws::String &&value)
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
UpdateSecretRequest & WithClientRequestToken(const Aws::String &value)
UpdateSecretRequest & WithDescription(const Aws::String &value)
UpdateSecretRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
UpdateSecretRequest & WithDescription(Aws::String &&value)
UpdateSecretRequest & WithSecretId(const Aws::String &value)
UpdateSecretRequest & WithSecretString(const Aws::String &value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
UpdateSecretRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
UpdateSecretRequest & WithSecretString(Aws::String &&value)
UpdateSecretRequest & WithClientRequestToken(const char *value)
UpdateSecretRequest & WithSecretString(const char *value)
UpdateSecretRequest & WithSecretId(Aws::String &&value)
UpdateSecretRequest & WithKmsKeyId(const char *value)
UpdateSecretRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateSecretRequest & WithSecretId(const char *value)
void SetClientRequestToken(const Aws::String &value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSecretRequest & WithKmsKeyId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String