AWS SDK for C++  1.9.125
AWS SDK for C++
PutSecretValueRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace SecretsManager
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
38 
39 
46  inline const Aws::String& GetSecretId() const{ return m_secretId; }
47 
54  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
55 
62  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
63 
70  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
71 
78  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
79 
86  inline PutSecretValueRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
87 
94  inline PutSecretValueRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
95 
102  inline PutSecretValueRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
103 
104 
131  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
132 
159  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
160 
187  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
188 
215  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
216 
243  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
244 
271  inline PutSecretValueRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
272 
299  inline PutSecretValueRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
300 
327  inline PutSecretValueRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
328 
329 
339  inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
340 
350  inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
351 
361  inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
362 
372  inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
373 
383  inline PutSecretValueRequest& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;}
384 
394  inline PutSecretValueRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
395 
396 
412  inline const Aws::String& GetSecretString() const{ return m_secretString; }
413 
429  inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
430 
446  inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
447 
463  inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
464 
480  inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
481 
497  inline PutSecretValueRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
498 
514  inline PutSecretValueRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
515 
531  inline PutSecretValueRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
532 
533 
545  inline const Aws::Vector<Aws::String>& GetVersionStages() const{ return m_versionStages; }
546 
558  inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
559 
571  inline void SetVersionStages(const Aws::Vector<Aws::String>& value) { m_versionStagesHasBeenSet = true; m_versionStages = value; }
572 
584  inline void SetVersionStages(Aws::Vector<Aws::String>&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::move(value); }
585 
597  inline PutSecretValueRequest& WithVersionStages(const Aws::Vector<Aws::String>& value) { SetVersionStages(value); return *this;}
598 
610  inline PutSecretValueRequest& WithVersionStages(Aws::Vector<Aws::String>&& value) { SetVersionStages(std::move(value)); return *this;}
611 
623  inline PutSecretValueRequest& AddVersionStages(const Aws::String& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
624 
636  inline PutSecretValueRequest& AddVersionStages(Aws::String&& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(std::move(value)); return *this; }
637 
649  inline PutSecretValueRequest& AddVersionStages(const char* value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
650 
651  private:
652 
653  Aws::String m_secretId;
654  bool m_secretIdHasBeenSet;
655 
656  Aws::String m_clientRequestToken;
657  bool m_clientRequestTokenHasBeenSet;
658 
659  Aws::Utils::CryptoBuffer m_secretBinary;
660  bool m_secretBinaryHasBeenSet;
661 
662  Aws::String m_secretString;
663  bool m_secretStringHasBeenSet;
664 
665  Aws::Vector<Aws::String> m_versionStages;
666  bool m_versionStagesHasBeenSet;
667  };
668 
669 } // namespace Model
670 } // namespace SecretsManager
671 } // namespace Aws
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretBinary
PutSecretValueRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: PutSecretValueRequest.h:394
Aws::SecretsManager::Model::PutSecretValueRequest::SetVersionStages
void SetVersionStages(Aws::Vector< Aws::String > &&value)
Definition: PutSecretValueRequest.h:584
Aws::SecretsManager::Model::PutSecretValueRequest::WithClientRequestToken
PutSecretValueRequest & WithClientRequestToken(const Aws::String &value)
Definition: PutSecretValueRequest.h:271
Aws::SecretsManager::Model::PutSecretValueRequest::WithClientRequestToken
PutSecretValueRequest & WithClientRequestToken(const char *value)
Definition: PutSecretValueRequest.h:327
Aws::SecretsManager::Model::PutSecretValueRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: PutSecretValueRequest.h:62
Aws::SecretsManager::Model::PutSecretValueRequest::WithVersionStages
PutSecretValueRequest & WithVersionStages(const Aws::Vector< Aws::String > &value)
Definition: PutSecretValueRequest.h:597
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretId
void SetSecretId(const char *value)
Definition: PutSecretValueRequest.h:78
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretBinary
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: PutSecretValueRequest.h:372
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretString
void SetSecretString(const Aws::String &value)
Definition: PutSecretValueRequest.h:446
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::PutSecretValueRequest::SecretBinaryHasBeenSet
bool SecretBinaryHasBeenSet() const
Definition: PutSecretValueRequest.h:350
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretString
PutSecretValueRequest & WithSecretString(const Aws::String &value)
Definition: PutSecretValueRequest.h:497
Aws::SecretsManager::Model::PutSecretValueRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: PutSecretValueRequest.h:243
Aws::SecretsManager::Model::PutSecretValueRequest::WithVersionStages
PutSecretValueRequest & WithVersionStages(Aws::Vector< Aws::String > &&value)
Definition: PutSecretValueRequest.h:610
Aws::SecretsManager::Model::PutSecretValueRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: PutSecretValueRequest.h:46
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretId
PutSecretValueRequest & WithSecretId(const Aws::String &value)
Definition: PutSecretValueRequest.h:86
Aws::SecretsManager::Model::PutSecretValueRequest::GetSecretString
const Aws::String & GetSecretString() const
Definition: PutSecretValueRequest.h:412
Aws::SecretsManager::Model::PutSecretValueRequest::VersionStagesHasBeenSet
bool VersionStagesHasBeenSet() const
Definition: PutSecretValueRequest.h:558
Aws::SecretsManager::Model::PutSecretValueRequest::GetVersionStages
const Aws::Vector< Aws::String > & GetVersionStages() const
Definition: PutSecretValueRequest.h:545
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecretsManager::Model::PutSecretValueRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: PutSecretValueRequest.h:131
Aws::SecretsManager::Model::PutSecretValueRequest::AddVersionStages
PutSecretValueRequest & AddVersionStages(const Aws::String &value)
Definition: PutSecretValueRequest.h:623
AWSVector.h
Aws::SecretsManager::Model::PutSecretValueRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: PutSecretValueRequest.h:187
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretBinary
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: PutSecretValueRequest.h:361
Aws::SecretsManager::Model::PutSecretValueRequest::SecretStringHasBeenSet
bool SecretStringHasBeenSet() const
Definition: PutSecretValueRequest.h:429
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: PutSecretValueRequest.h:70
Aws::SecretsManager::Model::PutSecretValueRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: PutSecretValueRequest.h:159
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretId
PutSecretValueRequest & WithSecretId(Aws::String &&value)
Definition: PutSecretValueRequest.h:94
AWSString.h
Aws::SecretsManager::Model::PutSecretValueRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: PutSecretValueRequest.h:215
Aws::SecretsManager::Model::PutSecretValueRequest::GetSecretBinary
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
Definition: PutSecretValueRequest.h:339
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretString
void SetSecretString(const char *value)
Definition: PutSecretValueRequest.h:480
Aws::SecretsManager::Model::PutSecretValueRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::PutSecretValueRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: PutSecretValueRequest.h:54
Aws::SecretsManager::Model::PutSecretValueRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutSecretValueRequest.h:33
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::Utils::CryptoBuffer
Definition: Array.h:229
Aws::SecretsManager::Model::PutSecretValueRequest::WithClientRequestToken
PutSecretValueRequest & WithClientRequestToken(Aws::String &&value)
Definition: PutSecretValueRequest.h:299
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretId
PutSecretValueRequest & WithSecretId(const char *value)
Definition: PutSecretValueRequest.h:102
Aws::SecretsManager::Model::PutSecretValueRequest::AddVersionStages
PutSecretValueRequest & AddVersionStages(const char *value)
Definition: PutSecretValueRequest.h:649
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretBinary
PutSecretValueRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: PutSecretValueRequest.h:383
Aws::SecretsManager::Model::PutSecretValueRequest
Definition: PutSecretValueRequest.h:25
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Array.h
Aws::SecretsManager::Model::PutSecretValueRequest::SetVersionStages
void SetVersionStages(const Aws::Vector< Aws::String > &value)
Definition: PutSecretValueRequest.h:571
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretString
PutSecretValueRequest & WithSecretString(const char *value)
Definition: PutSecretValueRequest.h:531
Aws::SecretsManager::Model::PutSecretValueRequest::WithSecretString
PutSecretValueRequest & WithSecretString(Aws::String &&value)
Definition: PutSecretValueRequest.h:514
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::PutSecretValueRequest::PutSecretValueRequest
PutSecretValueRequest()
Aws::SecretsManager::Model::PutSecretValueRequest::SetSecretString
void SetSecretString(Aws::String &&value)
Definition: PutSecretValueRequest.h:463
UUID.h
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::PutSecretValueRequest::AddVersionStages
PutSecretValueRequest & AddVersionStages(Aws::String &&value)
Definition: PutSecretValueRequest.h:636