AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateSecretRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace SecretsManager
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetSecretId() const{ return m_secretId; }
46 
53  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
54 
61  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
62 
69  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
70 
77  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
78 
85  inline UpdateSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
86 
93  inline UpdateSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
94 
101  inline UpdateSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
102 
103 
131  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
132 
160  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
161 
189  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
190 
218  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
219 
247  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
248 
276  inline UpdateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
277 
305  inline UpdateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
306 
334  inline UpdateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
335 
336 
340  inline const Aws::String& GetDescription() const{ return m_description; }
341 
345  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
346 
350  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
351 
355  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
356 
360  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
361 
365  inline UpdateSecretRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
366 
370  inline UpdateSecretRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
371 
375  inline UpdateSecretRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
376 
377 
393  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
394 
410  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
411 
427  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
428 
444  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
445 
461  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
462 
478  inline UpdateSecretRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
479 
495  inline UpdateSecretRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
496 
512  inline UpdateSecretRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
513 
514 
524  inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
525 
535  inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
536 
546  inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
547 
557  inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
558 
568  inline UpdateSecretRequest& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;}
569 
579  inline UpdateSecretRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
580 
581 
597  inline const Aws::String& GetSecretString() const{ return m_secretString; }
598 
614  inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
615 
631  inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
632 
648  inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
649 
665  inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
666 
682  inline UpdateSecretRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
683 
699  inline UpdateSecretRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
700 
716  inline UpdateSecretRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
717 
718  private:
719 
720  Aws::String m_secretId;
721  bool m_secretIdHasBeenSet;
722 
723  Aws::String m_clientRequestToken;
724  bool m_clientRequestTokenHasBeenSet;
725 
726  Aws::String m_description;
727  bool m_descriptionHasBeenSet;
728 
729  Aws::String m_kmsKeyId;
730  bool m_kmsKeyIdHasBeenSet;
731 
732  Aws::Utils::CryptoBuffer m_secretBinary;
733  bool m_secretBinaryHasBeenSet;
734 
735  Aws::String m_secretString;
736  bool m_secretStringHasBeenSet;
737  };
738 
739 } // namespace Model
740 } // namespace SecretsManager
741 } // namespace Aws
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretString
UpdateSecretRequest & WithSecretString(Aws::String &&value)
Definition: UpdateSecretRequest.h:699
Aws::SecretsManager::Model::UpdateSecretRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateSecretRequest.h:360
Aws::SecretsManager::Model::UpdateSecretRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: UpdateSecretRequest.h:53
Aws::SecretsManager::Model::UpdateSecretRequest::WithKmsKeyId
UpdateSecretRequest & WithKmsKeyId(const char *value)
Definition: UpdateSecretRequest.h:512
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretBinary
UpdateSecretRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: UpdateSecretRequest.h:579
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretString
void SetSecretString(const char *value)
Definition: UpdateSecretRequest.h:665
Aws::SecretsManager::Model::UpdateSecretRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: UpdateSecretRequest.h:461
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretBinary
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: UpdateSecretRequest.h:546
Aws::SecretsManager::Model::UpdateSecretRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: UpdateSecretRequest.h:160
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretString
void SetSecretString(Aws::String &&value)
Definition: UpdateSecretRequest.h:648
Aws::SecretsManager::Model::UpdateSecretRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::UpdateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: UpdateSecretRequest.h:247
Aws::SecretsManager::Model::UpdateSecretRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateSecretRequest.h:350
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretBinary
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: UpdateSecretRequest.h:557
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretString
void SetSecretString(const Aws::String &value)
Definition: UpdateSecretRequest.h:631
Aws::SecretsManager::Model::UpdateSecretRequest::WithKmsKeyId
UpdateSecretRequest & WithKmsKeyId(Aws::String &&value)
Definition: UpdateSecretRequest.h:495
Aws::SecretsManager::Model::UpdateSecretRequest::WithDescription
UpdateSecretRequest & WithDescription(Aws::String &&value)
Definition: UpdateSecretRequest.h:370
Aws::SecretsManager::Model::UpdateSecretRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateSecretRequest.h:355
Aws::SecretsManager::Model::UpdateSecretRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: UpdateSecretRequest.h:131
Aws::SecretsManager::Model::UpdateSecretRequest::GetSecretString
const Aws::String & GetSecretString() const
Definition: UpdateSecretRequest.h:597
Aws::SecretsManager::Model::UpdateSecretRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateSecretRequest.h:340
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretString
UpdateSecretRequest & WithSecretString(const Aws::String &value)
Definition: UpdateSecretRequest.h:682
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretBinary
UpdateSecretRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: UpdateSecretRequest.h:568
Aws::SecretsManager::Model::UpdateSecretRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: UpdateSecretRequest.h:444
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretId
void SetSecretId(const char *value)
Definition: UpdateSecretRequest.h:77
Aws::SecretsManager::Model::UpdateSecretRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: UpdateSecretRequest.h:45
AWSString.h
Aws::SecretsManager::Model::UpdateSecretRequest::UpdateSecretRequest
UpdateSecretRequest()
Aws::SecretsManager::Model::UpdateSecretRequest::GetSecretBinary
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
Definition: UpdateSecretRequest.h:524
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretId
UpdateSecretRequest & WithSecretId(const Aws::String &value)
Definition: UpdateSecretRequest.h:85
Aws::SecretsManager::Model::UpdateSecretRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: UpdateSecretRequest.h:410
Aws::SecretsManager::Model::UpdateSecretRequest::WithClientRequestToken
UpdateSecretRequest & WithClientRequestToken(const char *value)
Definition: UpdateSecretRequest.h:334
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::Model::UpdateSecretRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: UpdateSecretRequest.h:393
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: UpdateSecretRequest.h:61
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::Utils::CryptoBuffer
Definition: Array.h:229
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretString
UpdateSecretRequest & WithSecretString(const char *value)
Definition: UpdateSecretRequest.h:716
Aws::SecretsManager::Model::UpdateSecretRequest::WithDescription
UpdateSecretRequest & WithDescription(const Aws::String &value)
Definition: UpdateSecretRequest.h:365
Aws
Definition: AccessManagementClient.h:15
Aws::SecretsManager::Model::UpdateSecretRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SecretsManagerRequest.h
Aws::SecretsManager::Model::UpdateSecretRequest::WithClientRequestToken
UpdateSecretRequest & WithClientRequestToken(Aws::String &&value)
Definition: UpdateSecretRequest.h:305
Aws::SecretsManager::Model::UpdateSecretRequest::WithDescription
UpdateSecretRequest & WithDescription(const char *value)
Definition: UpdateSecretRequest.h:375
Array.h
Aws::SecretsManager::Model::UpdateSecretRequest::SecretStringHasBeenSet
bool SecretStringHasBeenSet() const
Definition: UpdateSecretRequest.h:614
Aws::SecretsManager::Model::UpdateSecretRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: UpdateSecretRequest.h:69
Aws::SecretsManager::Model::UpdateSecretRequest
Definition: UpdateSecretRequest.h:24
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::UpdateSecretRequest::WithKmsKeyId
UpdateSecretRequest & WithKmsKeyId(const Aws::String &value)
Definition: UpdateSecretRequest.h:478
Aws::SecretsManager::Model::UpdateSecretRequest::WithClientRequestToken
UpdateSecretRequest & WithClientRequestToken(const Aws::String &value)
Definition: UpdateSecretRequest.h:276
Aws::SecretsManager::Model::UpdateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: UpdateSecretRequest.h:189
Aws::SecretsManager::Model::UpdateSecretRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSecretRequest.h:32
Aws::SecretsManager::Model::UpdateSecretRequest::SecretBinaryHasBeenSet
bool SecretBinaryHasBeenSet() const
Definition: UpdateSecretRequest.h:535
UUID.h
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretId
UpdateSecretRequest & WithSecretId(const char *value)
Definition: UpdateSecretRequest.h:101
Aws::SecretsManager::Model::UpdateSecretRequest::WithSecretId
UpdateSecretRequest & WithSecretId(Aws::String &&value)
Definition: UpdateSecretRequest.h:93
Aws::SecretsManager::Model::UpdateSecretRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateSecretRequest.h:345
Aws::SecretsManager::Model::UpdateSecretRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: UpdateSecretRequest.h:218
Aws::SecretsManager::Model::UpdateSecretRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: UpdateSecretRequest.h:427