AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
49 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
50 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
51 inline RotateSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
52 inline RotateSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
53 inline RotateSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
55
57
73 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
74 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
75 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
76 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
77 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
78 inline RotateSecretRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
79 inline RotateSecretRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
80 inline RotateSecretRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
82
84
91 inline const Aws::String& GetRotationLambdaARN() const{ return m_rotationLambdaARN; }
92 inline bool RotationLambdaARNHasBeenSet() const { return m_rotationLambdaARNHasBeenSet; }
93 inline void SetRotationLambdaARN(const Aws::String& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = value; }
94 inline void SetRotationLambdaARN(Aws::String&& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = std::move(value); }
95 inline void SetRotationLambdaARN(const char* value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN.assign(value); }
96 inline RotateSecretRequest& WithRotationLambdaARN(const Aws::String& value) { SetRotationLambdaARN(value); return *this;}
97 inline RotateSecretRequest& WithRotationLambdaARN(Aws::String&& value) { SetRotationLambdaARN(std::move(value)); return *this;}
98 inline RotateSecretRequest& WithRotationLambdaARN(const char* value) { SetRotationLambdaARN(value); return *this;}
100
102
105 inline const RotationRulesType& GetRotationRules() const{ return m_rotationRules; }
106 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
107 inline void SetRotationRules(const RotationRulesType& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = value; }
108 inline void SetRotationRules(RotationRulesType&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::move(value); }
109 inline RotateSecretRequest& WithRotationRules(const RotationRulesType& value) { SetRotationRules(value); return *this;}
110 inline RotateSecretRequest& WithRotationRules(RotationRulesType&& value) { SetRotationRules(std::move(value)); return *this;}
112
114
125 inline bool GetRotateImmediately() const{ return m_rotateImmediately; }
126 inline bool RotateImmediatelyHasBeenSet() const { return m_rotateImmediatelyHasBeenSet; }
127 inline void SetRotateImmediately(bool value) { m_rotateImmediatelyHasBeenSet = true; m_rotateImmediately = value; }
128 inline RotateSecretRequest& WithRotateImmediately(bool value) { SetRotateImmediately(value); return *this;}
130 private:
131
132 Aws::String m_secretId;
133 bool m_secretIdHasBeenSet = false;
134
135 Aws::String m_clientRequestToken;
136 bool m_clientRequestTokenHasBeenSet = false;
137
138 Aws::String m_rotationLambdaARN;
139 bool m_rotationLambdaARNHasBeenSet = false;
140
141 RotationRulesType m_rotationRules;
142 bool m_rotationRulesHasBeenSet = false;
143
144 bool m_rotateImmediately;
145 bool m_rotateImmediatelyHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SecretsManager
150} // namespace Aws
void SetRotationLambdaARN(const Aws::String &value)
RotateSecretRequest & WithRotationRules(const RotationRulesType &value)
RotateSecretRequest & WithClientRequestToken(const char *value)
RotateSecretRequest & WithRotationRules(RotationRulesType &&value)
void SetClientRequestToken(const Aws::String &value)
const RotationRulesType & GetRotationRules() const
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RotateSecretRequest & WithRotationLambdaARN(const char *value)
RotateSecretRequest & WithSecretId(const Aws::String &value)
RotateSecretRequest & WithClientRequestToken(const Aws::String &value)
RotateSecretRequest & WithClientRequestToken(Aws::String &&value)
RotateSecretRequest & WithRotationLambdaARN(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetRotationRules(const RotationRulesType &value)
RotateSecretRequest & WithSecretId(Aws::String &&value)
RotateSecretRequest & WithSecretId(const char *value)
RotateSecretRequest & WithRotationLambdaARN(Aws::String &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
RotateSecretRequest & WithRotateImmediately(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String