AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsSecretsManagerSecretDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AwsSecretsManagerSecretRotationRules.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
29 public:
30 AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const AwsSecretsManagerSecretRotationRules& GetRotationRules() const { return m_rotationRules; }
40 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
41 template <typename RotationRulesT = AwsSecretsManagerSecretRotationRules>
42 void SetRotationRules(RotationRulesT&& value) {
43 m_rotationRulesHasBeenSet = true;
44 m_rotationRules = std::forward<RotationRulesT>(value);
45 }
46 template <typename RotationRulesT = AwsSecretsManagerSecretRotationRules>
48 SetRotationRules(std::forward<RotationRulesT>(value));
49 return *this;
50 }
52
54
57 inline bool GetRotationOccurredWithinFrequency() const { return m_rotationOccurredWithinFrequency; }
58 inline bool RotationOccurredWithinFrequencyHasBeenSet() const { return m_rotationOccurredWithinFrequencyHasBeenSet; }
59 inline void SetRotationOccurredWithinFrequency(bool value) {
60 m_rotationOccurredWithinFrequencyHasBeenSet = true;
61 m_rotationOccurredWithinFrequency = value;
62 }
65 return *this;
66 }
68
70
75 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
76 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
77 template <typename KmsKeyIdT = Aws::String>
78 void SetKmsKeyId(KmsKeyIdT&& value) {
79 m_kmsKeyIdHasBeenSet = true;
80 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
81 }
82 template <typename KmsKeyIdT = Aws::String>
84 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
85 return *this;
86 }
88
90
93 inline bool GetRotationEnabled() const { return m_rotationEnabled; }
94 inline bool RotationEnabledHasBeenSet() const { return m_rotationEnabledHasBeenSet; }
95 inline void SetRotationEnabled(bool value) {
96 m_rotationEnabledHasBeenSet = true;
97 m_rotationEnabled = value;
98 }
100 SetRotationEnabled(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetRotationLambdaArn() const { return m_rotationLambdaArn; }
110 inline bool RotationLambdaArnHasBeenSet() const { return m_rotationLambdaArnHasBeenSet; }
111 template <typename RotationLambdaArnT = Aws::String>
112 void SetRotationLambdaArn(RotationLambdaArnT&& value) {
113 m_rotationLambdaArnHasBeenSet = true;
114 m_rotationLambdaArn = std::forward<RotationLambdaArnT>(value);
115 }
116 template <typename RotationLambdaArnT = Aws::String>
118 SetRotationLambdaArn(std::forward<RotationLambdaArnT>(value));
119 return *this;
120 }
122
124
127 inline bool GetDeleted() const { return m_deleted; }
128 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
129 inline void SetDeleted(bool value) {
130 m_deletedHasBeenSet = true;
131 m_deleted = value;
132 }
134 SetDeleted(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetName() const { return m_name; }
144 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
145 template <typename NameT = Aws::String>
146 void SetName(NameT&& value) {
147 m_nameHasBeenSet = true;
148 m_name = std::forward<NameT>(value);
149 }
150 template <typename NameT = Aws::String>
152 SetName(std::forward<NameT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetDescription() const { return m_description; }
162 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
163 template <typename DescriptionT = Aws::String>
164 void SetDescription(DescriptionT&& value) {
165 m_descriptionHasBeenSet = true;
166 m_description = std::forward<DescriptionT>(value);
167 }
168 template <typename DescriptionT = Aws::String>
170 SetDescription(std::forward<DescriptionT>(value));
171 return *this;
172 }
174 private:
176
177 bool m_rotationOccurredWithinFrequency{false};
178
179 Aws::String m_kmsKeyId;
180
181 bool m_rotationEnabled{false};
182
183 Aws::String m_rotationLambdaArn;
184
185 bool m_deleted{false};
186
187 Aws::String m_name;
188
189 Aws::String m_description;
190 bool m_rotationRulesHasBeenSet = false;
191 bool m_rotationOccurredWithinFrequencyHasBeenSet = false;
192 bool m_kmsKeyIdHasBeenSet = false;
193 bool m_rotationEnabledHasBeenSet = false;
194 bool m_rotationLambdaArnHasBeenSet = false;
195 bool m_deletedHasBeenSet = false;
196 bool m_nameHasBeenSet = false;
197 bool m_descriptionHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace SecurityHub
202} // namespace Aws
const AwsSecretsManagerSecretRotationRules & GetRotationRules() const
AwsSecretsManagerSecretDetails & WithRotationLambdaArn(RotationLambdaArnT &&value)
AwsSecretsManagerSecretDetails & WithRotationEnabled(bool value)
AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsSecretsManagerSecretDetails & WithKmsKeyId(KmsKeyIdT &&value)
AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails()=default
AwsSecretsManagerSecretDetails & WithDescription(DescriptionT &&value)
AwsSecretsManagerSecretDetails & WithRotationOccurredWithinFrequency(bool value)
AwsSecretsManagerSecretDetails & WithRotationRules(RotationRulesT &&value)
AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue