AWS SDK for C++  1.9.130
AWS SDK for C++
RestoreSecretRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SecretsManager
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RestoreSecret"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetSecretId() const{ return m_secretId; }
44 
51  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
52 
59  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
60 
67  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
68 
75  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
76 
83  inline RestoreSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
84 
91  inline RestoreSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
92 
99  inline RestoreSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
100 
101  private:
102 
103  Aws::String m_secretId;
104  bool m_secretIdHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace SecretsManager
109 } // namespace Aws
Aws::SecretsManager::Model::RestoreSecretRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: RestoreSecretRequest.h:59
Aws::SecretsManager::Model::RestoreSecretRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: RestoreSecretRequest.h:67
Aws::SecretsManager::Model::RestoreSecretRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: RestoreSecretRequest.h:51
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::RestoreSecretRequest::RestoreSecretRequest
RestoreSecretRequest()
Aws::SecretsManager::Model::RestoreSecretRequest::WithSecretId
RestoreSecretRequest & WithSecretId(Aws::String &&value)
Definition: RestoreSecretRequest.h:91
Aws::SecretsManager::Model::RestoreSecretRequest::WithSecretId
RestoreSecretRequest & WithSecretId(const char *value)
Definition: RestoreSecretRequest.h:99
Aws::SecretsManager::Model::RestoreSecretRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::RestoreSecretRequest::SetSecretId
void SetSecretId(const char *value)
Definition: RestoreSecretRequest.h:75
Aws::SecretsManager::Model::RestoreSecretRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RestoreSecretRequest.h:30
AWSString.h
Aws::SecretsManager::Model::RestoreSecretRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::RestoreSecretRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: RestoreSecretRequest.h:43
Aws::SecretsManager::Model::RestoreSecretRequest
Definition: RestoreSecretRequest.h:22
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::RestoreSecretRequest::WithSecretId
RestoreSecretRequest & WithSecretId(const Aws::String &value)
Definition: RestoreSecretRequest.h:83