AWS SDK for C++  1.9.129
AWS SDK for C++
RotateSecretRequest.h
Go to the documentation of this file.
1 
6 #pragma once
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 "RotateSecret"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetSecretId() const{ return m_secretId; }
45 
51  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
52 
58  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
59 
65  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
66 
72  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
73 
79  inline RotateSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
80 
86  inline RotateSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
87 
93  inline RotateSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
94 
95 
113  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
114 
132  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
133 
151  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
152 
170  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
171 
189  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
190 
208  inline RotateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
209 
227  inline RotateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
228 
246  inline RotateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
247 
248 
253  inline const Aws::String& GetRotationLambdaARN() const{ return m_rotationLambdaARN; }
254 
259  inline bool RotationLambdaARNHasBeenSet() const { return m_rotationLambdaARNHasBeenSet; }
260 
265  inline void SetRotationLambdaARN(const Aws::String& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = value; }
266 
271  inline void SetRotationLambdaARN(Aws::String&& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = std::move(value); }
272 
277  inline void SetRotationLambdaARN(const char* value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN.assign(value); }
278 
283  inline RotateSecretRequest& WithRotationLambdaARN(const Aws::String& value) { SetRotationLambdaARN(value); return *this;}
284 
289  inline RotateSecretRequest& WithRotationLambdaARN(Aws::String&& value) { SetRotationLambdaARN(std::move(value)); return *this;}
290 
295  inline RotateSecretRequest& WithRotationLambdaARN(const char* value) { SetRotationLambdaARN(value); return *this;}
296 
297 
301  inline const RotationRulesType& GetRotationRules() const{ return m_rotationRules; }
302 
306  inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
307 
311  inline void SetRotationRules(const RotationRulesType& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = value; }
312 
316  inline void SetRotationRules(RotationRulesType&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::move(value); }
317 
321  inline RotateSecretRequest& WithRotationRules(const RotationRulesType& value) { SetRotationRules(value); return *this;}
322 
326  inline RotateSecretRequest& WithRotationRules(RotationRulesType&& value) { SetRotationRules(std::move(value)); return *this;}
327 
328  private:
329 
330  Aws::String m_secretId;
331  bool m_secretIdHasBeenSet;
332 
333  Aws::String m_clientRequestToken;
334  bool m_clientRequestTokenHasBeenSet;
335 
336  Aws::String m_rotationLambdaARN;
337  bool m_rotationLambdaARNHasBeenSet;
338 
339  RotationRulesType m_rotationRules;
340  bool m_rotationRulesHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace SecretsManager
345 } // namespace Aws
Aws::SecretsManager::Model::RotateSecretRequest::GetRotationRules
const RotationRulesType & GetRotationRules() const
Definition: RotateSecretRequest.h:301
Aws::SecretsManager::Model::RotateSecretRequest::SetRotationRules
void SetRotationRules(const RotationRulesType &value)
Definition: RotateSecretRequest.h:311
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::RotateSecretRequest::GetRotationLambdaARN
const Aws::String & GetRotationLambdaARN() const
Definition: RotateSecretRequest.h:253
Aws::SecretsManager::Model::RotateSecretRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: RotateSecretRequest.h:132
Aws::SecretsManager::Model::RotateSecretRequest::RotateSecretRequest
RotateSecretRequest()
Aws::SecretsManager::Model::RotateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: RotateSecretRequest.h:189
Aws::SecretsManager::Model::RotateSecretRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::RotateSecretRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: RotateSecretRequest.h:65
Aws::SecretsManager::Model::RotateSecretRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::RotateSecretRequest::WithRotationLambdaARN
RotateSecretRequest & WithRotationLambdaARN(Aws::String &&value)
Definition: RotateSecretRequest.h:289
Aws::SecretsManager::Model::RotateSecretRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: RotateSecretRequest.h:58
Aws::SecretsManager::Model::RotateSecretRequest::WithClientRequestToken
RotateSecretRequest & WithClientRequestToken(const Aws::String &value)
Definition: RotateSecretRequest.h:208
Aws::SecretsManager::Model::RotateSecretRequest::RotationRulesHasBeenSet
bool RotationRulesHasBeenSet() const
Definition: RotateSecretRequest.h:306
Aws::SecretsManager::Model::RotateSecretRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: RotateSecretRequest.h:44
Aws::SecretsManager::Model::RotateSecretRequest::WithRotationLambdaARN
RotateSecretRequest & WithRotationLambdaARN(const Aws::String &value)
Definition: RotateSecretRequest.h:283
Aws::SecretsManager::Model::RotateSecretRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: RotateSecretRequest.h:51
Aws::SecretsManager::Model::RotateSecretRequest::WithSecretId
RotateSecretRequest & WithSecretId(Aws::String &&value)
Definition: RotateSecretRequest.h:86
Aws::SecretsManager::Model::RotationRulesType
Definition: RotationRulesType.h:31
Aws::SecretsManager::Model::RotateSecretRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RotateSecretRequest.h:32
Aws::SecretsManager::Model::RotateSecretRequest::SetSecretId
void SetSecretId(const char *value)
Definition: RotateSecretRequest.h:72
Aws::SecretsManager::Model::RotateSecretRequest::SetRotationLambdaARN
void SetRotationLambdaARN(Aws::String &&value)
Definition: RotateSecretRequest.h:271
Aws::SecretsManager::Model::RotateSecretRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: RotateSecretRequest.h:170
Aws::SecretsManager::Model::RotateSecretRequest::WithRotationRules
RotateSecretRequest & WithRotationRules(const RotationRulesType &value)
Definition: RotateSecretRequest.h:321
Aws::SecretsManager::Model::RotateSecretRequest::SetRotationLambdaARN
void SetRotationLambdaARN(const char *value)
Definition: RotateSecretRequest.h:277
AWSString.h
Aws::SecretsManager::Model::RotateSecretRequest::SetRotationRules
void SetRotationRules(RotationRulesType &&value)
Definition: RotateSecretRequest.h:316
Aws::SecretsManager::Model::RotateSecretRequest::WithClientRequestToken
RotateSecretRequest & WithClientRequestToken(Aws::String &&value)
Definition: RotateSecretRequest.h:227
Aws::SecretsManager::Model::RotateSecretRequest::WithRotationLambdaARN
RotateSecretRequest & WithRotationLambdaARN(const char *value)
Definition: RotateSecretRequest.h:295
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
RotationRulesType.h
Aws::SecretsManager::Model::RotateSecretRequest::WithClientRequestToken
RotateSecretRequest & WithClientRequestToken(const char *value)
Definition: RotateSecretRequest.h:246
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::RotateSecretRequest::RotationLambdaARNHasBeenSet
bool RotationLambdaARNHasBeenSet() const
Definition: RotateSecretRequest.h:259
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::SecretsManager::Model::RotateSecretRequest
Definition: RotateSecretRequest.h:24
Aws::SecretsManager::Model::RotateSecretRequest::WithSecretId
RotateSecretRequest & WithSecretId(const char *value)
Definition: RotateSecretRequest.h:93
Aws::SecretsManager::Model::RotateSecretRequest::WithSecretId
RotateSecretRequest & WithSecretId(const Aws::String &value)
Definition: RotateSecretRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::RotateSecretRequest::WithRotationRules
RotateSecretRequest & WithRotationRules(RotationRulesType &&value)
Definition: RotateSecretRequest.h:326
UUID.h
Aws::SecretsManager::Model::RotateSecretRequest::SetRotationLambdaARN
void SetRotationLambdaARN(const Aws::String &value)
Definition: RotateSecretRequest.h:265
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::RotateSecretRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: RotateSecretRequest.h:151
Aws::SecretsManager::Model::RotateSecretRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: RotateSecretRequest.h:113