AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsSecretsManagerSecretDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsSecretsManagerSecretRotationRules.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const AwsSecretsManagerSecretRotationRules& GetRotationRules() const { return m_rotationRules; }
46 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
47 template<typename RotationRulesT = AwsSecretsManagerSecretRotationRules>
48 void SetRotationRules(RotationRulesT&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::forward<RotationRulesT>(value); }
49 template<typename RotationRulesT = AwsSecretsManagerSecretRotationRules>
50 AwsSecretsManagerSecretDetails& WithRotationRules(RotationRulesT&& value) { SetRotationRules(std::forward<RotationRulesT>(value)); return *this;}
52
54
57 inline bool GetRotationOccurredWithinFrequency() const { return m_rotationOccurredWithinFrequency; }
58 inline bool RotationOccurredWithinFrequencyHasBeenSet() const { return m_rotationOccurredWithinFrequencyHasBeenSet; }
59 inline void SetRotationOccurredWithinFrequency(bool value) { m_rotationOccurredWithinFrequencyHasBeenSet = true; m_rotationOccurredWithinFrequency = value; }
62
64
69 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
70 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
71 template<typename KmsKeyIdT = Aws::String>
72 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
73 template<typename KmsKeyIdT = Aws::String>
74 AwsSecretsManagerSecretDetails& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
76
78
81 inline bool GetRotationEnabled() const { return m_rotationEnabled; }
82 inline bool RotationEnabledHasBeenSet() const { return m_rotationEnabledHasBeenSet; }
83 inline void SetRotationEnabled(bool value) { m_rotationEnabledHasBeenSet = true; m_rotationEnabled = value; }
84 inline AwsSecretsManagerSecretDetails& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;}
86
88
91 inline const Aws::String& GetRotationLambdaArn() const { return m_rotationLambdaArn; }
92 inline bool RotationLambdaArnHasBeenSet() const { return m_rotationLambdaArnHasBeenSet; }
93 template<typename RotationLambdaArnT = Aws::String>
94 void SetRotationLambdaArn(RotationLambdaArnT&& value) { m_rotationLambdaArnHasBeenSet = true; m_rotationLambdaArn = std::forward<RotationLambdaArnT>(value); }
95 template<typename RotationLambdaArnT = Aws::String>
96 AwsSecretsManagerSecretDetails& WithRotationLambdaArn(RotationLambdaArnT&& value) { SetRotationLambdaArn(std::forward<RotationLambdaArnT>(value)); return *this;}
98
100
103 inline bool GetDeleted() const { return m_deleted; }
104 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
105 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
106 inline AwsSecretsManagerSecretDetails& WithDeleted(bool value) { SetDeleted(value); return *this;}
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 template<typename NameT = Aws::String>
116 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
117 template<typename NameT = Aws::String>
118 AwsSecretsManagerSecretDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
120
122
125 inline const Aws::String& GetDescription() const { return m_description; }
126 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 template<typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
129 template<typename DescriptionT = Aws::String>
130 AwsSecretsManagerSecretDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
132 private:
133
135 bool m_rotationRulesHasBeenSet = false;
136
137 bool m_rotationOccurredWithinFrequency{false};
138 bool m_rotationOccurredWithinFrequencyHasBeenSet = false;
139
140 Aws::String m_kmsKeyId;
141 bool m_kmsKeyIdHasBeenSet = false;
142
143 bool m_rotationEnabled{false};
144 bool m_rotationEnabledHasBeenSet = false;
145
146 Aws::String m_rotationLambdaArn;
147 bool m_rotationLambdaArnHasBeenSet = false;
148
149 bool m_deleted{false};
150 bool m_deletedHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SecurityHub
161} // 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