AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAWSAccountId(const Aws::String& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = value; }
48 inline void SetAWSAccountId(Aws::String&& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = std::move(value); }
49 inline void SetAWSAccountId(const char* value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId.assign(value); }
50 inline AwsKmsKeyDetails& WithAWSAccountId(const Aws::String& value) { SetAWSAccountId(value); return *this;}
51 inline AwsKmsKeyDetails& WithAWSAccountId(Aws::String&& value) { SetAWSAccountId(std::move(value)); return *this;}
52 inline AwsKmsKeyDetails& WithAWSAccountId(const char* value) { SetAWSAccountId(value); return *this;}
54
56
73 inline double GetCreationDate() const{ return m_creationDate; }
74 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
75 inline void SetCreationDate(double value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
76 inline AwsKmsKeyDetails& WithCreationDate(double value) { SetCreationDate(value); return *this;}
78
80
83 inline const Aws::String& GetKeyId() const{ return m_keyId; }
84 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
85 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
86 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
87 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
88 inline AwsKmsKeyDetails& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
89 inline AwsKmsKeyDetails& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
90 inline AwsKmsKeyDetails& WithKeyId(const char* value) { SetKeyId(value); return *this;}
92
94
98 inline const Aws::String& GetKeyManager() const{ return m_keyManager; }
99 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
100 inline void SetKeyManager(const Aws::String& value) { m_keyManagerHasBeenSet = true; m_keyManager = value; }
101 inline void SetKeyManager(Aws::String&& value) { m_keyManagerHasBeenSet = true; m_keyManager = std::move(value); }
102 inline void SetKeyManager(const char* value) { m_keyManagerHasBeenSet = true; m_keyManager.assign(value); }
103 inline AwsKmsKeyDetails& WithKeyManager(const Aws::String& value) { SetKeyManager(value); return *this;}
104 inline AwsKmsKeyDetails& WithKeyManager(Aws::String&& value) { SetKeyManager(std::move(value)); return *this;}
105 inline AwsKmsKeyDetails& WithKeyManager(const char* value) { SetKeyManager(value); return *this;}
107
109
115 inline const Aws::String& GetKeyState() const{ return m_keyState; }
116 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
117 inline void SetKeyState(const Aws::String& value) { m_keyStateHasBeenSet = true; m_keyState = value; }
118 inline void SetKeyState(Aws::String&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); }
119 inline void SetKeyState(const char* value) { m_keyStateHasBeenSet = true; m_keyState.assign(value); }
120 inline AwsKmsKeyDetails& WithKeyState(const Aws::String& value) { SetKeyState(value); return *this;}
121 inline AwsKmsKeyDetails& WithKeyState(Aws::String&& value) { SetKeyState(std::move(value)); return *this;}
122 inline AwsKmsKeyDetails& WithKeyState(const char* value) { SetKeyState(value); return *this;}
124
126
134 inline const Aws::String& GetOrigin() const{ return m_origin; }
135 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
136 inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; }
137 inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
138 inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); }
139 inline AwsKmsKeyDetails& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;}
140 inline AwsKmsKeyDetails& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;}
141 inline AwsKmsKeyDetails& WithOrigin(const char* value) { SetOrigin(value); return *this;}
143
145
148 inline const Aws::String& GetDescription() const{ return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
151 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
152 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
153 inline AwsKmsKeyDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 inline AwsKmsKeyDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
155 inline AwsKmsKeyDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
157
159
162 inline bool GetKeyRotationStatus() const{ return m_keyRotationStatus; }
163 inline bool KeyRotationStatusHasBeenSet() const { return m_keyRotationStatusHasBeenSet; }
164 inline void SetKeyRotationStatus(bool value) { m_keyRotationStatusHasBeenSet = true; m_keyRotationStatus = value; }
165 inline AwsKmsKeyDetails& WithKeyRotationStatus(bool value) { SetKeyRotationStatus(value); return *this;}
167 private:
168
169 Aws::String m_aWSAccountId;
170 bool m_aWSAccountIdHasBeenSet = false;
171
172 double m_creationDate;
173 bool m_creationDateHasBeenSet = false;
174
175 Aws::String m_keyId;
176 bool m_keyIdHasBeenSet = false;
177
178 Aws::String m_keyManager;
179 bool m_keyManagerHasBeenSet = false;
180
181 Aws::String m_keyState;
182 bool m_keyStateHasBeenSet = false;
183
184 Aws::String m_origin;
185 bool m_originHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 bool m_keyRotationStatus;
191 bool m_keyRotationStatusHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace SecurityHub
196} // namespace Aws
AwsKmsKeyDetails & WithKeyManager(Aws::String &&value)
const Aws::String & GetKeyManager() const
AwsKmsKeyDetails & WithKeyId(const Aws::String &value)
AwsKmsKeyDetails & WithAWSAccountId(const char *value)
AWS_SECURITYHUB_API AwsKmsKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyManager(const Aws::String &value)
AwsKmsKeyDetails & WithDescription(const char *value)
AWS_SECURITYHUB_API AwsKmsKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsKmsKeyDetails & WithKeyRotationStatus(bool value)
AwsKmsKeyDetails & WithOrigin(const char *value)
AwsKmsKeyDetails & WithOrigin(const Aws::String &value)
AwsKmsKeyDetails & WithDescription(const Aws::String &value)
AwsKmsKeyDetails & WithKeyId(const char *value)
void SetDescription(const Aws::String &value)
AwsKmsKeyDetails & WithKeyManager(const char *value)
void SetKeyState(const Aws::String &value)
AwsKmsKeyDetails & WithAWSAccountId(Aws::String &&value)
void SetKeyId(const Aws::String &value)
AwsKmsKeyDetails & WithDescription(Aws::String &&value)
void SetOrigin(const Aws::String &value)
AwsKmsKeyDetails & WithKeyId(Aws::String &&value)
AwsKmsKeyDetails & WithKeyState(Aws::String &&value)
void SetAWSAccountId(const Aws::String &value)
const Aws::String & GetDescription() const
AwsKmsKeyDetails & WithAWSAccountId(const Aws::String &value)
AwsKmsKeyDetails & WithOrigin(Aws::String &&value)
AwsKmsKeyDetails & WithKeyState(const Aws::String &value)
AwsKmsKeyDetails & WithKeyState(const char *value)
AwsKmsKeyDetails & WithKeyManager(const Aws::String &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