AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
EncryptionConfig.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/EncryptionMode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
30 public:
31 AWS_CONTEXT_API EncryptionConfig() = default;
32 AWS_CONTEXT_API EncryptionConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API EncryptionConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
44 inline EncryptionMode GetEncryptionMode() const { return m_encryptionMode; }
45 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
46 inline void SetEncryptionMode(EncryptionMode value) {
47 m_encryptionModeHasBeenSet = true;
48 m_encryptionMode = value;
49 }
51 SetEncryptionMode(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
63 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
64 template <typename KeyArnT = Aws::String>
65 void SetKeyArn(KeyArnT&& value) {
66 m_keyArnHasBeenSet = true;
67 m_keyArn = std::forward<KeyArnT>(value);
68 }
69 template <typename KeyArnT = Aws::String>
70 EncryptionConfig& WithKeyArn(KeyArnT&& value) {
71 SetKeyArn(std::forward<KeyArnT>(value));
72 return *this;
73 }
75 private:
77
78 Aws::String m_keyArn;
79 bool m_encryptionModeHasBeenSet = false;
80 bool m_keyArnHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Context
85} // namespace Aws
void SetEncryptionMode(EncryptionMode value)
EncryptionConfig & WithEncryptionMode(EncryptionMode value)
EncryptionConfig & WithKeyArn(KeyArnT &&value)
AWS_CONTEXT_API EncryptionConfig()=default
AWS_CONTEXT_API EncryptionConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetKeyArn() const
AWS_CONTEXT_API EncryptionConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String