AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
KMSKeyDetails.h
Go to the documentation of this file.
1
6#pragma once
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 CodeGuruReviewer
23{
24namespace Model
25{
26
38 {
39 public:
44
45
50 inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
51
56 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
57
62 inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
63
68 inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
69
74 inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
75
80 inline KMSKeyDetails& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
81
86 inline KMSKeyDetails& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
87
92 inline KMSKeyDetails& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
93
94
100 inline const EncryptionOption& GetEncryptionOption() const{ return m_encryptionOption; }
101
107 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
108
114 inline void SetEncryptionOption(const EncryptionOption& value) { m_encryptionOptionHasBeenSet = true; m_encryptionOption = value; }
115
121 inline void SetEncryptionOption(EncryptionOption&& value) { m_encryptionOptionHasBeenSet = true; m_encryptionOption = std::move(value); }
122
128 inline KMSKeyDetails& WithEncryptionOption(const EncryptionOption& value) { SetEncryptionOption(value); return *this;}
129
135 inline KMSKeyDetails& WithEncryptionOption(EncryptionOption&& value) { SetEncryptionOption(std::move(value)); return *this;}
136
137 private:
138
139 Aws::String m_kMSKeyId;
140 bool m_kMSKeyIdHasBeenSet = false;
141
142 EncryptionOption m_encryptionOption;
143 bool m_encryptionOptionHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace CodeGuruReviewer
148} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
KMSKeyDetails & WithKMSKeyId(const char *value)
Definition: KMSKeyDetails.h:92
const EncryptionOption & GetEncryptionOption() const
const Aws::String & GetKMSKeyId() const
Definition: KMSKeyDetails.h:50
AWS_CODEGURUREVIEWER_API KMSKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
KMSKeyDetails & WithKMSKeyId(Aws::String &&value)
Definition: KMSKeyDetails.h:86
AWS_CODEGURUREVIEWER_API KMSKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
KMSKeyDetails & WithEncryptionOption(const EncryptionOption &value)
KMSKeyDetails & WithEncryptionOption(EncryptionOption &&value)
void SetKMSKeyId(const Aws::String &value)
Definition: KMSKeyDetails.h:62
void SetEncryptionOption(EncryptionOption &&value)
KMSKeyDetails & WithKMSKeyId(const Aws::String &value)
Definition: KMSKeyDetails.h:80
AWS_CODEGURUREVIEWER_API KMSKeyDetails()
void SetEncryptionOption(const EncryptionOption &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String