AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsKmsKeyDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API AwsKmsKeyDetails() = default;
35 AWS_SECURITYHUB_API AwsKmsKeyDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API AwsKmsKeyDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetAWSAccountId() const { return m_aWSAccountId; }
46 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
47 template<typename AWSAccountIdT = Aws::String>
48 void SetAWSAccountId(AWSAccountIdT&& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = std::forward<AWSAccountIdT>(value); }
49 template<typename AWSAccountIdT = Aws::String>
50 AwsKmsKeyDetails& WithAWSAccountId(AWSAccountIdT&& value) { SetAWSAccountId(std::forward<AWSAccountIdT>(value)); return *this;}
52
54
59 inline double GetCreationDate() const { return m_creationDate; }
60 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
61 inline void SetCreationDate(double value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
62 inline AwsKmsKeyDetails& WithCreationDate(double value) { SetCreationDate(value); return *this;}
64
66
69 inline const Aws::String& GetKeyId() const { return m_keyId; }
70 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
71 template<typename KeyIdT = Aws::String>
72 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
73 template<typename KeyIdT = Aws::String>
74 AwsKmsKeyDetails& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
76
78
82 inline const Aws::String& GetKeyManager() const { return m_keyManager; }
83 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
84 template<typename KeyManagerT = Aws::String>
85 void SetKeyManager(KeyManagerT&& value) { m_keyManagerHasBeenSet = true; m_keyManager = std::forward<KeyManagerT>(value); }
86 template<typename KeyManagerT = Aws::String>
87 AwsKmsKeyDetails& WithKeyManager(KeyManagerT&& value) { SetKeyManager(std::forward<KeyManagerT>(value)); return *this;}
89
91
97 inline const Aws::String& GetKeyState() const { return m_keyState; }
98 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
99 template<typename KeyStateT = Aws::String>
100 void SetKeyState(KeyStateT&& value) { m_keyStateHasBeenSet = true; m_keyState = std::forward<KeyStateT>(value); }
101 template<typename KeyStateT = Aws::String>
102 AwsKmsKeyDetails& WithKeyState(KeyStateT&& value) { SetKeyState(std::forward<KeyStateT>(value)); return *this;}
104
106
114 inline const Aws::String& GetOrigin() const { return m_origin; }
115 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
116 template<typename OriginT = Aws::String>
117 void SetOrigin(OriginT&& value) { m_originHasBeenSet = true; m_origin = std::forward<OriginT>(value); }
118 template<typename OriginT = Aws::String>
119 AwsKmsKeyDetails& WithOrigin(OriginT&& value) { SetOrigin(std::forward<OriginT>(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template<typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
130 template<typename DescriptionT = Aws::String>
131 AwsKmsKeyDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
133
135
138 inline bool GetKeyRotationStatus() const { return m_keyRotationStatus; }
139 inline bool KeyRotationStatusHasBeenSet() const { return m_keyRotationStatusHasBeenSet; }
140 inline void SetKeyRotationStatus(bool value) { m_keyRotationStatusHasBeenSet = true; m_keyRotationStatus = value; }
141 inline AwsKmsKeyDetails& WithKeyRotationStatus(bool value) { SetKeyRotationStatus(value); return *this;}
143 private:
144
145 Aws::String m_aWSAccountId;
146 bool m_aWSAccountIdHasBeenSet = false;
147
148 double m_creationDate{0.0};
149 bool m_creationDateHasBeenSet = false;
150
151 Aws::String m_keyId;
152 bool m_keyIdHasBeenSet = false;
153
154 Aws::String m_keyManager;
155 bool m_keyManagerHasBeenSet = false;
156
157 Aws::String m_keyState;
158 bool m_keyStateHasBeenSet = false;
159
160 Aws::String m_origin;
161 bool m_originHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 bool m_keyRotationStatus{false};
167 bool m_keyRotationStatusHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace SecurityHub
172} // 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)
const Aws::String & GetKeyState() const
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