AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Encryption.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
32 {
33 public:
37
39
40
45 inline const ServerSideEncryption& GetEncryptionType() const{ return m_encryptionType; }
46
51 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
52
57 inline void SetEncryptionType(const ServerSideEncryption& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
58
63 inline void SetEncryptionType(ServerSideEncryption&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
64
69 inline Encryption& WithEncryptionType(const ServerSideEncryption& value) { SetEncryptionType(value); return *this;}
70
75 inline Encryption& WithEncryptionType(ServerSideEncryption&& value) { SetEncryptionType(std::move(value)); return *this;}
76
77
86 inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
87
96 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
97
106 inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
107
116 inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
117
126 inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
127
136 inline Encryption& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
137
146 inline Encryption& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
147
156 inline Encryption& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
157
158
163 inline const Aws::String& GetKMSContext() const{ return m_kMSContext; }
164
169 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
170
175 inline void SetKMSContext(const Aws::String& value) { m_kMSContextHasBeenSet = true; m_kMSContext = value; }
176
181 inline void SetKMSContext(Aws::String&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::move(value); }
182
187 inline void SetKMSContext(const char* value) { m_kMSContextHasBeenSet = true; m_kMSContext.assign(value); }
188
193 inline Encryption& WithKMSContext(const Aws::String& value) { SetKMSContext(value); return *this;}
194
199 inline Encryption& WithKMSContext(Aws::String&& value) { SetKMSContext(std::move(value)); return *this;}
200
205 inline Encryption& WithKMSContext(const char* value) { SetKMSContext(value); return *this;}
206
207 private:
208
209 ServerSideEncryption m_encryptionType;
210 bool m_encryptionTypeHasBeenSet = false;
211
212 Aws::String m_kMSKeyId;
213 bool m_kMSKeyIdHasBeenSet = false;
214
215 Aws::String m_kMSContext;
216 bool m_kMSContextHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace S3
221} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetEncryptionType(ServerSideEncryption &&value)
Definition: Encryption.h:63
const Aws::String & GetKMSContext() const
Definition: Encryption.h:163
AWS_S3_API Encryption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEncryptionType(const ServerSideEncryption &value)
Definition: Encryption.h:57
Encryption & WithKMSKeyId(const char *value)
Definition: Encryption.h:156
const Aws::String & GetKMSKeyId() const
Definition: Encryption.h:86
bool EncryptionTypeHasBeenSet() const
Definition: Encryption.h:51
void SetKMSKeyId(Aws::String &&value)
Definition: Encryption.h:116
Encryption & WithEncryptionType(const ServerSideEncryption &value)
Definition: Encryption.h:69
const ServerSideEncryption & GetEncryptionType() const
Definition: Encryption.h:45
Encryption & WithKMSKeyId(Aws::String &&value)
Definition: Encryption.h:146
Encryption & WithEncryptionType(ServerSideEncryption &&value)
Definition: Encryption.h:75
Encryption & WithKMSContext(const Aws::String &value)
Definition: Encryption.h:193
AWS_S3_API Encryption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKMSKeyId(const Aws::String &value)
Definition: Encryption.h:106
bool KMSKeyIdHasBeenSet() const
Definition: Encryption.h:96
Encryption & WithKMSContext(const char *value)
Definition: Encryption.h:205
bool KMSContextHasBeenSet() const
Definition: Encryption.h:169
Encryption & WithKMSContext(Aws::String &&value)
Definition: Encryption.h:199
Encryption & WithKMSKeyId(const Aws::String &value)
Definition: Encryption.h:136
void SetKMSKeyId(const char *value)
Definition: Encryption.h:126
void SetKMSContext(const Aws::String &value)
Definition: Encryption.h:175
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetKMSContext(const char *value)
Definition: Encryption.h:187
void SetKMSContext(Aws::String &&value)
Definition: Encryption.h:181
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String