AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RotateSecretRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/secretsmanager/model/RotationRulesType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace SecretsManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECRETSMANAGER_API RotateSecretRequest() = default;
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_SECRETSMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
46 inline const Aws::String& GetSecretId() const { return m_secretId; }
47 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
48 template<typename SecretIdT = Aws::String>
49 void SetSecretId(SecretIdT&& value) { m_secretIdHasBeenSet = true; m_secretId = std::forward<SecretIdT>(value); }
50 template<typename SecretIdT = Aws::String>
51 RotateSecretRequest& WithSecretId(SecretIdT&& value) { SetSecretId(std::forward<SecretIdT>(value)); return *this;}
53
55
71 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
72 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
73 template<typename ClientRequestTokenT = Aws::String>
74 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
75 template<typename ClientRequestTokenT = Aws::String>
76 RotateSecretRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
78
80
87 inline const Aws::String& GetRotationLambdaARN() const { return m_rotationLambdaARN; }
88 inline bool RotationLambdaARNHasBeenSet() const { return m_rotationLambdaARNHasBeenSet; }
89 template<typename RotationLambdaARNT = Aws::String>
90 void SetRotationLambdaARN(RotationLambdaARNT&& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value); }
91 template<typename RotationLambdaARNT = Aws::String>
92 RotateSecretRequest& WithRotationLambdaARN(RotationLambdaARNT&& value) { SetRotationLambdaARN(std::forward<RotationLambdaARNT>(value)); return *this;}
94
96
99 inline const RotationRulesType& GetRotationRules() const { return m_rotationRules; }
100 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
101 template<typename RotationRulesT = RotationRulesType>
102 void SetRotationRules(RotationRulesT&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::forward<RotationRulesT>(value); }
103 template<typename RotationRulesT = RotationRulesType>
104 RotateSecretRequest& WithRotationRules(RotationRulesT&& value) { SetRotationRules(std::forward<RotationRulesT>(value)); return *this;}
106
108
119 inline bool GetRotateImmediately() const { return m_rotateImmediately; }
120 inline bool RotateImmediatelyHasBeenSet() const { return m_rotateImmediatelyHasBeenSet; }
121 inline void SetRotateImmediately(bool value) { m_rotateImmediatelyHasBeenSet = true; m_rotateImmediately = value; }
122 inline RotateSecretRequest& WithRotateImmediately(bool value) { SetRotateImmediately(value); return *this;}
124 private:
125
126 Aws::String m_secretId;
127 bool m_secretIdHasBeenSet = false;
128
129 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
130 bool m_clientRequestTokenHasBeenSet = true;
131
132 Aws::String m_rotationLambdaARN;
133 bool m_rotationLambdaARNHasBeenSet = false;
134
135 RotationRulesType m_rotationRules;
136 bool m_rotationRulesHasBeenSet = false;
137
138 bool m_rotateImmediately{false};
139 bool m_rotateImmediatelyHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SecretsManager
144} // namespace Aws
const RotationRulesType & GetRotationRules() const
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RotateSecretRequest & WithRotationLambdaARN(RotationLambdaARNT &&value)
virtual const char * GetServiceRequestName() const override
RotateSecretRequest & WithSecretId(SecretIdT &&value)
RotateSecretRequest & WithRotationRules(RotationRulesT &&value)
void SetRotationLambdaARN(RotationLambdaARNT &&value)
AWS_SECRETSMANAGER_API RotateSecretRequest()=default
RotateSecretRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
RotateSecretRequest & WithRotateImmediately(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String