AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsKmsKeyDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsKmsKeyDetails() = default;
30 AWS_SECURITYHUB_API AwsKmsKeyDetails(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API AwsKmsKeyDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetAWSAccountId() const { return m_aWSAccountId; }
40 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
41 template <typename AWSAccountIdT = Aws::String>
42 void SetAWSAccountId(AWSAccountIdT&& value) {
43 m_aWSAccountIdHasBeenSet = true;
44 m_aWSAccountId = std::forward<AWSAccountIdT>(value);
45 }
46 template <typename AWSAccountIdT = Aws::String>
47 AwsKmsKeyDetails& WithAWSAccountId(AWSAccountIdT&& value) {
48 SetAWSAccountId(std::forward<AWSAccountIdT>(value));
49 return *this;
50 }
52
54
59 inline double GetCreationDate() const { return m_creationDate; }
60 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
61 inline void SetCreationDate(double value) {
62 m_creationDateHasBeenSet = true;
63 m_creationDate = value;
64 }
65 inline AwsKmsKeyDetails& WithCreationDate(double value) {
66 SetCreationDate(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetKeyId() const { return m_keyId; }
76 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
77 template <typename KeyIdT = Aws::String>
78 void SetKeyId(KeyIdT&& value) {
79 m_keyIdHasBeenSet = true;
80 m_keyId = std::forward<KeyIdT>(value);
81 }
82 template <typename KeyIdT = Aws::String>
83 AwsKmsKeyDetails& WithKeyId(KeyIdT&& value) {
84 SetKeyId(std::forward<KeyIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetKeyManager() const { return m_keyManager; }
95 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
96 template <typename KeyManagerT = Aws::String>
97 void SetKeyManager(KeyManagerT&& value) {
98 m_keyManagerHasBeenSet = true;
99 m_keyManager = std::forward<KeyManagerT>(value);
100 }
101 template <typename KeyManagerT = Aws::String>
102 AwsKmsKeyDetails& WithKeyManager(KeyManagerT&& value) {
103 SetKeyManager(std::forward<KeyManagerT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::String& GetKeyState() const { return m_keyState; }
116 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
117 template <typename KeyStateT = Aws::String>
118 void SetKeyState(KeyStateT&& value) {
119 m_keyStateHasBeenSet = true;
120 m_keyState = std::forward<KeyStateT>(value);
121 }
122 template <typename KeyStateT = Aws::String>
123 AwsKmsKeyDetails& WithKeyState(KeyStateT&& value) {
124 SetKeyState(std::forward<KeyStateT>(value));
125 return *this;
126 }
128
130
138 inline const Aws::String& GetOrigin() const { return m_origin; }
139 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
140 template <typename OriginT = Aws::String>
141 void SetOrigin(OriginT&& value) {
142 m_originHasBeenSet = true;
143 m_origin = std::forward<OriginT>(value);
144 }
145 template <typename OriginT = Aws::String>
146 AwsKmsKeyDetails& WithOrigin(OriginT&& value) {
147 SetOrigin(std::forward<OriginT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDescription() const { return m_description; }
157 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
158 template <typename DescriptionT = Aws::String>
159 void SetDescription(DescriptionT&& value) {
160 m_descriptionHasBeenSet = true;
161 m_description = std::forward<DescriptionT>(value);
162 }
163 template <typename DescriptionT = Aws::String>
164 AwsKmsKeyDetails& WithDescription(DescriptionT&& value) {
165 SetDescription(std::forward<DescriptionT>(value));
166 return *this;
167 }
169
171
174 inline bool GetKeyRotationStatus() const { return m_keyRotationStatus; }
175 inline bool KeyRotationStatusHasBeenSet() const { return m_keyRotationStatusHasBeenSet; }
176 inline void SetKeyRotationStatus(bool value) {
177 m_keyRotationStatusHasBeenSet = true;
178 m_keyRotationStatus = value;
179 }
182 return *this;
183 }
185 private:
186 Aws::String m_aWSAccountId;
187
188 double m_creationDate{0.0};
189
190 Aws::String m_keyId;
191
192 Aws::String m_keyManager;
193
194 Aws::String m_keyState;
195
196 Aws::String m_origin;
197
198 Aws::String m_description;
199
200 bool m_keyRotationStatus{false};
201 bool m_aWSAccountIdHasBeenSet = false;
202 bool m_creationDateHasBeenSet = false;
203 bool m_keyIdHasBeenSet = false;
204 bool m_keyManagerHasBeenSet = false;
205 bool m_keyStateHasBeenSet = false;
206 bool m_originHasBeenSet = false;
207 bool m_descriptionHasBeenSet = false;
208 bool m_keyRotationStatusHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace SecurityHub
213} // namespace Aws
const Aws::String & GetKeyManager() const
AWS_SECURITYHUB_API AwsKmsKeyDetails()=default
AWS_SECURITYHUB_API AwsKmsKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsKmsKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsKmsKeyDetails & WithKeyRotationStatus(bool value)
AwsKmsKeyDetails & WithDescription(DescriptionT &&value)
AwsKmsKeyDetails & WithKeyManager(KeyManagerT &&value)
void SetAWSAccountId(AWSAccountIdT &&value)
AwsKmsKeyDetails & WithKeyId(KeyIdT &&value)
const Aws::String & GetDescription() const
AwsKmsKeyDetails & WithKeyState(KeyStateT &&value)
AwsKmsKeyDetails & WithOrigin(OriginT &&value)
AwsKmsKeyDetails & WithAWSAccountId(AWSAccountIdT &&value)
const Aws::String & GetAWSAccountId() const
AwsKmsKeyDetails & WithCreationDate(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue