AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/model/EncryptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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 Glacier
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLACIER_API Encryption() = default;
37 AWS_GLACIER_API Encryption(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLACIER_API Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
48 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
49 inline void SetEncryptionType(EncryptionType value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
50 inline Encryption& WithEncryptionType(EncryptionType value) { SetEncryptionType(value); return *this;}
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) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::forward<KMSKeyIdT>(value); }
63 template<typename KMSKeyIdT = Aws::String>
64 Encryption& WithKMSKeyId(KMSKeyIdT&& value) { SetKMSKeyId(std::forward<KMSKeyIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetKMSContext() const { return m_kMSContext; }
73 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
74 template<typename KMSContextT = Aws::String>
75 void SetKMSContext(KMSContextT&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::forward<KMSContextT>(value); }
76 template<typename KMSContextT = Aws::String>
77 Encryption& WithKMSContext(KMSContextT&& value) { SetKMSContext(std::forward<KMSContextT>(value)); return *this;}
79 private:
80
82 bool m_encryptionTypeHasBeenSet = false;
83
84 Aws::String m_kMSKeyId;
85 bool m_kMSKeyIdHasBeenSet = false;
86
87 Aws::String m_kMSContext;
88 bool m_kMSContextHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Glacier
93} // namespace Aws
void SetEncryptionType(EncryptionType value)
Definition Encryption.h:49
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:72
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
Encryption & WithKMSKeyId(KMSKeyIdT &&value)
Definition Encryption.h:64
Encryption & WithEncryptionType(EncryptionType value)
Definition Encryption.h:50
AWS_GLACIER_API Encryption(Aws::Utils::Json::JsonView jsonValue)
void SetKMSContext(KMSContextT &&value)
Definition Encryption.h:75
AWS_GLACIER_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithKMSContext(KMSContextT &&value)
Definition Encryption.h:77
bool EncryptionTypeHasBeenSet() const
Definition Encryption.h:48
EncryptionType GetEncryptionType() const
Definition Encryption.h:47
AWS_GLACIER_API Encryption()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue