AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ServerSideEncryption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_S3CRT_API Encryption();
35 AWS_S3CRT_API Encryption(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CRT_API Encryption& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
46 inline const ServerSideEncryption& GetEncryptionType() const{ return m_encryptionType; }
47 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
48 inline void SetEncryptionType(const ServerSideEncryption& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
49 inline void SetEncryptionType(ServerSideEncryption&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
50 inline Encryption& WithEncryptionType(const ServerSideEncryption& value) { SetEncryptionType(value); return *this;}
51 inline Encryption& WithEncryptionType(ServerSideEncryption&& value) { SetEncryptionType(std::move(value)); return *this;}
53
55
64 inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
65 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
66 inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
67 inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
68 inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
69 inline Encryption& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
70 inline Encryption& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
71 inline Encryption& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
73
75
79 inline const Aws::String& GetKMSContext() const{ return m_kMSContext; }
80 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
81 inline void SetKMSContext(const Aws::String& value) { m_kMSContextHasBeenSet = true; m_kMSContext = value; }
82 inline void SetKMSContext(Aws::String&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::move(value); }
83 inline void SetKMSContext(const char* value) { m_kMSContextHasBeenSet = true; m_kMSContext.assign(value); }
84 inline Encryption& WithKMSContext(const Aws::String& value) { SetKMSContext(value); return *this;}
85 inline Encryption& WithKMSContext(Aws::String&& value) { SetKMSContext(std::move(value)); return *this;}
86 inline Encryption& WithKMSContext(const char* value) { SetKMSContext(value); return *this;}
88 private:
89
90 ServerSideEncryption m_encryptionType;
91 bool m_encryptionTypeHasBeenSet = false;
92
93 Aws::String m_kMSKeyId;
94 bool m_kMSKeyIdHasBeenSet = false;
95
96 Aws::String m_kMSContext;
97 bool m_kMSContextHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace S3Crt
102} // namespace Aws
bool KMSContextHasBeenSet() const
Definition Encryption.h:80
Encryption & WithKMSContext(const Aws::String &value)
Definition Encryption.h:84
bool EncryptionTypeHasBeenSet() const
Definition Encryption.h:47
Encryption & WithEncryptionType(const ServerSideEncryption &value)
Definition Encryption.h:50
void SetEncryptionType(const ServerSideEncryption &value)
Definition Encryption.h:48
void SetKMSKeyId(Aws::String &&value)
Definition Encryption.h:67
void SetKMSContext(const char *value)
Definition Encryption.h:83
Encryption & WithKMSContext(Aws::String &&value)
Definition Encryption.h:85
const Aws::String & GetKMSKeyId() const
Definition Encryption.h:64
Encryption & WithKMSKeyId(const Aws::String &value)
Definition Encryption.h:69
void SetEncryptionType(ServerSideEncryption &&value)
Definition Encryption.h:49
Encryption & WithKMSKeyId(Aws::String &&value)
Definition Encryption.h:70
Encryption & WithEncryptionType(ServerSideEncryption &&value)
Definition Encryption.h:51
void SetKMSContext(const Aws::String &value)
Definition Encryption.h:81
const Aws::String & GetKMSContext() const
Definition Encryption.h:79
const ServerSideEncryption & GetEncryptionType() const
Definition Encryption.h:46
void SetKMSContext(Aws::String &&value)
Definition Encryption.h:82
Encryption & WithKMSKeyId(const char *value)
Definition Encryption.h:71
AWS_S3CRT_API Encryption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Encryption & WithKMSContext(const char *value)
Definition Encryption.h:86
void SetKMSKeyId(const char *value)
Definition Encryption.h:68
AWS_S3CRT_API Encryption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKMSKeyId(const Aws::String &value)
Definition Encryption.h:66
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String