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/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();
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 const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
48 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
49 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
50 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
51 inline Encryption& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
52 inline Encryption& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
54
56
61 inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
62 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
63 inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
64 inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
65 inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
66 inline Encryption& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
67 inline Encryption& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
68 inline Encryption& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
70
72
76 inline const Aws::String& GetKMSContext() const{ return m_kMSContext; }
77 inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
78 inline void SetKMSContext(const Aws::String& value) { m_kMSContextHasBeenSet = true; m_kMSContext = value; }
79 inline void SetKMSContext(Aws::String&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::move(value); }
80 inline void SetKMSContext(const char* value) { m_kMSContextHasBeenSet = true; m_kMSContext.assign(value); }
81 inline Encryption& WithKMSContext(const Aws::String& value) { SetKMSContext(value); return *this;}
82 inline Encryption& WithKMSContext(Aws::String&& value) { SetKMSContext(std::move(value)); return *this;}
83 inline Encryption& WithKMSContext(const char* value) { SetKMSContext(value); return *this;}
85 private:
86
87 EncryptionType m_encryptionType;
88 bool m_encryptionTypeHasBeenSet = false;
89
90 Aws::String m_kMSKeyId;
91 bool m_kMSKeyIdHasBeenSet = false;
92
93 Aws::String m_kMSContext;
94 bool m_kMSContextHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Glacier
99} // namespace Aws
void SetEncryptionType(EncryptionType &&value)
Definition Encryption.h:50
void SetEncryptionType(const EncryptionType &value)
Definition Encryption.h:49
Encryption & WithEncryptionType(EncryptionType &&value)
Definition Encryption.h:52
void SetKMSKeyId(Aws::String &&value)
Definition Encryption.h:64
const Aws::String & GetKMSKeyId() const
Definition Encryption.h:61
Encryption & WithKMSContext(const Aws::String &value)
Definition Encryption.h:81
void SetKMSKeyId(const char *value)
Definition Encryption.h:65
const Aws::String & GetKMSContext() const
Definition Encryption.h:76
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLACIER_API Encryption(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithKMSKeyId(const Aws::String &value)
Definition Encryption.h:66
void SetKMSContext(Aws::String &&value)
Definition Encryption.h:79
Encryption & WithEncryptionType(const EncryptionType &value)
Definition Encryption.h:51
AWS_GLACIER_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EncryptionTypeHasBeenSet() const
Definition Encryption.h:48
void SetKMSContext(const Aws::String &value)
Definition Encryption.h:78
Encryption & WithKMSContext(const char *value)
Definition Encryption.h:83
void SetKMSKeyId(const Aws::String &value)
Definition Encryption.h:63
void SetKMSContext(const char *value)
Definition Encryption.h:80
Encryption & WithKMSContext(Aws::String &&value)
Definition Encryption.h:82
Encryption & WithKMSKeyId(const char *value)
Definition Encryption.h:68
Encryption & WithKMSKeyId(Aws::String &&value)
Definition Encryption.h:67
const EncryptionType & GetEncryptionType() const
Definition Encryption.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue