AWS SDK for C++  1.9.124
AWS SDK for C++
CreateSecretRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace SecretsManager
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateSecret"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
60  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 
70  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 
80  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 
90  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 
100  inline CreateSecretRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
101 
110  inline CreateSecretRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 
120  inline CreateSecretRequest& WithName(const char* value) { SetName(value); return *this;}
121 
122 
151  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
152 
181  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
182 
211  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
212 
241  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
242 
271  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
272 
301  inline CreateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
302 
331  inline CreateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
332 
361  inline CreateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
362 
363 
367  inline const Aws::String& GetDescription() const{ return m_description; }
368 
372  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
373 
377  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
378 
382  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
383 
387  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
388 
392  inline CreateSecretRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
393 
397  inline CreateSecretRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
398 
402  inline CreateSecretRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
403 
404 
422  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
423 
441  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
442 
460  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
461 
479  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
480 
498  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
499 
517  inline CreateSecretRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
518 
536  inline CreateSecretRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
537 
555  inline CreateSecretRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
556 
557 
568  inline const Aws::Utils::CryptoBuffer& GetSecretBinary() const{ return m_secretBinary; }
569 
580  inline bool SecretBinaryHasBeenSet() const { return m_secretBinaryHasBeenSet; }
581 
592  inline void SetSecretBinary(const Aws::Utils::CryptoBuffer& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = value; }
593 
604  inline void SetSecretBinary(Aws::Utils::CryptoBuffer&& value) { m_secretBinaryHasBeenSet = true; m_secretBinary = std::move(value); }
605 
616  inline CreateSecretRequest& WithSecretBinary(const Aws::Utils::CryptoBuffer& value) { SetSecretBinary(value); return *this;}
617 
628  inline CreateSecretRequest& WithSecretBinary(Aws::Utils::CryptoBuffer&& value) { SetSecretBinary(std::move(value)); return *this;}
629 
630 
646  inline const Aws::String& GetSecretString() const{ return m_secretString; }
647 
663  inline bool SecretStringHasBeenSet() const { return m_secretStringHasBeenSet; }
664 
680  inline void SetSecretString(const Aws::String& value) { m_secretStringHasBeenSet = true; m_secretString = value; }
681 
697  inline void SetSecretString(Aws::String&& value) { m_secretStringHasBeenSet = true; m_secretString = std::move(value); }
698 
714  inline void SetSecretString(const char* value) { m_secretStringHasBeenSet = true; m_secretString.assign(value); }
715 
731  inline CreateSecretRequest& WithSecretString(const Aws::String& value) { SetSecretString(value); return *this;}
732 
748  inline CreateSecretRequest& WithSecretString(Aws::String&& value) { SetSecretString(std::move(value)); return *this;}
749 
765  inline CreateSecretRequest& WithSecretString(const char* value) { SetSecretString(value); return *this;}
766 
767 
801  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
802 
836  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
837 
871  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
872 
906  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
907 
941  inline CreateSecretRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
942 
976  inline CreateSecretRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
977 
1011  inline CreateSecretRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
1012 
1046  inline CreateSecretRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
1047 
1048 
1054  inline const Aws::Vector<ReplicaRegionType>& GetAddReplicaRegions() const{ return m_addReplicaRegions; }
1055 
1061  inline bool AddReplicaRegionsHasBeenSet() const { return m_addReplicaRegionsHasBeenSet; }
1062 
1068  inline void SetAddReplicaRegions(const Aws::Vector<ReplicaRegionType>& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = value; }
1069 
1075  inline void SetAddReplicaRegions(Aws::Vector<ReplicaRegionType>&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = std::move(value); }
1076 
1082  inline CreateSecretRequest& WithAddReplicaRegions(const Aws::Vector<ReplicaRegionType>& value) { SetAddReplicaRegions(value); return *this;}
1083 
1089  inline CreateSecretRequest& WithAddReplicaRegions(Aws::Vector<ReplicaRegionType>&& value) { SetAddReplicaRegions(std::move(value)); return *this;}
1090 
1096  inline CreateSecretRequest& AddAddReplicaRegions(const ReplicaRegionType& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(value); return *this; }
1097 
1103  inline CreateSecretRequest& AddAddReplicaRegions(ReplicaRegionType&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(std::move(value)); return *this; }
1104 
1105 
1110  inline bool GetForceOverwriteReplicaSecret() const{ return m_forceOverwriteReplicaSecret; }
1111 
1116  inline bool ForceOverwriteReplicaSecretHasBeenSet() const { return m_forceOverwriteReplicaSecretHasBeenSet; }
1117 
1122  inline void SetForceOverwriteReplicaSecret(bool value) { m_forceOverwriteReplicaSecretHasBeenSet = true; m_forceOverwriteReplicaSecret = value; }
1123 
1128  inline CreateSecretRequest& WithForceOverwriteReplicaSecret(bool value) { SetForceOverwriteReplicaSecret(value); return *this;}
1129 
1130  private:
1131 
1132  Aws::String m_name;
1133  bool m_nameHasBeenSet;
1134 
1135  Aws::String m_clientRequestToken;
1136  bool m_clientRequestTokenHasBeenSet;
1137 
1138  Aws::String m_description;
1139  bool m_descriptionHasBeenSet;
1140 
1141  Aws::String m_kmsKeyId;
1142  bool m_kmsKeyIdHasBeenSet;
1143 
1144  Aws::Utils::CryptoBuffer m_secretBinary;
1145  bool m_secretBinaryHasBeenSet;
1146 
1147  Aws::String m_secretString;
1148  bool m_secretStringHasBeenSet;
1149 
1150  Aws::Vector<Tag> m_tags;
1151  bool m_tagsHasBeenSet;
1152 
1153  Aws::Vector<ReplicaRegionType> m_addReplicaRegions;
1154  bool m_addReplicaRegionsHasBeenSet;
1155 
1156  bool m_forceOverwriteReplicaSecret;
1157  bool m_forceOverwriteReplicaSecretHasBeenSet;
1158  };
1159 
1160 } // namespace Model
1161 } // namespace SecretsManager
1162 } // namespace Aws
Aws::SecretsManager::Model::CreateSecretRequest::WithClientRequestToken
CreateSecretRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateSecretRequest.h:301
Aws::SecretsManager::Model::CreateSecretRequest::WithTags
CreateSecretRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSecretRequest.h:941
Aws::SecretsManager::Model::CreateSecretRequest::WithDescription
CreateSecretRequest & WithDescription(Aws::String &&value)
Definition: CreateSecretRequest.h:397
Aws::SecretsManager::Model::CreateSecretRequest::WithName
CreateSecretRequest & WithName(const Aws::String &value)
Definition: CreateSecretRequest.h:100
Aws::SecretsManager::Model::CreateSecretRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateSecretRequest.h:151
Aws::SecretsManager::Model::CreateSecretRequest::WithForceOverwriteReplicaSecret
CreateSecretRequest & WithForceOverwriteReplicaSecret(bool value)
Definition: CreateSecretRequest.h:1128
Aws::SecretsManager::Model::CreateSecretRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateSecretRequest.h:241
Aws::SecretsManager::Model::CreateSecretRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSecretRequest.h:871
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::CreateSecretRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSecretRequest.h:35
Aws::SecretsManager::Model::CreateSecretRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSecretRequest.h:70
Aws::SecretsManager::Model::CreateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateSecretRequest.h:211
Aws::SecretsManager::Model::CreateSecretRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CreateSecretRequest.h:460
Aws::SecretsManager::Model::ReplicaRegionType
Definition: ReplicaRegionType.h:34
Aws::SecretsManager::Model::CreateSecretRequest::ForceOverwriteReplicaSecretHasBeenSet
bool ForceOverwriteReplicaSecretHasBeenSet() const
Definition: CreateSecretRequest.h:1116
Aws::SecretsManager::Model::CreateSecretRequest::SetSecretString
void SetSecretString(const Aws::String &value)
Definition: CreateSecretRequest.h:680
Aws::SecretsManager::Model::CreateSecretRequest::SetSecretString
void SetSecretString(Aws::String &&value)
Definition: CreateSecretRequest.h:697
Aws::SecretsManager::Model::CreateSecretRequest::WithAddReplicaRegions
CreateSecretRequest & WithAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
Definition: CreateSecretRequest.h:1082
Aws::SecretsManager::Model::CreateSecretRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateSecretRequest.h:367
Aws::SecretsManager::Model::CreateSecretRequest::GetName
const Aws::String & GetName() const
Definition: CreateSecretRequest.h:50
Aws::SecretsManager::Model::CreateSecretRequest::WithSecretBinary
CreateSecretRequest & WithSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: CreateSecretRequest.h:616
Aws::SecretsManager::Model::CreateSecretRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::CreateSecretRequest::SecretBinaryHasBeenSet
bool SecretBinaryHasBeenSet() const
Definition: CreateSecretRequest.h:580
Aws::SecretsManager::Model::CreateSecretRequest
Definition: CreateSecretRequest.h:27
Aws::SecretsManager::Model::CreateSecretRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateSecretRequest.h:387
Aws::SecretsManager::Model::CreateSecretRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateSecretRequest.h:372
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecretsManager::Model::Tag
Definition: Tag.h:33
Aws::SecretsManager::Model::CreateSecretRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSecretRequest.h:801
Aws::SecretsManager::Model::CreateSecretRequest::SetAddReplicaRegions
void SetAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
Definition: CreateSecretRequest.h:1068
Aws::SecretsManager::Model::CreateSecretRequest::GetAddReplicaRegions
const Aws::Vector< ReplicaRegionType > & GetAddReplicaRegions() const
Definition: CreateSecretRequest.h:1054
Aws::SecretsManager::Model::CreateSecretRequest::GetSecretBinary
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
Definition: CreateSecretRequest.h:568
Aws::SecretsManager::Model::CreateSecretRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CreateSecretRequest.h:498
Aws::SecretsManager::Model::CreateSecretRequest::WithKmsKeyId
CreateSecretRequest & WithKmsKeyId(const char *value)
Definition: CreateSecretRequest.h:555
AWSVector.h
Aws::SecretsManager::Model::CreateSecretRequest::CreateSecretRequest
CreateSecretRequest()
Aws::SecretsManager::Model::CreateSecretRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateSecretRequest.h:382
Aws::SecretsManager::Model::CreateSecretRequest::SetSecretBinary
void SetSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: CreateSecretRequest.h:604
Aws::SecretsManager::Model::CreateSecretRequest::WithDescription
CreateSecretRequest & WithDescription(const char *value)
Definition: CreateSecretRequest.h:402
Aws::SecretsManager::Model::CreateSecretRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateSecretRequest.h:377
ReplicaRegionType.h
Aws::SecretsManager::Model::CreateSecretRequest::SetSecretBinary
void SetSecretBinary(const Aws::Utils::CryptoBuffer &value)
Definition: CreateSecretRequest.h:592
Aws::SecretsManager::Model::CreateSecretRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSecretRequest.h:836
Aws::SecretsManager::Model::CreateSecretRequest::WithSecretString
CreateSecretRequest & WithSecretString(const char *value)
Definition: CreateSecretRequest.h:765
Aws::SecretsManager::Model::CreateSecretRequest::SetSecretString
void SetSecretString(const char *value)
Definition: CreateSecretRequest.h:714
Aws::SecretsManager::Model::CreateSecretRequest::WithKmsKeyId
CreateSecretRequest & WithKmsKeyId(Aws::String &&value)
Definition: CreateSecretRequest.h:536
Aws::SecretsManager::Model::CreateSecretRequest::WithSecretString
CreateSecretRequest & WithSecretString(const Aws::String &value)
Definition: CreateSecretRequest.h:731
Aws::SecretsManager::Model::CreateSecretRequest::WithSecretBinary
CreateSecretRequest & WithSecretBinary(Aws::Utils::CryptoBuffer &&value)
Definition: CreateSecretRequest.h:628
Aws::SecretsManager::Model::CreateSecretRequest::WithName
CreateSecretRequest & WithName(Aws::String &&value)
Definition: CreateSecretRequest.h:110
Aws::SecretsManager::Model::CreateSecretRequest::SetAddReplicaRegions
void SetAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
Definition: CreateSecretRequest.h:1075
Aws::SecretsManager::Model::CreateSecretRequest::WithClientRequestToken
CreateSecretRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateSecretRequest.h:331
Aws::SecretsManager::Model::CreateSecretRequest::SetForceOverwriteReplicaSecret
void SetForceOverwriteReplicaSecret(bool value)
Definition: CreateSecretRequest.h:1122
AWSString.h
Aws::SecretsManager::Model::CreateSecretRequest::WithDescription
CreateSecretRequest & WithDescription(const Aws::String &value)
Definition: CreateSecretRequest.h:392
Aws::SecretsManager::Model::CreateSecretRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::CreateSecretRequest::SetName
void SetName(const char *value)
Definition: CreateSecretRequest.h:90
Aws::SecretsManager::Model::CreateSecretRequest::AddReplicaRegionsHasBeenSet
bool AddReplicaRegionsHasBeenSet() const
Definition: CreateSecretRequest.h:1061
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::Model::CreateSecretRequest::WithClientRequestToken
CreateSecretRequest & WithClientRequestToken(const char *value)
Definition: CreateSecretRequest.h:361
Aws::SecretsManager::Model::CreateSecretRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSecretRequest.h:906
Aws::SecretsManager::Model::CreateSecretRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSecretRequest.h:60
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::CreateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateSecretRequest.h:271
Aws::SecretsManager::Model::CreateSecretRequest::WithKmsKeyId
CreateSecretRequest & WithKmsKeyId(const Aws::String &value)
Definition: CreateSecretRequest.h:517
Aws::SecretsManager::Model::CreateSecretRequest::GetSecretString
const Aws::String & GetSecretString() const
Definition: CreateSecretRequest.h:646
Aws::SecretsManager::Model::CreateSecretRequest::WithName
CreateSecretRequest & WithName(const char *value)
Definition: CreateSecretRequest.h:120
Aws::Utils::CryptoBuffer
Definition: Array.h:229
Aws::SecretsManager::Model::CreateSecretRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CreateSecretRequest.h:441
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::SecretsManager::Model::CreateSecretRequest::WithSecretString
CreateSecretRequest & WithSecretString(Aws::String &&value)
Definition: CreateSecretRequest.h:748
Array.h
Aws::SecretsManager::Model::CreateSecretRequest::AddTags
CreateSecretRequest & AddTags(Tag &&value)
Definition: CreateSecretRequest.h:1046
Tag.h
Aws::SecretsManager::Model::CreateSecretRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSecretRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::CreateSecretRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CreateSecretRequest.h:479
Aws::SecretsManager::Model::CreateSecretRequest::AddTags
CreateSecretRequest & AddTags(const Tag &value)
Definition: CreateSecretRequest.h:1011
Aws::SecretsManager::Model::CreateSecretRequest::AddAddReplicaRegions
CreateSecretRequest & AddAddReplicaRegions(const ReplicaRegionType &value)
Definition: CreateSecretRequest.h:1096
Aws::SecretsManager::Model::CreateSecretRequest::AddAddReplicaRegions
CreateSecretRequest & AddAddReplicaRegions(ReplicaRegionType &&value)
Definition: CreateSecretRequest.h:1103
Aws::SecretsManager::Model::CreateSecretRequest::WithAddReplicaRegions
CreateSecretRequest & WithAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
Definition: CreateSecretRequest.h:1089
UUID.h
Aws::SecretsManager::Model::CreateSecretRequest::WithTags
CreateSecretRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSecretRequest.h:976
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::CreateSecretRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CreateSecretRequest.h:422
Aws::SecretsManager::Model::CreateSecretRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateSecretRequest.h:181
Aws::SecretsManager::Model::CreateSecretRequest::GetForceOverwriteReplicaSecret
bool GetForceOverwriteReplicaSecret() const
Definition: CreateSecretRequest.h:1110
Aws::SecretsManager::Model::CreateSecretRequest::SecretStringHasBeenSet
bool SecretStringHasBeenSet() const
Definition: CreateSecretRequest.h:663