AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
KMSKeyDetails.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/EncryptionOption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruReviewer {
21namespace Model {
22
34 public:
35 AWS_CODEGURUREVIEWER_API KMSKeyDetails() = default;
36 AWS_CODEGURUREVIEWER_API KMSKeyDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEGURUREVIEWER_API KMSKeyDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
46 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
47 template <typename KMSKeyIdT = Aws::String>
48 void SetKMSKeyId(KMSKeyIdT&& value) {
49 m_kMSKeyIdHasBeenSet = true;
50 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
51 }
52 template <typename KMSKeyIdT = Aws::String>
53 KMSKeyDetails& WithKMSKeyId(KMSKeyIdT&& value) {
54 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
55 return *this;
56 }
58
60
65 inline EncryptionOption GetEncryptionOption() const { return m_encryptionOption; }
66 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
68 m_encryptionOptionHasBeenSet = true;
69 m_encryptionOption = value;
70 }
73 return *this;
74 }
76 private:
77 Aws::String m_kMSKeyId;
78
80 bool m_kMSKeyIdHasBeenSet = false;
81 bool m_encryptionOptionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CodeGuruReviewer
86} // namespace Aws
KMSKeyDetails & WithEncryptionOption(EncryptionOption value)
KMSKeyDetails & WithKMSKeyId(KMSKeyIdT &&value)
const Aws::String & GetKMSKeyId() const
AWS_CODEGURUREVIEWER_API KMSKeyDetails()=default
AWS_CODEGURUREVIEWER_API KMSKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionOption(EncryptionOption value)
AWS_CODEGURUREVIEWER_API KMSKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionOption GetEncryptionOption() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue