AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9#include <aws/glacier/model/EncryptionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glacier {
21namespace Model {
22
30 public:
31 AWS_GLACIER_API Encryption() = default;
32 AWS_GLACIER_API Encryption(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLACIER_API Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
42 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
43 inline void SetEncryptionType(EncryptionType value) {
44 m_encryptionTypeHasBeenSet = true;
45 m_encryptionType = value;
46 }
48 SetEncryptionType(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
60 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
61 template <typename KMSKeyIdT = Aws::String>
62 void SetKMSKeyId(KMSKeyIdT&& value) {
63 m_kMSKeyIdHasBeenSet = true;
64 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
65 }
66 template <typename KMSKeyIdT = Aws::String>
67 Encryption& WithKMSKeyId(KMSKeyIdT&& value) {
68 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetKMSContext() const { return m_kMSContext; }
79 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
80 template <typename KMSContextT = Aws::String>
81 void SetKMSContext(KMSContextT&& value) {
82 m_kMSContextHasBeenSet = true;
83 m_kMSContext = std::forward<KMSContextT>(value);
84 }
85 template <typename KMSContextT = Aws::String>
86 Encryption& WithKMSContext(KMSContextT&& value) {
87 SetKMSContext(std::forward<KMSContextT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_kMSKeyId;
95
96 Aws::String m_kMSContext;
97 bool m_encryptionTypeHasBeenSet = false;
98 bool m_kMSKeyIdHasBeenSet = false;
99 bool m_kMSContextHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Glacier
104} // namespace Aws
void SetEncryptionType(EncryptionType value)
Definition Encryption.h:43
void SetKMSKeyId(KMSKeyIdT &&value)
Definition Encryption.h:62
const Aws::String & GetKMSKeyId() const
Definition Encryption.h:59
const Aws::String & GetKMSContext() const
Definition Encryption.h:78
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
Encryption & WithKMSKeyId(KMSKeyIdT &&value)
Definition Encryption.h:67
Encryption & WithEncryptionType(EncryptionType value)
Definition Encryption.h:47
AWS_GLACIER_API Encryption(Aws::Utils::Json::JsonView jsonValue)
void SetKMSContext(KMSContextT &&value)
Definition Encryption.h:81
AWS_GLACIER_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithKMSContext(KMSContextT &&value)
Definition Encryption.h:86
bool EncryptionTypeHasBeenSet() const
Definition Encryption.h:42
EncryptionType GetEncryptionType() const
Definition Encryption.h:41
AWS_GLACIER_API Encryption()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue