AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/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 S3
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_S3_API Encryption() = default;
35 AWS_S3_API Encryption(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3_API Encryption& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
46 inline ServerSideEncryption GetEncryptionType() const { return m_encryptionType; }
47 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
48 inline void SetEncryptionType(ServerSideEncryption value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
51
53
62 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
63 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
64 template<typename KMSKeyIdT = Aws::String>
65 void SetKMSKeyId(KMSKeyIdT&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::forward<KMSKeyIdT>(value); }
66 template<typename KMSKeyIdT = Aws::String>
67 Encryption& WithKMSKeyId(KMSKeyIdT&& value) { SetKMSKeyId(std::forward<KMSKeyIdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetKMSContext() const { return m_kMSContext; }
76 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
77 template<typename KMSContextT = Aws::String>
78 void SetKMSContext(KMSContextT&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::forward<KMSContextT>(value); }
79 template<typename KMSContextT = Aws::String>
80 Encryption& WithKMSContext(KMSContextT&& value) { SetKMSContext(std::forward<KMSContextT>(value)); return *this;}
82 private:
83
85 bool m_encryptionTypeHasBeenSet = false;
86
87 Aws::String m_kMSKeyId;
88 bool m_kMSKeyIdHasBeenSet = false;
89
90 Aws::String m_kMSContext;
91 bool m_kMSContextHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace S3
96} // namespace Aws
Encryption & WithKMSContext(KMSContextT &&value)
Definition Encryption.h:80
const Aws::String & GetKMSContext() const
Definition Encryption.h:75
AWS_S3_API Encryption(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetKMSKeyId() const
Definition Encryption.h:62
bool EncryptionTypeHasBeenSet() const
Definition Encryption.h:47
Encryption & WithKMSKeyId(KMSKeyIdT &&value)
Definition Encryption.h:67
AWS_S3_API Encryption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKMSKeyId(KMSKeyIdT &&value)
Definition Encryption.h:65
bool KMSKeyIdHasBeenSet() const
Definition Encryption.h:63
Encryption & WithEncryptionType(ServerSideEncryption value)
Definition Encryption.h:49
bool KMSContextHasBeenSet() const
Definition Encryption.h:76
void SetEncryptionType(ServerSideEncryption value)
Definition Encryption.h:48
AWS_S3_API Encryption()=default
ServerSideEncryption GetEncryptionType() const
Definition Encryption.h:46
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetKMSContext(KMSContextT &&value)
Definition Encryption.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String