AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationRules(const AwsSecretsManagerSecretRotationRules& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = value; }
48 inline void SetRotationRules(AwsSecretsManagerSecretRotationRules&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::move(value); }
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 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
72 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
73 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
74 inline AwsSecretsManagerSecretDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
75 inline AwsSecretsManagerSecretDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
76 inline AwsSecretsManagerSecretDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
78
80
83 inline bool GetRotationEnabled() const{ return m_rotationEnabled; }
84 inline bool RotationEnabledHasBeenSet() const { return m_rotationEnabledHasBeenSet; }
85 inline void SetRotationEnabled(bool value) { m_rotationEnabledHasBeenSet = true; m_rotationEnabled = value; }
86 inline AwsSecretsManagerSecretDetails& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;}
88
90
93 inline const Aws::String& GetRotationLambdaArn() const{ return m_rotationLambdaArn; }
94 inline bool RotationLambdaArnHasBeenSet() const { return m_rotationLambdaArnHasBeenSet; }
95 inline void SetRotationLambdaArn(const Aws::String& value) { m_rotationLambdaArnHasBeenSet = true; m_rotationLambdaArn = value; }
96 inline void SetRotationLambdaArn(Aws::String&& value) { m_rotationLambdaArnHasBeenSet = true; m_rotationLambdaArn = std::move(value); }
97 inline void SetRotationLambdaArn(const char* value) { m_rotationLambdaArnHasBeenSet = true; m_rotationLambdaArn.assign(value); }
99 inline AwsSecretsManagerSecretDetails& WithRotationLambdaArn(Aws::String&& value) { SetRotationLambdaArn(std::move(value)); return *this;}
100 inline AwsSecretsManagerSecretDetails& WithRotationLambdaArn(const char* value) { SetRotationLambdaArn(value); return *this;}
102
104
107 inline bool GetDeleted() const{ return m_deleted; }
108 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
109 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
110 inline AwsSecretsManagerSecretDetails& WithDeleted(bool value) { SetDeleted(value); return *this;}
112
114
117 inline const Aws::String& GetName() const{ return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
120 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
121 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
122 inline AwsSecretsManagerSecretDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
123 inline AwsSecretsManagerSecretDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
124 inline AwsSecretsManagerSecretDetails& WithName(const char* value) { SetName(value); return *this;}
126
128
131 inline const Aws::String& GetDescription() const{ return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
134 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
135 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
136 inline AwsSecretsManagerSecretDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
137 inline AwsSecretsManagerSecretDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
138 inline AwsSecretsManagerSecretDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
140 private:
141
143 bool m_rotationRulesHasBeenSet = false;
144
145 bool m_rotationOccurredWithinFrequency;
146 bool m_rotationOccurredWithinFrequencyHasBeenSet = false;
147
148 Aws::String m_kmsKeyId;
149 bool m_kmsKeyIdHasBeenSet = false;
150
151 bool m_rotationEnabled;
152 bool m_rotationEnabledHasBeenSet = false;
153
154 Aws::String m_rotationLambdaArn;
155 bool m_rotationLambdaArnHasBeenSet = false;
156
157 bool m_deleted;
158 bool m_deletedHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SecurityHub
169} // namespace Aws
AwsSecretsManagerSecretDetails & WithRotationRules(AwsSecretsManagerSecretRotationRules &&value)
AwsSecretsManagerSecretDetails & WithDescription(const char *value)
AwsSecretsManagerSecretDetails & WithKmsKeyId(const Aws::String &value)
const AwsSecretsManagerSecretRotationRules & GetRotationRules() const
AwsSecretsManagerSecretDetails & WithRotationEnabled(bool value)
AwsSecretsManagerSecretDetails & WithName(const char *value)
AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRotationRules(const AwsSecretsManagerSecretRotationRules &value)
AwsSecretsManagerSecretDetails & WithRotationRules(const AwsSecretsManagerSecretRotationRules &value)
AwsSecretsManagerSecretDetails & WithRotationOccurredWithinFrequency(bool value)
AwsSecretsManagerSecretDetails & WithRotationLambdaArn(const char *value)
AwsSecretsManagerSecretDetails & WithKmsKeyId(const char *value)
AwsSecretsManagerSecretDetails & WithDescription(const Aws::String &value)
AwsSecretsManagerSecretDetails & WithName(const Aws::String &value)
AwsSecretsManagerSecretDetails & WithName(Aws::String &&value)
AwsSecretsManagerSecretDetails & WithKmsKeyId(Aws::String &&value)
AwsSecretsManagerSecretDetails & WithRotationLambdaArn(const Aws::String &value)
void SetRotationRules(AwsSecretsManagerSecretRotationRules &&value)
AWS_SECURITYHUB_API AwsSecretsManagerSecretDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsSecretsManagerSecretDetails & WithRotationLambdaArn(Aws::String &&value)
AwsSecretsManagerSecretDetails & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue