AWS SDK for C++  1.9.104
AWS SDK for C++
Encryption.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
47 
52  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
53 
58  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
59 
64  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
65 
70  inline Encryption& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
71 
76  inline Encryption& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
77 
78 
84  inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
85 
91  inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
92 
98  inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
99 
105  inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
106 
112  inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
113 
119  inline Encryption& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
120 
126  inline Encryption& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
127 
133  inline Encryption& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
134 
135 
140  inline const Aws::String& GetKMSContext() const{ return m_kMSContext; }
141 
146  inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
147 
152  inline void SetKMSContext(const Aws::String& value) { m_kMSContextHasBeenSet = true; m_kMSContext = value; }
153 
158  inline void SetKMSContext(Aws::String&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::move(value); }
159 
164  inline void SetKMSContext(const char* value) { m_kMSContextHasBeenSet = true; m_kMSContext.assign(value); }
165 
170  inline Encryption& WithKMSContext(const Aws::String& value) { SetKMSContext(value); return *this;}
171 
176  inline Encryption& WithKMSContext(Aws::String&& value) { SetKMSContext(std::move(value)); return *this;}
177 
182  inline Encryption& WithKMSContext(const char* value) { SetKMSContext(value); return *this;}
183 
184  private:
185 
186  EncryptionType m_encryptionType;
187  bool m_encryptionTypeHasBeenSet;
188 
189  Aws::String m_kMSKeyId;
190  bool m_kMSKeyIdHasBeenSet;
191 
192  Aws::String m_kMSContext;
193  bool m_kMSContextHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace Glacier
198 } // namespace Aws
Aws::Glacier::Model::Encryption::GetKMSContext
const Aws::String & GetKMSContext() const
Definition: Encryption.h:140
Aws::Glacier::Model::Encryption::SetKMSContext
void SetKMSContext(Aws::String &&value)
Definition: Encryption.h:158
Aws::Glacier::Model::Encryption::WithKMSContext
Encryption & WithKMSContext(Aws::String &&value)
Definition: Encryption.h:176
EncryptionType.h
Aws::Glacier::Model::Encryption::SetKMSKeyId
void SetKMSKeyId(const char *value)
Definition: Encryption.h:112
Aws::Glacier::Model::Encryption::WithEncryptionType
Encryption & WithEncryptionType(const EncryptionType &value)
Definition: Encryption.h:70
Aws::Glacier::Model::Encryption
Definition: Encryption.h:34
Aws::Glacier::Model::Encryption::WithEncryptionType
Encryption & WithEncryptionType(EncryptionType &&value)
Definition: Encryption.h:76
Aws::Glacier::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::Glacier::Model::Encryption::KMSContextHasBeenSet
bool KMSContextHasBeenSet() const
Definition: Encryption.h:146
Aws::Glacier::Model::Encryption::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: Encryption.h:52
Aws::Glacier::Model::Encryption::operator=
Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::Encryption::Encryption
Encryption(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::Encryption::GetKMSKeyId
const Aws::String & GetKMSKeyId() const
Definition: Encryption.h:84
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::Encryption::SetKMSContext
void SetKMSContext(const Aws::String &value)
Definition: Encryption.h:152
Aws::Glacier::Model::Encryption::WithKMSContext
Encryption & WithKMSContext(const char *value)
Definition: Encryption.h:182
Aws::Glacier::Model::Encryption::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: Encryption.h:46
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::Encryption::WithKMSKeyId
Encryption & WithKMSKeyId(const Aws::String &value)
Definition: Encryption.h:119
Aws::Glacier::Model::Encryption::Encryption
Encryption()
Aws::Glacier::Model::Encryption::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: Encryption.h:64
Aws::Glacier::Model::Encryption::SetKMSContext
void SetKMSContext(const char *value)
Definition: Encryption.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::Encryption::WithKMSKeyId
Encryption & WithKMSKeyId(const char *value)
Definition: Encryption.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::Encryption::WithKMSKeyId
Encryption & WithKMSKeyId(Aws::String &&value)
Definition: Encryption.h:126
Aws::Glacier::Model::Encryption::KMSKeyIdHasBeenSet
bool KMSKeyIdHasBeenSet() const
Definition: Encryption.h:91
Aws::Glacier::Model::Encryption::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: Encryption.h:58
Aws::Glacier::Model::Encryption::SetKMSKeyId
void SetKMSKeyId(Aws::String &&value)
Definition: Encryption.h:105
Aws::Glacier::Model::Encryption::SetKMSKeyId
void SetKMSKeyId(const Aws::String &value)
Definition: Encryption.h:98
Aws::Glacier::Model::Encryption::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::Encryption::WithKMSContext
Encryption & WithKMSContext(const Aws::String &value)
Definition: Encryption.h:170
Glacier_EXPORTS.h